Agent Workflow Kit
Chapter 14
Technical engraving of a reference card catalogue with a magnifying index pointer
Fig. 14Skills indexed for retrieval.

14 — Skills reference

When to read this: As a lookup. Catalogs every skill, slash command, and subagent the kit ships, with one-line purpose, invocation syntax, file location, and the chapter that explains it in depth.

Slash commands#

Slash commands live at .claude/commands/<name>.md after bootstrap. Invoke them in chat with a leading /.

/craft-ui#

CommandPurposeInvocationDepth chapter
/craft-uiTaste-first multi-phase frontend workflow with visual review gate at 4 viewports. The execution path for kind: ui specs./craft-ui <what to build>09
  • Phases: 0 (context load — reads DESIGN.md, halts if missing), 1 (classify SaaS / marketing / design system), 2 (brief), 3 (aesthetic commitment — the most important phase), 4 (forbidden defaults), 5 (information architecture), 6 (token alignment), 7 (build), 8 (visual review loop), 9 (hand-off).
  • Aesthetic commitment is mandatory before code. The phase produces: aesthetic name, 3 IS / 3 IS NOT adjectives, dominant color move, type contrast, motion temperament.
  • Phase 8 invokes design-reviewer automatically. Iterate diffs until PASS.

/scaffold-component#

CommandPurposeInvocationDepth chapter
/scaffold-componentScaffold a UI primitive with full state coverage (hover, focus-visible, active, disabled, loading, error, empty), story file, and variant matrix README. Auto-runs check-tokens.sh on exit./scaffold-component <Name> [variants] [sizes]11
  • Outputs three files: components/ui/<name>.tsx, components/ui/<name>.stories.tsx, components/ui/<name>.md (README).
  • Uses class-variance-authority for variants, forwardRef for interactive primitives.
  • Hard rules: no raw color literals, no raw spacing literals outside the scale, every variant has a story, every state is reachable in Storybook.
  • Halts if DESIGN.md is missing.

/forbid#

CommandPurposeInvocationDepth chapter
/forbidAppend a project-specific forbidden default to DESIGN.md. Refuses vague forbids ("no ugly stuff") and demands a reason. Builds taste rules over time./forbid <pattern> — <reason>07
  • Format: /forbid <pattern> — <reason>. Both halves required.
  • Rejects vague forbids. "No ugly things" fails; "No backdrop-blur on cards — feels generic glassmorphism" passes.
  • Appends to DESIGN.md's Project-specific rejections: subsection.
  • After writing, suggests git add DESIGN.md && git commit -m "design: forbid <summary>" so the rule is versioned.

Skills (skill-based, invoked by name)#

Skills live at .claude/skills/<name>/SKILL.md after bootstrap. Invoke them by name in chat. The agent recognizes the skill name and runs the SKILL.md as instructions.

Doc-builder skills#

prd-grill#

SkillPurposeInvocationDepth chapter
prd-grillBuild docs/PRD.md via relentless one-question-at-a-time interrogation. Recommends an answer with every question. Spends most time on non-goals.prd-grill05

architecture-md-builder#

SkillPurposeInvocationDepth chapter
architecture-md-builderBuild docs/ARCHITECTURE.md via 6-phase interrogation: stack, data model, service shape, cross-cutting concerns, evolution / bets, trade-off log.architecture-md-builder06

design-md-builder#

SkillPurposeInvocationDepth chapter
design-md-builderBuild DESIGN.md via 9-phase interrogation: references, brand identity, type system, color (OKLCH), space and shape, motion, voice, forbidden defaults.design-md-builder07

Refinement skills#

prd-revise#

SkillPurposeInvocationDepth chapter
prd-reviseDetect drift between PRD and shipped reality. Surfaces drift in three dimensions: shipped but not in PRD, in PRD but not shipped, invalidated assumptions. Updates with append-only Revision log entry.prd-revise05

architecture-review#

SkillPurposeInvocationDepth chapter
architecture-reviewReview a single architectural decision against existing ARCHITECTURE.md. Reframes the question, surfaces trade-offs, recommends a path, appends to Trade-off log. Auto-recommended by triage when an item is architecturally loaded.architecture-review06

Workflow skills#

backlog-intake#

SkillPurposeInvocationDepth chapter
backlog-intakeFormat a rough idea into a properly structured Inbox item with prefix, title, notes, default priority. Doesn't triage. That's a separate step./backlog-intake <description>08

backlog-triage#

SkillPurposeInvocationDepth chapter
backlog-triageMove Inbox items into phase files (docs/backlog/phase-*.md). Tags each spec with kind: ui | backend | infra. Flags architecturally-loaded items for /architecture-review./backlog-triage08

pick-next-task#

