## References
- `references/figma-mcp-config.md` — setup, verification, troubleshooting, and link-based usage reminders.
- `references/figma-tools-and-prompts.md` — tool catalog and prompt patterns for selecting frameworks/components and fetching metadata.
+- Baton landing docs — https://getbaton.dev/ (Baton documents a built-in MCP server, worktree isolation, workspace badges, and agent presets; used for agent-driven implementation flows). Source fetched: https://getbaton.dev/ (accessed 2026-04-11).
+- Model Context Protocol servers — https://github.com/modelcontextprotocol/servers (primary repo for MCP server implementations and releases). Latest activity: commit on 2026-03-17 indicates the repo is active.
−- Baton's landing docs — https://getbaton.dev/ (Baton documents a built-in MCP server and git-worktree isolated workspaces; used for agent-driven implementation flows).
+- OpenAI Codex: Figma designs → code guidance — https://developers.openai.com/codex/use-cases/figma-designs-to-code (confirms the get_design_context → get_metadata → get_screenshot flow and localhost-asset handling). Source fetched: https://developers.openai.com/codex/use-cases/figma-designs-to-code (accessed 2026-04-11).
−- Model Context Protocol servers — https://github.com/modelcontextprotocol/servers (primary repo for MCP server implementations and releases).
−- OpenAI / Codex: Figma designs → code guidance — https://developers.openai.com/codex/use-cases/figma-designs-to-code (recommends the get_design_context → get_metadata → get_screenshot flow and local-asset handling).
## Research-backed changes
−Updated to fold in a concrete tactic for running agent-driven implementation using Baton's built-in MCP server and isolated workspaces. The change is strictly tactical: how to run agents that call Figma MCP endpoints, capture screenshots/context, and produce git-isolated branches for review (Baton landing page documents these capabilities; see references above).
+Updated to fold in a concrete tactic for running agent-driven implementation using Baton's built-in MCP server and isolated workspaces. The change is strictly tactical: how to run agents that call Figma MCP endpoints, capture screenshots/context, and produce git-isolated branches for review. Sources: Baton landing page and the Model Context Protocol servers repo, plus OpenAI Codex Figma-to-code guidance (see References).
### Baton-driven agent workspaces
When you want an agent to implement a Figma-driven task end-to-end, prefer running it inside a Baton workspace configured with a Figma MCP client preset. Concrete steps:
@@ −51 +51 @@
2. Configure a custom agent preset that launches the project's MCP client CLI with required env vars (FIGMA_TOKEN, MCP_SERVER_URL, PROJECT_TOKEN), and an initial command to run get_design_context for the exact node ID (extracted from the Figma link).
3. Let the agent follow the required flow: get_design_context → (if needed) get_metadata + re-fetch nodes → get_screenshot → download assets → implement changes.
4. Agent should open a draft branch, produce a diff and leave a PR-ready branch. Use Baton's diff viewer to review changes before merging.
−5. Use Baton's "Accept Edits" or input prompt flow to pause agents when human review is required (e.g., component reuse decisions, ambiguous interactions).
+5. Use Baton's status badges and "Accept Edits" toggle to pause agents when human review is required (e.g., component reuse decisions, ambiguous interactions).
Rationale: Baton documents a built-in MCP server and worktree isolation that lets agents spawn workspaces and update workspace metadata programmatically — use that to keep agent work isolated and reviewable. (Source: https://getbaton.dev/)
@@ −71 +71 @@
If you need design decisions or non-trivial component changes, stop and produce a concise question for the reviewer."
## Fresh signals
+- Baton landing: built-in MCP server, workspace badges, worktree isolation — https://getbaton.dev/ (fetched 2026-04-11).
+- Model Context Protocol servers repo active; recent commits as of 2026-03-17 — https://github.com/modelcontextprotocol/servers (fetched 2026-04-11).
−- Baton landing: built-in MCP server, workspace status badges, worktree isolation — https://getbaton.dev/ · Hnrss show
+- OpenAI Codex Figma-to-code guidance confirms required flow and localhost-asset rule — https://developers.openai.com/codex/use-cases/figma-designs-to-code (fetched 2026-04-11).
−- Model Context Protocol repo activity — https://github.com/modelcontextprotocol/servers · primary MCP server repo
−- OpenAI Codex Figma-to-code guidance — https://developers.openai.com/codex/use-cases/figma-designs-to-code · flow confirmation
## Next edits
- Keep the Figma MCP flow and asset rules unchanged unless MCP server behavior changes.
−- Monitor Model Context Protocol servers repo for API or spec changes and Baton's docs for integration updates (sources added).
+- Monitor Model Context Protocol servers repo for API or spec changes and Baton's docs for integration updates (sources listed).
- Add a short usage snippet to `references/figma-tools-and-prompts.md` showing how to set up the Baton agent preset and environment variables (FIGMA_TOKEN, MCP_SERVER_URL, PROJECT_TOKEN).
## Version
+version:7
−version:6
+versionLabel: v7
−versionLabel: v6
## Update engine
- Mode: fetch -> analyze -> rewrite -> version
- Cadence: Daily
- Status: active
- Sources tracked: 6
−- Last refresh: 2026-04-09T09:26:37.829Z
+- Last refresh: 2026-04-11T09:26:36.401Z
## Latest automated refresh
+Folded concrete Baton agent tactics and authoritative references into the Figma MCP skill: added explicit citations to Baton's landing page and the Model Context Protocol repo, confirmed the recommended get_design_context→get_metadata→get_screenshot flow from OpenAI Codex docs, and bumped the skill version to v7.
+
+- Added explicit References with fetched URLs for Baton (getbaton.dev), MCP servers (GitHub), and OpenAI Codex Figma use-case.
+- Clarified Baton-driven workspace steps (worktree isolation, status badges, Accept Edits) and cited Baton.
+- Confirmed and cited the required Figma MCP flow and localhost-asset rule from OpenAI Codex.
−Added explicit references to Baton landing page, Model Context Protocol servers repo, and OpenAI Codex guidance; clarified retry behavior for truncated/failed MCP responses; bumped version to v6.
+- Bumped version to v7 and updated versionLabel.
−Added authoritative references (Baton, MCP repo, OpenAI Codex); clarified error/retry guidance for get_design_context/get_screenshot; bumped version and updated references and next edits.
- Body edits: yes
- Editor: openai/gpt-5-mini
−- Sections changed: References, Baton-driven agent workspaces, Research-backed changes, Next edits, Version
+- Sections changed: References, Research-backed changes, Baton-driven agent workspaces, Fresh signals, Version