Skip to content

🎯 Claude Code workflow engine - SPEC-first planning, TDD automation, GPT delegation, and context engineering. From idea to production, discipline included.

License

Notifications You must be signed in to change notification settings

changoo89/claude-pilot

Repository files navigation

claude-pilot ⭐

Claude Code workflow engine - SPEC-first planning, TDD automation, GPT delegation, and context engineering. From idea to production, discipline included.

Autonomous agents. TDD-driven. Documentation sync.

GitHub Stars Version License CI


πŸ’‘ Why claude-pilot?

Claude Code is powerful, but unstructured. claude-pilot adds discipline:

  • ❌ Vague prompts β†’ βœ… PRP pattern (What, Why, How, Success Criteria)
  • ❌ Manual iteration β†’ βœ… Ralph Loop (autonomous TDD until tests pass)
  • ❌ Context bloat β†’ βœ… 3-Tier docs (optimized token usage)
  • ❌ Stuck on bugs β†’ βœ… GPT delegation (fresh perspective after 2nd failure)
  • ❌ Documentation drift β†’ βœ… Auto-sync (docs stay in sync with code)

Result: Higher quality code, faster iteration, happier team.

Key Benefits:

  • βœ… SPEC-First: Requirements before code
  • πŸ€– Autonomous: Ralph Loop runs until tests pass
  • πŸ”„ Persistent: Plan state saved to .pilot/ directories
  • πŸ“š Documented: Auto-sync 3-tier documentation
  • 🧠 Intelligent: GPT Codex delegation for complex problems

Quick Start

# Add marketplace (use #release branch)
/plugin marketplace add changoo89/claude-pilot#release

# Install plugin
/plugin install claude-pilot

# Initial setup
/pilot:setup

⭐ Star this repo if it helps your workflow!


What is claude-pilot?

claude-pilot is a Claude Code plugin that brings structure and discipline to AI-assisted development.

Core Features

  • SPEC-First TDD: Test-Driven Development with clear success criteria
  • Ralph Loop: Autonomous iteration until all tests pass
  • 3-Tier Documentation: Foundation/Component/Feature hierarchy for efficient context
  • PRP Pattern: Structured prompts for unambiguous requirements
  • Pre-commit Hook: JSON validation and markdown link check
  • Pure Plugin: No Python dependency, native Claude Code integration

GPT Codex Integration

Intelligent GPT Delegation: Context-aware, autonomous delegation to GPT experts

Expert Mapping

Situation GPT Expert
Architecture decisions Architect
Security-related code Security Analyst
Large plans (5+ SCs) Plan Reviewer
2+ failed fix attempts Architect
Coder blocked (automatic) Architect

Delegation Triggers

  • Explicit: "ask GPT", "review architecture"
  • Semantic: Architecture decisions, security issues, ambiguity
  • Automatic: After 2nd failure (not first) β†’ Progressive escalation
  • Self-Assessment: Agent confidence scoring < 0.5 β†’ Delegation

Configuration

export CODEX_REASONING_EFFORT="medium"  # low | medium | high | xhigh

Full Guide: docs/ai-context/codex-integration.md


claude-pilot vs Vanilla Claude Code

Feature claude-pilot Vanilla Claude Code
SPEC-First Planning βœ… PRP format, success criteria ❌ Ad-hoc planning
TDD Automation βœ… Ralph Loop autonomous ❌ Manual test-run cycle
Session Persistence βœ… Plan file persistence ❌ Context lost on exit
Documentation Sync βœ… 3-tier auto-update ❌ Manual docs only
Quality Gates βœ… Type check, lint, coverage ❌ No enforcement
GPT Delegation βœ… Intelligent escalation ❌ Manual delegation
Multi-Angle Review βœ… Parallel verification ❌ Single perspective

Core Workflow

/00_plan     β†’ Create spec-driven plan with PRP format
/01_confirm  β†’ Review and approve plan
/02_execute  β†’ Execute with Ralph Loop + TDD
/03_close    β†’ Complete and commit
/review   β†’ Auto-review code (multi-angle)
/document β†’ Auto-document changes
/pilot:setup β†’ Configure MCP servers

Project Structure

