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.
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
# 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!
claude-pilot is a Claude Code plugin that brings structure and discipline to AI-assisted development.
- 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
Intelligent GPT Delegation: Context-aware, autonomous delegation to GPT experts
| 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 |
- 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
export CODEX_REASONING_EFFORT="medium" # low | medium | high | xhighFull Guide: docs/ai-context/codex-integration.md
| 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 |
/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
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
- Claude Code v1.0+ with plugin support
# Step 1: Add marketplace
/plugin marketplace add changoo89/claude-pilot
# Step 2: Install plugin
/plugin install claude-pilot
# Step 3: Run setup
/pilot:setup- Plugin files are copied to
.claude/directory - You'll be prompted to run
/pilot:setup - Setup automatically:
- Configures recommended MCP servers
- Creates
.pilot/directories for plan management - Sets hooks executable permissions
- Detects project type and configures LSP
- 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
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.jsonconfigurations - Adds only new servers
- Skips servers with conflicting names
# In Claude Code
/setup
# Automatically generates 3-Tier documentation structure# 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# After completing work
/document
# Automatically updates:
# - CLAUDE.md (Tier 1)
# - docs/ai-context/ files
# - Tier 2/3 CONTEXT.md files# Before committing
/review security performance accessibility
# Reviews code from multiple perspectives- Getting Started
- Claude-Code-Development-Kit - 3-Tier Documentation System
Contributions welcome! Please:
- Fork the repository
- Create a feature branch (
/00_plan "your feature") - Follow TDD workflow (
/02_execute) - Submit PR with
/reviewoutput
MIT License - Free to use, modify, and distribute.
A: Yes, MIT license allows commercial use.
A: Edit .claude/settings.json and remove unwanted hooks from the hooks section.
A: Yes, run /pilot:setup to add recommended MCPs, or manually edit .mcp.json.
A: Ralph Loop can be configured to skip tests. Edit /02_execute command to adjust.
A: No! The plugin is pure markdown/JSON - no Python required.
- Issues: GitHub Issues
- Discussions: GitHub Discussions
claude-pilot synthesizes best practices from these projects:
-
- Superpowers-style command architecture (skill invocation pattern)
- RED-GREEN-REFACTOR TDD enforcement
- Git worktrees for parallel development
-
- 3-Tier Documentation System (Foundation/Component/Feature)
- Hierarchical CONTEXT.md structure
- AI-context documentation patterns
-
- SPEC-First TDD methodology
- Multilingual support architecture
-
- Ralph Loop autonomous iteration
- Todo continuation enforcement
-
- Pure plugin architecture
- GitHub star prompting
- MCP server configuration
-
- Claude Code hooks system (PreToolUse, PostToolUse, Stop)
- Coding standards skill (TypeScript, React, API, testing)
- Battle-tested configurations from hackathon winner
- Claude Code Best Practices
- Official Anthropic guidelines
- Claude Code Plugins Reference
- Plugin development guide
Built with inspiration from the Claude Code community.