Skip to content

WF-001: Common Workflows

DOCUMENT CONTROL

FieldValue
WF IDWF-001
Version1.0
StatusActive

Purpose

Essential development workflows for effective Claude Code usage.

Explore-Plan-Code Pattern

Best for complex features and refactoring.

Flow

  1. EXPLORE - Understand codebase
  2. PLAN - Design approach
  3. CODE - Implement changes
  4. VERIFY - Test and review

Example Prompts

"Explore the authentication module and explain how it works"

"Plan how we could add OAuth2 support"

"Implement the OAuth2 changes we discussed"

"Run the tests and fix any issues"

Test-Driven Development

Write tests first, then implementation.

Flow

  1. Write failing test
  2. Implement minimal code
  3. Make test pass
  4. Refactor
  5. Repeat

Example

"Write a test for user registration validation"

"Implement the registration validation to pass the test"

"Refactor and add edge case tests"

Code Review Workflow

Review changes before committing.

Flow

  1. Make changes
  2. Request review
  3. Address feedback
  4. Commit

Example

"Review the changes in src/auth/ for security issues"

"Check for performance problems in my recent changes"

Bug Fix Workflow

Systematic bug resolution.

Flow

  1. Reproduce bug
  2. Identify cause
  3. Write failing test
  4. Implement fix
  5. Verify fix

Example

"Help me debug the login timeout issue"

"Write a test that reproduces this bug"

"Fix the issue and verify the test passes"

Best Practices

Workflow Tips

  1. Start with exploration
  2. Plan before coding
  3. Write tests
  4. Review changes
  5. Document decisions

Next Steps

Based on Official Claude Code Documentation