Skip to main content

How I Make Claude Code Cook: A 4-Phase AI Development Workflow

Source: Video transcript analysis
Author's Background: Building with AI exclusively for several years


Executive Summary

This workflow represents a mature, production-tested approach to AI-assisted development. The author emphasizes that the Define phase represents 70% of meaningful work and is the primary determinant of project success. The workflow scales from individual coding tasks to complex research and file transformation operations.


Phase 1: DEFINE (The Critical 70%)

Core Principle

"If I am successful in a project, it is almost certain I'm successful because of this phase."

The Capture Process

1. Voice Recording / Walking Ideation

  • Free-associate ideas verbally while walking
  • Don't aim for final conclusions during ideation
  • Allow mind to meander and explore possibilities
  • Raw ideas are valid—refinement comes later

2. Visual Documentation

  • Create annotated screenshots of current state
  • Mark up images showing desired changes
  • Visual notes complement verbal ideas

3. PRD Generation (Using ChatGPT or similar)

  • Combine voice transcript + visual notes + component definitions
  • Critical constraint: Focus on WHAT, not HOW
  • Zero technical implementation details
  • Document should tell the story of user experience

PRD Content Requirements

ElementDescription
User capabilitiesWhat should users be able to see/do?
RestrictionsWhat should users NOT be able to see/do?
InteractionsHow do parts relate to each other?
PrioritiesWhat's most important?
Emotional outcomeWhat should the user feel?

Example PRD Language

"The end feeling should be: 'I grab the window, I move it, everything listens to me, nothing fights back.'"


Phase 2: REFINE (Iterative Improvement)

Context Management (Critical)

The Problem: Context window accumulation degrades model performance.

The Solution: Clear context aggressively.

/clear    # Create fresh chat context
/context # Visualize current context window

Rule of Thumb: Clear context whenever you finish a discrete task, or when the next task isn't directly related to the previous conversation.

Plan Mode Workflow

  1. Use Shift+Tab to cycle through modes
  2. Enter Plan Mode before implementation
  3. Plan Mode = conversational, no file writes
  4. Iterate on plan until satisfied ("measure 50 times")
  5. Reference PRD and visual assets during planning

The CLAUDE.md File

This persistent memory file loads into every conversation. Configure for:

  • Code style preferences (clean code, specific patterns)
  • Testing requirements (unit tests for critical logic)
  • Universal behaviors you want in every session

Screenshot Integration

Why it matters: Models cannot see your screen. They infer UI state from code.

Workflow:

  1. Use screenshot utility with quick keystroke (CleanShot, native tools)
  2. Annotate screenshots with arrows, highlights, notes
  3. Paste directly into terminal with Ctrl+V
  4. Reference specific visual elements: "Do you see the two pink arrows?"

Testing Discipline

Reality Check: Models know how to write tests but won't remember to do so unprompted.

Required Reminders:

  • Explicitly request test case creation
  • Remind to run test cases
  • Add testing requirements to CLAUDE.md
  • Consider: unit tests, visual tests, E2E tests, Playwright integration

Consequence of Neglect:

"If you don't have good tests, three months down the road, you will cry."


Phase 3: MULTIPLY (Parallel Agent Execution)

The Unlock

Use Claude AI web interface (claude.ai) or equivalent platforms (Codex, Gemini) to run multiple agents in parallel.

Capabilities

FeatureBenefit
Parallel executionMultiple changes simultaneously
Asynchronous operationNot tied to terminal/machine
Cloud-basedWorks from phone, survives shutdown
ExploratoryKick off 4-5 variants, pick best approach

Workflow Pattern

  1. Navigate to claude.ai → Projects
  2. Select active project (same codebase as local)
  3. Submit change requests as natural language
  4. Multiple requests run simultaneously
  5. Review completed PRs when ready

Use Cases

  • Exploring multiple implementation directions
  • Parallelizing independent features
  • Batch processing similar changes
  • Disconnected development (mobile, travel)

Phase 4: EXPAND (Beyond Code)

PR Management via Claude Code

