/cc-arsenal:product-design-spec <prd-path | idea | #issue | PROJ-123> [--tier small|medium|big]from cc-arsenal
Authors design specifications from approved PRDs: information architecture, user flows, screen inventory with per-screen states and interaction specs. Reuses existing component library and traces every screen to a PRD requirement ID.
Ships in cc-arsenal. 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; scripts run unread.
Turn an approved PRD into the design half of the spec (IA, flows, a screen inventory, and per-screen
state/interaction specs), spec'ing only as much as the work warrants. This skill writes no UI code; it
produces the design the build (implement-feature) then works from. Output lands under
docs/specs/design/. <skill-dir> below is this skill's directory.
$ARGUMENTS
Parse the source (first match wins), then read it:
| Pattern | Source | Read via |
|---|---|---|
existing docs/specs/prd/*.md or any path | the approved PRD / a file | Read it (grab every PRD-<CAT>-NNN ID) |
PROJ-123 | Jira | jira issue view PROJ-123 |
#42 / owner/repo#42 | GitHub issue | gh issue view 42 --json title,body,labels,comments |
http(s):// | URL | WebFetch |
| anything else | plain text | the idea itself |
A trailing --tier small|medium|big overrides the size assessment.
Component-library detection and flow research use the Task tool with Explore/haiku subagents. No Task
tool? Run every detection and research step inline, sequentially: the phase → gate → phase structure below
is the workflow; subagents are just how it parallelizes.
A design spec traces to requirements it does not invent. Before spec'ing anything:
"There's no approved PRD to trace this design to. Point me at one, or run
product-prdfirst and I'll spec the design against it."
Source-of-truth hierarchy, and never silently violate it: approved requirement > design spec > mockup. A
mockup or a nice-looking screen never overrides an approved requirement: if the design implies a change,
flag it as an open question against the PRD, don't quietly redesign the requirement away.
The organizing principle: default to a single docs/specs/design/design-spec.md, and split a screen into
its own file under docs/specs/design/screens/ only when it outgrows the inventory.
Before specifying anything bespoke, detect and adopt what the project already ships (spawn an Explore/haiku
agent or check inline):
| Marker | Library to reuse |
|---|---|
components.json | shadcn/ui |
tailwind.config.* | Tailwind |
@mui/material in package.json | MUI |
*.swift + SwiftUI / @Composable in Kotlin | native platform components |
Name the detected library in the spec and reference its components by name. Invent bespoke components only for genuinely novel surfaces, and say why the library couldn't cover them.
| Tier | When | Output |
|---|---|---|
| small | one feature/surface | IA sketch + the single primary flow + a screen list with applicable states noted, one file |
| medium | a module or small app | IA + 2-3 key flows + a screen inventory + a full spec for the 1-2 most critical screens |
| big | a full product/app | full IA + primary+secondary flows + complete inventory + full spec for only the 2-3 most critical surfaces |
references/design-workflow.md carries the full detail: the reuse ladder and the source-of-truth rule.
Four phases carry the work: Discover, thin-slice one journey, a plan gate, then Author and Validate & hand off.
Read the approved PRD and harvest its requirement IDs. Detect the component library (above). Pick the
discovery mode by context: cold start → 3-5 lettered clarifying questions (terse answers like 1A,2C); warm
start → synthesize from the conversation + a repo scan, then run a lightweight gap check. Tag every finding
CONFIRMED / INFERRED / UNKNOWN: never present an inference as a fact.
Sketch the IA (nav / screen map), then spec one critical journey end-to-end before going wide: walk its flow through each screen and note the states along the way. This proves the shape early and is cheap to correct.
Present the IA + screen inventory + which 2-3 screens you'll spec in full, and ask:
"Here's the IA and screen inventory, plus the 2-3 critical screens I'd spec in full, each traced to {req IDs}. Authorize me to author
docs/specs/design/design-spec.md?"
If the answer is no, stop here, revise, and re-present. Author nothing before authorization.
Create the single file from assets/templates/design-spec.md. It needs:
| Element | What goes in it |
|---|---|
| IA + flows | Delegate Mermaid flow/journey diagrams to the docs-diagram skill (via the Skill tool where available, otherwise apply its diagram conventions inline). |
| Screen inventory | Every screen is a row with a Screen ID (SCR-NN), a purpose, and the PRD requirement ID(s) it traces to. Fill the lightweight traceability table (requirement-ID ↔ screen-ID). |
| Critical screen specs (2-3 only) | Use assets/templates/screen-spec.md (~10 fields). Enumerate the applicable subset of the ~10-state shortlist (assets/templates/state-shortlist.md) rather than just the happy path. Each critical screen carries an accessibility/keyboard field and a responsive field, plus acceptance criteria; for AC quality apply product-prd's shared requirement-hygiene rulebook inline (via the Skill tool where available, else read requirement-hygiene.md from product-prd's references/) rather than duplicating it here. |
| Personas | Only if the PRD lacks them and they change the design: assets/templates/persona.md, ~6 fields, evidence-labeled, no invented demographics. |
Tag every unresolved gap [NEEDS CLARIFICATION: ...] rather than guessing, so it stays greppable.
python <skill-dir>/scripts/screen-states.py --dir docs/specs/design # gate: 0 MAJOR
Fix every MAJOR (a critical screen missing its empty/error/permission states, or missing an a11y-keyboard / responsive / acceptance-criteria field, or a screen that traces to no requirement). Then:
review-design (via the Skill tool where available, otherwise
apply its checklist inline): WCAG 2.2 AA, including the 9 criteria new since 2.1 (24px target size, focus
appearance, dragging alternatives, accessible authentication, consistent help, redundant entry). Don't
hand-roll the audit, and don't upgrade to WCAG 3.0 / APCA (references/design-workflow.md names the
scope). Pair any translucent surface, on Material 3 Expressive or Apple Liquid Glass, with a mandatory
contrast check.product-design-tokens
(consumes the screen inventory) and implement-feature (builds the UI). Offer project-planner for a
screen-build breakdown.review-design; do not fabricate conformance claims. Run screen-states.py
before declaring done.references/design-workflow.md: the four phases, thin-slice rule, tiers, the component-reuse ladder, the source-of-truth hierarchy, the ~10-state shortlist, WCAG 2.2 AA scope (delegated to review-design), Material 3 Expressive / Apple Liquid Glassproduct-prd's shared requirement-hygiene rulebook: RFC-2119, the vague blocklist, INVEST, GWT; referenced inline for screen-level acceptance criteria, not duplicated. Read it from product-prd's references/ (its requirement-hygiene.md).assets/templates/: design-spec, screen-spec, state-shortlist, personascripts/screen-states.py: critical-screen state/field/traceability linterproduct-prd.product-design-tokens.review-design.codex-imagegen.implement-feature.assets/templates/design-spec.md (opens in a new tab)assets/templates/persona.md (opens in a new tab)assets/templates/screen-spec.md (opens in a new tab)assets/templates/state-shortlist.md (opens in a new tab)evals/evals.json (opens in a new tab)evals/trigger-eval.json (opens in a new tab)references/design-workflow.md (opens in a new tab)scripts/screen-states.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
general-purpose), in the background52 skills in this plugin
/agent-browserHeadless browser automation CLI optimized for AI agents: drives a real browser via accessibility-tree snapshots and @e1-style refs for ~93% less context than raw DOM tools. Use whenever a task needs to interact with a live web page: click, fill forms, log in, extract text or data, take screenshots, test a running web app, or scrape a site. Triggers on 'automate the browser', 'fill this form', 'click the button', 'take a screenshot of the page', 'log into', 'scrape this site', 'test my web app', 'headless browser'. Not for Playwright test-suite authoring or CDP/service-worker work needing the full JS API: use Playwright directly. Not for driving the user's own already-open, logged-in Chrome tab: use claude-in-chrome for that./anything-to-skillTurns a docs site, local folder, PDF or book, YouTube video, playlist or channel, or a topic into a source-grounded, token-efficient agent skill (hub SKILL.md, sectioned references, INDEX, evals), and can compact it into a lean expert skill. Use for "make a skill from these docs", "turn this channel into a skill". Not for a skill from your own description (use create-skill), improving one (use improve-skill) or finding third-party skills (use find-skills)./ci-generateGenerate a production-ready CI/CD pipeline config (GitHub Actions, GitLab CI, CircleCI, or Jenkins) by discovering the project's actual stack, test/build commands, and dependencies. Use when setting up CI for a new project, adding a missing workflow file, or asked to create/generate a pipeline, workflow, or `.gitlab-ci.yml`/`Jenkinsfile`. Not for writing a Dockerfile itself (see docker-init), this only wires CI stages around one. Not for running existing CI checks locally (use ci-local), this skill only authors the pipeline file itself.npx claudepluginhub mgiovani/ai-arsenal --plugin cc-arsenalOther plugins' skills for the same job