SkillPurposeInvocationDepth chapter
pick-next-taskRead-only. Reads the phased backlog, parses spec dependencies, surfaces the next unblocked item plus parallel-safe alternatives./pick-next-task09

kickoff-spec#

SkillPurposeInvocationDepth chapter
kickoff-specValidate a spec, flip status to [~], dispatch the executor (with tests-pass gate for backend / infra). UI specs go through /craft-ui instead./kickoff-spec <ID>09

plan-refine#

SkillPurposeInvocationDepth chapter
plan-refineStress-test a draft plan before implementation. Catches gaps, edge cases, ordering issues, missing context, untested assumptions.plan-refine(not covered in depth)

ship-spec#

SkillPurposeInvocationDepth chapter
ship-specRun code review, pause for human merge confirmation, execute merge mechanics (rebase + push for worktree, push for direct-on-main), flip status to [x], clean up./ship-spec <ID>09

ship-followup#

SkillPurposeInvocationDepth chapter
ship-followupPer-item processing of items surfaced by /ship-spec — deferred review findings, spec inconsistencies, operational chores, workflow gaps. Per-item confirmation; never auto-edits./ship-followup <ID>09

Memory skills#

continual-learning#

SkillPurposeInvocationDepth chapter
continual-learningOrchestration. Delegates to agents-memory-updater subagent. Auto-fires on Stop hook cadence (≥10 turns + ≥120 min by default), or invoke manually.continual-learning12

Subagents#

Subagents live at .claude/agents/<name>.md after bootstrap. Invoke them via the Agent tool, by you or by the parent agent.

Verification subagents#

design-reviewer#

SubagentWhat it checksWhen to invokeDepth chapter
design-reviewerUI vs DESIGN.md. Aesthetic match, forbidden defaults, token discipline, type contrast, spatial rhythm, state coverage, motion sanity. Multi-viewport screenshots if Playwright MCP is available.After any UI change. Auto-invoked by /craft-ui Phase 8.10

architecture-reviewer#

SubagentWhat it checksWhen to invokeDepth chapter
architecture-reviewerCode changes vs docs/ARCHITECTURE.md. Stack alignment, data model, service shape, cross-cutting concerns, migration & rollout, evolution / bets, trade-off log freshness.After any change touching schema, service boundaries, auth, caching, queues, migrations, public APIs, or new cross-cutting libraries.10

migration-reviewer#

SubagentWhat it checksWhen to invokeDepth chapter
migration-reviewerPer-statement DDL safety vs docs/ARCHITECTURE.md §1, §4, §5. Lock acquisition, backfill cost, NOT NULL adds, FK adds, index hygiene, rename safety, rollback story, multi-tenant exposure.After any database schema migration is added or modified. Run in addition to architecture-reviewer.10

api-reviewer#

SubagentWhat it checksWhen to invokeDepth chapter
api-reviewerPer-endpoint completeness and safety vs docs/ARCHITECTURE.md §3, §4. Authorization granularity, multi-tenant filtering, input validation (mass-assignment safe), idempotency, rate limiting, error envelope, status codes, URL safety, webhook handlers.After any HTTP endpoint, server action, RPC handler, or webhook receiver is added or modified. Run in addition to architecture-reviewer.10

Memory subagent#

agents-memory-updater#

SubagentWhat it doesWhen invokedDepth chapter
agents-memory-updaterMines transcript deltas. Updates AGENTS.md. Refreshes .claude/hooks/state/continual-learning-index.json. Only writes ## Learned User Preferences and ## Learned Workspace Facts sections. Each section capped at 12 bullets.Auto-invoked by the continual-learning skill. Or invoke directly via the Agent tool.12

Hooks#

Hooks live at .claude/hooks/<name>.<ext> and are wired into .claude/settings.json hooks.<event> arrays.

continual-learning-stop#

HookWhat it doesTriggerDepth chapter
continual-learning-stop.tsBun TypeScript. Tracks cadence (turns + minutes since last run + transcript advance). On eligible Stop events emits {"decision":"block","reason":"..."} to inject a follow-up that runs the continual-learning skill. Has a loop guard via stop_hook_active. Trial mode via env var.Every Stop event (when wired into settings.json)12

Scripts#

check-tokens-sh#

ScriptWhat it doesInvocationDepth chapter
scripts/check-tokens.shBash linter. Fails on raw Tailwind color utilities (bg-red-500, etc.), hex literals in className, forbidden default fonts (Inter, Roboto, Open Sans, Lato, Arial), Material default easing cubic-bezier(0.4, 0, 0.2, 1).bash scripts/check-tokens.sh [path...]11

a11y-spec#

ScriptWhat it doesInvocationDepth chapter
tests/a11y.spec.tsPlaywright + axe-core. WCAG 2.1 AA at 3 viewports plus visible focus-indicator check via Tab through.npx playwright test tests/a11y.spec.ts11