# Check open PRs
"Hey, what are the open PRs?"

# Review and merge
"I have two PRs open against this repo. I've verified both.
Approve them, merge them back, and update main."

Result: Complete GitHub workflow without leaving terminal.

Custom Slash Commands

Power Feature: Create project-specific commands that persist with the repository.

/git-push     # Custom push workflow
/test # Project-specific test runner
/dev # Development environment setup
/install # Installation sequence

Benefits:

  • Check into version control
  • Available when returning to project weeks later
  • Encode project-specific knowledge

File Transformation (Non-Code Operations)

The Revelation: Claude Code works on any local files, not just source code.

Example: JSON Data Enhancement

  • Input: Board game history file with short descriptions, broken images
  • Process: 45-minute autonomous deep research
  • Output: Validated images, extended descriptions, verified external links

Other Demonstrated Uses:

  • Audio file conversion
  • Image analysis and renaming
  • Document research and compilation
  • Meeting notes processing
  • Video script writing

The Harness Model

Claude Code operates as an iterative problem solver:

  1. Creates internal to-do list
  2. Works through items systematically
  3. Can run unattended for extended periods
  4. Different from "thinking models" that make internal passes

Key Tactical Patterns

Context Commands

CommandEffect
/clearFresh chat context
/contextVisualize context window
Shift+TabCycle through modes
Custom /commandsProject-specific automation

Mode Selection

ModeUse Case
Plan ModeConversational planning, no writes
Implementation ModeActive file creation/modification

Success Factors Summary

  1. Define Phase Investment — 70% of success determined here
  2. Context Hygiene — Clear frequently, minimize window size
  3. Visual Communication — Screenshots with annotations
  4. Testing Discipline — Explicit reminders, persistent config
  5. Parallel Execution — Multiply agents for exploration
  6. Slash Commands — Encode project knowledge
  7. File Transformation — Extend beyond code to any file type

Workflow Diagram

┌─────────────────────────────────────────────────────────────────┐
│ DEFINE (70%) │
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
│ │ Voice │ + │ Visual │ + │Component │ → │ PRD │ │
│ │ Notes │ │ Notes │ │ Docs │ │(WHAT not │ │
│ │(Walking) │ │(Annotate)│ │ │ │ HOW) │ │
│ └──────────┘ └──────────┘ └──────────┘ └──────────┘ │
└─────────────────────────────────────────────────────────────────┘

┌─────────────────────────────────────────────────────────────────┐
│ REFINE │
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
│ │Plan Mode │ → │Iterate on│ → │Screenshot│ → │ Write │ │
│ │(Measure │ │ Plan │ │ Debug │ │ Tests │ │
│ │50 times) │ │ │ │ │ │ │ │
│ └──────────┘ └──────────┘ └──────────┘ └──────────┘ │
│ ↑ │
│ /clear frequently │
└─────────────────────────────────────────────────────────────────┘

┌─────────────────────────────────────────────────────────────────┐
│ MULTIPLY │
│ ┌─────────────────────────────────────────────────────────┐ │
│ │ Claude AI Web Interface │ │
│ │ ┌────────┐ ┌────────┐ ┌────────┐ ┌────────┐ │ │
│ │ │Agent 1 │ │Agent 2 │ │Agent 3 │ │Agent N │ │ │
│ │ │(Async) │ │(Async) │ │(Async) │ │(Async) │ │ │
│ │ └────────┘ └────────┘ └────────┘ └────────┘ │ │
│ └─────────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────┘

┌─────────────────────────────────────────────────────────────────┐
│ EXPAND │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────────────┐ │
│ │PR Management │ │Slash Commands│ │ File Transformation │ │
│ │via Terminal │ │(Persistent) │ │ (Any local files) │ │
│ └──────────────┘ └──────────────┘ └──────────────────────┘ │
└─────────────────────────────────────────────────────────────────┘

Author's Final Assessment

"If you took a few of these away, I honestly would not be as successful as I feel like I am."

The workflow represents years of refinement and demonstrates that AI development tools have matured beyond simple code generation into comprehensive development lifecycle management.