phased-plan

A command that turns a user story into a seven-stage software implementation plan, from visual interface work through final integration.

In plain words
What is it for?
Use it with a story ID to read the story and its product requirements, then create a plan file listing phase tasks, files, and behavior-test mappings.
Why use it?
It breaks a feature request into concrete deliverables and connects each behavior described in the story to the phase where it should be built.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/touheedcode/claude-dev-workflow/phased-plan
Clone the repo
git clone --depth 1 https://github.com/TouheedCode/claude-dev-workflow

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 928 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00928
Opus 5 $0.00000 $0.00464
Sonnet 5 $0.00000 $0.00186
Haiku 4.5 $0.00000 $0.00093

Measured 2d ago against content hash dfad9e90521a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

phased-plan scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/phased-plan.md · 125 lines

How it starts

The opening of the file, as written. The whole thing — 125 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/phased-plan — Generate 7-Phase Implementation Plan

Arguments

  • $ARGUMENTS — Story ID to plan (e.g., "US-001")

Instructions

You are generating a 7-phase implementation plan that maps a user story to the structured development workflow.

Story input: $ARGUMENTS

Step 1: Read the Story

Find and read the user story at docs/stories/{story-ID}.md. If it doesn't exist, tell the user to run /story first. Also read the referenced PRD for full context.

Step 2: Map to 7 Phases

Generate a plan at docs/plans/PLAN-{story-ID}.md that maps the story's BDD scenarios to concrete deliverables across all 7 phases:

# Implementation Plan: {Story ID} — {Story Title}

## Source Story
- Story: docs/stories/{story-ID}.md
- PRD: {PRD path}

## Phase 1: Presentational UI
**Agent:** frontend-phase-1
**Goal:** Build pure UI components with no business logic

### Deliverables
- [ ] `apps/web/src/components/{ComponentName}.tsx` — {description}
- [ ] `apps/web/src/components/__tests__/{ComponentName}.test.tsx`

### BDD Mapping
- Scenario "{name}" → renders {component} with {props}

---

## Phase 2: API Client & Mocks
**Agent:** frontend-phase-2
**Goal:** Create API hooks and MSW mock handlers

### Deliverables
- [ ] `apps/web/src/lib/api/{resource}.ts` — TanStack Query hooks
- [ ] `apps/web/src/mocks/handlers/{resource}.ts` — MSW handlers
- [ ] `libs/shared/src/types/{resource}.ts` — Shared response types

### API Contract
| Method | Endpoint | Request | Response |
|--------|----------|---------|----------|
| GET    | /api/... | —       | {...}    |

---

## Phase 3: Smart Components & State
**Agent:** frontend-phase-3
**Goal:** Wire UI to state and API hooks

### Deliverables
- [ ] `apps/web/src/stores/{store}.ts` — Zustand store
- [ ] `apps/web/src/app/{route}/page.tsx` — Page component
- [ ] Integration tests for user flows

---

## Phase 4: Repository Layer (TDD)
**Agent:** backend-phase-4
**Goal:** Build data access with tests first

### Deliverables
- [ ] `apps/api/src/modules/{module}/domain/{entity}.ts`
- [ ] `apps/api/src/modules/{module}/{module}.repository.ts`
- [ ] `apps/api/src/modules/{module}/{module}.repository.spec.ts`

### Database Schema
Tables and columns needed for this feature.

---

## Phase 5: Service Layer (TDD)
**Agent:** backend-phase-5
**Goal:** Implement business logic with mocked repos

### Deliverables
- [ ] `apps/api/src/modules/{module}/{module}.service.ts`
- [ ] `apps/api/src/modules/{module}/{module}.service.spec.ts`

### Business Rules
Logic and validation rules derived from BDD scenarios.

---

## Phase 6: Controller Layer (TDD)
**Agent:** backend-phase-6
**Goal:** Thin controllers with E2E tests

### Deliverables
- [ ] `apps/api/src/modules/{module}/{module}.controller.ts`
- [ ] `apps/api/src/modules/{module}/{module}.module.ts`
- [ ] `apps/api/src/modules/{module}/{module}.e2e.spec.ts`

---

## Phase 7: Integration
**Agent:** integration-phase-7
**Goal:** Connect frontend to real backend, verify E2E

### Deliverables
- [ ] Remove/disable MSW mocks for this feature
- [ ] Configure real API endpoint
- [ ] E2E smoke test passing

### Verification
- [ ] All BDD scenarios pass as integration tests
- [ ] No MSW handlers active for production paths

Read the full file on GitHub · 125 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 125 lines · 0 tokens per session scan A dfad9e90521a

Subscribe to this mod's changes

phased-plan is a command published in the GitHub repository TouheedCode/claude-dev-workflow (2 stars, last pushed 3d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 928 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.