transpose-to-figma
Use when lifting a running or built UI back onto the Figma canvas (the G2 TRANSPOSE / Code-to-Canvas edge of the design-review loop) and you must pick the right code-to-Figma path — story.to.design for the component system loop, the Figma MCP generate_figma_design for live or localhost screens, or html.to.design for an audit-only DOM record. Also use when reasoning about what survives the lossy round-trip (DTCG design tokens and Code-Connected components) versus what is lost (React state, routing, data, logic). Do NOT use for Figma-to-code implementation (use figma-implement-design) or plain Figma data fetch and MCP setup (use figma). Covers Reframe, momentstudio, WebCoder, bilbo.
- License 许可
- MIT
- 最近更新
- 2026-11-02
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- transpose-to-figma
- description
- Use when lifting a running or built UI back onto the Figma canvas (the G2 TRANSPOSE / Code-to-Canvas edge of the design-review loop) and you must pick the right code-to-Figma path — story.to.design for the component system loop, the Figma MCP generate_figma_design for live or localhost screens, or html.to.design for an audit-only DOM record. Also use when reasoning about what survives the lossy round-trip (DTCG design tokens and Code-Connected components) versus what is lost (React state, routing, data, logic). Do NOT use for Figma-to-code implementation (use figma-implement-design) or plain Figma data fetch and MCP setup (use figma). Covers Reframe, momentstudio, WebCoder, bilbo.
02 资源文件 6
- 参考文档steps/step-01-validate-prerequisites.md10.5 KB
- 参考文档steps/step-02-design-epics.md7.1 KB
- 参考文档steps/step-03-create-stories.md8.2 KB
- 参考文档steps/step-04-final-validation.md4.4 KB
- 参考文档templates/epics-template.md1.1 KB
- 参考文档workflow.md2.9 KB
03 SKILL.md 正文
<!-- origin: user (design-SOTA research, 2026-06-30); implements DESIGN-SKILLS-AND-EVAL.md §1.2, DESIGN-WORKFLOW.md G2/§1/§3, FIGMA-SETUP.md §1/§2.3/§2.6/§3 -->
transpose-to-figma Skill
The G2 TRANSPOSE gate of the TCR design-review loop — the altitude selector for the code-to-Figma edge. Its one job: lift the running UI onto the canvas so you critique reality, not a stale design file — and pick the right transpose path for the situation so you don't pay for drift you didn't need.
Skill location: ~/.claude/skills/transpose-to-figma/
Implements
DESIGN-SKILLS-AND-EVAL.md §1.2(thetranspose-to-figmarow),DESIGN-WORKFLOW.mdG2 + §1 (lossy round-trip) + §3 (the transpose→discuss→revert micro-loop), andFIGMA-SETUP.md §1(transpose-plugin table) +§2.3(tool surface)
§2.6(Code Connect) +§3(token spine). Cross-reference FIGMA-SETUP.md for MCP install/auth, rate limits, and the token pipeline before first use.
Overview — the one load-bearing truth
The code → Figma → code round-trip is LOSSY and render-mediated. generate_figma_design
does not convert code to Figma; it spins your dev server, renders in a browser, and
serializes the rendered DOM. Visual structure transfers; React state, routing, API
calls, and business logic do NOT. (DESIGN-WORKFLOW.md §1)
The only things that round-trip cleanly:
- W3C DTCG design tokens (Tokens Studio ⇄ Git ⇄ Style Dictionary).
- Code-Connected components (the agent emits your
<Button>, not a re-derived div).
When to use
The altitude decision (the key insight)
Recommend a path + drift class + caveats + the exact next tool call:
Driving each path
A. System loop — story.to.design (LOW drift, the preferred path)
B. Live / localhost — generate_figma_design (MEDIUM drift, the workhorse)
C. Audit record — html.to.design (HIGH drift, look-only)
Record the transpose (the revert-surface manifest)
System loop (both bound) -> systemLoopReady: true, revert via token diff:
Audit record (nothing bound) -> emits the AUDIT-ONLY warning:
Standard questions for this gate (the G2 question bank)
What survives vs. what is lost (cite this every time)
04 同仓库更多 Skills
clarify-requirements
Resolve genuine pre-execution ambiguity by scanning repo context, generating 1-6 grounded options, and asking 1-3 focused questions via AskUserQuestion. NOT for mid-task use (injection risk); NOT when the goal is already unambiguous; use to disambiguate vague prompts before any file edits.
openmm-md
Run FREE, open-source, Windows-native GPU molecular dynamics via the openmm-md MCP (OpenMM + CUDA on the local NVIDIA GPU). Use for protein / protein-ligand MD when you want a free stack or are on Windows without a Schrodinger license. Covers the full workflow (prepare, solvate, minimize, equilibrate, production, analyze, mmgbsa) AND an honest decision guide vs Schrodinger Desmond, including how to run Desmond legitimately on Linux or a cloud GPU with a real license. This is a deliberately LESSER free alternative and does NOT replace the schrodinger MCP tools. Do NOT use it to pick a free tool when a validated FEP+, WaterMap, IFD-MD, or Prime MM-GBSA result is actually required.
visual-review
Take screenshots of web pages and UI using Playwright for visual review and iteration
status
Diagnostic status report — shows metaswarm installation state, project setup, and potential issues
start
Use when starting work on any task, when the user mentions metaswarm, or when the user wants to begin tracked development work
setup
Interactive project setup — detects your project, configures metaswarm, writes project-local files