From kf
Convert a Figma design URL into a structured feature spec following the spec-first layer model. Produces user stories, acceptance criteria, and implementation notes. Activate before frontend-design and design-taste-frontend when a Figma URL is the starting point for a build task.
How this skill is triggered — by the user, by Claude, or both
Slash command
/kf:figma-to-specThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Load this skill when a Figma URL is the starting point for a design or build task.
Load this skill when a Figma URL is the starting point for a design or build task.
Run it before any other design skills — the spec it produces feeds into frontend-design
and design-taste-frontend.
Two paths depending on available tools:
mcp__playwright__browser_navigate(url="<figma-url>")
mcp__playwright__browser_take_screenshot()
Navigate to the Figma URL and take a screenshot of each relevant frame or component. If the URL requires Figma login, note this and fall back to Path B.
Ask the user to describe what they see. Prompt for:
1. What are the main screens or views in the design?
2. For each screen: what are the key elements (nav, content, actions, forms)?
3. What interactions are shown (hover states, modals, transitions)?
4. Are there any error states or empty states?
5. What are the primary user actions on each screen?
Collect answers before proceeding to Step 2.
From the screenshots or user description, identify:
| Category | What to extract |
|---|---|
| Screens / views | Names and purposes of each distinct view |
| Components | Reusable elements (cards, buttons, nav, forms) |
| User flows | How a user moves between screens |
| States | Default, loading, error, empty, success |
| Data | What data is displayed? What does the user input? |
| Constraints | Anything the design implies that's non-negotiable |
Output a structured spec document with these sections:
One paragraph: what this feature does, who it's for, and what problem it solves.
As a <user type>, I want to <action> so that <outcome>.
One story per distinct user goal. Aim for 3–6 stories total. If there are more, group related ones or flag that the feature may need to be split.
For each screen or view:
#### <Screen Name>
**Purpose:** <one sentence>
**Key elements:** <bulleted list of main UI elements>
**Primary action:** <the main thing a user does here>
**States:** default | loading | error | empty (note which are designed)
Write in Gherkin for the most important behaviors:
Feature: <feature name>
Scenario: <happy path>
Given <starting state>
When <user action>
Then <expected outcome>
Scenario: <error state>
Given <starting state>
When <user action that fails>
Then <error handling expected>
Write at least one scenario per screen. Add error scenarios for any form or async operation.
Flag anything from the design that has implementation implications:
After producing the spec:
docs/features/<feature-name>/spec.md (or suggest the path)kf:spec-first if ADRs or EARS invariants are neededfrontend-design + design-taste-frontend to begin the buildConfirm with the user: "Does this spec capture the design correctly? Any gaps before we start building?"
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub kirvin/agent-dev-harness --plugin kf