A language-agnostic, framework-agnostic repository template for document-driven AI coding agent development.
AI coding agents are powerful but undisciplined by default. They skip context, forget architecture rules, and produce code that drifts from your design. This template provides a structured documentation system that keeps agents in line: read docs before writing code, plan before executing, write tests before implementation, and keep documentation in sync with code.
- Quick Start
- Adopting in Existing Projects
- Repository Structure
- Core Concepts
- Documentation Integrity Check
- Customization
- Compatibility
- Inspiration
- License
- Click "Use this template" on GitHub to create a new repo
- Edit
AGENTS.mdand fill in the<!-- CUSTOMIZE -->sections with your tech stack, commands, and coding rules - Edit
ARCHITECTURE.mdto document your project's structure and layering rules - Start developing. The agent will follow the workflow defined in
AGENTS.md
If you already have a project and want to adopt this documentation framework, use the bootstrap prompt. An AI agent will analyze your project and generate all documentation files pre-filled with real content (not empty templates).
# Claude Code
claude "Read https://raw.githubusercontent.com/Sukitly/agentic-docs-templates/main/bootstrap.md and follow the instructions to set up agentic docs for this project."Or download first:
curl -sO https://raw.githubusercontent.com/Sukitly/agentic-docs-templates/main/bootstrap.md
claude "Read bootstrap.md and follow the instructions to set up agentic docs for this project."The bootstrap prompt works with any AI coding agent. It will analyze your project (tech stack, architecture, conventions, existing docs), confirm findings with you, generate all documentation files with real content, and verify documentation integrity automatically.
See bootstrap.md for details.
├── AGENTS.md # Agent instructions (rules, workflow, checklists)
├── ARCHITECTURE.md # Architecture map (customize per project)
├── bootstrap.md # Bootstrap prompt for existing projects
├── docs/
│ ├── STATE.md # Application state snapshot
│ ├── DECISIONS.md # Decision log
│ ├── QUALITY_SCORE.md # Module quality ratings
│ ├── TESTING.md # Testing strategy
│ ├── product-specs/
│ │ ├── knowledge-base.md # Feature descriptions, file paths, data model
│ │ ├── glossary.md # Canonical terms and definitions
│ │ └── product-roadmap.md # Product direction
│ ├── design-docs/
│ │ └── index.md # Design document index
│ ├── exec-plans/
│ │ ├── index.md # Execution plan index
│ │ ├── active/ # In-progress plans
│ │ ├── completed/ # Done plans
│ │ └── tech-debt.md # Tech debt tracker
│ ├── templates/
│ │ ├── design-doc.md # Template for design documents
│ │ └── exec-plan.md # Template for execution plans
│ └── references/ # External guides and references
├── scripts/
│ └── check-docs.py # Documentation integrity checker
└── .gitignore
The agent is bound by five rules defined in AGENTS.md:
- Read docs first. Understand context before touching code.
- Docs before code. Create a Design Doc or Exec Plan when the criteria are met.
- Plan before execute. Present the planned changes and wait for approval.
- Self-review and update docs. Run the checklist and keep docs in sync after every change.
- Tests first. Use TDD for core business logic.
| Type | When to Create | Template |
|---|---|---|
| Design Doc | New module, cross-module refactor, new dependency, 2+ viable approaches | docs/templates/design-doc.md |
| Exec Plan | ≥3 modules affected, DB migrations, ordered dependencies | docs/templates/exec-plan.md |
Task received
→ Read relevant docs
→ Create Design Doc / Exec Plan if needed
→ Get user approval
→ Write tests (TDD for core logic)
→ Implement
→ Run self-review checklist
→ Update affected docs
→ Done ✅
The included Python script verifies documentation health:
python3 scripts/check-docs.py
# or via uv
uv run scripts/check-docs.pyIt checks that all relative Markdown links point to existing files, that index.md files cover all docs in their directories, that exec plans have the required frontmatter fields and sections, and that paths referenced in ARCHITECTURE.md actually exist.
No dependencies required. Just Python 3.
Search for <!-- CUSTOMIZE --> comments across all files to find sections you need to fill in:
AGENTS.md: commands, tech stack, coding rules, testing rulesARCHITECTURE.md: directory structure, layering rules, conventionsdocs/TESTING.md: test categories, directories, commands, coverage goalsdocs/product-specs/knowledge-base.md: features, data model, file paths
AGENTS.md is natively supported by most AI coding agents, including Codex, Cursor, Gemini CLI, pi, and others.
Note: Claude Code uses
CLAUDE.mdinstead — simply rename or symlink fromAGENTS.md.
This template is heavily inspired by OpenAI's Harness Engineering approach to AI-assisted development, combined with practical lessons from real-world projects.
MIT