Home
cd ../playbooks
Developer ToolsIntermediate

7-Phase Feature Development Workflow

Structured feature development that explores the codebase, asks every clarifying question up front, presents multiple architecture options with a recommendation, and runs a three-angle quality review before calling it done.

5 minutes
By Anthropic (Sid Bidasaria)Source
#feature-development#architecture#workflow#multi-agent#code-review#official

You asked for a feature and got code back in thirty seconds — code that ignored the pattern the rest of the codebase uses, missed an edge case nobody mentioned because nobody was asked, and now needs a second pass anyway. The fast path wasn't actually faster.

Who it's for: developers building features that touch multiple files, engineering teams wanting consistent feature-development discipline, developers working in unfamiliar codebases, teams that keep re-explaining the same architectural context every ticket

Example

"Add OAuth authentication" → Parallel exploration agents map the existing auth system and session handling, a clarifying-questions phase surfaces five underspecified decisions before any code is written, three competing architectures get compared with a recommendation, and after implementation three review agents check for bugs, style, and simplicity before final summary

CLAUDE.md Template

New here? 3-minute setup guide → | Already set up? Copy the template below.

Or install from your terminal:
npx ccplaybooks add feature-dev-workflow
# 7-Phase Feature Development Workflow

## Your Role

You help me implement new features systematically. Understand the codebase deeply, identify and ask about every underspecified detail, design elegant architectures, then implement.

Building a feature is more than writing code. You need to understand the codebase before changing it, ask questions to clarify ambiguous requirements, design thoughtfully before implementing, and review for quality after building.

## Core Principles

- **Ask clarifying questions.** Identify all ambiguities, edge cases, and underspecified behaviors. Ask specific, concrete questions rather than making assumptions. Wait for my answers before implementing. Ask early — after understanding the codebase, before designing architecture.
- **Understand before acting.** Read and comprehend existing code patterns first.

Get new playbooks like this one

One email a week with new Claude Code workflows. Free, like everything here.

No spam. Unsubscribe anytime.

README.md

What This Does

A systematic seven-phase process for building non-trivial features: discovery, parallel codebase exploration, clarifying questions (that block until answered), multi-approach architecture design with a recommendation, implementation only after explicit approval, three-angle quality review, and a final summary. Designed for features that touch multiple files or require real architectural decisions — not one-line fixes.


Quick Start

Step 1: Navigate to Your Project

cd ~/your-project

Step 2: Download the Template

Click Download above, then:

mv ~/Downloads/CLAUDE.md ./

Step 3: Start a Feature

claude

Then ask: "Add [feature description]" and let the workflow guide you through all seven phases.


The Seven Phases

  1. Discovery — clarify what's actually being built and confirm understanding
  2. Codebase Exploration — 2–3 parallel agents trace similar features, architecture, and patterns; every file they identify gets read, not just summarized
  3. Clarifying Questions — every ambiguity, edge case, and integration question surfaces here, before any design work starts. This phase is explicitly not skippable.
  4. Architecture Design — 2–3 competing approaches (minimal-change, clean-architecture, pragmatic-balance) with trade-offs and a stated recommendation; you pick
  5. Implementation — starts only after explicit approval, following the chosen architecture and existing conventions
  6. Quality Review — three parallel review agents check simplicity/DRY, bugs/correctness, and convention adherence
  7. Summary — what was built, key decisions, files touched, suggested next steps

Tips & Best Practices

  • Answer the clarifying questions thoughtfully — Phase 3 exists specifically to prevent the rework that comes from unstated assumptions
  • Trust the architecture recommendation — it's built from actual exploration of your codebase, not a generic best-practice guess
  • "Whatever you think is best" still needs your confirmation — if you say this, you'll get a specific recommendation and a request to confirm it, not silent autonomy
  • Be specific in the initial request — more detail up front means fewer clarifying-question rounds later

When to Use This

Use it for: new features touching multiple files, features needing architectural decisions, complex integrations, requirements that are somewhat unclear.

Skip it for: single-line fixes, trivial changes, well-defined simple tasks, urgent hotfixes — the structure adds overhead these don't need.

Limitations

  • Exploration on a large codebase takes real time — that's the cost of the thoroughness, not a bug
  • Requires an existing codebase with patterns to learn from; less useful for pure greenfield work

$Related Playbooks

Developer Tools

Firecrawl Developer Research: Code, Issues & PRs

Investigate library and API bugs, behavior, and version discrepancies using public repository code, issues, and pull requests when the docs aren't enough

10 minutes
Intermediate
Developer Tools

Firecrawl Docs Reader: Answers From Official Documentation

Answer library, SDK, and API questions from current official docs, with version-matched code and citations instead of remembered guesses

10 minutes
Beginner
Developer Tools

Frontend UX Pattern Library

Concrete, research-backed patterns for SaaS dashboards, landing pages, and forms — plus accessibility requirements, Tailwind implementation gotchas, and a pre-delivery checklist that treats accessibility as a launch blocker, not a nice-to-have.

5 minutes
Intermediate
Developer Tools

AI Crawler Access Audit: Who Can Actually Read Your Site

Maps 14 AI crawlers against your robots.txt, meta tags, and HTTP headers, then returns an access score and the exact rules to change

10 minutes
Intermediate
Developer Tools

llms.txt Generator & Auditor

Generate and validate llms.txt, the root-level Markdown file that tells AI systems what your site is and which pages to cite

10 minutes
Intermediate
Developer Tools

Full-Output Enforcement: No Placeholders, No Stubs

A short rule set that bans TODO comments, skeleton code, and 'rest follows the same pattern' shortcuts so Claude always delivers complete, runnable output

2 minutes
Beginner
Developer Tools

Ginkgo Table and Dynamic Specs

Parameterize and generate Ginkgo test specs correctly — DescribeTable/Entry, the four ways to name an entry, DescribeTableSubtree for multi-It rows, reusable entry sets, and the one gotcha (Entry params evaluate at construction time, not BeforeEach time) that causes most table-spec bugs.

5 minutes
Intermediate
Developer Tools

Ginkgo Timeouts and Async Testing

Make Ginkgo specs interruptible and test asynchronous behavior correctly — SpecContext cancellation, NodeTimeout/SpecTimeout/GracePeriod, Eventually/Consistently with proper context propagation, and the two goroutine rules (GinkgoRecover, poll-don't-block) that prevent one failed assertion from crashing an entire Go test suite.

5 minutes
Intermediate
Developer Tools

Writing Ginkgo Specs

Author correct Ginkgo specs — container vs. subject vs. setup nodes, the declare-in-container/initialize-in-setup rule that prevents the most common Ginkgo bug, JustBeforeEach for separating creation from configuration, DeferCleanup for restore-not-clear teardown, and GinkgoHelper() for failure locations that point at the caller instead of the helper.

5 minutes
Beginner
Developer Tools

Git Conflict Resolution Framework

A plan-first framework for resolving Git merge conflicts by combining both branches' intent instead of blindly picking a side — categorized resolution patterns for imports, tests, generated files, configs, code logic, and struct definitions, with a mandatory approval step before any file is touched.

5 minutes
Intermediate
Developer Tools

Git Commit & PR Automation

Three streamlined git workflows: commit with an auto-drafted message matching your repo's style, ship a full commit-push-PR in one step, and clean up branches deleted on the remote.

5 minutes
Beginner
Developer Tools

Hookify Guardrails

Create custom Claude Code guardrails with lightweight markdown rule files instead of hand-editing hooks.json — pattern matching, no restart required, rules live-load on the next tool call.

5 minutes
Beginner

Browse all Developer Tools playbooks →