Home
cd ../playbooks
Academic ResearchBeginner

Plan-First Workflow

Get Claude to plan before executing complex tasks. Prevents wasted effort by getting user approval on approach before writing code or making changes.

5 minutes
By communitySource
#workflow#planning#approval#context-preservation#best-practices

You asked Claude to refactor your auth module and it rewrote 15 files before you realized it chose the wrong approach. Now you're reverting everything. The fix is simple: make Claude explain its plan and get your approval before it touches a single line of code.

Who it's for: developers who've had Claude make unwanted changes to their codebase, teams using Claude Code for complex multi-file tasks, tech leads wanting more control over Claude's approach before execution, engineers working on critical codebases where mistakes are costly, anyone new to Claude Code who wants to use it more effectively

Example

"Set up a plan-first workflow for my project" → CLAUDE.md configuration that makes Claude present its approach before executing, with checkpoints for complex tasks, rollback-friendly commit strategy, and approval gates for destructive operations

CLAUDE.md Template

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

# Plan-First Workflow

## Core Protocol

For any non-trivial task:

1. **PLAN PHASE** (before any implementation)
   - Analyze the request and identify ambiguities
   - Propose a numbered plan with specific steps
   - List files that will be created/modified
   - Identify potential risks or decision points
   - Wait for explicit approval before proceeding

2. **EXECUTE PHASE** (after approval)
   - Implement the approved plan step by step
   - Report progress as you complete each step
   - Pause and ask if you encounter unexpected issues
   - Never deviate from approved plan without checking

## What Counts as Non-Trivial

ALWAYS plan first for:
- Any task requiring 3+ file changes
- New feature implementation
- Refactoring existing code
- Architectural decisions
- Anything with multiple valid approaches

SKIP planning for:
- Single-line fixes (typos, obvious bugs)
- Direct questions about code
- Reading/exploring files
- Tasks with explicit step-by-step instructions already provided

## Plan Format

When planning, use this structure:

### Plan for: [Task Name]

