Pull Figma design context for the current feature — extracts measurements, tokens, and component mapping before implementation
Pull Figma design context for the current feature. Run before /eng-spec, so the architect has design context.
Check $ARGUMENTS for a Figma URL (figma.com/design/... or figma.com/file/...).
If no URL in arguments, check the current Jira ticket:
git branch --show-currentTAS-13 from TAS-13-board-rendering)docs/mcp-references/JIRA.md for Cloud ID, fetch ticket via getJiraIssuefigma.com URLs. Note: getJiraIssue may not include comments by default. If no URL found in the description, proceed to asking the user rather than silently missing URLs in comments.Extract fileKey and nodeId from the URL:
figma.com/design/:fileKey/:fileName?node-id=:nodeId — convert - to : in nodeIdfigma.com/design/:fileKey/branch/:branchKey/:fileName — use branchKey as fileKeyIf no node-id in the URL: call get_metadata to list available top-level frames. Present them and ask which to pull.
eng-arch/design-tokens.md. If it exists, read it — this is the cached design system from a previous /cache-design-tokens run. This changes how Phase 6 works:
/cache-design-tokens after this pull to speed up future runs.Call get_design_context with the fileKey and nodeId. In your prompt to the tool, include project-specific conventions:
Call get_variable_defs with the same fileKey and nodeId to extract design tokens.
If the get_design_context response is truncated or very large: call get_metadata to get sub-node IDs, then call get_design_context on each section separately. Present results grouped by section.
docs/eng-specs/*.md matching the ticket). If found, use it as context for the gap analysis in Phase 6.If cached tokens exist — present a lightweight brief:
Frame-Specific Measurements
New Elements (not in cache)
design-tokens.mdToken Conflicts (if any)
Visual Decisions
Data Model Gaps
Gaps & Conflicts (only if eng plan exists)
Next Step
"Design context loaded. Ready for /code with these measurements as reference."
If the diff found NEW tokens, colors, typography, spacing, shadows, or components: automatically append them to eng-arch/design-tokens.md using the Edit tool.
Frames: line in the header to include the new frame name and node-idbg-tag for cards vs bg-modal-tag for modal)Briefly note what was added: "Updated cache with N new tokens from [frame name]."
If NO cached tokens — present the full brief:
Measurements
Design Tokens
Component Inventory
Visual Decisions
Gaps & Conflicts (only if eng plan exists)
Next Step
"Design context loaded. Ready for /code with these measurements as reference."
Suggest: "Run /cache-design-tokens to cache the design system for faster future pulls."
+screenshot — Also call get_screenshot and include the visual render in the output. Useful for documenting what a component looks like./pull-design once per section or let the skill chunk automatically./eng-spec. This gives the architect design context (measurements, tokens, gaps) to inform the implementation plan.$ARGUMENTS