Skip to content

docs: add English blog post on Figma-to-code visual validation#265

Open
rubenmarcus wants to merge 2 commits intomainfrom
content/english-blog-v040
Open

docs: add English blog post on Figma-to-code visual validation#265
rubenmarcus wants to merge 2 commits intomainfrom
content/english-blog-v040

Conversation

@rubenmarcus
Copy link
Copy Markdown
Member

Summary

  • English SEO-optimized blog post about ralph-starter v0.4.0 Figma-to-code workflow
  • Targets keywords: "figma to code", "visual validation", "design to code automation"
  • Covers: three-layer validation pipeline, Figma wizard, extraction capabilities, multi-agent support
  • Includes internal links to 7 docs pages for SEO juice
  • Written for international English-speaking developer audience

Test plan

  • Blog post renders correctly at /blog/figma-to-code-visual-validation
  • Frontmatter keywords and description appear in page meta tags
  • All internal links resolve (no 404s)
  • Blog list page shows the post with correct date and preview
  • pnpm build in docs/ passes

🤖 Generated with Claude Code

SEO-optimized English article targeting international developer audience.
Covers the three-layer visual validation pipeline, Figma wizard,
extraction capabilities, and multi-agent support.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 6, 2026

Issue Linking Reminder

This PR doesn't appear to have a linked issue. Consider linking to:

  • This repo: Closes #123
  • ralph-ideas: Closes multivmlabs/ralph-ideas#123

Using Closes, Fixes, or Resolves will auto-close the issue when this PR is merged.


If this PR doesn't need an issue, you can ignore this message.

@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps bot commented Mar 6, 2026

Greptile Summary

This PR adds a single English-language, SEO-optimised blog post (2026-03-07-figma-to-code-visual-validation.md) describing the new ralph-starter figma interactive wizard and three-layer visual validation pipeline introduced in v0.4.0. The post covers the full workflow from pasting a Figma URL through pixel comparison, LLM vision analysis, and strict gate validation, and includes internal links to seven docs pages for SEO.

Key issues found:

  • Build-breaking broken link/docs/cli/figma is referenced in the References section but docs/docs/cli/figma.md does not exist. With onBrokenLinks: 'throw' in docusaurus.config.ts, pnpm build will fail, directly blocking the stated test-plan item.
  • Duplicate social/OG imageimage: /img/blog/figma-to-code.png is already used by the existing post 2026-02-01-figma-to-code-one-command.md, making both posts visually identical when shared on social media.
  • Missing Figma API token prerequisite — The "Try it" section guides readers straight to ralph-starter figma without mentioning that a Figma Personal Access Token must be configured first (ralph-starter config set figma.token figd_...), which will cause a first-run authentication error.

Confidence Score: 2/5

  • Not safe to merge — the broken /docs/cli/figma link will cause pnpm build to fail due to onBrokenLinks: 'throw'.
  • The post is a docs-only change with no code risk, but it contains a broken internal link to a page that does not exist (/docs/cli/figma). The Docusaurus configuration throws on broken links, so this will cause the CI build to fail before the post is ever published. The issue is straightforward to fix — either create the missing page or swap the link for the existing /docs/sources/figma reference.
  • docs/blog/2026-03-07-figma-to-code-visual-validation.md — specifically line 160 where the broken /docs/cli/figma reference lives.

Important Files Changed

Filename Overview
docs/blog/2026-03-07-figma-to-code-visual-validation.md New SEO-optimised blog post for the v0.4.0 Figma visual-validation feature; contains a broken /docs/cli/figma reference that will cause pnpm build to fail due to onBrokenLinks: 'throw', shares the same OG image as an existing Figma post, and omits the required Figma API token setup step.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[ralph-starter figma] --> B[Interactive Wizard\nURL · description · stack · model]
    B --> C[Figma API extraction\ntypography · colors · spacing · assets]
    C --> D[AI Agent coding loop\nwrite → lint → build → commit]
    D --> E[Layer 1: pixelmatch\npixel diff < 2%?]
    E -->|Yes| F[✓ Visual validation passed]
    E -->|No - diff ≥ 2%| G[Layer 2: LLM vision analysis\nFigma screenshot + impl screenshot + diff overlay]
    G --> H[Agent applies fixes]
    H --> I[Layer 3: Strict pixelmatch gate\npixel diff < 2%?]
    I -->|Yes| F
    I -->|No| G
Loading

Last reviewed commit: 83c3c22


## References

- [Figma wizard CLI docs](/docs/cli/figma)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Broken internal link will fail the build

The link /docs/cli/figma points to a page that does not exist. Scanning the repository shows only these files under docs/docs/cli/: auth.md, auto.md, check.md, config.md, fix.md, init.md, integrations.md, plan.md, presets.md, run.md, setup.md, skill.md, source.md, task.md, template.md. There is no figma.md.

Because docusaurus.config.ts sets onBrokenLinks: 'throw', this broken link will cause pnpm build to fail, directly blocking the test-plan item "pnpm build in docs/ passes".

Either create the missing docs/docs/cli/figma.md page, or replace the link with the existing Figma integration page that does exist:

