A reusable workflow template for collaborating with AI coding assistants (Claude Code and Codex).
- Copy this template into your new project repository
- Customize AGENTS.md with your project-specific technical details
- Start a session - the AI will follow the workflows automatically
your-project/
├── .claude/
│ ├── CLAUDE.md # Claude Code entry point
│ └── skills/ # Reusable workflow skills
│ ├── commit-push/ # Git workflow automation
│ ├── verify/ # Pre-completion checklist
│ ├── capture-learnings/ # Learning capture workflow
│ ├── refine/ # Meta-prompt optimizer
│ ├── architect/ # Systems design agent
│ ├── backend/ # Backend development agent
│ ├── frontend/ # Frontend development agent
│ ├── reviewer/ # Code review agent
│ └── security/ # Security audit agent
├── WORKFLOWS.md # Operational guidance (HOW to work)
├── AGENTS.md # Technical reference (WHAT the project is)
├── tasks/
│ └── lessons.md # Learning log
└── README.md # This file
This template establishes a collaboration model where:
- You are the Product Owner - you make decisions
- AI is your Technical Co-Founder - handles building, keeps you informed
- Learning is built-in - explanations, options, and knowledge capture
- Quality is non-negotiable - real products, not prototypes
- AGENTS.md - Fill in
[PROJECT-SPECIFIC]sections with your:- Project overview and architecture
- Tech stack
- Repository structure
- API endpoints (if applicable)
- Database schema (if applicable)
- Environment variables
- WORKFLOWS.md - Adjust thresholds, add project-specific patterns
- Skills - Add domain-specific skills as needed
- tasks/lessons.md - Will evolve naturally as you work
AI reads lessons.md → WORKFLOWS.md → AGENTS.md → understands context
AI follows 5-phase framework → explains as it goes → captures learnings
AI updates lessons.md → suggests improvements → documents progress
| Model | Role | Use For |
|---|---|---|
| Opus (latest) | Brains | Planning, architecture, complex decisions |
| Sonnet 4.5 | Hands | Implementation, editing, routine tasks |
Use freely. Adapt to your needs.