agentleFS
JunnDungJunnDung/cursor-agent-starter-kit/AGENTS.md

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

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
  1. Distinctive:

    Read in this order:

    line 17
  2. Distinctive:

    Always-on rules: 00-core, 01-karpathy-behavior, 03-surgical-changes, 05-security.

    line 70
  3. Distinctive:

    Read this file first.

    line 102
  4. Very specific:

    Read the relevant rule in .cursor/rules/.

    line 103
  5. Very specific:

    Read the relevant workflow in workflows/.

    line 104
  6. Distinctive:

    Run or suggest checks.

    line 108
  7. Distinctive:

    Prefer TypeScript or JavaScript when code is needed.

    line 113
  8. Distinctive:

    Prefer explicit types in TypeScript projects.

    line 114
  9. Very specific:

    Avoid any unless justified.

    line 115
  10. Distinctive:

    run destructive commands without confirmation

    line 125

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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:

  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
  4. docs/examples-cookbook.md — 10 real examples with copy-paste prompts
  5. docs/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

CommandPurpose
npm run initInitialize workspace directories
npm run checkCheck workspace structure
npm run validateValidate skill & rule structure
npm run generate:skillScaffold a new skill
npm run generate:agentScaffold a new agent
npm run crag:analyzeGenerate governance.md (requires crag)
npm run crag:compileCompile 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

WorkflowUse when
plan.mdPlanning a feature
implement.mdBuilding a feature
review.mdReviewing code
debug.mdDebugging a bug
reflect.mdExtracting learnings
evaluator-optimizer.mdQuality assurance loops
human-gate.mdCritical decision checkpoints

Project map

AreaPathPurpose
Cursor rules.cursor/rules/Persistent project instructions for Cursor
Cursor skills.cursor/skills/Reusable task-specific capabilities
Agentsagents/Role definitions for coding agents
Workflowsworkflows/Repeatable procedures
Memorymemory/Project decisions, preferences, learnings
Taskstasks/Backlog and active tasks
Templatestemplates/Copyable starter templates
Docsdocs/Human-facing documentation

Default agent behavior

For non-trivial work:

  1. Read this file first.
  2. Read the relevant rule in .cursor/rules/.
  3. Read the relevant workflow in workflows/.
  4. Inspect existing files before editing.
  5. State assumptions and constraints.
  6. Make the smallest useful change.
  7. Run or suggest checks.
  8. Summarize changed files and how to verify.

Code style

  • Prefer TypeScript or JavaScript when code is needed.
  • Prefer explicit types in TypeScript projects.
  • Avoid any unless justified.
  • Keep functions small.
  • Keep abstractions simple.
  • Match existing project style.

Safety

Never:

  • expose secrets
  • edit .env directly
  • 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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.