/cxcskills:to-viewsfrom cxcskills
Turn a spec into a list of the app's views and one Claude Design brief per view, ready to prototype the screens.
Ships in cxcskills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Turn a spec into the app's views: every screen, sheet, dialog and message a person sees, each with what it shows, what it lets them do, and the states it can be in. Then write one brief per view for Claude Design, plus a design-system brief that keeps every screen consistent. Once the boards drawn from these briefs are right, /adopt-design makes them the source of truth for the build.
Work from the spec on disk, not from the conversation. Run in a fresh context (after /clear), so the views come from what the spec actually says: anything the interview settled that never reached the spec shows up here as a gap, and that is the moment to fix the spec.
docs/agents/issue-tracker.md), and ask if it is still missing. Read its full body and comments.GLOSSARY.md, or CONTEXT.md in older repos) and the ADRs. View names, labels and sample data use the glossary's terms.docs/design/, design/, a tokens.* file). When one exists, the briefs reuse it instead of starting a new look.Done when: you can name every actor in the spec and the user stories each one appears in.
Walk the user stories in order. Every place an actor sees something or does something lands in a view. Merge stories that share a screen; split a screen when two actors need different things from it.
A view is one destination: a page with its own route, or a sheet, dialog or full-screen flow that carries its own task. Emails, PDFs and notifications the spec describes are views too; mark their kind. Toasts, menus and inline errors are not views: list them under the view they appear on.
Write each view in the format in VIEWS-FORMAT.md: kind, route, who, purpose, stories, shows, actions, states, navigation, sizes. Then list the shared parts: the app shell, navigation, the messages, and every component used on more than one view.
Done when: every user story maps to at least one view or is marked "no UI" with a reason, and every view maps to at least one story.
Report the gaps first: stories with no view, views with no story (a screen the spec never asked for), and states the spec leaves undefined (what an empty list says, what an actor without permission sees). Gaps get fixed in the spec, not invented here, so offer the user the spec change and wait for the answer.
Then present the views as a numbered list (name, kind, route, who, one-line purpose) in build order, core loop first, and ask:
Iterate until the user approves the list.
The design-system brief needs a direction the spec rarely gives. If the spec, the domain docs and any existing design system are silent, ask the user in one message: how it should feel (three to five words), products whose look they like, where it gets used (a phone in the field, a desk, both), and any hard constraints (brand colours, dark mode, an accessibility level). WCAG AA is the floor unless they set a higher one.
When the Mobbin MCP is connected (its search_screens, search_flows and search_sections tools are available), find real-app references for each brief. Without it, skip this step and say so in the report: the briefs name only the products the user gave in step 4. Don't install it or ask the user to.
Search in a subagent started with a fresh context window, because the results can carry screen images that would crowd out the spec. Give it the approved views and the look from step 4, and have it return text only:
search_flows for a multi-step flow (onboarding, checkout), search_screens for a single screen, search_sections for a marketing page.Each reference is one line: the product, the screen, its Mobbin link, and the pattern to take from it, in words ("totals pinned above the list", "one question per step, with a progress bar"). Claude Design can't open a Mobbin link, so the words carry the reference and the link is for the user. A reference shows what a product shipped, not that it works, so it never overrides the spec, the glossary or the accessibility level.
Show the user the references per brief and drop any they reject.
Write to docs/design/, or wherever the repo already keeps design docs:
views.md: the approved views and shared parts.briefs/00-design-system.md: the design-system brief.briefs/NN-<view-slug>.md: one brief per view, numbered in the approved order.Each brief follows BRIEF-FORMAT.md and stands alone, because Claude Design reads it on its own. Content is concrete: realistic sample data in the glossary's terms (believable names, addresses, amounts and dates) rather than placeholder text, and one frame per state the view lists.
The user draws the boards with Claude Code's built-in /design command, which makes a Claude Design canvas from a brief. Only the user can run it, so give them this order, all on one design:
/design with the contents of briefs/00-design-system.md. Settle the foundations and components until the board passes the brief's Done when list, and approve it before drawing any screen: screens drawn on an unsettled system each pick their own values./design starts a separate design that shares nothing. When a screen needs something the system lacks, add it to the system board and check that board's list again.A board is done when it passes the Done when list at the end of its brief. Stop when every board passes: finer polish belongs on the running app, with /ui-hill-climb. Then run /adopt-design with the design's link.
Without /design (another harness, or no Claude Design access), paste the briefs into the design tool in the same order; the lists still apply.
Report: how many views, which gaps changed the spec, whether Mobbin was searched, and the files written.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub cxcarroll/cxcskills --plugin cxcskills52 skills in this plugin
/adopt-designMake finished Claude Design boards the repo's source of truth for how the app looks, with tokens, a design README, and the coding standards that enforce them./ask-mattAsk which skill or flow fits your situation. A router over the skills in this repo./blast-radiusFind what a change could break outside its diff, and prove the one fact it is safe because of by running real code./chief-of-staffPursue a long-running goal in a single session by co-ordinating subagents./claude-handoffHand the current conversation off to a fresh background agent that picks up the work immediately./codebase-designShared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.