A portable template repo for hardening a software project idea before implementation.
The workflow starts from a rough idea, generates project.md, then runs gated AI passes for architecture, implementation, planning, data security, and final risk review. Prompts are plain Markdown so they can work in OpenCode, Claude Code, Cursor, ChatGPT, or similar tools.
- Create a new repo from this template.
- Run
npm run init:project. - Tell your AI agent:
Run /project-brief using my project idea: <your idea>. - Continue through the commands in order.
- Run
npm run check:gatesto verify the next blocked gate.
Shared rules live in .ai/workflow.md.
Commands live in .ai/commands:
/project-brief->project.md/architecture->architecture.md/implementation->implementation.md/planning->plan.md/security->security.md/review-> final readiness review
If your AI environment does not support slash commands directly, paste or reference the matching Markdown file.
project.mdproduct intent and constraintsarchitecture.mdCTO-level decisionsimplementation.mdimplementation decisionsplan.mdsequencing, checkpoints, verification, and open decisionssecurity.mddata security, privacy, abuse, and operational safety decisionsfuture-concerns.mddeferred risksmanifest.local.mdlocal workflow state, gitignored
- Strict gates: each phase must pass before the next starts.
- Multiple choice first: every major decision includes
Need more info. - No silent assumptions: ambiguous answers require a follow-up before recording.
- Durable context: decisions are written to Markdown source-of-truth files.
- Light automation: scripts scaffold and validate files, but never make product decisions.