**Understanding**: [1-2 sentences summarizing what you'll do]

**Approach**:
1. [Step 1]
2. [Step 2]
3. [Step 3]
...

**Files to modify**:
- `path/to/file1.ts` — [what changes]
- `path/to/file2.ts` — [what changes]

**Questions/Decisions needed**: [any ambiguities to resolve]

**Ready to proceed?** [Wait for approval]

## Context Preservation

Before starting any plan:
- Read relevant existing code first
- Note patterns and conventions already in use
- Reference existing implementations when proposing approach

After plan approval:
- Execute without re-reading files unnecessarily
- Maintain context from planning phase
- Reference plan step numbers as you work

## Approval Keywords

- "Approved" / "LGTM" / "Go ahead" → Execute the plan
- "With changes: [...]" → Update plan, then execute
- "Hold" / "Wait" → Pause, don't execute
- "Just do it" → Execute without final approval pause (still run quality checks)

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

This playbook establishes a plan-first workflow where Claude proposes a plan before executing any non-trivial task. You review and approve the plan, then Claude executes autonomously. This prevents the common failure of Claude diving into implementation without understanding requirements, only to redo work when the approach was wrong.

Prerequisites

  • Claude Code installed and configured
  • A project directory where you want this workflow

Step-by-Step Setup

Step 1: Add to your project

cd ~/your-project
# Add the template above to your CLAUDE.md file

Step 2: Test the workflow

Start Claude Code and give it a non-trivial task:

Add user authentication to the app

Claude should respond with a plan, not immediately start coding.

Step 3: Practice the approval flow

Try these responses:

  • "Approved, proceed"
  • "Approved with changes: use JWT instead of sessions"
  • "Hold - let me think about this"
  • "Just do it" (for trusted tasks)

Example Usage

User prompt:

"Add a dark mode toggle to the settings page"

Claude's plan response:

Plan for: Dark Mode Toggle

Understanding: Add a toggle in settings that switches between light and dark themes, persisting the preference.

Approach:

  1. Create a theme context/provider for state management
  2. Add CSS variables for light/dark color schemes
  3. Create the toggle component in Settings
  4. Wire up localStorage persistence
  5. Update App wrapper with ThemeProvider

Files to modify:

  • src/contexts/ThemeContext.tsx — new file, theme state
  • src/styles/theme.css — color variables
  • src/pages/Settings.tsx — add toggle UI
  • src/App.tsx — wrap with provider

Questions: Should the toggle also respect system preference as default?

Ready to proceed?

User approves:

"Yes, respect system preference. Approved."

Claude executes the plan step by step, reporting progress.

Tips

  • Be specific in approvals: "Approved" is fine, but "Approved, and use the existing Button component for the toggle" gives better results.
  • Plans aren't overhead: The 30 seconds spent reviewing a plan saves the 10 minutes of redoing wrong work.
  • "Just do it" mode: For tasks you trust completely, say "just do it" and Claude will execute without the approval pause (but still maintains quality).
  • Context compounds: After a few plan-approve-execute cycles, Claude understands your preferences and makes better plans.

Troubleshooting

Problem: Claude skips planning and starts coding immediately

Solution: Add explicit instruction at the start of your request: "Plan this first, don't start implementation yet."

Problem: Plans are too detailed/too vague

Solution: Adjust the CLAUDE.md to specify your preferred level of detail. Add examples of good plans for your codebase.

Problem: Claude asks too many questions before planning

Solution: Add "Make reasonable assumptions for minor decisions, only ask about architectural choices" to the template.

$Related Playbooks

Academic Research

Verification Before Done

Never report a task as complete without actually verifying it works. Compile, render, test, or check every output before saying 'done'.

5 minutes
Beginner
Academic Research

Academic Rebuttal Writer

Classify reviewer comments, choose a deliberate response strategy per comment (Accept/Defend/Clarify/Experiment), and draft a professional rebuttal using success patterns distilled from spotlight-accepted papers.

10 minutes
Intermediate
Academic Research

AlphaXiv Paper Lookup

Look up any arxiv paper via alphaxiv.org to get a structured AI-generated overview instead of parsing raw PDFs.

2 minutes
Beginner
Academic Research

Academic Literature Research

Search and analyze academic literature. Find papers, understand research methodologies, and synthesize academic findings for research projects.

10 minutes
Advanced
Academic Research

Academic Research Assistant

Automate literature reviews with structured search strategies, abstract screening, citation management, methodology comparison, and research gap identification.

10 minutes
Intermediate
Academic Research

Adversarial QA Loop

Use a Critic + Fixer pattern where one agent finds issues (read-only) and another fixes them, with re-audits until quality passes. Prevents Claude from approving its own work.

10 minutes
Intermediate
Academic Research

Clinical Trial Emulator

Emulate published clinical trials against real-world EHR data using a structured pipeline — from protocol parsing through cohort assembly, effect estimation, and discrepancy diagnosis.

15 minutes
Advanced
Academic Research

Comprehensive Excellence Review

Run 6+ specialized review agents in parallel across code quality, security, performance, accessibility, documentation, and style. Get a synthesized quality score with prioritized fixes.

15 minutes
Advanced
Academic Research

Deep Research Coordinator

Orchestrate complex multi-source research projects — from question decomposition to source prioritization to final synthesis and recommendations.

10 minutes
Intermediate
Academic Research

Deploy Workflow Automation

Automate your deployment pipeline: build, test, lint, version bump, and deploy to any target. Includes pre-deploy checks, rollback handling, and post-deploy verification.

15 minutes
Intermediate
Academic Research

Devil's Advocate Review

Challenge your designs and decisions with 5-7 targeted critical questions. Catches unstated assumptions, alternative approaches, and potential issues before you commit.

5 minutes
Beginner
Academic Research

Domain Reviewer Framework

Build a custom reviewer for your specific domain using the 5-Lens Framework: terminology, methodology, precedent, limitations, and impact.

15 minutes
Intermediate

Browse all Academic Research playbooks →