Skip to content

Claude Code Compound Engineering

The Compound Engineering plugin extends Claude Code with specialized agents, slash commands, skills, and structured workflows for Plan → Work → Review → Compound cycles.

StepCommand
Install Claude CodeFollow claude.ai/code setup
Clone plugingit clone https://github.com/anthropics/claude-code-plugins
Add to Claude CodeAdd plugin path in Claude Code settings
VerifyRun /help in Claude Code to see available commands
PhaseSlash CommandDescription
Plan/planTransform feature descriptions into structured implementation plans
Work/lfgFull autonomous engineering — execute plans with multi-agent coordination
Review/review-prComprehensive PR review using specialized parallel agents
Compound/compoundDocument solved problems to build institutional knowledge
CommandDescription
/planCreate structured implementation plans with file-level detail
/brainstormExplore requirements and approaches before planning
/deepen-planEnhance a plan with parallel research agents for depth and best practices
/plan_reviewHave multiple specialized agents review a plan in parallel
CommandDescription
/lfgFull autonomous engineering workflow — plan, implement, test, review
/resolve_parallelResolve all TODO comments using parallel processing
/resolve_pr_parallelResolve all PR comments using parallel processing
/resolve_todo_parallelResolve all pending CLI todos using parallel processing
CommandDescription
/review-prComprehensive PR review with specialized agents (code, security, performance)
/code-reviewReview a specific code change against plan and standards
/test-browserRun browser tests on pages affected by current PR or branch
/reproduce-bugReproduce and investigate bugs using logs, console, and screenshots
CommandDescription
/compoundDocument a solved problem for institutional knowledge
/changelogCreate engaging changelogs for recent merges to main
/deploy-docsValidate and prepare documentation for GitHub Pages
/release-docsBuild and update documentation site with current components
CommandDescription
/generate_commandCreate a new custom slash command
/triageTriage and categorize findings for the CLI todo system
/feature-videoRecord a feature walkthrough video and add to PR description
/agent-native-auditRun comprehensive agent-native architecture review
AgentPurpose
code-reviewerReviews for bugs, logic errors, security, and code quality
code-simplifierSimplifies code for clarity while preserving functionality
silent-failure-hunterIdentifies silent failures and inadequate error handling
comment-analyzerAnalyzes comments for accuracy and maintainability
pr-test-analyzerReviews test coverage quality and completeness
type-design-analyzerExpert analysis of type design and invariants
code-simplicity-reviewerFinal pass for YAGNI compliance and minimal complexity
AgentPurpose
architecture-strategistEvaluates system design decisions and component boundaries
security-sentinelSecurity audits, vulnerability assessment, OWASP compliance
performance-oracleAnalyzes performance, algorithms, bottlenecks, scalability
agent-native-reviewerEnsures features are accessible to agents, not just humans
pattern-recognition-specialistDetects design patterns, anti-patterns, and code duplication
AgentPurpose
kieran-rails-reviewerStrict Rails conventions and quality review
kieran-python-reviewerStrict Python conventions and quality review
kieran-typescript-reviewerStrict TypeScript conventions and quality review
dhh-rails-reviewerRails review from DHH’s perspective — anti-pattern detection
julik-frontend-races-reviewerFrontend race condition detection in JS/Stimulus
AgentPurpose
data-integrity-guardianDatabase migrations, data constraints, referential integrity
data-migration-expertValidates ID mappings, rollback safety, data transformations
deployment-verification-agentPre/post-deploy checklists, SQL verification, rollback plans
AgentPurpose
framework-docs-researcherFetches comprehensive framework docs and best practices
learnings-researcherSearches institutional learnings in docs/solutions/
best-practices-researcherGathers external best practices from documentation and OSS
git-history-analyzerArchaeological analysis of git history and code evolution
repo-research-analystComprehensive repository structure and pattern analysis
AgentPurpose
figma-design-syncSynchronizes implementation with Figma designs
design-implementation-reviewerVerifies UI matches Figma specifications
design-iteratorIterative design refinement through N screenshot-analyze-fix cycles
SkillTrigger
frontend-designBuild web components with high design quality
agent-native-architectureDesign apps where agents are first-class citizens
dspy-rubyRuby framework for type-safe, composable LLM apps
andrew-kane-gem-writerWrite Ruby gems following Andrew Kane patterns
dhh-rails-styleWrite Ruby/Rails code in DHH’s 37signals style
SkillTrigger
brainstormingExplore intent and approaches before implementation
git-worktreeManage Git worktrees for isolated parallel development
file-todosManage file-based todo tracking system
every-style-editorReview and edit text for Every’s style guide
compound-docsCapture solved problems as categorized documentation
SkillTrigger
agent-browserBrowser automation using Vercel’s agent-browser CLI
rcloneUpload and sync files across cloud storage providers
gemini-imagegenGenerate and edit images using Gemini API
xcode-testBuild and test iOS apps on simulator
skill-creatorGuide for creating effective new skills
HookEventPurpose
SessionStartSession initializationSet up context, load memories
PreToolUseBefore tool executionValidate, block dangerous commands
PostToolUseAfter tool executionProcess results, trigger follow-ups
StopAgent completionFinal checks, cleanup
UserPromptSubmitUser sends messagePre-process user input

The /review-pr command launches multiple specialized agents in parallel:

┌─────────────────────────────────────────────────┐
│                  /review-pr                      │
├─────────────────────────────────────────────────┤
│  ┌──────────┐  ┌──────────┐  ┌──────────┐      │
│  │ Code     │  │ Security │  │ Perf     │      │
│  │ Reviewer │  │ Sentinel │  │ Oracle   │      │
│  └────┬─────┘  └────┬─────┘  └────┬─────┘      │
│       │              │              │            │
│  ┌────┴─────┐  ┌────┴─────┐  ┌────┴─────┐      │
│  │ Silent   │  │ Type     │  │ Pattern  │      │
│  │ Failure  │  │ Design   │  │ Recog.   │      │
│  └────┬─────┘  └────┬─────┘  └────┴─────┘      │
│       └──────────┬───┘──────────────┘            │
│            Consolidated Report                   │
└─────────────────────────────────────────────────┘
# 1. Brainstorm the approach
/brainstorm

# 2. Create a structured plan
/plan

# 3. Deepen with research agents
/deepen-plan

# 4. Execute autonomously
/lfg

# 5. Review the PR
/review-pr

# 6. Document what you learned
/compound
# Resolve all PR comments in parallel
/resolve_pr_parallel

# Or resolve TODOs across the codebase
/resolve_parallel
# Generate a new slash command
/generate_command

# Create a new skill
Use the skill-creator skill for guidance
compound-engineering/
├── plugin.json          # Plugin manifest
├── commands/            # Slash command definitions
│   ├── lfg.md
│   ├── plan.md
│   ├── review-pr.md
│   └── ...
├── agents/              # Agent definitions
│   ├── code-reviewer.md
│   ├── security-sentinel.md
│   └── ...
├── skills/              # Skill definitions
│   ├── frontend-design/
│   ├── agent-native-architecture/
│   └── ...
└── hooks/               # Event hooks
    ├── session-start.md
    └── ...

Agents are defined in Markdown files with YAML frontmatter:

---
name: "code-reviewer"
description: "Reviews code for bugs, logic errors, and quality"
tools:
  - Glob
  - Grep
  - Read
  - Task
model: sonnet  # or opus, haiku
---
  • Start with /brainstorm before jumping into implementation — it surfaces edge cases early
  • Use /plan for anything non-trivial — even “simple” features benefit from structured thinking
  • Run /review-pr before merging — the multi-agent review catches issues single-pass reviews miss
  • Document with /compound — institutional knowledge prevents repeating mistakes
  • Use /deepen-plan for complex features — research agents add depth from docs and best practices
  • Leverage parallel resolution/resolve_parallel handles TODOs faster than sequential fixes
  • Create custom skills for repeated patterns — encapsulate domain knowledge for reuse
  • Use haiku model for quick agents — minimize cost and latency for straightforward tasks
IssueSolution
Agent not foundVerify plugin path in Claude Code settings and restart
Command not recognizedRun /help to list available commands, check plugin.json
Agent returns emptyCheck model availability, may need API key for opus/sonnet
Slow multi-agent reviewUse haiku model for quick agents, sonnet for critical ones
Skill not triggeringCheck skill description matches your prompt phrasing
Hook not firingVerify hook event type matches (PreToolUse vs PostToolUse)
Plan too vagueUse /deepen-plan with research agents for more detail
Review misses contextProvide the PR URL or branch name explicitly to /review-pr