/develop
Implement Subframe designs with business logic. Use after designing with /subframe:design or when given a Subframe URL/page ID.
$ npx -y skills add subframeapp/subframe --skill develop --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/develop
Context preview
The summary Claude sees to decide when to auto-load this skill.
Implement Subframe designs with business logic. Use after designing with /subframe:design or when given a Subframe URL/page ID.
SKILL.md
develop.SKILL.mdname: develop
description: Implement Subframe designs with business logic. Use after designing with /subframe:design or when given a Subframe URL/page ID.
argument-hint: "[page URL, page ID, or 'the design I just made']"
Implement Subframe designs in the codebase. Fetch the design via MCP, sync components, and add business logic.
MCP Authentication
If you cannot find the `get_page_info` tool (or any Subframe MCP tools), the MCP server likely needs to be authenticated. Ask the user to authenticate the Subframe MCP server. If the user is using Claude Code or Codex, instruct them to run `/mcp` to view and authenticate their MCP servers, and then say "done" when they're finished.
Detect Project State
Before starting, check for `package.json` and `.subframe/` folder in the current directory:
| Condition | Action | | ---------------------------------------------- | ------------------------------------------------------------------------- | | No `package.json` | Run `/subframe:install` first — there's no project to implement into yet. | | Has `package.json` AND has `.subframe/` folder | Proceed with the workflow below. | | Has `package.json` but NO `.subframe/` folder | Ask the user (see below). |
Existing non-Subframe project
If the current directory has a `package.json` but no `.subframe/` folder, ask the user which approach they prefer:
- **Use the design as inspiration** — Fetch the design via MCP for reference, but implement the page using the existing styles, components, and patterns already in the repo. Translate the Subframe design's layout and structure into whatever UI framework the project already uses (e.g., existing component library, CSS modules, styled-components). Do NOT install Subframe or sync components. Skip to [Inspiration Workflow](#inspiration-workflow).
- **Use Subframe styles and components** — Install Subframe into the project so the design renders pixel-perfect with Subframe's generated code. Run `/subframe:install` first, then continue with the [Workflow](#workflow) below.
Workflow
1. **Wait for any in-flight design jobs** — see [Awaiting In-Flight Designs](#awaiting-in-flight-designs) 2. **Fetch the design** — `get_page_info` with the URL, ID, or name 3. **Read design documentation** — `get_project_info` and `get_component_info` return any attached design docs; check them for usage guidance, accessibility notes, or constraints before implementing 4. **Sync any missing components** — Only if components don't exist locally. `npx @subframe/cli sync` for the specific components used in the page 5. **Create the page** — put it in the right place per codebase patterns 6. **Add business logic** — data fetching, forms, events, loading/error states
Awaiting In-Flight Designs
If a design was just kicked off in the same conversation (via `/subframe:design`), the underlying AI job is likely still running. Reading the result via `get_*_info` too early returns empty or stale code.
`design_page`, `design_component`, and `edit_component` return a `jobId`. Before the first read, call:
wait_for_jobs({ jobIds: [jobId1, jobId2, ...] })Each result is `running`, `done` (with a summary — for `design_page` it reports how many requested pages were actually applied), `error` (the job failed or stopped reporting; don't assume the design exists — check the summary), or `not_found`. Call in a loop until every job is `done` or `error`. Surface progress to the user — "Designs are still generating in Subframe…" then "✓ Designs ready, fetching the code now." — so they understand the wait.
You don't need `wait_for_jobs` when:
- The user came in with an existing Subframe URL (no in-flight job)
- You're only working from `id` or `name` and don't need the generated code.
If the user asks to implement immediately after kicking off a design, batch all relevant `jobIds` into a single `wait_for_jobs` call (it accepts up to 10).
Inspiration Workflow
Use this workflow when the user chose to use the design as inspiration in an existing non-Subframe project.
1. **Wait for any in-flight design jobs** — see [Awaiting In-Flight Designs](#awaiting-in-flight-designs). 2. **Fetch the design** — Use `get_page_info` with the URL, ID, or name to get the page's layout and structure. If you encounter Subframe components or tokens you're unfamiliar with, use `get_component_info` to understand a component's props and behavior, or `get_theme` to see the Subframe project's design tokens (colors, fonts, spacing, shadows). 3. **Study existing patterns** — Look at the codebase's existing components, styles, and conventions. Identify local equivalents for Subframe components used in the design. 4. **Create the page** — Implement the design using the codebase's existing UI framework, translating the Subframe layout and component structure into local components and styling. 5. **Add business logic** — Data fetching, forms, events, loading/error states.
Fetching Designs
Pages are the only resource you fetch into the codebase. Use `get_page_info` with a URL, ID, or name:
get_page_info({ url: "https://app.subframe.com/PROJECT_ID/design/PAGE_ID/edit" })
get_page_info({ id: "PAGE_ID", projectId: "PROJECT_ID" })
get_page_info({ name: "Settings Page", projectId: "PROJECT_ID" })To discover what exists in the project, use `list_pages`, `list_components`, or `list_flows`. Snippets aren't synced to code — they live in Subframe as design system references.
Read design documentation alongside the design: `get_project_info` returns project-level `docs` (broad principles), and `get_component_info` returns each component's `designDocuments` (component-specific usage guidance). Pick these up before implementing so you respect documented constraints.
Get
Read more
name: develop description: Implement Subframe designs with business logic. Use after designing with /subframe:design or when given a Subframe URL/page ID. argument-hint: "[page URL, page ID, or 'the design I just made']"
Implement Subframe designs in the codebase. Fetch the design via MCP, sync components, and add business logic.
MCP Authentication
If you cannot find the `get_page_info` tool (or any Subframe MCP tools), the MCP server likely needs to be authenticated. Ask the user to authenticate the Subframe MCP server. If the user is using Claude Code or Codex, instruct them to run `/mcp` to view and authenticate their MCP servers, and then say "done" when they're finished.
Detect Project State
Before starting, check for `package.json` and `.subframe/` folder in the current directory:
| Condition | Action | | ---------------------------------------------- | ------------------------------------------------------------------------- | | No `package.json` | Run `/subframe:install` first — there's no project to implement into yet. | | Has `package.json` AND has `.subframe/` folder | Proceed with the workflow below. | | Has `package.json` but NO `.subframe/` folder | Ask the user (see below). |
Existing non-Subframe project
If the current directory has a `package.json` but no `.subframe/` folder, ask the user which approach they prefer:
- **Use the design as inspiration** — Fetch the design via MCP for reference, but implement the page using the existing styles, components, and patterns already in the repo. Translate the Subframe design's layout and structure into whatever UI framework the project already uses (e.g., existing component library, CSS modules, styled-components). Do NOT install Subframe or sync components. Skip to [Inspiration Workflow](#inspiration-workflow).
- **Use Subframe styles and components** — Install Subframe into the project so the design renders pixel-perfect with Subframe's generated code. Run `/subframe:install` first, then continue with the [Workflow](#workflow) below.
Workflow
1. **Wait for any in-flight design jobs** — see [Awaiting In-Flight Designs](#awaiting-in-flight-designs) 2. **Fetch the design** — `get_page_info` with the URL, ID, or name 3. **Read design documentation** — `get_project_info` and `get_component_info` return any attached design docs; check them for usage guidance, accessibility notes, or constraints before implementing 4. **Sync any missing components** — Only if components don't exist locally. `npx @subframe/cli sync` for the specific components used in the page 5. **Create the page** — put it in the right place per codebase patterns 6. **Add business logic** — data fetching, forms, events, loading/error states
Awaiting In-Flight Designs
If a design was just kicked off in the same conversation (via `/subframe:design`), the underlying AI job is likely still running. Reading the result via `get_*_info` too early returns empty or stale code.
`design_page`, `design_component`, and `edit_component` return a `jobId`. Before the first read, call:
wait_for_jobs({ jobIds: [jobId1, jobId2, ...] })Each result is `running`, `done` (with a summary — for `design_page` it reports how many requested pages were actually applied), `error` (the job failed or stopped reporting; don't assume the design exists — check the summary), or `not_found`. Call in a loop until every job is `done` or `error`. Surface progress to the user — "Designs are still generating in Subframe…" then "✓ Designs ready, fetching the code now." — so they understand the wait.
You don't need `wait_for_jobs` when:
- The user came in with an existing Subframe URL (no in-flight job)
- You're only working from `id` or `name` and don't need the generated code.
If the user asks to implement immediately after kicking off a design, batch all relevant `jobIds` into a single `wait_for_jobs` call (it accepts up to 10).
Inspiration Workflow
Use this workflow when the user chose to use the design as inspiration in an existing non-Subframe project.
1. **Wait for any in-flight design jobs** — see [Awaiting In-Flight Designs](#awaiting-in-flight-designs). 2. **Fetch the design** — Use `get_page_info` with the URL, ID, or name to get the page's layout and structure. If you encounter Subframe components or tokens you're unfamiliar with, use `get_component_info` to understand a component's props and behavior, or `get_theme` to see the Subframe project's design tokens (colors, fonts, spacing, shadows). 3. **Study existing patterns** — Look at the codebase's existing components, styles, and conventions. Identify local equivalents for Subframe components used in the design. 4. **Create the page** — Implement the design using the codebase's existing UI framework, translating the Subframe layout and component structure into local components and styling. 5. **Add business logic** — Data fetching, forms, events, loading/error states.
Fetching Designs
Pages are the only resource you fetch into the codebase. Use `get_page_info` with a URL, ID, or name:
get_page_info({ url: "https://app.subframe.com/PROJECT_ID/design/PAGE_ID/edit" })
get_page_info({ id: "PAGE_ID", projectId: "PROJECT_ID" })
get_page_info({ name: "Settings Page", projectId: "PROJECT_ID" })To discover what exists in the project, use `list_pages`, `list_components`, or `list_flows`. Snippets aren't synced to code — they live in Subframe as design system references.
Read design documentation alongside the design: `get_project_info` returns project-level `docs` (broad principles), and `get_component_info` returns each component's `designDocuments` (component-specific usage guidance). Pick these up before implementing so you respect documented constraints.
Get
Subframe is a UI design tool featuring a drag-and-drop visual editor, React + Tailwind code export, and AI-powered design and prototyping features.
Repo: subframeapp/subframe
Other skills on subframe.
- /bulk-import
Bulk-import many components from an existing codebase to Subframe in one CLI batch. Use only when the user explicitly asks to use this exact skill. Available for select teams.
Open skill - /design
Design and edit anything in Subframe — pages, components, snippets, design documents, the theme. Also handles deletion of those resources except theme. Always load this skill when taking any action through the Subframe MCP server. This includes building or iterating on UI,
Open skill - /install
Install Subframe into a codebase so you can implement designs locally. Sets up the CLI, syncs components, configures Tailwind and fonts. Only needed when you're ready to write code — you can design without installing.
Open skill