claude-pilot/
β”œβ”€β”€ README.md
β”œβ”€β”€ CHANGELOG.md           # Version history
β”œβ”€β”€ CLAUDE.md              # Main project guide
β”œβ”€β”€ .claude-plugin/        # Plugin manifests
β”‚   β”œβ”€β”€ marketplace.json   # Marketplace configuration
β”‚   └── plugin.json        # Plugin metadata
β”œβ”€β”€ .claude/               # Plugin components
β”‚   β”œβ”€β”€ agents/            # Agent configurations (8 agents)
β”‚   β”œβ”€β”€ commands/          # Slash commands (11)
β”‚   β”œβ”€β”€ skills/            # TDD, Ralph Loop, Vibe Coding
β”‚   β”œβ”€β”€ guides/            # Methodology guides
β”‚   β”œβ”€β”€ templates/         # CONTEXT.md, SKILL.md templates
β”‚   β”œβ”€β”€ scripts/hooks/     # Pre-commit hook
β”‚   └── settings.json      # Example settings
β”œβ”€β”€ .pilot/                # Plan management
β”‚   └── plan/
β”‚       β”œβ”€β”€ pending/       # Plans awaiting confirmation
β”‚       β”œβ”€β”€ in_progress/   # Active plans
β”‚       └── done/          # Completed plans
└── docs/                  # Documentation
    β”œβ”€β”€ archive/           # Archived content (MIGRATION.md)
    └── ai-context/        # 3-Tier integration docs

Installation

Prerequisites

  • Claude Code v1.0+ with plugin support

Installation (3-Line)

# Step 1: Add marketplace
/plugin marketplace add changoo89/claude-pilot

# Step 2: Install plugin
/plugin install claude-pilot

# Step 3: Run setup
/pilot:setup

What Happens During Installation

  1. Plugin files are copied to .claude/ directory
  2. You'll be prompted to run /pilot:setup
  3. Setup automatically:
    • Configures recommended MCP servers
    • Creates .pilot/ directories for plan management
    • Sets hooks executable permissions
    • Detects project type and configures LSP

What Gets Installed

  • 11 Slash Commands: Plan, Confirm, Execute, Close, Review, Document, Init, Setup, Release, Cleanup, Continue
  • 12 Agents: Coder, Tester, Validator, Documenter, Explorer, Researcher, Plan Reviewer, Code Reviewer, Frontend Engineer, Backend Engineer, Security Analyst, Build Error Resolver
  • 30 Skills: TDD, Ralph Loop, Vibe Coding, Git Master, and 26 more
  • MCP Servers: context7, sequential-thinking (configured via /pilot:setup)
  • Hooks: Pre-commit hook for JSON validation and markdown link check

Configuration

MCP Servers

Run /pilot:setup to configure recommended MCPs:

MCP Purpose
context7 Latest library documentation
sequential-thinking Step-by-step reasoning for complex problems

The setup command uses a merge strategy:

  • Preserves existing .mcp.json configurations
  • Adds only new servers
  • Skips servers with conflicting names

Usage Examples

Initialize Existing Project

# In Claude Code
/setup

# Automatically generates 3-Tier documentation structure

Start a New Feature

# In Claude Code
/00_plan "Add user authentication with JWT"

# Review the generated plan in .pilot/plan/pending/
# Edit if needed, then:

/01_confirm  # Approve the plan

/02_execute  # Execute with TDD + Ralph Loop

Auto-Document Changes

# After completing work
/document

# Automatically updates:
# - CLAUDE.md (Tier 1)
# - docs/ai-context/ files
# - Tier 2/3 CONTEXT.md files

Multi-Angle Review

# Before committing
/review security performance accessibility

# Reviews code from multiple perspectives

Guides


Contributing

Contributions welcome! Please:

  1. Fork the repository
  2. Create a feature branch (/00_plan "your feature")
  3. Follow TDD workflow (/02_execute)
  4. Submit PR with /review output

License

MIT License - Free to use, modify, and distribute.


FAQ

Q: Can I use this for commercial projects?

A: Yes, MIT license allows commercial use.

Q: How do I disable hooks?

A: Edit .claude/settings.json and remove unwanted hooks from the hooks section.

Q: Can I add my own MCPs?

A: Yes, run /pilot:setup to add recommended MCPs, or manually edit .mcp.json.

Q: What if I don't want TDD?

A: Ralph Loop can be configured to skip tests. Edit /02_execute command to adjust.

Q: Do I need Python installed?

A: No! The plugin is pure markdown/JSON - no Python required.


Support


Inspiration & Credits

claude-pilot synthesizes best practices from these projects:

Core Methodology

  • Superpowers

    • Superpowers-style command architecture (skill invocation pattern)
    • RED-GREEN-REFACTOR TDD enforcement
    • Git worktrees for parallel development
  • Claude-Code-Development-Kit

    • 3-Tier Documentation System (Foundation/Component/Feature)
    • Hierarchical CONTEXT.md structure
    • AI-context documentation patterns
  • moai-adk

    • SPEC-First TDD methodology
    • Multilingual support architecture
  • oh-my-opencode

    • Ralph Loop autonomous iteration
    • Todo continuation enforcement
  • claude-delegator

    • Pure plugin architecture
    • GitHub star prompting
    • MCP server configuration
  • everything-claude-code

    • Claude Code hooks system (PreToolUse, PostToolUse, Stop)
    • Coding standards skill (TypeScript, React, API, testing)
    • Battle-tested configurations from hackathon winner

Official Resources


Built with inspiration from the Claude Code community.


Star History

Star History Chart