agent-workflow#

ScriptWhat it doesInvocationDepth chapter
bin/agent-workflowWrapper that delegates to scripts/bootstrap.sh from a globally-installed kit.agent-workflow [--dry-run] [--force] [path]03

bootstrap-sh#

ScriptWhat it doesInvocationDepth chapter
scripts/bootstrap.shIdempotent kit bootstrapping. Copies templates into a project, skipping existing files unless --force. Never overwrites .claude/settings.json../scripts/bootstrap.sh [--dry-run] [--force] [path]03

install-global-sh#

ScriptWhat it doesInvocationDepth chapter
scripts/install-global.shOne-time install. Copies kit to ~/.local/share/agent-workflow-kit/, makes scripts executable, symlinks ~/.local/bin/agent-workflow../scripts/install-global.sh03

Prompts#

Two prompt files in prompts/. Hand them to Claude Code (or Cursor) as instructions.

prompt-roadmap#

PromptWhat it doesInvocationDepth chapter
prompts/prompt-roadmap.mdDraft docs/ROADMAP.md from docs/PRD.md. 2–4 phases, each shippable on its own, ordered by dependency. Pulls non-goals verbatim from the PRD."Read docs/PRD.md and follow prompts/prompt-roadmap.md to draft docs/ROADMAP.md."08

prompt-seed-backlog#

PromptWhat it doesInvocationDepth chapter
prompts/prompt-seed-backlog.mdPopulate the Inbox of docs/backlog.md with already-classified US-### and TASK-### items grouped by phase."Read docs/PRD.md and docs/ROADMAP.md and follow prompts/prompt-seed-backlog.md to populate the Inbox."08

File locations after bootstrap#

project-root/
├── CLAUDE.md                              ← session memory
├── AGENTS.md                              ← learned prefs / workspace facts
├── DESIGN.md                              ← brand source of truth (after design-md-builder)
├── GETTING-STARTED.md                     ← read-once onboarding (delete after reading)
├── prompts/
│   ├── prompt-roadmap.md
│   └── prompt-seed-backlog.md
├── docs/
│   ├── PRD.md                             ← after prd-grill
│   ├── ARCHITECTURE.md                    ← after architecture-md-builder (if needed)
│   ├── ROADMAP.md                         ← after running prompt-roadmap.md
│   ├── backlog.md                         ← Inbox + phase index
│   ├── backlog/
│   │   └── phase-*.md                     ← created by /backlog-triage
│   └── agent-workflow-skills.md           ← copy of SKILLS.md from the kit
├── .claude/
│   ├── commands/
│   │   ├── craft-ui.md
│   │   ├── scaffold-component.md
│   │   └── forbid.md
│   ├── agents/
│   │   ├── design-reviewer.md
│   │   ├── architecture-reviewer.md
│   │   ├── migration-reviewer.md
│   │   ├── api-reviewer.md
│   │   └── agents-memory-updater.md
│   ├── skills/
│   │   ├── prd-grill/
│   │   ├── prd-revise/
│   │   ├── architecture-md-builder/
│   │   ├── architecture-review/
│   │   ├── design-md-builder/
│   │   └── continual-learning/
│   ├── hooks/
│   │   └── continual-learning-stop.ts
│   ├── settings.json                      ← never overwritten by --force
│   └── hooks/state/                       ← gitignore this
├── .cursor/
│   ├── rules/project-memory.mdc
│   └── hooks/state/                       ← gitignore this
├── scripts/
│   └── check-tokens.sh
└── tests/
    └── a11y.spec.ts

Quick decision tree#

"What command runs which thing?"

Want to write the PRD?                       → prd-grill
Want to write ARCHITECTURE.md?                → architecture-md-builder
Want to write DESIGN.md?                      → design-md-builder
Want to refresh the PRD?                      → prd-revise
Want to decide one architectural question?    → architecture-review
Want to add a forbidden default?              → /forbid
Want to scaffold a component?                 → /scaffold-component
Want to build a page or feature UI?           → /craft-ui
Want to capture an idea fast?                 → /backlog-intake
Want to triage the Inbox?                     → /backlog-triage
Want to know what to work on next?            → /pick-next-task
Want to start work on a non-UI spec?          → /kickoff-spec
Want to ship a finished spec?                 → /ship-spec
Want to follow up on deferred ship items?     → /ship-followup
Want to review a UI change?                   → invoke design-reviewer
Want to review architectural changes?         → invoke architecture-reviewer
Want to review a schema migration?            → invoke migration-reviewer
Want to review API endpoints?                 → invoke api-reviewer
Want to refresh AGENTS.md memory?             → continual-learning (or wait for cadence)

Continue#

If something isn't working: Chapter 15: Troubleshooting covers common issues with fixes.