## What it does
Context Forge (v4.0.0) is a CLI that generates the complete modern Claude Code project surface from a 10-screen Ink TUI wizard (ESC = back, Enter = advance, Ctrl-C = exit). It produces:
- CLAUDE.md — tech-stack-aware project rules with KISS/YAGNI directives and pre-commit checklist
- .claude/settings.json — schema-locked, wires all 8 Claude Code hook lifecycle events (PreToolUse, PostToolUse, SessionStart, UserPromptSubmit, PreCompact, Stop, SubagentStop, Notification) plus mcpServers, statusLine, outputStyles, and permissions
- .claude/agents/ — 5 default sub-agents: code-reviewer, test-runner, plan-architect, security-auditor, prp-executor
- .claude/skills/ — 3 default skills: testing-protocol (renders test command/framework), deployment-checklist (tailored to detected deploy target), codebase-navigation
- .claude/commands/ — 21 slash commands across 6 subdirs: PRPs/, orchestration/, checkpoints/, quality/, session/, migration/
- .claude/hooks/ — 14 bash scripts + 4 Python scripts registered through settings.json
- PRPs/ — Product Requirement Prompts, optionally AI-enhanced via Anthropic or OpenAI API
- Docs/ — staged Implementation.md, project_structure.md, UI_UX_doc.md, Bug_tracking.md
Also supports analyze (retrofit existing codebases), enhance (plan new features), migrate (plan stack migrations), validate (run quality gates), run-prp (execute a PRP end-to-end), orchestrate (deploy autonomous agent teams via tmux), and dashboard commands.
## Key commands
- context-forge init — run the 10-screen TUI wizard to scaffold the full surface
- context-forge init --no-tui — use the legacy inquirer flow for CI or non-TTY environments
- context-forge init --ai-prp — add AI-generated Product Requirement Prompts to the output
- context-forge analyze — detect an existing project's tech stack and retrofit CLAUDE.md and PRPs
- context-forge enhance — plan and scaffold a new feature with PRPs and progress-tracking commands
- context-forge migrate — plan a tech-stack migration with phased execution and rollback procedures
- context-forge validate — run the quality gate (lint, tests, coverage, build, security)
- context-forge run-prp <name> — execute a PRP end-to-end against the codebase
- /prp-create <feature> — generate a PRP for a new feature (slash command)
- /prp-execute <name> — execute an existing PRP (slash command)
- /validate — run the full validation gate from inside Claude Code
- /checkpoint-create <name> — create a named working-state checkpoint
## Install
npm install -g context-forge
context-forge init
Or run without installing:
npx context-forge init
For AI-powered PRPs, set up the API key first:
context-forge ai-keys --provider anthropic
## When to use
Use when starting a new project and you want the entire modern .claude/ surface — hooks, agents, skills, commands, PRPs — wired correctly in one command rather than assembled by hand.