/devflow:create-planfrom DevFlow Skills Collection
Builds detailed, phased implementation plans through interactive codebase research, design options, ADRs, and task bootstrapping before coding.
Ships in DevFlow Skills Collection. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Reference files (open one when a step points to it):
references/exit-conditions.md: Exit Condition Templates by Project TypeCreate detailed, well-researched implementation plans through interactive collaboration and thorough codebase investigation.
Parse the user's request to identify:
| Scenario | Action |
|---|---|
| Parameters provided | Read all referenced files completely, then proceed to Research |
| Missing task description | Ask: "What feature or functionality should I plan?" |
| No context provided | Ask: "Are there existing files or documentation I should review?" |
Critical: Thoroughly investigate the codebase before planning.
Spawn parallel sub-tasks using specialized agents:
Research Tasks:
- codebase-locator: Find all files related to the feature area
- codebase-analyzer: Understand existing patterns and architecture
- Explore: Investigate integration points and dependencies
For each research task, provide:
Read all identified files completely - no partial reads or summaries.
Before any design work, present findings:
Codebase Analysis
Clarifying Questions
Wait for user response before proceeding.
Critical: Do not accept user corrections at face value.
When the user provides corrections or additional context:
If conflicts exist, present findings and discuss before proceeding.
Present design approaches with trade-offs:
Option A: [Approach Name]
- Description: [How it works]
- Pros: [Benefits]
- Cons: [Drawbacks]
- Fits pattern: [Reference to existing codebase patterns]
Option B: [Alternative Approach]
- Description: [How it works]
- Pros: [Benefits]
- Cons: [Drawbacks]
- Fits pattern: [Reference to existing codebase patterns]
Recommendation: [Preferred option with rationale]
Wait for user feedback on approach before detailing phases.
Before creating a new ADR, check for existing related decisions:
# Tiered ADR reading (context conservation)
1. Read("docs/decisions/INDEX.md") # Scan all ADRs
2. Read("docs/decisions/ADR-NNNN.md", limit=10) # Quick Reference only
3. Read full ADR only if directly relevant
After user approves a design option, invoke the ADR skill to document the decision:
Skill(skill="adr"): Document the design decision just made.
Context: [Why this decision was needed - from research phase]
Options Considered: [List options from Phase 4]
Decision: [The chosen option]
Rationale: [Why this option was selected]
Consequences: [Expected impacts]
The ADR will be created at docs/decisions/ADR-NNNN-title.md and INDEX.md will be updated.
Update the plan to reference the ADR in the Design Decision section:
## Design Decision
[Brief description of chosen approach]
See [ADR-NNNN](../decisions/ADR-NNNN-title.md) for full rationale and alternatives considered.
When to create ADRs during planning:
Before writing the detailed plan, validate phase sizing and present the structure.
Plans fail during execution when phases are too large or vague. Each phase will be executed by an orchestrator that delegates to subagents — so every task in a phase needs to be concrete enough that an independent agent can implement it without guessing.
Bias toward smaller phases. 12 small well-defined phases are far better than 5 large ones. A phase that tries to do too much will overwhelm the implementing agent, cause it to lose focus, or force it to make assumptions about parts it hasn't reached yet. When in doubt, split. A complex feature might need 8-15 phases — that reflects the natural decomposition of the work, not a failure of planning.
A natural layered decomposition often emerges: foundation/setup → data model → core logic → API/interface → integration → polish/edge cases. Each layer is typically one phase.
Right-sized phase characteristics:
Split signals — if any of these are true, the phase is too big:
Proposed Implementation Phases:
Phase 1: [Name] - [2-sentence description] ([N] files)
Phase 2: [Name] - [2-sentence description] ([N] files)
Phase 3: [Name] - [2-sentence description] ([N] files)
...
Does this structure make sense? Any phases to add/remove/reorder?
Get explicit approval before writing the full plan.
Write the implementation plan to the designated location:
Default path: docs/plans/YYYY-MM-DD-description.md
Use this structure:
# Implementation Plan: [Feature Name]
## Overview
[2-3 sentence summary of what will be implemented]
## Context
[Background, motivation, relevant existing code references]
## Design Decision
[Chosen approach and rationale]
**ADR Reference**: [ADR-NNNN](../decisions/ADR-NNNN-title.md)
## Related ADRs
- [ADR-NNNN](../decisions/ADR-NNNN-title.md): [Brief description of relevance]
## Implementation Phases
### Phase 1: [Name]
**Objective**: [1-2 sentences — what this phase accomplishes and what it produces]
**Files touched**: [List every file this phase creates or modifies]
**Verification Approach**: [How will we verify this phase works? What tests, commands, or checks will confirm success?]
**Tasks** (tests first, then implementation):
- [ ] Create `[test-file-path]`: test [specific scenarios — name them]
- [ ] Create `[file-path]`: implement `ClassName` with `method1()`, `method2()` — [what each does, 5-10 words per method]
- [ ] Modify `[file-path]`: add [what — e.g., "import and register AuthModule"]
- [ ] Verify: [specific command]
**Exit Conditions**:
> Phase cannot proceed until ALL conditions pass.
Build Verification:
- [ ] `[build command]` succeeds
- [ ] `[lint command]` passes
- [ ] `[typecheck command]` passes (if applicable)
Runtime Verification:
- [ ] Application starts: `[start command]`
- [ ] No runtime errors in console
- [ ] [Service/endpoint] is accessible at [URL]
Functional Verification:
- [ ] `[test command]` passes
- [ ] [Specific test]: `[targeted test command]`
- [ ] [Manual check]: [Observable behavior to verify]
### Phase 2: [Name]
[Continue pattern...]
## Dependencies
[External dependencies, prerequisites, blockers]
## Risks and Mitigations
[Potential issues and how to handle them]
After writing the plan file, create Tasks for progress tracking:
Process:
Generate a task list ID from plan filename: plan-{filename-without-extension}
2026-01-24-user-auth.md → plan-2026-01-24-user-authCreate a Task for each phase:
TaskCreate:
subject: "Phase N: [Phase Name]"
description: "[Phase objective] - Plan: [plan file path]"
activeForm: "Implementing Phase N: [Name]"
Set sequential dependencies:
TaskUpdate:
taskId: [phase-N]
addBlockedBy: [phase-(N-1)] # Each phase blocked by previous
Add task list ID to plan metadata (top of file):
---
task_list_id: plan-2026-01-24-user-auth
---
Completion Message:
Plan created: [path]
Tasks created: [count] phases with sequential dependencies
Task List ID: [task_list_id]
To work on this plan:
Single session: /implement-plan [path]
Multi-session: CLAUDE_CODE_TASK_LIST_ID=[task_list_id] claude
Use the same task_list_id across sessions to share progress.
Tasks persist on the filesystem and can be shared across Claude Code sessions.
Starting a shared session:
CLAUDE_CODE_TASK_LIST_ID=plan-2026-01-24-user-auth claude
Benefits:
Task States:
◻ #1 Phase 1: Setup
◻ #2 Phase 2: Core Logic › blocked by #1
◻ #3 Phase 3: Integration › blocked by #2
◻ #4 Phase 4: Testing › blocked by #3
Every phase in the plan MUST include:
Phases are executed by an orchestrator that delegates each task to an independent subagent. If a task is vague, the subagent has to guess — and it often guesses wrong. The key question for each task: could a developer who's never seen this codebase complete this task based solely on this description?
Bad — too vague, too large:
### Phase 1: Authentication
**Objective**: Add authentication to the application
**Tasks**:
- [ ] Write tests for auth
- [ ] Implement auth service
- [ ] Implement auth controller
- [ ] Add auth middleware
- [ ] Verify: `npm test` passes
Problems: "auth service" doing what exactly? How many methods? What library? "Add auth middleware" — where, protecting which routes? A subagent receiving "Implement auth service" will either ask clarifying questions (stalling the orchestrator) or make assumptions that conflict with later tasks.
Good — specific, delegatable:
### Phase 1: Password Hashing and Token Generation
**Objective**: Create the core auth utilities — password hashing via bcrypt and JWT token generation. No HTTP layer yet.
**Files touched**: `src/auth/auth.service.ts`, `src/auth/auth.service.spec.ts`, `src/auth/auth.module.ts`
**Verification Approach**: Unit tests verify bcrypt hashing round-trips correctly and JWT tokens contain expected claims (sub, iat, exp).
**Tasks** (tests first, then implementation):
- [ ] Create `src/auth/auth.service.spec.ts`: test `hashPassword()` produces valid bcrypt hash, `comparePassword()` matches correct password and rejects wrong password, `generateToken()` returns JWT with `sub` and `exp` claims
- [ ] Create `src/auth/auth.service.ts`: implement `AuthService` with `hashPassword(plain): Promise<string>`, `comparePassword(plain, hash): Promise<boolean>`, `generateToken(userId): string` — uses bcrypt (10 rounds) and jsonwebtoken
- [ ] Create `src/auth/auth.module.ts`: register `AuthService` as provider, export it
- [ ] Verify: `npm test -- auth.service` passes
### Phase 2: Login Endpoint
**Objective**: Add POST /auth/login endpoint that validates credentials and returns a JWT. Depends on AuthService from Phase 1.
**Files touched**: `src/auth/auth.controller.ts`, `src/auth/auth.controller.spec.ts`, `src/auth/auth.module.ts`
...
Notice: Phase 1 has one concern (crypto utilities), Phase 2 has one concern (HTTP endpoint). Each task names exact files, functions, and behaviors. A feature like auth might have 6-8 phases — that's a strength, not a weakness. Small phases are easier to implement, test, and debug.
Exit conditions are mandatory gates that must pass before advancing to the next phase. They are not advisory - they are requirements.
Three Verification Categories (all must pass):
Build Verification - Code compiles and passes static analysis:
npm run build, cargo build, go build)npm run lint, flake8, golangci-lint)npm run typecheck, mypy, tsc --noEmit)Runtime Verification - Application actually runs:
Functional Verification - Correct behavior:
npm test, pytest, go test)Never skip a category - each phase must have at least one check in each category.
Do NOT write plans with open questions.
If planning encounters ambiguity:
A plan with "TBD" or "to be determined" sections is incomplete.
Before finalizing any plan:
Progress is tracked via Task tools which persist across sessions. See ADR-0001.
Task Persistence:
CLAUDE_CODE_TASK_LIST_IDWorkflow:
create-plan → TaskCreate (all phases) → Outputs task_list_id
↓
implement-plan → TaskUpdate(in_progress) → implement-phase → TaskUpdate(completed)
↓
Resume (any session) → CLAUDE_CODE_TASK_LIST_ID=xxx claude → TaskList shows progress
Before writing exit conditions, detect the project type and use appropriate commands. Read references/exit-conditions.md for detection heuristics and per-language templates (Node.js, Python, Go, Rust, Java, etc.).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
implementation-planning, feature-spec, adr, task-breakdown, research
35 skills in this plugin
/adrDocument architectural decisions in standardized ADR format. This skill should be used when making significant technical decisions, choosing between approaches, establishing patterns, or when other skills (create-plan, implement-plan, brainstorm) identify decisions that need documentation. Triggers on "document decision", "create ADR", "architectural decision", or automatically when invoked by other skills during planning and implementation./adversarial-reviewerAdversarial code review by three independent subagent personas (Saboteur, New Hire, Security Auditor) running in parallel, isolated contexts that know nothing of the author's intent or Claude's earlier conclusions. Reviews a diff by default (staged/unstaged, a ref or a file); --codebase reviews a whole repo or subtree for tech debt, attack surface and knowledge silos. Use before merging a PR; when the user asks for a hostile, harsh, critical, skeptical or second-opinion review; when a /devflow:code-review came back suspiciously clean; when the user is tired after a long session or has a gut feeling something is off; or for a quick audit of an inherited repo ("what am I inheriting"). Differs from /devflow:code-review (routine per-phase review, no isolation) and /devflow:security-review (single-lens OWASP depth).npx claudepluginhub mhylle/claude-skills-collection --plugin devflowOther plugins' skills for the same job