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
In this repository30 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/architecture/core-principles.mdcCursor rule
- .cursor/rules/architecture/dependency-management.mdcCursor rule
- .cursor/rules/architecture/token-efficiency.mdcCursor rule
- .cursor/rules/backend/api-design.mdcCursor rule
- .cursor/rules/backend/code-organization.mdcCursor rule
- .cursor/rules/backend/error-handling.mdcCursor rule
- .cursor/rules/backend/handler-patterns.mdcCursor rule
- .cursor/rules/backend/nodejs.mdcCursor rule
- .cursor/rules/backend/typescript.mdcCursor rule
- .cursor/rules/cloud/containerization.mdcCursor rule
- .cursor/rules/cloud/infrastructure.mdcCursor rule
- .cursor/rules/cloud/serverless.mdcCursor rule
- .cursor/rules/database/migration-rules.mdcCursor rule
- .cursor/rules/database/query-patterns.mdcCursor rule
- .cursor/rules/database/schema-design.mdcCursor rule
- .cursor/rules/devops/ci-cd.mdcCursor rule
- .cursor/rules/devops/documentation-standards.mdcCursor rule
- .cursor/rules/devops/monitoring.mdcCursor rule
- .cursor/rules/frontend/accessibility.mdcCursor rule
- .cursor/rules/frontend/component-patterns.mdcCursor rule
- .cursor/rules/frontend/performance.mdcCursor rule
- .cursor/rules/frontend/state-management.mdcCursor rule
- .cursor/rules/main-rules.mdcCursor rule
- .cursor/rules/security/guardrails.mdcCursor rule
- .cursor/rules/security/secrets-rules.mdcCursor rule
- .cursor/rules/security/security-compliance.mdcCursor rule
- .cursor/rules/testing/integration-testing.mdcCursor rule
- .cursor/rules/testing/mock-patterns.mdcCursor rule
- .cursor/rules/testing/testing-standards.mdcCursor rule
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
- Very specific: line 15
Use read_lints tool to check for lint errors
- Distinctive: line 16
Run type-check (~10K tokens) as the default validation step
- Distinctive: line 17
Run single-file tests instead of full suites
- Distinctive: line 18
Ask for confirmation before any operation that may cost 50K+ tokens
- Distinctive: line 19
Keep responses concise: bullet points, not paragraphs
- Distinctive: line 23
NEVER hardcode secrets, API keys, passwords, or tokens in any file
- Distinctive: line 24
NEVER log PII (personally identifiable information)
- Distinctive: line 25
Use environment variables for all configuration secrets
- Very specific: line 26
Use placeholders for infrastructure: [AWS_ACCOUNT_ID], [RESOURCE_NAME]
- Distinctive: line 27
NEVER expose internal URLs, hostnames, or resource ARNs
- Very specific: line 31
Follow the handler pattern in .cursor/rules/backend/handler-patterns.mdc
- Distinctive: line 34
Import order: external packages → internal packages → relative imports
- Distinctive: line 52
Read relevant files before making changes
- Distinctive: line 53
Follow established patterns in the codebase
- Distinctive: line 54
Run type-check after changes (not full tests)
- Very specific: line 55
Use read_lints instead of running lint
- Very specific: line 60
All components reference project settings via {{CONFIG.section.key}} placeholders.
≈ “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.
Files
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_lintstool 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 FROMSQL 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 settingsWorkflow
- Read relevant files before making changes
- Follow established patterns in the codebase
- Run type-check after changes (not full tests)
- Use
read_lintsinstead of running lint - Provide concise, actionable output
Configuration
All components reference project settings via {{CONFIG.section.key}} placeholders.
Configuration file: .cursor/config/project.json
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.

