cursor-agent-starter-kit
AGENTS.md1 starsChanged 6 months agoMITView on GitHub
This repository is a Cursor-first AI agent starter kit. Copy these files into any project and the AI agent works immediately. It provides: - Cursor project rules - reusable agent roles - reusable skills - workflows - project memory - task conventions - safety hooks - optional crag / agentmemory / MCP integration Read in this order: 1. docs/tutorial.md — 15-minute step-by-step build 2. docs/decision-trees.md — "When to use what" with diagrams 3. docs/workflows-visual.md — Visual flowcharts of every workflow…
- Reads credentials
- Installs packages
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 33,398 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository21 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .cursor/rules/00-core.mdcCursor rule
- .cursor/rules/01-karpathy-behavior.mdcCursor rule
- .cursor/rules/02-agent-workflow.mdcCursor rule
- .cursor/rules/03-surgical-changes.mdcCursor rule
- .cursor/rules/04-architecture.mdcCursor rule
- .cursor/rules/05-security.mdcCursor rule
- .cursor/rules/06-testing.mdcCursor rule
- .cursor/rules/07-docs.mdcCursor rule
- .cursor/rules/08-memory.mdcCursor rule
- .cursor/rules/09-approval-workflow.mdcCursor rule
- .cursor/rules/10-context-optimization.mdcCursor rule
- .cursor/rules/11-rule-testing.mdcCursor rule
- aarSkill
- code-reviewSkill
- create-agentSkill
- create-toolSkill
- debug-bugSkill
- refactor-safelySkill
- write-testsSkill
- templatesSkill
The file
We split this AGENTS.md into the rules it gives an agent
10 rules. About 0 are common, 7 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Read in this order:
- Distinctive: line 70
Always-on rules: 00-core, 01-karpathy-behavior, 03-surgical-changes, 05-security.
- Distinctive: line 102
Read this file first.
- Very specific: line 103
Read the relevant rule in .cursor/rules/.
- Very specific: line 104
Read the relevant workflow in workflows/.
- Distinctive: line 108
Run or suggest checks.
- Distinctive: line 113
Prefer TypeScript or JavaScript when code is needed.
- Distinctive: line 114
Prefer explicit types in TypeScript projects.
- Very specific: line 115
Avoid any unless justified.
- Distinctive: line 125
run destructive commands without confirmation
≈ “Common” is an estimate: at least 1 in 5 of the 43,423 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md
This repository is a Cursor-first AI agent starter kit. Copy these files into any project and the AI agent works immediately.
It provides:
- Cursor project rules
- reusable agent roles
- reusable skills
- workflows
- project memory
- task conventions
- safety hooks
- optional crag / agentmemory / MCP integration
New to this kit?
Read in this order:
docs/tutorial.md— 15-minute step-by-step builddocs/decision-trees.md— "When to use what" with diagramsdocs/workflows-visual.md— Visual flowcharts of every workflowdocs/examples-cookbook.md— 10 real examples with copy-paste promptsdocs/faq.md— Common questions + glossary
Or in Vietnamese: docs/vietnamese-guide.md.
Setup commands
npm install
npm run init
npm run check
npm run validate # check skill & rule structure
npm run generate:skill # scaffold a new skill (interactive)
npm run generate:agent # scaffold a new agent (interactive)npm Scripts
| Command | Purpose |
npm run init | Initialize workspace directories |
npm run check | Check workspace structure |
npm run validate | Validate skill & rule structure |
npm run generate:skill | Scaffold a new skill |
npm run generate:agent | Scaffold a new agent |
npm run crag:analyze | Generate governance.md (requires crag) |
npm run crag:compile | Compile rules to all agent formats |
Skill Structure
Each skill uses the two-layer pattern:
SKILL.md— Always read: purpose, when-to-use, quick steps (< 120 lines)GUIDE.md— On demand: deeper patterns, examples, edge cases
See .cursor/skills/routing.yaml for the skill index.
Rule Structure
Rules live in .cursor/rules/ with frontmatter metadata:
---
description: One sentence summary.
alwaysApply: true/false
priority: high/medium/low
tags: [tag1, tag2]
---Always-on rules: 00-core, 01-karpathy-behavior, 03-surgical-changes, 05-security. Task-specific rules: 02-agent-workflow, 04-architecture, 06-testing, 07-docs, 08-memory, 09-approval-workflow, 10-context-optimization, 11-rule-testing.
Workflows
| Workflow | Use when |
plan.md | Planning a feature |
implement.md | Building a feature |
review.md | Reviewing code |
debug.md | Debugging a bug |
reflect.md | Extracting learnings |
evaluator-optimizer.md | Quality assurance loops |
human-gate.md | Critical decision checkpoints |
Project map
| Area | Path | Purpose |
| Cursor rules | .cursor/rules/ | Persistent project instructions for Cursor |
| Cursor skills | .cursor/skills/ | Reusable task-specific capabilities |
| Agents | agents/ | Role definitions for coding agents |
| Workflows | workflows/ | Repeatable procedures |
| Memory | memory/ | Project decisions, preferences, learnings |
| Tasks | tasks/ | Backlog and active tasks |
| Templates | templates/ | Copyable starter templates |
| Docs | docs/ | Human-facing documentation |
Default agent behavior
For non-trivial work:
- Read this file first.
- Read the relevant rule in
.cursor/rules/. - Read the relevant workflow in
workflows/. - Inspect existing files before editing.
- State assumptions and constraints.
- Make the smallest useful change.
- Run or suggest checks.
- Summarize changed files and how to verify.
Code style
- Prefer TypeScript or JavaScript when code is needed.
- Prefer explicit types in TypeScript projects.
- Avoid
anyunless justified. - Keep functions small.
- Keep abstractions simple.
- Match existing project style.
Safety
Never:
- expose secrets
- edit
.envdirectly - run destructive commands without confirmation
- push directly to
main - rewrite unrelated files
- perform broad refactors without a plan
Success criteria
A task is complete only when:
- the requested behavior works
- code is minimal
- relevant checks pass or are clearly listed
- changed files are summarized
- remaining risks are disclosed
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

