Dev Workflow
Orchestrate a complete development cycle: plan → approve → implement → review → validate.
Phase 1: Plan
- •Enter plan mode (
!planor start Claude Code with--plan). - •Read the repo to understand the codebase:
- •
README.md, project structure, build/run/test instructions - •Languages, frameworks, key dependencies
- •Existing patterns, conventions, architecture
- •
- •Determine if the project is greenfield:
- •Greenfield indicators: empty src dirs, no existing business logic, fresh scaffold, README says "new project" or similar
- •If not clearly greenfield: treat all public APIs, config formats, database schemas, and CLI interfaces as stable — avoid breaking changes unless the user explicitly approves them
- •If the user's request is unclear or ambiguous, ask focused guiding questions. Limit to 2–3 questions per message. Cover:
- •Scope — what exactly should change?
- •Constraints — performance, backward compatibility, specific libraries?
- •Acceptance criteria — how will we know it works?
- •Produce a structured implementation plan:
## Implementation Plan **Goal:** [one sentence] **Files to modify/create:** - `path/to/file` — [what changes and why] **Approach:** 1. [Step with rationale] 2. [Step with rationale] **Risks / trade-offs:** - [Anything worth noting] **Breaking changes:** None | [list with justification]
Phase 2: Approve
Present the plan and wait for explicit user approval before proceeding. If the user requests changes, revise the plan and re-present. Do not begin implementation until the user confirms.
Phase 3: Implement
Exit plan mode and implement the approved plan. Commit to the approach agreed upon — do not deviate without informing the user. Write clean, idiomatic code that follows existing project conventions.
Phase 4: Review
Trigger the code-review skill against the implementation diff. The skill will review the changes as a senior staff developer and produce a numbered list of suggestions prioritized by severity.
Phase 5: Respond to Review
Trigger the code-review-response skill with the diff and the review output from Phase 4. For each suggestion:
- •ACCEPT — implement the fix immediately
- •REJECT — leave as-is, note the reasoning
- •DISCUSS — present to the user for a decision
Phase 6: Validate
Check if the code-change-validator skill is available. If installed, trigger it against the final diff (including any review fixes). Let it run the full validation workflow: existing tests, exploratory testing, and regression test writing.
If code-change-validator is not installed, perform basic validation:
- •Run the project's existing test suite
- •Verify the changed behavior works as intended
- •Report results to the user
Notes
- •Always prefer the project's existing patterns over "better" alternatives — consistency wins.
- •If any phase surfaces a problem that invalidates the plan, stop and re-plan with the user rather than improvising.
- •Keep the user informed between phases with brief status updates.