agentleFS
girijashankarjgirijashankarj/cursor-handbook/CLAUDE.md

cursor-handbook

CLAUDE.md31 starsChanged 3 months agoMITView on GitHub

This file provides project-specific instructions for Claude when working in this repository. cursor-handbook — A Cursor IDE configuration boilerplate with 110 components (rules, agents, skills, commands, hooks). All components reference project settings via {{CONFIG.section.key}} placeholders. Configuration file: .cursor/config/project.json

The file

Show its rules and text

We split this CLAUDE.md into the rules it gives an agent

17 rules. About 0 are common, 12 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈12

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use read_lints tool to check for lint errors

    line 15
  2. Distinctive:

    Run type-check (~10K tokens) as the default validation step

    line 16
  3. Distinctive:

    Run single-file tests instead of full suites

    line 17
  4. Distinctive:

    Ask for confirmation before any operation that may cost 50K+ tokens

    line 18
  5. Distinctive:

    Keep responses concise: bullet points, not paragraphs

    line 19
  6. Distinctive:

    NEVER hardcode secrets, API keys, passwords, or tokens in any file

    line 23
  7. Distinctive:

    NEVER log PII (personally identifiable information)

    line 24
  8. Distinctive:

    Use environment variables for all configuration secrets

    line 25
  9. Very specific:

    Use placeholders for infrastructure: [AWS_ACCOUNT_ID], [RESOURCE_NAME]

    line 26
  10. Distinctive:

    NEVER expose internal URLs, hostnames, or resource ARNs

    line 27
  11. Very specific:

    Follow the handler pattern in .cursor/rules/backend/handler-patterns.mdc

    line 31
  12. Distinctive:

    Import order: external packages → internal packages → relative imports

    line 34
  13. Distinctive:

    Read relevant files before making changes

    line 52
  14. Distinctive:

    Follow established patterns in the codebase

    line 53
  15. Distinctive:

    Run type-check after changes (not full tests)

    line 54
  16. Very specific:

    Use read_lints instead of running lint

    line 55
  17. Very specific:

    All components reference project settings via {{CONFIG.section.key}} placeholders.

    line 60

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 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.md — Instructions for Claude

This file provides project-specific instructions for Claude when working in this repository.

Project

cursor-handbook — A Cursor IDE configuration boilerplate with 110 components (rules, agents, skills, commands, hooks).

Critical Rules

Token Efficiency (MOST IMPORTANT)

  • NEVER auto-run full test suites — costs 100K+ tokens
  • NEVER auto-run full lint — costs 50K+ tokens
  • Use read_lints tool to check for lint errors
  • Run type-check (~10K tokens) as the default validation step
  • Run single-file tests instead of full suites
  • Ask for confirmation before any operation that may cost 50K+ tokens
  • Keep responses concise: bullet points, not paragraphs

Security (CRITICAL)

  • NEVER hardcode secrets, API keys, passwords, or tokens in any file
  • NEVER log PII (personally identifiable information)
  • Use environment variables for all configuration secrets
  • Use placeholders for infrastructure: [AWS_ACCOUNT_ID], [RESOURCE_NAME]
  • NEVER expose internal URLs, hostnames, or resource ARNs

Code Standards

  • Follow the handler pattern in .cursor/rules/backend/handler-patterns.mdc
  • Soft delete only — NEVER use DELETE FROM SQL statements
  • Structured JSON logging with correlationId
  • Import order: external packages → internal packages → relative imports

Project Structure

.cursor/
├── config/     # project.json configuration
├── rules/      # 29 always-applied .mdc rules
├── agents/     # 34 specialized AI agents
├── skills/     # 21 step-by-step workflows
├── commands/   # 14 quick action commands
├── hooks/      # 12 automation scripts
├── templates/  # Code scaffolding templates
└── settings/   # IDE settings

Workflow

  1. Read relevant files before making changes
  2. Follow established patterns in the codebase
  3. Run type-check after changes (not full tests)
  4. Use read_lints instead of running lint
  5. Provide concise, actionable output

Configuration

All components reference project settings via {{CONFIG.section.key}} placeholders. Configuration file: .cursor/config/project.json

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.