skills/detail/SKILL.md
Internal bridge from /arc:ideate feature specs to /arc:implement execution plans. Creates implementation plans with exact file paths, test code, and TDD cycles. Invoked by /arc:implement, not directly.
npx skillsauth add howells/arc detailInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
<tool_restrictions>
EnterPlanMode — BANNED. Do NOT call this tool. This skill IS the planning process. The steps below replace Claude's built-in planning entirely. You are NOT doing a task that needs plan mode — you ARE already executing a structured plan-creation process. Calling EnterPlanMode would bypass the skill and waste the user's time.ExitPlanMode — BANNED. You are never in plan mode. There is nothing to exit.If you feel the urge to "plan before acting" — that urge is satisfied by following the <process> steps below. They ARE the plan. Execute them directly.
</tool_restrictions>
<arc_runtime> This workflow requires the full Arc bundle, not a prompts-only install.
Paths in this skill use these conventions:
agents/..., references/..., disciplines/..., templates/..., scripts/..., rules/..., skills/<name>/... are Arc-owned files at the plugin root. Resolve the plugin root from this skill's filesystem location — it's the directory containing agents/ and skills/../... is local to this skill's directory..ruler/..., docs/..., src/..., or any project-relative path refers to the user's project repository.
</arc_runtime><required_reading> Read these reference files NOW:
Load these only if relevant:
<hard_rules>
Before writing the plan file, present a brief summary of what you intend to plan (scope, task count estimate, key decisions) and use the AskUserQuestion interaction pattern to confirm. Plans must not appear without user input.
</hard_rules>
Use Glob tool to detect in parallel:
| Check | Glob Pattern |
|-------|-------------|
| Test frameworks | vitest.config.*, playwright.config.*, jest.config.*, cypress.config.* |
| Package manager | pnpm-lock.yaml, yarn.lock, package-lock.json |
| Python project | requirements.txt, pyproject.toml |
Use Grep tool on package.json:
"next" → Next.js"react" → ReactRecord detected stack:
Find the feature spec:
Primary: docs/arc/specs/*-spec.md
Fallbacks:
- docs/arc/specs/*.md
- docs/plans/*-spec.md
- docs/plans/*-design.md
Pick the most recent one (highest date prefix). Read it. This is the source of truth for what to build.
Derive implementation plan filename: Replace -spec.md or legacy -design.md with -implementation.md.
docs/arc/specs/2025-06-15-user-dashboard-spec.mddocs/arc/plans/2025-06-15-user-dashboard-implementation.mdBefore defining tasks, write a short file map:
If the feature spec implies multiple independent subsystems, stop and split the work into separate plans instead of forcing everything into one implementation plan.
Extract from the feature spec:
Spawn agents to find existing code to leverage:
Task Explore model: haiku: "Find existing patterns in this codebase that we can
reuse for: [list components/features from spec].
Look for: similar components, utility functions, hooks, types, test patterns.
Structure your findings as:
## Reusable Code
- `file:line` — what it provides and how to use it
## Similar Implementations
- Feature and entry point file:line
## Essential Files for This Feature
List 5-10 files most critical to understand before implementing:
- `file.ts` — why it matters
"
Task Explore model: haiku: "Analyze coding conventions in this project. What naming patterns,
file organization, and architectural patterns should new code follow?"
If using unfamiliar libraries/APIs:
Task general-purpose model: haiku: "Gather documentation and best practices for
[library name] focusing on [specific feature needed]."
When agents complete:
Each task = one TDD cycle (2-5 minutes), written as XML:
Tasks are executable prompts, not documentation. A fresh-context agent should be able to execute any task from the XML alone. See references/task-granularity.md for the full XML schema.
<task id="1" depends="" type="auto">
<name>Create user authentication types</name>
<files>
<create>src/types/auth.ts</create>
<test>src/types/auth.test.ts</test>
</files>
<read_first>
src/types/user.ts
</read_first>
<action>
Define LoginCredentials, AuthSession, and AuthError types.
Use zod schemas for runtime validation.
Import User type from src/types/user.ts.
</action>
<test_code>
// exact test code
</test_code>
<verify>
pnpm vitest run src/types/auth.test.ts — all pass
pnpm tsc --noEmit — no type errors
</verify>
<done>Auth types exported, zod schemas validate, tests pass</done>
<commit>feat(auth): add authentication types with zod validation</commit>
</task>
Required elements per task: <name>, <files>, <read_first>, <action>, <test_code>, <verify>, <done>, <commit>. See references/task-granularity.md for details.
Key rules for task content:
<action> must contain inline values (env vars, function signatures, library choices with rationale) — never "look it up"<verify> must be concrete commands or observable states — never "works correctly" or "looks good"<read_first> lists files the agent must verify before acting — prevents assumptions about file stateWhen a task requires human judgment, use the appropriate type attribute:
<task id="5" depends="1,2,3,4" type="checkpoint:verify">
<name>Verify dashboard layout</name>
<action>
Agent starts dev server automatically before presenting checkpoint.
Verify at http://localhost:3000/dashboard:
1. Desktop (>1024px): Sidebar visible, content fills remaining
2. Tablet (768px): Sidebar collapses
3. Mobile (375px): Single column layout
</action>
<verify>User approves or describes issues</verify>
<done>Dashboard layout approved at all breakpoints</done>
</task>
<task id="3" depends="" type="checkpoint:decide">
<name>Select authentication provider</name>
<action>
Options:
1. Clerk — Best DX, pre-built UI, paid after 10k MAU
2. NextAuth — Free, self-hosted, maximum control
3. Supabase Auth — Built-in with our DB
Recommendation: Clerk (fastest to ship)
</action>
<verify>User selects provider</verify>
<done>Auth provider selected, decision recorded</done>
</task>
Rules:
checkpoint:action tasks are created DYNAMICALLY during execution (auth gates), not pre-plannedreferences/checkpoint-patterns.mdTask ordering:
<test_commands> Based on detected test runner:
vitest:
# Single test file
pnpm vitest run src/path/to/file.test.tsx
# Single test
pnpm vitest run src/path/to/file.test.tsx -t "test name"
# Watch mode (for development)
pnpm vitest src/path/to/file.test.tsx
playwright:
# Single test file
pnpm playwright test tests/path/to/file.spec.tsx
# Single test
pnpm playwright test tests/path/to/file.spec.tsx -g "test name"
# With UI
pnpm playwright test --ui
jest:
# Single test file
pnpm jest src/path/to/file.test.tsx
# Single test
pnpm jest src/path/to/file.test.tsx -t "test name"
</test_commands>
For each UI task, embed implementation-relevant UI requirements and external visual sources directly in the <action>. Do not invent visual direction in this skill. If the feature spec says the UI needs a visual direction that does not exist yet, create a checkpoint asking whether to pause for Chiaroscuro/Figma/user design input or continue by matching existing project patterns.
<task id="7" depends="5,6" type="auto">
<name>Create ProductCard component</name>
<files>
<create>src/components/product-card.tsx</create>
<test>src/components/product-card.test.tsx</test>
</files>
<read_first>
src/components/ui/card.tsx
src/lib/utils.ts
</read_first>
<action>
UI requirements from feature spec:
- Screens/states: product card in listing, loading, empty image fallback
- Interaction: Add to Cart button updates state and announces result
- Existing patterns: match src/components/product-list.tsx and src/components/ui/button.tsx
- Visual source of truth: Figma URL below
Figma: https://figma.com/design/xxx/yyy?node-id=123-456
Screenshot: docs/arc/specs/assets/YYYY-MM-DD-topic/figma-123-456.png
Fetch fresh context: mcp__figma__get_design_context fileKey="xxx" nodeId="123:456"
Structural sketch, if useful:
┌─────────────────┐
│ [image] │
├─────────────────┤
│ Product Name │
│ $99.00 │
│ [Add to Cart] │
└─────────────────┘
Do not introduce new brand colors, typography, or motion beyond the external source or existing project patterns.
</action>
<test_code>
// component rendering and interaction tests
</test_code>
<verify>
pnpm vitest run src/components/product-card.test.tsx — all pass
Component matches feature spec states and external visual source
</verify>
<done>ProductCard renders required states, Add to Cart works, tests pass</done>
<commit>feat(ui): add product card interaction</commit>
</task>
Allowed UI sources:
docs/brand-system.md if presentNot allowed:
Header:
# [Feature Name] Implementation Plan
> **For Arc:** Use /arc:implement to execute this plan. Subagents should report DONE, DONE_WITH_CONCERNS, NEEDS_CONTEXT, or BLOCKED.
**Feature spec:** `docs/arc/specs/YYYY-MM-DD-<topic>-spec.md` (or legacy fallback path)
**Goal:** [One sentence from feature spec's problem statement]
**Stack:** [Framework] + [Test runner] + [Package manager]
---
Tasks section: Write all tasks following the template from Step 3.
Save to: The filename derived in Step 2 (e.g., docs/arc/plans/2025-06-15-user-dashboard-implementation.md)
After writing the plan:
agents/workflow/plan-document-reviewer.mdgit add docs/arc/plans/
git commit -m "docs: add <topic> implementation plan"
Plan is ready. Tell the user the plan is saved and offer next steps as plain text. Do NOT call EnterPlanMode or ExitPlanMode. Just print the summary and ask what they want to do next. </process>
<success_criteria> Implementation plan is complete when:
<name>, <files>, <read_first>, <action>, <test_code>, <verify>, <done>, <commit>)<files><action> contains inline values (no "look it up" references)<verify> has concrete, observable criteria (no "works correctly")<read_first> lists files the agent must check before acting<tool_restrictions_reminder>
REMINDER: You must NEVER call EnterPlanMode or ExitPlanMode at any point during this skill — not at the start, not in the middle, not at the end. The plan file you just wrote IS the deliverable. Present it to the user as a normal message.
</tool_restrictions_reminder>
development
Go-live and shareability checklist covering the basics needed to make a project visitable, shareable, and ready for a first real audience. Use when asked to "launch", "go live", "make this shareable", "get this ready to show people", or prepare a project for a public URL.
development
Discover architectural friction and propose structural refactors with competing interface options. Focuses on deepening shallow modules, extracting grouped concerns into packages/modules, breaking up god files, reducing duplication, and improving testability. Use when asked to "improve the architecture", "find refactoring opportunities", "deepen modules", "consolidate coupling", "break up god components", "extract this into a package", "make this more testable", or "find architectural friction".
development
Create, review, or revise a concise project vision document that captures what a project is, who it is for, why it exists, success criteria, constraints, non-goals, and decision principles. Use when starting a new project, clarifying product direction, aligning a codebase for future agent work, defining a north star, or turning a vague idea into docs/vision.md.
tools
Use when starting any conversation - establishes Arc's skill routing, instruction priority, and bootstrap rules