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

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

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

    Update memory files after meaningful decisions or repeated corrections.

    line 79
  2. Distinctive:

    Run before claiming done:

    line 101
  3. Distinctive:

    Run destructive commands without confirmation

    line 122

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

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

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 init

Then 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

  1. Think before coding — state assumptions, surface trade-offs, ask when blocked.
  2. Simplicity first — minimum code that solves the stated problem.
  3. Surgical changes — touch only necessary code, match existing style.
  4. Goal-driven execution — define success criteria before starting.
  5. Verify before claiming done — run checks, list remaining risks.

Workflows

WorkflowUse when
workflows/plan.mdPlanning a feature
workflows/implement.mdBuilding a feature
workflows/review.mdReviewing code
workflows/debug.mdDebugging a bug
workflows/reflect.mdAfter-Action Review (AAR)
workflows/evaluator-optimizer.mdQuality assurance
workflows/human-gate.mdApproval before changes

Agent Roles

AgentPurpose
agents/implementer.mdBuild features with surgical changes
agents/code-reviewer.mdReview code quality
agents/bug-fixer.mdFind and fix bugs minimally
agents/test-writer.mdWrite regression tests
agents/refactorer.mdSafe refactoring
agents/researcher.mdExplore 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 steps
  • GUIDE.md — on demand: deeper patterns, examples, edge cases

Key skills:

  • code-review/ — review code changes
  • debug-bug/ — find and fix bugs
  • create-agent/ — create new agent roles
  • create-tool/ — add MCP tools
  • refactor-safely/ — safe refactoring
  • write-tests/ — write regression tests

Memory

FilePurpose
memory/project.mdProject identity and purpose
memory/decisions.mdArchitecture decisions
memory/preferences.mdTeam/user preferences
memory/learnings.mdSession lessons and research

Update memory files after meaningful decisions or repeated corrections.

Rules

Always-on rules (.cursor/rules/):

  • 00-core.mdc — core behavior expectations
  • 01-karpathy-behavior.mdc — reduce common AI mistakes
  • 03-surgical-changes.mdc — minimal edit discipline
  • 05-security.mdc — secrets, shell safety, dependencies

Task-specific rules:

  • 02-agent-workflow.mdc — when to use which workflow
  • 04-architecture.mdc — architecture conventions
  • 06-testing.mdc — testing and verification
  • 07-docs.mdc — documentation standards
  • 08-memory.mdc — memory file updates
  • 09-approval-workflow.mdc — approval gates
  • 10-context-optimization.mdc — token efficiency
  • 11-rule-testing.mdc — rule validation

Verification

Run before claiming done:

npm run validate   # skill and rule structure
npm run check      # workspace health check

Success 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 .env directly
  • Run destructive commands without confirmation
  • Push directly to main
  • Rewrite unrelated files
  • Perform broad refactors without a plan

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.