grade-generation
Skill3.5k starsChanged 11 months agoMITView on GitHub
Independently grade a generated Figma design or generated UI code against the original request and the design system, using a separate grader subagent that never saw the generator's reasoning. Deterministic tool evidence first, judgment second; returns a fixed PASS/FAIL verdict. Use after any design or code generation, when the user asks to "eval", "grade", "verify", "QA" or "check" a generation, or when running a generate → grade → fix loop.
Trending
More talk lately.about the whole repository
Who's talking about southleft/figma-console-mcp
- @glencampbell.design“This MCP will work better at performing actions in Figma. Connecting to Figma with Claude Code, which …”Bluesky · Mar 25, 2026 · 3 likes
- @azu.bsky.social“AIアシスタントとFigmaを接続するMCPサーバ。 Figma MCPと違って、Figma Pluginを経由することでWriteの操作ができる。 デザイン変数、コンポーネント、スタイルの取得や、デザイントー… ""…”Bluesky · Mar 16, 2026 · 2 likes
- @github-trending-js.bsky.social“🚀 Skyrocketing! 🚀 (200+ new stars) 📦 southleft / figma-console-mcp ⭐ 3,116 (+242) 🗒 TypeScript Your …”Bluesky · Nov 5, 2026 · 1 likes
- @ryonakae.com“Figma Console …”Bluesky · Oct 22, 2026 · 1 likes
- A Hacker News story“Figma Console MCP”Hacker News · Jul 21, 2026 · 1 points
The biggest 5 of 32 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 32
Talked about on GitHub, Bluesky and Hacker News (32 times).
On GitHub · 23
- Nov 30, 2026⬆️ Figma Console MCP updated: v1.46.0 → v2.5.1 — adamforrester/xd-toolkit0 reactions
- Nov 6, 2026feat(data): add Kandev, Stroq, Figma Console MCP and unslop to catalog — QAInsights/awesome-ai-tools0 reactions · 6 comments
- Nov 2, 2026⬆️ Figma Console MCP updated: v1.41.2 → v1.46.0 — adamforrester/xd-toolkit0 reactions
- Nov 1, 2026chore(deps): bump zod and figma-console-mcp in /apps/s2a-toolkit-bridge — adobecom/consonant0 reactions · 1 comment
- Oct 26, 2026⬆️ Figma Console MCP updated: v1.40.9 → v1.41.2 — adamforrester/xd-toolkit0 reactions
18 more on GitHub
- Oct 19, 2026chore(deps): bump @modelcontextprotocol/sdk and figma-console-mcp in /apps/s2a-toolkit-bridge — adobecom/consonant0 reactions · 1 comment
- Oct 14, 2026chore(deps): bump @modelcontextprotocol/sdk and figma-console-mcp — adobecom/consonant0 reactions · 1 comment
- Oct 5, 2026⬆️ Figma Console MCP updated: v1.40.7 → v1.40.9 — adamforrester/xd-toolkit0 reactions
- Sep 28, 2026⬆️ Figma Console MCP updated: v1.40.4 → v1.40.7 — adamforrester/xd-toolkit0 reactions
- Sep 21, 2026⬆️ Figma Console MCP updated: v1.40.0 → v1.40.4 — adamforrester/xd-toolkit0 reactions
- Aug 17, 2026⬆️ Figma Console MCP updated: v1.39.1 → v1.40.0 — adamforrester/xd-toolkit0 reactions
- Aug 3, 2026⬆️ Figma Console MCP updated: v1.38.0 → v1.39.1 — adamforrester/xd-toolkit0 reactions
- Jul 27, 2026⬆️ Figma Console MCP updated: v1.36.0 → v1.38.0 — adamforrester/xd-toolkit0 reactions
- Jul 20, 2026⬆️ Figma Console MCP updated: v1.35.0 → v1.36.0 — adamforrester/xd-toolkit0 reactions
- Jul 13, 2026⬆️ Figma Console MCP updated: v1.34.0 → v1.35.0 — adamforrester/xd-toolkit0 reactions
- Jul 6, 2026⬆️ Figma Console MCP updated: v1.32.0 → v1.34.0 — adamforrester/xd-toolkit0 reactions
- Jun 25, 2026Set up figma-console-mcp (Southleft) for local design↔code workflow — digital2analogue/parsimony0 reactions · 1 comment
- Jun 22, 2026⬆️ Figma Console MCP updated: v1.31.0 → v1.32.0 — adamforrester/xd-toolkit0 reactions
- Jun 15, 2026⬆️ Figma Console MCP updated: v1.29.0 → v1.31.0 — adamforrester/xd-toolkit0 reactions
- May 25, 2026⬆️ Figma Console MCP updated: v1.27.1 → v1.29.0 — adamforrester/xd-toolkit0 reactions
- May 18, 2026⬆️ Figma Console MCP updated: v1.23.0 → v1.27.1 — adamforrester/xd-toolkit0 reactions
- May 11, 2026⬆️ Figma Console MCP updated: v1.22.1 → v1.23.0 — adamforrester/xd-toolkit0 reactions
- Apr 13, 2026⬆️ Figma Console MCP: initial tracking at v1.22.1 — adamforrester/xd-toolkit0 reactions
On Bluesky · 8
- Mar 25, 2026This MCP will work better at performing actions in Figma. Connecting to Figma with Claude Code, which should point at your code project.… — @glencampbell.design3 likes and reposts · 1 reply
- Mar 16, 2026AIアシスタントとFigmaを接続するMCPサーバ。 Figma MCPと違って、Figma Pluginを経由することでWriteの操作ができる。 デザイン変数、コンポーネント、スタイルの取得や、デザイントー… ""… — @azu.bsky.social2 likes and reposts
- Nov 5, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 southleft / figma-console-mcp ⭐ 3,116 (+242) 🗒 TypeScript Your design system as an API. Connect AI… — @github-trending-js.bsky.social1 likes and repost · 1 reply
- Oct 22, 2026Figma Console MCPとかの、Figmaプラグイン使ってMCPサーバーをローカルで立てるタイプじゃないと独自フォントは扱えないな。なんかでもこういうのってWebSocketで通信するから接続不安定で微妙なんよなあ github.com/southleft/fi... — @ryonakae.com1 likes and repost
- Mar 21, 2026📦 southleft / figma-console-mcp ⭐ 1,146 (+37) 🗒 TypeScript Your design system as an API. Connect AI to Figma for extraction, creation,… — @github-trending-js.bsky.social1 likes and repost
3 more on Bluesky
- Mar 20, 2026github.com/southleft/figma... GitHub - southleft/figma-console-mcp: Your design system as an API. Connect AI to Figma for extr... — @technews4869.bsky.social1 likes and repost
- Mar 19, 2026Figmaの変数やコンポーネント記述をMCPプロトコル経由でAIに連携させるツールらしい AIにデザイン操作やデータ抽出させたい場合に便利そうかな yug1224 starred southleft/figma-console-mcp… — @yug1224.com1 likes and repost
- Feb 17, 2026AIがFigmaでデザインできるMCPありそうで無さそうなので作ってみよかなと思っていたけど、やりたいことの完全上位互換みたいなやつ既にあってやる気なくなっちゃった / southleft/figma-console-mcp: Your design system as an… — @ryonakae.com1 likes and repost · 1 reply
On Hacker News · 1
- Jul 21, 2026Figma Console MCP1 point
In this repository9 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- accessibility-reviewSkill
- code-connectSkill
- design-code-paritySkill
- design-tokens-syncSkill
- generate-code-with-design-systemSkill
- generate-with-design-systemSkill
- import-web-pageSkill
- troubleshoot-connectionSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 58
If the code can be rendered to HTML (static markup, or a story's rendered output): figma_scan_code_accessibility({ html, tags: …
- Very specific: line 59
If a Figma counterpart is listed: figma_check_design_parity({ nodeId, codeSpec: { filePath, … } }).
- Very specific: line 61
If a tool errors (connection, missing library, empty catalog), stop and report INCONCLUSIVE with the error.
- Distinctive: line 68
No invention: look at the screenshot and the code for anything that looks like a system component but isn't an instance or import.
- Distinctive: line 72
Placement: check each note's position on the screenshot.
- Distinctive: line 119
Stop at PASS or after N rounds (default 3).
- Distinctive: line 120
If a finding can only be fixed by inventing something (a missing component or token), the generator marks it with a gap note instead.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Grade a generation with an independent grader
Tools (Local Mode): this skill uses tools outside the core set. If they aren't in your tool list, call
figma_enable_toolsets({ toolsets: ["parity", "inspect"] })once at the start; if they still don't appear, call them throughfigma_call({ tool, arguments }). Cloud Mode lists every tool, so skip this there.
The agent that generated the work doesn't grade it. A separate grader, with fresh context, gets only the request and the location of the artifact. It checks with tools first and uses judgment second. Evidence beats opinion: every blocking finding must cite tool output (a nodeId with its audit rule, or a file:line with its rule). A finding the grader can't back with evidence is a note, not a FAIL reason.
Orchestrator: spawn the grader
In Claude Code, use the Agent tool with a fresh agent, e.g. subagent_type: "general-purpose", which has the figma-console tools. Don't use a fork. A fork inherits the generator's context, which defeats the point. In other clients, use whatever starts a new agent with empty context.
Send only this brief. Leave out the generator's plan, its notes, its own audit results, and "I already fixed X".
You are grading a generated artifact. You did not create it. Be strict and cite evidence.
REQUEST (verbatim from the person):
<original request text>
ARTIFACT:
- Kind: figma | code
- Figma: file <fileKey or URL>, root nodeId <id>
- Code: files <path1>, <path2>
DESIGN SYSTEM:
- Figma library file keys: <keys, or "active file">
- Code: packages <@acme/ui>, components <list or "inspect package">, tokens <path>
- Code component counterparts (for parity), if any: <Figma nodeId ↔ code file>
GAP POLICY: <"note in place" (default: anything the system lacks gets an explained GAP note where it belongs) | the person's list of approved gaps>
PASS CRITERIA:
- Adherence score >= <90>, zero adherence errors
- No WCAG A/AA critical findings
- Every requested element present; nothing extra; no invented components or tokens
- Every missing component or part marked with an explained gap note in the right spot; no gap notes for things the system has
Follow the grade-generation skill's grader procedure and return its verdict format exactly.Grader procedure
A. Deterministic checks (always run, in this order)
Figma artifact:
figma_list_open_files. If the artifact's file isn't the active one, runfigma_navigate({ url, lock: true }).figma_audit_adherence({ nodeId, libraryFileKeys, minScore }). Recordpass,score,componentCoverage,tokenCoverage,counts.byRule,componentsUsed,declaredGaps, plus each error and warning finding with itsnodeId. Ifstats.truncatedis set, re-run on a smaller frame or with a highermaxNodes. Never grade from a truncated audit.figma_lint_design({ nodeId, rules: ["wcag"] }). Record findings by severity and WCAG level.figma_capture_screenshot({ nodeId })for the visual check in B.- For each node the brief lists as having a code counterpart:
figma_check_design_parity({ nodeId, codeSpec, canonicalSource }). BuildcodeSpecfrom reading the code file.
Code artifact:
figma_audit_code_adherence({ files, designSystem: { packages, components, tokensPath }, minScore }). Recordscore,pass, and each finding withfile:lineand its rule.- If the code can be rendered to HTML (static markup, or a story's rendered output):
figma_scan_code_accessibility({ html, tags: ["wcag2a","wcag2aa","wcag22aa"] }). - If a Figma counterpart is listed:
figma_check_design_parity({ nodeId, codeSpec: { filePath, … } }).
If a tool errors (connection, missing library, empty catalog), stop and report INCONCLUSIVE with the error. Don't grade on partial evidence, and don't substitute your own impression.
B. Judgment (after A, anchored to it)
Compare the artifact to the request, not to what you would have built:
- Fidelity: list every element the request asks for, and mark each one present (cite nodeId or file:line), declared gap, or missing.
- Nothing extra: flag elements the request didn't ask for.
- No invention: look at the screenshot and the code for anything that looks like a system component but isn't an instance or import. Confirm it with the audit's
imitates-component,looks-hand-built,reimplements-componentorraw-elementfindings, or inspect the node withfigma_get_component_for_development_deep({ nodeId, depth: 2 }). - Gaps marked in place: for every requested element or part, decide independently whether the system has it. Use
figma_search_componentsandfigma_get_component_details, not the generator's word.- System lacks it: there must be a
GAP:note (from the audit'sgapNotes) in the spot where it belongs, explaining what goes there. A silent omission or a hand-built fake is blocking. - System has it: it must be an instance. A gap note in its place is blocking (
gap-but-component-exists). - Placement: check each note's position on the screenshot. It must be where the element would be (pagination under its table, a card image within the card's group), not collected in a corner.
- System lacks it: there must be a
- Visual sanity (Figma): overlaps, clipped text, broken alignment. These are non-blocking unless they make a requested element unusable.
C. Verdict rules
- FAIL if any of these hold:
- an adherence error,
- score below the threshold,
- a WCAG A/AA critical finding,
- a requested element or part missing without a gap note,
- a gap note for something the system has,
- an invented stand-in (hand-built look-alike) instead of a gap note,
- a truncated audit.
- PASS otherwise. Warnings go in the report but don't fail on their own unless the brief says so.
- Each blocking finding must quote the tool, the rule, and the nodeId or file:line. If you can't cite it, move it to Notes.
Verdict format (return exactly this)
VERDICT: PASS | FAIL | INCONCLUSIVE
SCORES
- Adherence: <score>/100 (threshold <n>) — componentCoverage <x>, tokenCoverage <y> [or code: score <n>]
- Accessibility: <critical>/<warning> findings (WCAG A: <n>, AA: <n>, AAA: <n>)
- Parity: <score or "n/a">
- Request fidelity: <present>/<requested> elements
BLOCKING FINDINGS
1. [<tool> · <rule>] <nodeId | file:line> — <what is wrong> — fix: <specific action>
...
GAPS
- Declared and approved: <list>
- Undeclared / missing: <list>
NON-BLOCKING
- <warnings, visual notes>
NOTES (judgment without tool evidence — not used for the verdict)
- <...>The loop
- The generator builds, then the orchestrator spawns grader #1.
- On FAIL, the orchestrator passes only the BLOCKING FINDINGS and GAPS sections to the generator, which fixes them.
- The orchestrator spawns a new grader (fresh subagent, same brief) for each round. Never reuse a grader that saw an earlier round.
- Stop at PASS or after N rounds (default 3). A FAIL after N rounds goes to the person with the last verdict verbatim. Don't summarize it into a pass, and don't lower thresholds to get one.
- If a finding can only be fixed by inventing something (a missing component or token), the generator marks it with a gap note instead. That isn't a grader failure.
INCONCLUSIVE isn't a pass. Fix the tooling problem (see troubleshoot-connection) and re-grade.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