Suggested change
- [Figma wizard CLI docs](/docs/cli/figma)
- [Figma integration guide](/docs/sources/figma)
Prompt To Fix With AI
This is a comment left during a code review.
Path: docs/blog/2026-03-07-figma-to-code-visual-validation.md
Line: 160

Comment:
**Broken internal link will fail the build**

The link `/docs/cli/figma` points to a page that does not exist. Scanning the repository shows only these files under `docs/docs/cli/`: `auth.md`, `auto.md`, `check.md`, `config.md`, `fix.md`, `init.md`, `integrations.md`, `plan.md`, `presets.md`, `run.md`, `setup.md`, `skill.md`, `source.md`, `task.md`, `template.md`. There is no `figma.md`.

Because `docusaurus.config.ts` sets `onBrokenLinks: 'throw'`, this broken link **will cause `pnpm build` to fail**, directly blocking the test-plan item "pnpm build in docs/ passes".

Either create the missing `docs/docs/cli/figma.md` page, or replace the link with the existing Figma integration page that does exist:

```suggestion
- [Figma integration guide](/docs/sources/figma)
```

How can I resolve this? If you propose a fix, please make it concise.

authors: [ruben]
tags: [ralph-starter, figma, visual-validation, design-to-code, tutorial]
description: "Convert Figma designs to production-ready code with pixel-by-pixel visual validation. ralph-starter v0.4.0 introduces a three-layer comparison pipeline that catches layout, color, and typography mismatches automatically."
image: /img/blog/figma-to-code.png
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicate OG/social image with existing Figma post

The existing blog post 2026-02-01-figma-to-code-one-command.md already uses image: /img/blog/figma-to-code.png. When both posts are shared on social media (Twitter/OG cards), they will show identical preview images, making them visually indistinguishable and reducing click-through differentiation.

Since this post covers a distinct topic (the three-layer visual validation pipeline in v0.4.0), consider adding a new unique image, for example:

Suggested change
image: /img/blog/figma-to-code.png
image: /img/blog/figma-visual-validation.png
Prompt To Fix With AI
This is a comment left during a code review.
Path: docs/blog/2026-03-07-figma-to-code-visual-validation.md
Line: 7

Comment:
**Duplicate OG/social image with existing Figma post**

The existing blog post `2026-02-01-figma-to-code-one-command.md` already uses `image: /img/blog/figma-to-code.png`. When both posts are shared on social media (Twitter/OG cards), they will show identical preview images, making them visually indistinguishable and reducing click-through differentiation.

Since this post covers a distinct topic (the three-layer visual validation pipeline in v0.4.0), consider adding a new unique image, for example:

```suggestion
image: /img/blog/figma-visual-validation.png
```

How can I resolve this? If you propose a fix, please make it concise.

Comment on lines +133 to +144
## Try it

```bash
npm install -g ralph-starter@latest
ralph-starter figma
```

Or without installing:

```bash
npx ralph-starter figma
```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing Figma API token setup step

The "Try it" section shows ralph-starter figma as a one-liner, but the wizard needs a Figma Personal Access Token to call the Figma API. The existing blog post 2026-02-01-figma-to-code-one-command.md (and the Figma integration docs) include the token setup step:

ralph-starter config set figma.token figd_your_token_here

Without this prerequisite, readers who follow the post verbatim will hit an authentication error the first time the tool calls the Figma API. Consider adding a brief note or an admonition (e.g. :::tip) pointing out that a Figma Personal Access Token is required and linking to the integration guide for setup instructions.

Prompt To Fix With AI
This is a comment left during a code review.
Path: docs/blog/2026-03-07-figma-to-code-visual-validation.md
Line: 133-144

Comment:
**Missing Figma API token setup step**

The "Try it" section shows `ralph-starter figma` as a one-liner, but the wizard needs a Figma Personal Access Token to call the Figma API. The existing blog post `2026-02-01-figma-to-code-one-command.md` (and the Figma integration docs) include the token setup step:

```bash
ralph-starter config set figma.token figd_your_token_here
```

Without this prerequisite, readers who follow the post verbatim will hit an authentication error the first time the tool calls the Figma API. Consider adding a brief note or an admonition (e.g. `:::tip`) pointing out that a Figma Personal Access Token is required and linking to the integration guide for setup instructions.

How can I resolve this? If you propose a fix, please make it concise.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 83c3c22316

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".


## References

- [Figma wizard CLI docs](/docs/cli/figma)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Replace nonexistent /docs/cli/figma reference

This link points to a route that does not exist in the docs tree, so readers clicking “Figma wizard CLI docs” will land on a 404 instead of command documentation. I checked docs/docs/cli/ and there is no figma doc page (only files like run.md, source.md, etc.), so this should be updated to an existing target.

Useful? React with 👍 / 👎.

Changed /docs/cli/figma to /docs/sources/figma — the cli/figma
page does not exist, the Figma documentation lives under sources.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 8, 2026

🔗 Docs Preview

Preview URL: https://content-english-blog-v040.ralph-starter-docs.pages.dev

This preview was deployed from the latest commit on this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant