Claude Code Tools

all-for-claudecode

official

Claude Code plugin that automates the full dev cycle — spec, plan, implement, review, clean.

Version
2.14.0
Last Updated
2026-03-20
Source
official
all-for-claudecode

all-for-claudecode

Claude Code plugin that automates the full development cycle — spec → plan → implement → review → clean.

CI npm version npm downloads license GitHub stars

One command (/afc:auto) runs the entire cycle. Zero runtime dependencies — pure markdown commands + bash hook scripts.

Quick Start

# Option A: Inside Claude Code
/plugin marketplace add jhlee0409/all-for-claudecode
/plugin install afc@all-for-claudecode

# Option B: npx
npx all-for-claudecode

Then:

/afc:setup                             # Set up global routing in ~/.claude/CLAUDE.md
/afc:init                              # Detect your stack, generate project config
/afc:auto "Add user authentication"    # Run the full pipeline

The pipeline will:

  1. Write a feature spec with acceptance criteria
  2. Design an implementation plan with file change map
  3. Implement tasks with CI gates (auto task decomposition + parallel execution)
  4. Run code review with architecture/security agent analysis
  5. Clean up artifacts and prepare for commit

How It Works

/afc:auto "Add feature X"

Spec (1/5) → Plan (2/5) → Implement (3/5) → Review (4/5) → Clean (5/5)
  │              │              │                │              │
  │              │              │                │              └─ Artifact cleanup
  │              │              │                └─ 8 perspectives + agent review
  │              │              └─ Auto task decomposition, parallel execution, CI gates
  │              └─ File change map, ADR recording, research persistence
  └─ Acceptance criteria, pre-implementation gates

Skill Advisor checkpoints (A–E) between phases dynamically invoke
auxiliary skills (ideate, consult, architect, security, test, qa, learner)
when LLM evaluation detects they would add value. Budget: max 5 per run.

Hooks run automatically at each step.
CI failure → debug-based RCA (not blind retry).
Critic Loops verify quality at each gate until convergence.

Walkthrough: What a Pipeline Run Looks Like

Running /afc:auto "Add password reset flow" produces this (abbreviated):

Spec (1/5) — Generates spec.md with requirements and acceptance criteria:

FR-001: POST /auth/reset sends email with token
FR-002: GET /auth/reset/:token validates and shows form
FR-003: Token expires after 1 hour
Acceptance: Given expired token, When user submits, Then show error

Plan (2/5) — Creates plan.md with file change map and architecture decisions:

File Change Map:
  src/routes/auth.ts        — ADD reset endpoint handlers
  src/services/email.ts     — ADD sendResetEmail()
  src/middleware/validate.ts — MODIFY add token validation
  tests/auth.test.ts        — ADD reset flow tests

Implement (3/5) — Auto-decomposes into tasks, executes with CI gates:

Tasks: 4 total (2 parallel)
  [1] Add reset endpoint     ✓
  [2] Add email service       ✓  ← parallel with [1]
  [3] Add token validation    ✓  ← depends on [1]
  [4] Add tests               ✓
CI: npm test → passed

Review (4/5) — 8-perspective review + specialist agent analysis:

Architecture (afc-architect): ✓ layer boundaries respected
Security (afc-security): ⚠ rate-limit reset endpoint
Performance: ✓ no N+1 queries
→ Auto-fixed: added rate limiter middleware

Clean (5/5) — Removes pipeline artifacts, final CI check.

Slash Commands

CommandDescription
/afc:autoFull Auto pipeline — runs all 5 phases
/afc:specWrite feature specification with acceptance criteria
/afc:planDesign implementation plan with file change map
/afc:implementExecute code implementation with CI gates
/afc:testTest strategy planning and test writing
/afc:reviewCode review with architecture/security scanning
/afc:cleanPipeline artifact cleanup and codebase hygiene
/afc:researchTechnical research with persistent storage
/afc:debugBug diagnosis and fix
/afc:initProject setup — detects stack and generates project config
/afc:setupGlobal CLAUDE.md configuration — injects/updates AFC routing block
/afc:doctorDiagnose project health and plugin setup
/afc:architectArchitecture analysis (persistent memory)
/afc:securitySecurity scan (persistent memory, isolated worktree)
/afc:principlesProject principles management
/afc:checkpointSave session state
/afc:resumeRestore session state
/afc:tasksTask decomposition (auto-generated by implement)
/afc:ideateExplore and structure a product idea
/afc:launchGenerate release artifacts (changelog, tag, publish)
/afc:validateVerify artifact consistency
/afc:analyzeGeneral-purpose code and component analysis
/afc:qaProject quality audit — test confidence, error resilience, code health
/afc:consultExpert consultation (backend, infra, PM, design, marketing)
/afc:triageAnalyze open PRs and issues in parallel
/afc:issueAnalyze a single GitHub issue and create actionable document
/afc:resolveAnalyze and address LLM bot review comments on a PR
/afc:pr-commentGenerate structured PR review comments
/afc:release-notesGenerate release notes from git history
/afc:learnerReview and promote learned patterns to project rules
/afc:clarifyResolve spec ambiguities

Individual Command Examples

# Write a spec for a specific feature
/afc:spec "Add dark mode toggle"

# Design a plan from an existing spec
/afc:plan

# Debug a specific error
/afc:debug "TypeError: Cannot read property 'user' of undefined"

# Run code review on current changes
/afc:review

# Explore and structure a product idea
/afc:ideate "real-time collaboration feature"

# Triage open PRs and issues
/afc:triage              # all open PRs + issues
/afc:triage --pr         # PRs only
/afc:triage --deep       # deep analysis with diff review
/afc:triage 42 99        # specific items by number

Hook Events

Every hook fires automatically — no configuration needed after install.

HookWhat it does
SessionStartRestores pipeline state on session resume
PreCompactAuto-checkpoints before context compression
PreToolUseBlocks dangerous commands (push --force, reset --hard)
PostToolUseTracks file changes + auto-formats code
SubagentStartInjects pipeline context into subagents
StopCI gate (shell) + code completeness check (shell)
SessionEndWarns about unfinished pipeline
PostToolUseFailureDiagnostic hints for known error patterns
NotificationDesktop alerts (macOS/Linux)
TaskCompletedCI gate (shell) + acceptance criteria verification (LLM)
SubagentStopTracks subagent completion in pipeline log
UserPromptSubmitInactive: detects intent keywords and suggests matching afc skill. Active: injects Phase/Feature context + drift checkpoint at threshold prompts
PermissionRequestAuto-allows CI commands during implement/review
ConfigChangeAudits/blocks settings changes during active pipeline
TeammateIdlePrevents Agent Teams idle during implement/review
WorktreeCreateSets up worktree isolation for parallel workers
WorktreeRemoveCleans up worktree after worker completion

Handler types: command (shell scripts, all events), prompt (LLM single-turn, TaskCompleted).

Persistent Memory Agents

AgentRole
afc-architectRemembers ADR decisions and architecture patterns across sessions. Auto-invoked during Plan (ADR recording) and Review (architecture compliance).
afc-securityRemembers vulnerability patterns and false positives across sessions. Auto-invoked during Review (security scanning). Runs in isolated worktree.
afc-impl-workerParallel implementation worker. Receives pre-assigned tasks from orchestrator. Ephemeral (no memory). Max 50 turns, auto-approve edits.
afc-pr-analystPR deep analysis worker for triage. Runs in isolated worktree with diff access. Max 15 turns.

Expert Consultation

Get advice from domain specialists — each with persistent memory of your project:

/afc:consult backend "Should I use JWT or session cookies?"
/afc:consult infra "How should I set up CI/CD?"
/afc:consult pm "How should I prioritize my backlog?"
/afc:consult design "Is this form accessible?"
/afc:consult marketing "How to improve SEO?"
/afc:consult legal "Do I need GDPR compliance?"
/afc:consult security "Is storing JWT in localStorage safe?"
/afc:consult advisor "I need a database for my Next.js app"

# Auto-detect domain from question
/afc:consult "My API is slow when loading the dashboard"

# Exploratory mode — expert asks diagnostic questions
/afc:consult backend
ExpertDomain
backendAPI design, database, authentication, server architecture
infraDeployment, CI/CD, cloud, monitoring, scaling
pmProduct strategy, prioritization, user stories, metrics
designUI/UX, accessibility, components, user flows
marketingSEO, analytics, growth, content strategy
legalGDPR, privacy, licenses, compliance, terms of service
securityApplication security, OWASP, threat modeling, secure coding
advisorTechnology/library/framework selection, ecosystem navigation

Features:

  • Persistent memory: experts remember your project’s decisions across sessions
  • Overengineering Guard: recommendations scaled to your actual project size
  • Domain adapters: industry-specific guardrails (fintech, ecommerce, healthcare)
  • Pipeline-aware: when a pipeline is active, experts consider the current phase context

Task Orchestration

The implement phase automatically selects execution strategy:

Parallel tasks in phaseMode
0Sequential — one task at a time
1–5Parallel Batch — concurrent Task() calls
6+Swarm — orchestrator pre-assigns tasks to worker agents (max 5)

Dependencies are tracked via DAG. CI gate + Mini-Review + Auto-Checkpoint run at each phase boundary.

Configuration

/afc:setup    # One-time: inject routing block into ~/.claude/CLAUDE.md
/afc:init     # Per-project: detect stack and generate .claude/afc.config.md
  • /afc:setup — Manages the AFC routing block in your global ~/.claude/CLAUDE.md. Run once after install and again after plugin updates. Idempotent — skips if version matches.
  • /afc:init — Auto-detects your tech stack (package manager, framework, architecture, testing, linting) and generates project-local config files. No manual preset selection needed.

Development Docs

DocumentPurpose
Skill Authoring GuideRules for writing effective SKILL.md files
Agent Authoring GuideRules for writing effective AGENT.md files
Context Management HarnessContext preservation, token efficiency, and compaction strategy
Orchestration ModesSequential, parallel batch, and swarm execution patterns
Critic Loop RulesConvergence-based quality verification protocol
Phase Gate ProtocolPhase transition validation
Expert ProtocolExpert consultation agent behavioral rules

FAQ

Does it work with any project?

Yes. Run /afc:init to auto-detect your stack. Works with JavaScript/TypeScript, Python, Rust, Go, and any project with a CI command.

Does it require any dependencies?

No. Pure markdown commands + bash hook scripts. No npm packages are imported at runtime.

What happens if CI fails during the pipeline?

Debug-based RCA: traces the error, forms a hypothesis, applies a targeted fix. Halts after 3 failed attempts with full diagnosis.

Can I run individual phases?

Yes. Each phase has its own command (/afc:spec, /afc:plan, /afc:implement, /afc:review, /afc:clean). /afc:auto runs them all.

What are Critic Loops?

Convergence-based quality checks after each phase. They evaluate output against criteria and auto-fix issues until stable. 4 verdicts: PASS, FAIL, ESCALATE (asks user), DEFER.

How many tokens does a pipeline run use?

Depends on project size and feature complexity. A typical /afc:auto run for a medium feature uses roughly the same as a detailed manual implementation session — the pipeline adds structure, not overhead.

Can I customize the pipeline behavior?

Yes. Edit .claude/afc.config.md to change CI commands, architecture rules, and code style conventions. The pipeline reads this config at every phase.

Does it work with monorepos?

Yes. Run /afc:init in the monorepo root. The init command detects workspace structure and configures accordingly.

Can multiple team members use it on the same repo?

Yes. Each developer runs their own pipeline independently. The .claude/afc.config.md config is shared (commit it to the repo), but pipeline state is local and session-scoped.

How is this different from Cursor / Copilot / other AI tools?

All-for-claudecode is not a code completion tool — it is a structured development pipeline. It enforces spec → plan → implement → review flow with quality gates, persistent memory agents, and CI verification at every step.

License

MIT