Template repository for projects developed with multiple AI coding agents under one shared workflow. Runtime definitions select the enabled agents.
It ships the parts that are the same in every project — the Issue workflow, per-Issue git worktrees, independent reviewer-role review, multi-Issue orchestration, documentation review criteria, and the Agent Skills that drive them — so a new project starts with the operating model already in place.
| Area | What you get |
|---|---|
| Agent entry docs | AGENTS.md (canonical), CLAUDE.md, GEMINI.md sharing one identical instruction block |
| Subagent definitions | .claude/agents/, .agents/agents/ — a reasoning subagent and a mechanical-execution subagent |
| Workflow skills | skills/{create-issue,issue-implementation,handoff-issue,orchestrate-issues-implementation}, linked from .claude/skills/ and .agents/skills/ |
| Issue worktrees | scripts/issue-worktree.sh — one guarded worktree per Issue, with session leases and handoff epochs |
| Reviewer role and orchestration | scripts/issue-*.mjs — verified agent/model route discovery, role dispatch (implementer / planner / reviewer), dependency-ordered multi-Issue plans, optional LangGraph runner |
| Documentation review | skills/{requirements,architecture,design-doc}-review — review criteria owned by each skill |
| Commit guards | .githooks/pre-commit quality gates; a Claude Code PreToolUse hook that blocks commits outside an Issue worktree |
| Docs | docs/ — requirements, architecture, development, testing, security, dependency security, GitHub operations |
| CI | shellcheck for the hook and helper scripts; Dependabot config |
After creating a repository from this template:
README.md— project name, setup, and usageAGENTS.md— fill in the shared sections (Project Overview, Product Principles, Scope, Out of Scope, Tech Stack, Security), then mirror the same block intoCLAUDE.mdandGEMINI.mddocs/requirements.md— product requirements, with the non-negotiables in §8docs/architecture.md— technology selection and boundaries- Optional
.ai-template/config.json— copyconfig/ai-template.example.jsonfor the base branch, quality-gate commands and document paths. Omitted commands and locations come fromAGENTS.md. docs/development.md— commands and quality gates (thepre-commithook runsnpm run format,lint, andtypecheck; adjust.githooks/pre-committo the project's real commands)
Then create the priority:P0–priority:P3 labels described in
docs/github-operations.md §11.2.
bash scripts/setup-hooks.sh
npm ci # only needed for the scripts/issue-*.mjs orchestration toolssetup-hooks.sh sets git config --local core.hooksPath .githooks, which
applies to every worktree of the clone.
Required commands: bash, git, jq, and gh. Node.js (version in .nvmrc)
is needed for orchestration, generation and worktree ownership operations. Recommended: shellcheck. Agent CLIs
declared by agents/runtimes/*.json are used as worker or reviewer routes only
after a headless probe verifies them at run time.
- File an Issue with the
create-issueskill: one type label, an optionalpriority:P0..P3label, and nativeBlocked bydependencies. GitHub Projects are not used. - Implement it with the
issue-implementationskill. It creates the Issue's worktree throughscripts/issue-worktree.sh, so agents never commit on the primary clone. - Review before the PR. The implementer dispatches one reviewer on a
different verified agent route
(
scripts/issue-dispatch.mjs --role reviewer). The verdict (PASS/NEEDS_REVISION/REJECTED) is posted as an Issue comment;NEEDS_REVISIONallows one fix pass that is not re-reviewed. - Open the PR and watch CI, with at most three bounded CI fix cycles.
- Hand off with the
handoff-issueskill if the session ends or the agent changes. Inherited work in progress is preserved, never stashed or reset. - Coordinate several Issues with the
orchestrate-issues-implementationskill: it plans fromBlocked bydependencies, assigns verified routes at run time, and releases dependents only after the configured milestone. - Merge and clean up per
docs/github-operations.md§9.
shellcheck .githooks/pre-commit scripts/*.sh .claude/hooks/*.sh
bash scripts/test-issue-worktree.sh
npm run test:orchestratorAGENTS.md— canonical AI coding instructionsdocs/README.md— documentation index and ownership guideskills/README.md— Agent Skill index and the tools each skill callsdocs/github-operations.md— Issue, branch, worktree, review, and merge workflowdocs/development.md— setup, commands, and orchestration usage