cursor-agent-starter-kit
CLAUDE.md1 starsChanged 6 months agoMITView on GitHub
This project is designed to work across multiple AI coding tools. This file (CLAUDE.md) serves as the canonical cross-tool instruction source for Claude Code, Codex, and other tools that read this file. For Cursor-specific rules, see .cursor/rules/. For skill definitions, see .cursor/skills/. Then ask your AI assistant: A workspace template that gives AI coding agents structured rules, skills, workflows, memory, and safer coding behavior. Reduces agent mistakes: over-assumption, over-complication, unrelated edits, skipped verification, and forgotten preferences. Skills live in .cursor/skills/.…
- Reads credentials
- Installs packages
In this repository21 other files it gives its agents.
- AGENTS.mdAGENTS.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 CLAUDE.md into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 79
Update memory files after meaningful decisions or repeated corrections.
- Distinctive: line 101
Run before claiming done:
- Distinctive: line 122
Run destructive commands without confirmation
≈ “Common” is an estimate: at least 1 in 5 of the 28,633 CLAUDE.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
Claude Code and Cursor Cross-Platform Agent Starter Kit
This project is designed to work across multiple AI coding tools. This file (CLAUDE.md) serves as the canonical cross-tool instruction source for Claude Code, Codex, and other tools that read this file.
For Cursor-specific rules, see .cursor/rules/.
For skill definitions, see .cursor/skills/.
Quick Start
npm install
npm run initThen ask your AI assistant:
Read AGENTS.md and workflows/onboard.md. Summarize this project and recommend the next step.Project Purpose
A workspace template that gives AI coding agents structured rules, skills, workflows, memory, and safer coding behavior. Reduces agent mistakes: over-assumption, over-complication, unrelated edits, skipped verification, and forgotten preferences.
Core Principles
- Think before coding — state assumptions, surface trade-offs, ask when blocked.
- Simplicity first — minimum code that solves the stated problem.
- Surgical changes — touch only necessary code, match existing style.
- Goal-driven execution — define success criteria before starting.
- Verify before claiming done — run checks, list remaining risks.
Workflows
| Workflow | Use when |
workflows/plan.md | Planning a feature |
workflows/implement.md | Building a feature |
workflows/review.md | Reviewing code |
workflows/debug.md | Debugging a bug |
workflows/reflect.md | After-Action Review (AAR) |
workflows/evaluator-optimizer.md | Quality assurance |
workflows/human-gate.md | Approval before changes |
Agent Roles
| Agent | Purpose |
agents/implementer.md | Build features with surgical changes |
agents/code-reviewer.md | Review code quality |
agents/bug-fixer.md | Find and fix bugs minimally |
agents/test-writer.md | Write regression tests |
agents/refactorer.md | Safe refactoring |
agents/researcher.md | Explore and summarize codebase |
Skills
Skills live in .cursor/skills/. Each skill follows a two-layer pattern:
SKILL.md— always read: purpose, when-to-use, quick stepsGUIDE.md— on demand: deeper patterns, examples, edge cases
Key skills:
code-review/— review code changesdebug-bug/— find and fix bugscreate-agent/— create new agent rolescreate-tool/— add MCP toolsrefactor-safely/— safe refactoringwrite-tests/— write regression tests
Memory
| File | Purpose |
memory/project.md | Project identity and purpose |
memory/decisions.md | Architecture decisions |
memory/preferences.md | Team/user preferences |
memory/learnings.md | Session lessons and research |
Update memory files after meaningful decisions or repeated corrections.
Rules
Always-on rules (.cursor/rules/):
00-core.mdc— core behavior expectations01-karpathy-behavior.mdc— reduce common AI mistakes03-surgical-changes.mdc— minimal edit discipline05-security.mdc— secrets, shell safety, dependencies
Task-specific rules:
02-agent-workflow.mdc— when to use which workflow04-architecture.mdc— architecture conventions06-testing.mdc— testing and verification07-docs.mdc— documentation standards08-memory.mdc— memory file updates09-approval-workflow.mdc— approval gates10-context-optimization.mdc— token efficiency11-rule-testing.mdc— rule validation
Verification
Run before claiming done:
npm run validate # skill and rule structure
npm run check # workspace health checkSuccess Criteria
A task is complete when:
- Requested behavior works
- Code is minimal
- Relevant checks pass
- Changed files are summarized
- Remaining risks are disclosed
Safety Rules
Never:
- Expose secrets or API keys
- Edit
.envdirectly - Run destructive commands without confirmation
- Push directly to
main - Rewrite unrelated files
- Perform broad refactors without a plan
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.

