The Problem
Fast isn't the same as good. Without structure, AI-generated code tends to be untestable, insecure, and impossible to maintain at scale.
"I'll also add..." — features you never asked for, silently introduced. You find out at code review.
Database pattern, framework choice, architecture — picked without asking. You discover the consequences too late.
Ships code that doesn't build or breaks tests. "It should work" is not a quality gate for production.
Every session starts from zero. You re-explain the same architecture decisions to a blank-slate AI every single time.
"A blacksmith doesn't hand raw iron to a customer.
They heat it, hammer it, and temper it until it holds its edge."
Plan Forge does the same for your AI-generated software.
Features
Every project gets a full suite of guardrails, specialized reviewers, and automated validation — whether you ask for them or not.
Automatic protection at two levels. The baseline ships with every preset. The project profile is generated per-project via an interview prompt.
Architecture principles, OWASP security, TDD, error handling, type safety, async patterns. Ships automatically. No configuration needed.
Coverage targets, latency SLAs, compliance requirements, domain-specific rules — generated from a one-time interview and stored in the repo.
Dedicated AI reviewer personas — each focused on one concern, checking it deeply.
Instruction files load automatically based on the file being edited. Editing SQL? Database guardrails load. Editing auth? Security guardrails load. No action needed.
Multi-step executable procedures with validation gates between steps.
/database-migration
/staging-deploy
/test-sweep
/code-review
15 prompt templates for generating consistent code patterns — entities, services, controllers, tests, DTOs, workers, and more — all following your project's architecture.
Hooks run automatically at agent lifecycle points — blocking edits to forbidden paths, warning on TODO markers, auto-formatting, and alerting when code ships without tests.
Run pforge smith to inspect your forge before you build. Diagnoses your environment, VS Code configuration, setup health, version currency, and common problems — with actionable fix suggestions for every issue.
Drop one line into your GitHub workflow to validate plans on every PR — setup health, file counts, placeholders, orphans, plan artifacts, and code sweep.
- uses: srnichols/plan-forge-validate@v1
Auto-imports Spec Kit specs, plans, and constitutions. Shared extension catalog. Write specs with Spec Kit, enforce them with Plan Forge.
See the combined workflow →Expose forge commands as native MCP tools — any agent with MCP support can invoke forge_smith, forge_sweep, forge_diff, forge_analyze as function calls. Auto-configured during setup. Composable with OpenBrain.
| Type | What It Is | When It Runs | Example |
|---|---|---|---|
| 📋 Instruction | Coding rules the AI must follow | Auto-loads when you edit a matching file | security.instructions.md |
| 📐 Prompt | Scaffolding recipe you attach in chat | When you reference it in Copilot Chat | new-entity.prompt.md |
| 🤖 Agent | Specialized reviewer persona | When you pick it from the agent dropdown | security-reviewer.agent.md |
| ⚙️ Skill | Multi-step procedure with validation | When you type /skill-name |
/database-migration |
Instructions = passive rules (auto-loaded). Prompts = recipes (you trigger). Agents = reviewers (you pick). Skills = workflows (you invoke).
Persistent Memory
Every decision you make, every pattern you establish, every lesson learned — captured once and searchable forever. Across sessions, across AI tools, across projects.
Plan Forge agents automatically capture architecture decisions, patterns, and postmortems as they work — tagged by project, phase, and slice. The Shipper (Step 6) batch-captures lessons learned after every feature.
Semantic vector search understands intent. Ask "what did we decide about caching?" and find it — even if you never used exactly those words in the original thought.
Works with GitHub Copilot, Claude, Cursor, ChatGPT, Gemini, Windsurf, and 9+ more via the MCP protocol. Captured in one session, retrieved in the next — no re-explaining.
Unified System Architecture
Combine Plan Forge with OpenBrain and OpenClaw to build a closed-loop development system — where AI agents plan, build, remember, and communicate across every surface you use.
✅ Plan Forge works fully standalone — these are optional power-ups, not requirements.
The Blueprint
What to build, how to build it, and when to stop. Guardrails, pipeline, and execution contracts.
The Memory
Why we decided, what we learned, what failed. Persistent semantic memory across every session and every tool.
The Nervous System
Always-on AI gateway across 20+ channels. Start a build from your phone at 3am, get a Slack notification when the review passes.
Plan Forge ships with OpenBrain integration hooks across 106+ files — ready to connect the moment you deploy OpenBrain.
Read the Unified System Architecture →Results
Quick Start
One setup script bootstraps your entire guardrails stack — instruction files, agents, skills, hooks, and Copilot config.
Open Copilot Chat (Agent Mode), Claude Code, or Cursor in your project — paste this prompt. The AI reads the setup guide, detects your stack, installs everything, customizes the files, and validates. Zero manual steps.
Clone https://github.com/srnichols/plan-forge into a temporary directory. Read its AGENT-SETUP.md file completely and follow the instructions exactly:
1. Scan THIS project's root directory and auto-detect the tech stack from marker files (*.csproj = dotnet, go.mod = go, package.json + tsconfig.json = typescript, pom.xml = java, pyproject.toml = python, *.bicep = azure-iac). If multiple stacks exist, combine them.
2. Detect which AI tool is running this prompt and set the -Agent flag:
- GitHub Copilot → -Agent copilot (default, can omit)
- Claude Code → -Agent claude
- Cursor → -Agent cursor
- Codex CLI → -Agent codex
- Not sure → -Agent all (installs all agent formats)
3. Run the Plan Forge setup script non-interactively:
.\setup.ps1 -Preset <detected> -Agent <detected-agent> -ProjectPath "." -ProjectName "<this folder name>" -Force
4. After setup completes, customize the generated files:
- Edit .github/copilot-instructions.md with this project's actual name, tech stack, build/test/lint commands, and architecture
- If CLAUDE.md was generated, verify it looks correct
- Edit docs/plans/DEPLOYMENT-ROADMAP.md with a first phase placeholder
5. Run .\pforge.ps1 smith to inspect the forge and confirm all checks pass.
6. If mcp/server.mjs was installed, run: cd mcp && npm install (activates 8 forge MCP tools).
7. If specs/ or memory/constitution.md exist (Spec Kit project), note that Step 0 will auto-detect and offer to import them.
8. Show me a summary of what was installed and any issues found.
Works with GitHub Copilot (Agent Mode), Claude Code, Cursor, or any AI tool with terminal access.
# Click "Use this Template" on GitHub, or clone directly:
git clone https://github.com/srnichols/plan-forge.git my-project-plans
cd my-project-plans
# Interactive wizard picks your stack (setup.sh for macOS/Linux):
.\setup.ps1
# Or specify directly (PowerShell / Bash):
.\setup.ps1 -Preset dotnet # .NET / C#
.\setup.ps1 -Preset typescript # TypeScript / React
.\setup.ps1 -Preset python # Python / FastAPI
.\setup.ps1 -Preset java # Java / Spring Boot
.\setup.ps1 -Preset go # Go / Chi / Gin
.\setup.ps1 -Preset azure-iac # Azure Bicep / Terraform / azd
# Add support for other AI agents (optional):
.\setup.ps1 -Preset dotnet -Agent claude # + Claude Code
.\setup.ps1 -Preset dotnet -Agent all # + Claude + Cursor + Codex
Installs instruction files, agents, skills, lifecycle hooks, and copilot-instructions.md into your project. Add -Agent to generate native files for Claude, Cursor, or Codex.
VS Code + Copilot: Agent Mode → select Specifier from the agent picker. Claude Code: invoke /planforge-step0-specify-feature. Cursor: run the planforge.step0-specify-feature command. Type one sentence — the pipeline runs from there.
I want to add user authentication with JWT tokens and
role-based access control to the admin panel.
Using Claude, Cursor, or Codex? The -Agent flag generated native skills and commands — invoke them directly in your tool. Or use the copy-paste prompts from the runbook in any AI tool.
Who it's for
Different roles, same framework. Click your path.
Give your AI this single prompt. It reads AGENT-SETUP.md, auto-detects the tech stack, runs the setup script non-interactively, and customizes the generated files. No manual steps.
Read the file AGENT-SETUP.md in the plan-forge repo root.
Follow the instructions exactly:
1. Scan this project and detect the tech stack
2. Detect which AI agent you are (Copilot/Claude/Cursor/Codex) for the -Agent flag
3. Run setup.ps1 (or setup.sh) non-interactively with the correct -Preset and -Agent flags plus -Force
4. Customize copilot-instructions.md with this project's actual details
5. Run pforge smith to validate the setup
6. If mcp/server.mjs exists, run: cd mcp && npm install (activates MCP tools)
7. Note any Spec Kit artifacts found (specs/, memory/constitution.md)
Repo: https://github.com/srnichols/plan-forge
Target project: (current directory)
*.csproj → dotnet · go.mod → go · pom.xml → java · tsconfig.json → typescript · pyproject.toml → python · *.bicep → azure-iac
Read the README — specifically What Is This? (Plain English) — to understand the 4-layer system.
Clone the template and run .\setup.ps1 — the interactive wizard asks your stack and bootstraps everything.
Follow docs/QUICKSTART-WALKTHROUGH.md — a step-by-step walkthrough of your first feature build.
Run .\setup.ps1 -Preset <your-stack> — installs instruction files, agents, and skills directly into your project's .github/ folder.
Read CUSTOMIZATION.md to fill in your project profile, generate domain-specific guardrails, and set up the project principles workshop.
Read docs/COPILOT-VSCODE-GUIDE.md — how Agent Mode works, how instruction files auto-load, managing context budget, and memory bridging.
Open Copilot Chat → Agent Mode → pick Specifier → describe your first feature. The pipeline runs from there.
Run .\setup.ps1 -Preset <your-stack> or ./setup.sh --preset <your-stack>. Works on Windows (PowerShell), macOS, and Linux.
Read docs/CLI-GUIDE.md — how to run the pipeline from the terminal using pforge.ps1 / pforge.sh helper scripts.
Copy prompts from the runbook into any terminal-based AI agent (Claude Code, Copilot CLI, Aider, etc.). Same pipeline, no IDE required.
Run setup with your primary stack. For microservices with infra: .\setup.ps1 -Preset dotnet,azure-iac installs both app guardrails and IaC guardrails in one pass.
Run the Project Profile workshop (/project-profile) — generates coverage targets, latency SLAs, and compliance requirements from a short interview, stored per-repo.
Run the Project Principles workshop — captures non-negotiables, forbidden patterns, and architectural commitments that every AI session loads automatically.
Add an org-rules.instructions.md with your internal standards (naming conventions, approved libraries, compliance gates). It auto-loads on every session.
Compatibility
Advanced integration with VS Code + GitHub Copilot. First-class support for Claude Code, Cursor, and Codex CLI. Copy-paste prompts work with any AI tool.
| Feature | 🐙 Copilot | 🤖 Claude | ⚡ Cursor | 📟 Codex | Others |
|---|---|---|---|---|---|
| Project context | ✅ | ✅ | ✅ | ✅ | 📋 |
| 16 guardrail files | ✅ auto | ✅ embedded | ✅ embedded | — | 📋 |
| Pipeline prompts (7) | ✅ | ✅ | ✅ | ✅ | 📋 |
| Scaffolding prompts (15+) | ✅ | ✅ | ✅ | ✅ | 📋 |
| Reviewer agents (18) | ✅ picker | ✅ skills | ✅ cmds | ✅ skills | 📋 |
| MCP tools (9 forge operations) | ✅ native | ✅ native | ✅ native | — | — |
| File-type awareness | ✅ native | ✅ guided | ✅ guided | — | — |
| Post-edit scanning | ✅ hook | ✅ MCP | ✅ MCP | — | — |
| Scope drift detection | ✅ hook + MCP | ✅ MCP | ✅ MCP | — | — |
| Forbidden path blocking | ✅ enforced | ⚡ advisory | ⚡ advisory | — | — |
| Pipeline handoff buttons | ✅ click | ⚡ guided | ⚡ guided | — | — |
✅ = native/MCP tool · ⚡ = instruction-guided · 📋 = copy-paste prompts · MCP = with mcp/server.mjs running
Plan Forge is free, open source, and ready to use in minutes. Your AI assistant is about to get a lot more disciplined.
MIT Licensed · GitHub Template · No vendor lock-in · Works with any AI tool