AI coding assistants work best when they understand your project. But each session often starts from scratch—you repeat context, paste snippets, and hope the agent remembers. This template fixes that.
It gives you a shared, structured context that both humans and AI agents read from—so everyone works from the same understanding.
A project template that gives AI coding assistants (and humans) a shared context so they can work effectively without re-explaining the project every time. Use it as a starting point for any new project where you want Cursor, GitHub Copilot, Claude, or similar tools to "get" your structure, conventions, and workflow from day one.
Imagine: You clone a repo. You open Cursor. The AI already knows your folder structure, your conventions, and what you're actively working on. No copy-pasting. No re-explaining. It's like onboarding a new teammate who's already read the docs.
Without this template:
- New session → paste context → agent forgets → repeat
With this template:
- New session → agent reads
AGENTS.mdand.agents/→ picks up where you left off
One source of truth, many agents. You might use Cursor today, Claude tomorrow, and Copilot in another project. Instead of maintaining separate instructions for each, you keep a single context—AGENTS.md and .agents/—that every tool reads from. Same structure, same conventions, no drift.
Collaboration without chaos. Shared context means everyone on the project—humans and AI—works from the same understanding. At the same time, each person can have their own plans and progress. The nested repo lets you version-control your plans locally without cluttering the main repo or stepping on teammates' work. Shared context for the team, personal context for you, and they don't collide.
Complex work across many sessions. Some initiatives take days or weeks and span dozens of agent sessions. Agents forget between sessions; plans and progress notes don't. You document what you're doing, where you left off, and what's next. When you resume, you (or any agent) run whats-next and pick up exactly where you were.
- Shared context —
AGENTS.mdas the single source of truth;.agents/for modular, detailed guidance - Plans & tasks — Structured way to track initiatives and executable units with status and progress notes
- Platform support — Works with Cursor, GitHub Copilot, Claude; each platform references the same context
- Optional nested repo — Version-control your plans locally without committing them to the main project
project-root/
├── AGENTS.md # Single source of truth (customize for your project)
├── CLAUDE.md # Claude integration (references AGENTS.md)
├── .agents/
│ ├── context/ # Setup and reference docs
│ │ └── agentic-infra-setup.md # Detailed setup guide
│ ├── skills/ # Skill definitions (single source of truth)
│ │ ├── create-plan/SKILL.md
│ │ ├── create-task/SKILL.md
│ │ ├── update-plan/SKILL.md
│ │ ├── whats-next/SKILL.md
│ │ ├── create-learning/SKILL.md
│ │ └── ... # Additional infra skills
│ └── plans/ # Plans and tasks (each plan in its own folder)
│ ├── _template/ # Templates for new plans and tasks
│ ├── README.md # Documentation for the plans directory
│ └── {PLAN_NAME}/ # Your plans go here
├── .claude/
│ └── skills/ # Symlink → ../.agents/skills
├── .cursor/
│ └── skills/ # Symlink → ../.agents/skills
└── .github/
└── copilot-instructions.md # GitHub Copilot (optional, references AGENTS.md)
Clone or use this repo as a template for your new project:
git clone <this-repo-url> my-project
cd my-project- Edit
AGENTS.md— Replace the stub content with your project's overview, structure, conventions, and workflow. This is the main file agents read. - Add platform files — For Cursor or Claude, create symlinks from
.cursor/skills/and.claude/skills/to.agents/skills/. For Copilot, add.github/copilot-instructions.mdreferencingAGENTS.md.
If you want to track your plans and tasks with git (without committing them to the main repo), run:
bash .agents/skills/setup-nested-plans-repo/scripts/setup_nested_plans_repo.shThis creates a nested git repository in .agents/plans/ so you can commit plan progress locally.
For detailed setup, platform-specific options, and best practices, see .agents/context/agentic-infra-setup.md.
Run the whats-next skill to see the next actionable steps across all active tracked plans. It scans your plans, finds active tasks, and tells you what to do next.
- Create a plan — Use the
create-planskill to scaffold a new plan directory andplan.mdwith objectives, requirements, and initial tasks. - Create tasks — Use the
create-taskskill to add executable units under a plan (with numeric prefix naming for execution order).
- Update plans — Use the
update-planskill to change statuses, create new tasks, revise existing tasks, or complete plans. - Capture learnings — Use the
create-learningskill to record non-obvious insights during or after plan execution. - Progress notes — Keep them reverse-chronological so the latest updates appear first.
| Skill | Purpose |
|---|---|
whats-next |
Find next actionable steps across active tracked plans |
create-plan |
Scaffold a new plan directory with initial tasks |
create-task |
Add a task file under an existing plan |
update-plan |
Change statuses, add tasks, revise tasks, or complete plans |
create-learning |
Capture non-obvious insights as structured learnings |
setup-nested-plans-repo |
Initialize nested git repo for plans |
setup-agentic-context |
Bootstrap agentic infrastructure in a new repo |
review-agentic-infra |
Audit agent infrastructure |
Skill definitions live in .agents/skills/. Platform-specific skill directories (.claude/skills/, .cursor/skills/) are symlinked to .agents/skills/ for a single source of truth.
| Platform | File(s) | Notes |
|---|---|---|
| Cursor | .cursor/skills/ (symlink) |
Skills symlinked from .agents/skills/; optional .cursor/rules/ for IDE-specific rules |
| GitHub Copilot | .github/copilot-instructions.md |
Reference AGENTS.md; add Copilot-specific instructions only |
| Claude | CLAUDE.md, .claude/skills/ (symlink) |
CLAUDE.md references AGENTS.md; skills symlinked from .agents/skills/ |
- Keep
AGENTS.mdconcise — Put detailed information in.agents/files. - Run
whats-nextwhen resuming work — It surfaces the next actionable steps so you can pick up where you left off. - Use the nested plans repo — If you want local version control for your plans, run the setup script so each developer can track their own plan history.
- Avoid duplication — Platform-specific files should reference
AGENTS.mdand.agents/, not repeat their content.
.agents/context/agentic-infra-setup.md— Full setup guide and best practices- AGENTS.md — Master reference for plans, tasks, skills, and workflow
- AGENTS.md pattern — Official documentation for the AGENTS.md pattern
- Cursor Project Rules — Cursor project rules documentation