← The Directory
Agent rules

cursor handbook

Open-source rules engine for Cursor IDE — 110 rules, agents, skills, commands that give AI permanent memory of your standards. Demo: 30%+ token savings, blocks hardcoded secrets, type-check instead of

View source

GitHub stars GitHub forks GitHub last commit GitHub issues License MIT Version 110 Components 30%+ Savings

cursor-handbook

The open-source rules engine for Cursor IDE — 110 rules, agents, and skills that turn your AI into a senior engineer who follows your standards, knows your codebase, and never wastes a token.

Stop teaching your AI the same things every session. cursor-handbook gives Cursor permanent memory of your standards, security policies, and workflows — across every project, every team member, every prompt.

If cursor-handbook helps you, consider giving it a ⭐ — it helps others discover it.

cursor-handbook — Rules engine for Cursor IDE


Table of Contents


Ways to use cursor-handbook

Pick the option that fits your workflow:

OptionBest for
1. Clone & copyUse the full rules engine in your repo. Clone this repo, copy the .cursor folder into your project, then edit project.json and tailor rules/agents/skills to your stack.
2. Add from GitHub (Cursor UI)Use rules, skills, or agents without cloning. In Cursor IDE go to Settings → Rules / Skills / Agents, click Add new → Add from GitHub, and paste this repo’s clone URL. Add only what you need.

Add from GitHub in Cursor Settings | 3. Fork & customize | Maintain your own version. Fork this repo, adapt the .cursor files for your team or product, then use that fork across your projects or share it internally. | | 4. Pick and choose | Use individual components. Download only the production-ready, generic rules, skills, agents, commands, or hooks you need from this repo and drop them into your existing .cursor setup. |

Improvements welcome. If you want to add or improve rules, skills, hooks, agents, or commands, see CONTRIBUTING.md and open an issue or PR.

Forking? Replace girijashankarj with your GitHub org/username in badges, clone URLs, scripts/setup-cursor.sh, .github/CODEOWNERS, and docs before pushing.


The Problem

Every time you open Cursor IDE, your AI assistant starts from zero. It doesn't know your:

  • Code conventions and architecture patterns
  • Security policies (and happily hardcodes your API keys)
  • Testing thresholds (and runs the full 100K-token test suite when you just wanted a type check)
  • Handler patterns, naming conventions, or folder structure

You end up repeating yourself, burning tokens, and fixing the same mistakes. cursor-handbook fixes this permanently.


Before vs After

Before cursor-handbookAfter cursor-handbook
AI hardcodes API keysSecurity rules block it
AI runs full test suite (~100K tokens)Uses type-check (~10K) or single-file tests
You repeat conventions every sessionRules remember them — always on
Inconsistent code across teamOne rules engine, one standard
No guardrails on expensive opsHooks warn or block dangerous commands

Before vs After cursor-handbook


Who is this for?

AudienceBenefit
Solo developersConsistent AI behavior without repeating yourself every session
TeamsShared standards; everyone gets the same guardrails and conventions
EnterprisesSecurity, compliance, and token efficiency built in from day one

Who uses cursor-handbook


How It Works

graph TB
    subgraph INPUT ["Your Prompt"]
        A[Developer types a prompt in Cursor]
    end

    subgraph HOOKS_PRE ["Pre-Processing Hooks"]
        B[context-enrichment.sh<br/>Injects project context]
        C[shell-guard.sh<br/>Blocks dangerous commands]
    end

    subgraph ENGINE ["cursor-handbook Engine"]
        D[29 Rules<br/>Always-applied standards]
        E[34 Agents<br/>Specialized AI assistants]
        F[21 Skills<br/>Step-by-step workflows]
        G[14 Commands<br/>Quick actions]
    end

    subgraph CONFIG ["Project Settings"]
        H[project.json<br/>Your project settings]
    end

    subgraph HOOKS_POST ["Post-Processing Hooks"]
        I[post-edit-check.sh<br/>Validates changes]
        J[auto-format.sh<br/>Formats code]
        K[coverage-check.sh<br/>Verifies thresholds]
    end

    subgraph OUTPUT ["AI Response"]
        L[Code that follows YOUR standards<br/>with 30%+ fewer tokens]
    end

    A --> B --> C --> D
    D --> E & F & G
    H -.->|configures| D & E & F & G
    E & F & G --> I --> J --> K --> L

    style INPUT fill:#1a1a2e,stroke:#e94560,color:#fff
    style HOOKS_PRE fill:#16213e,stroke:#0f3460,color:#fff
    style ENGINE fill:#0f3460,stroke:#533483,color:#fff
    style CONFIG fill:#533483,stroke:#e94560,color:#fff
    style HOOKS_POST fill:#16213e,stroke:#0f3460,color:#fff
    style OUTPUT fill:#1a1a2e,stroke:#00d2ff,color:#fff

What's Inside

%%{init: {'theme': 'neutral'}}%%
mindmap
  root((cursor-handbook<br/>110 Components))
    Rules — 29
      Architecture — 3
      Backend — 6
      Frontend — 4
      Security — 3
      Database — 3
      Cloud — 3
      Testing — 3
      DevOps — 3
      Core — 1
    Agents — 34
      Architecture — 3
      Backend — 7
      Frontend — 4
      Testing — 4
      Database — 2
      Security — 3
      Cloud — 3
      DevOps — 3
      Business — 2
      AI/ML — 1
      Docs — 1
      Platform — 1
    Skills — 21
      Backend — 4
      Frontend — 2
      Testing — 2
      Database — 3
      Cloud — 3
      DevOps — 4
      Docs — 3
    Commands — 14
    Hooks — 12
    Templates — 9
LayerCountWhat It DoesHow It's Triggered
Rules29Enforces coding standards on every AI interactionAutomatically — always on
Agents34Specialized assistants for complex tasksOn demand — /agent-name
Skills21Step-by-step guided workflows with checklistsContextually — when patterns match
Commands14Lightweight, token-efficient quick actionsOn demand — /command
Hooks12Automation scripts in the AI loopEvent-driven — before/after actions
Templates9Scaffolding for handlers, components, tests, etc.Referenced by skills and agents

Note: The 110 component count = Rules + Agents + Skills + Commands + Hooks. Templates (9) are supporting assets referenced by skills and agents.


Quick Start (5 minutes)

graph LR
    A["1. Clone"] --> B["2. Setup"] --> C["3. Restart"] --> D["4. Verify"]

    style A fill:#22c55e,stroke:#16a34a,color:#fff,stroke-width:2px
    style B fill:#3b82f6,stroke:#2563eb,color:#fff,stroke-width:2px
    style C fill:#f59e0b,stroke:#d97706,color:#fff,stroke-width:2px
    style D fill:#8b5cf6,stroke:#7c3aed,color:#fff,stroke-width:2px

One-line install

git clone https://github.com/girijashankarj/cursor-handbook.git .cursor && make -f .cursor/Makefile init

Then edit .cursor/config/project.json and restart Cursor.

Step 1 — Clone

# Into your existing project
git clone https://github.com/girijashankarj/cursor-handbook.git .cursor

Step 2 — Configure

# Option A: One-command setup
make init

# Option B: Interactive generator
./scripts/init-project-config.sh

# Option C: Manual copy
cp .cursor/config/project.json.template .cursor/config/project.json

Edit .cursor/config/project.json — replace placeholders with your project details:

{
	"project": { "name": "my-api", "description": "Order management service" },
	"techStack": {
		"language": "TypeScript",
		"framework": "Express.js",
		"database": "PostgreSQL",
		"testing": "Jest",
		"packageManager": "pnpm"
	},
	"testing": {
		"coverageMinimum": 90,
		"testCommand": "pnpm run test",
		"typeCheckCommand": "pnpm run type-check"
	}
}

Step 3 — Restart Cursor IDE

Close and reopen Cursor. All 110 components are now active.

Step 4 — Verify

Try any of these:

/type-check          → Runs type checking (saves ~90K tokens vs full tests)
/code-reviewer       → AI reviews your code like a senior engineer
/generate-handler    → Scaffolds a complete API handler

Alternative: One-Line Setup

curl -fsSL https://raw.githubusercontent.com/girijashankarj/cursor-handbook/main/scripts/setup-cursor.sh | bash

Alternative: Git Submodule (for teams)

git submodule add https://github.com/girijashankarj/cursor-handbook.git .cursor
make init
# Or: cp .cursor/config/project.json.template .cursor/config/project.json

User Flow

Here's what happens at every stage of your development workflow:

sequenceDiagram
    actor Dev as Developer
    participant C as Cursor IDE
    participant H as Hooks
    participant R as Rules (29)
    participant A as Agents/Skills
    participant Code as Codebase

    Dev->>C: Types prompt or command
    C->>H: beforeSubmitPrompt
    H->>H: Enrich with project context
    H->>H: Guard against expensive ops
    H->>R: Pass enriched prompt
    R->>R: Apply 29 always-on rules
    Note over R: Token efficiency<br/>Security guardrails<br/>Code standards<br/>Architecture patterns
    R->>A: Route to agent/skill/command
    A->>Code: Generate or modify code
    Code->>H: afterFileEdit
    H->>H: Post-edit checks
    H->>H: Auto-format
    H->>H: Secret scan
    H-->>Dev: Clean, standards-compliant code

    Note over Dev,Code: Every interaction is governed by your rules.<br/>No exceptions. No token waste.

Typical Workflows

What You WantWhat You TypeWhat Happens
Build a new endpoint"Create a POST /orders endpoint"Skill triggers full handler scaffolding (9 files, 7-step flow)
Review code/code-reviewerAgent checks security, performance, correctness, tests
Fix broken tests/testing-agent fix these testsSkill diagnoses failures, fixes mocks, verifies coverage
Quick validation/type-checkRuns type check (~10K tokens) instead of full tests (~100K)
Deploy safely/deployment-agentAgent generates deployment checklist with rollback plan
Optimize a query/query-opt-agentAgent runs EXPLAIN ANALYZE, rewrites query, adds indexes

Processing Pipeline

Every prompt flows through a layered processing pipeline that ensures quality, security, and efficiency:

graph TD
    subgraph L1 ["Layer 1: Pre-Processing"]
        direction LR
        A1[Context Enrichment] --> A2[Shell Guard] --> A3[Pre-Commit Check]
    end

    subgraph L2 ["Layer 2: Rules Engine — Always Active"]
        direction LR
        B1[Token Efficiency] --> B2[Security Guardrails] --> B3[Code Standards]
        B3 --> B4[Architecture] --> B5[Testing Standards]
    end

    subgraph L3 ["Layer 3: Specialized Processing"]
        direction LR
        C1[Agents<br/>Complex tasks]
        C2[Skills<br/>Guided workflows]
        C3[Commands<br/>Quick actions]
    end

    subgraph L4 ["Layer 4: Post-Processing"]
        direction LR
        D1[Edit Validation] --> D2[Auto-Format] --> D3[Coverage Check]
    end

    L1 --> L2 --> L3 --> L4

    style L1 fill:#1e293b,stroke:#475569,color:#fff
    style L2 fill:#0c4a6e,stroke:#0284c7,color:#fff
    style L3 fill:#3730a3,stroke:#6366f1,color:#fff
    style L4 fill:#1e293b,stroke:#475569,color:#fff

Layer Breakdown

Layer 1 — Pre-Processing (Hooks) Before your prompt even reaches the AI, hooks inject your project context, block dangerous shell commands, and validate git operations.

Layer 2 — Rules Engine (29 Rules, Always Active) Every AI response is shaped by your rules. These aren't suggestions — they're hard constraints:

Rule CategoryWhat It Enforces
Token EfficiencyNo auto-running full tests/lint; confirm 50K+ ops
SecurityNo hardcoded secrets; no PII in logs; parameterized queries
ArchitectureHandler pattern; dependency direction; error hierarchy
Code OrganizationNaming conventions; import order; folder structure
DatabaseSoft delete only; required columns; migration safety
Testing90%+ coverage; mock patterns; AAA pattern

Layer 3 — Specialized Processing Based on your prompt, the right component activates: an agent for complex tasks, a skill for guided workflows, or a command for quick operations.

Layer 4 — Post-Processing (Hooks) After code is generated, hooks validate the output, auto-format files, scan for leaked secrets, and verify test coverage.


Token Savings

cursor-handbook is engineered to cut your AI token costs by 30% or more:

pie title Token Usage Comparison (per operation)
    "Type Check (cursor-handbook)" : 10
    "Saved vs Full Tests" : 90
Without cursor-handbookWith cursor-handbookTokens Saved
Full test suite: ~100K tokens/type-check: ~10K tokens~90K (90%)
Full lint run: ~50K tokens/lint-check (read_lints): ~2K tokens~48K (96%)
Full test suite: ~100K tokens/test-single: ~5K tokens~95K (95%)
Unfiltered context: ~30K tokensContext layering: ~10K tokens~20K (67%)
Verbose AI output: ~15K tokensConcise guidelines: ~5K tokens~10K (67%)

Conservative estimate: A developer making 50 AI interactions/day saves ~200K tokens/day — that's real money at scale.


Customization

cursor-handbook is 100% project-driven. Every component adapts to your project through a single file:

How It Adapts to Your Project

graph TB
    PJ["project.json<br/>Your Configuration"]

    PJ --> R["Rules<br/>{{CONFIG.techStack.language}}<br/>{{CONFIG.testing.coverageMinimum}}"]
    PJ --> A["Agents<br/>{{CONFIG.techStack.framework}}<br/>{{CONFIG.paths.handlerBasePath}}"]
    PJ --> S["Skills<br/>{{CONFIG.patterns.handlerFlow}}<br/>{{CONFIG.fileNames.handlerEntry}}"]
    PJ --> CMD["Commands<br/>{{CONFIG.testing.testCommand}}<br/>{{CONFIG.testing.typeCheckCommand}}"]
    PJ --> H["Hooks<br/>{{CONFIG.project.name}}<br/>{{CONFIG.database.softDeleteField}}"]

    style PJ fill:#f59e0b,stroke:#d97706,color:#000,stroke-width:3px
    style R fill:#3b82f6,stroke:#2563eb,color:#fff
    style A fill:#8b5cf6,stroke:#7c3aed,color:#fff
    style S fill:#22c55e,stroke:#16a34a,color:#fff
    style CMD fill:#ef4444,stroke:#dc2626,color:#fff
    style H fill:#06b6d4,stroke:#0891b2,color:#fff

What You Can Customize

SectionWhat It ControlsExample
projectProject identityName, description, repo URL
techStackLanguage, framework, toolsTypeScript + Express or Python + FastAPI
pathsDirectory structureWhere handlers, services, and common code live
domainBusiness entitiesOrder, Product, Customer + lifecycle states
patternsCode patterns7-step handler flow, error handling strategy
testingQuality gates90% coverage, test/lint/type-check commands
databaseDB conventionsSoft delete field, timestamp columns, naming
packagesInternal packages@your-org scope, registry URL
conventionsGit and workflowBranch prefixes, commit format, PR templates

Ready-Made Stack Presets

Don't start from scratch — pick your stack:

StackFileLanguageFramework
TypeScript/Expressexamples/typescript-express/TypeScriptExpress.js
TypeScript/NestJSexamples/typescript-nest/TypeScriptNestJS
Python/FastAPIexamples/python-fastapi/PythonFastAPI
Go/Chiexamples/go-chi/GoChi
React SPAexamples/react/TypeScriptReact
Next.jsexamples/nextjs/TypeScriptNext.js
Rust/Actixexamples/rust-actix/RustActix Web
Kotlin/Springexamples/kotlin-spring/KotlinSpring Boot
Flutterexamples/flutter/DartFlutter
# Use a pre-made preset
cp examples/typescript-express/project.json .cursor/config/project.json
# Then customize with your project specifics

Component Deep Dive

Rules (29) — Your AI's Permanent Memory

Rules are the backbone. They load on every interaction, every time, with zero effort.

graph LR
    subgraph MAIN ["Core"]
        M[main-rules]
    end

    subgraph ARCH ["Architecture"]
        A1[token-efficiency]
        A2[core-principles]
        A3[dependency-mgmt]
    end

    subgraph BE ["Backend"]
        B1[handler-patterns]
        B2[code-organization]
        B3[error-handling]
        B4[api-design]
        B5[typescript]
        B6[nodejs]
    end

    subgraph FE ["Frontend"]
        F1[components]
        F2[accessibility]
        F3[state-mgmt]
        F4[performance]
    end

    subgraph SEC ["Security"]
        S1[guardrails]
        S2[secrets]
        S3[compliance]
    end

    subgraph DB ["Database"]
        D1[query-patterns]
        D2[schema-design]
        D3[migrations]
    end

    subgraph CLD ["Cloud"]
        C1[infrastructure]
        C2[serverless]
        C3[containers]
    end

    subgraph TST ["Testing"]
        T1[standards]
        T2[mocks]
        T3[integration]
    end

    subgraph OPS ["DevOps"]
        O1[ci-cd]
        O2[monitoring]
        O3[documentation]
    end

    M --> ARCH & BE & FE & SEC & DB & CLD & TST & OPS

Agents (34) — Your On-Demand Specialists

DomainAgentInvocationBest For
ArchitectureDesign Agent/design-agentSystem design, trade-off analysis
Refactoring Agent/refactoring-agentSafe incremental refactoring
Migration Agent/migration-agentFramework upgrades, migrations
BackendCode Reviewer/code-reviewerPR reviews, security checks
Implementation Agent/implementation-agentBuilding features end-to-end
Debugging Agent/debugging-agentRoot cause analysis
API Agent/api-agentREST API design
Performance Agent/performance-agentBottleneck identification
Database Agent/database-agentSchema design, queries
Event Handler Agent/event-handler-agentAsync event processing
FrontendUI Component Agent/ui-component-agentAccessible components
State Agent/state-agentState management decisions
Styling Agent/styling-agentCSS architecture, theming
Frontend Perf Agent/frontend-perf-agentCore Web Vitals optimization
TestingTesting Agent/testing-agentWrite comprehensive tests
E2E Agent/e2e-agentEnd-to-end test flows
Load Test Agent/load-test-agentPerformance benchmarking
Security Test Agent/security-test-agentVulnerability scanning
DatabaseSchema Agent/schema-agentSchema design, ER diagrams
Query Opt Agent/query-opt-agentQuery performance tuning
SecuritySecurity Audit Agent/security-audit-agentComprehensive security audit
Auth Agent/auth-agentAuth flows, RBAC
Compliance Agent/compliance-agentGDPR, SOC 2, HIPAA
CloudInfra Agent/infra-agentIaC, cloud architecture
Deployment Agent/deployment-agentZero-downtime deployments
Cost Agent/cost-agentCloud cost optimization
DevOpsCI/CD Agent/ci-cd-agentPipeline design
Monitoring Agent/monitoring-agentObservability setup
Incident Agent/incident-agentIncident response
BusinessRequirements Agent/requirements-agentUser stories, specs
Estimation Agent/estimation-agentEffort estimation
AI/MLPrompt Agent/prompt-agentPrompt engineering
DocsDocs Agent/docs-agentTechnical documentation
PlatformDX Agent/dx-agentDeveloper experience

Commands (14) — Token-Efficient Quick Actions

graph LR
    TC["/type-check<br/>~10K tokens"] ---|saves 90K vs| FT["Full Tests<br/>~100K tokens"]
    TS["/test-single<br/>~5K tokens"] ---|saves 95K vs| FT
    LC["/lint-check<br/>~2K tokens"] ---|saves 48K vs| FL["Full Lint<br/>~50K tokens"]

    style TC fill:#22c55e,stroke:#16a34a,color:#fff
    style TS fill:#22c55e,stroke:#16a34a,color:#fff
    style LC fill:#22c55e,stroke:#16a34a,color:#fff
    style FT fill:#ef4444,stroke:#dc2626,color:#fff
    style FL fill:#ef4444,stroke:#dc2626,color:#fff
CommandWhat It DoesWhy It's Better
/type-checkTypeScript type validation10K tokens vs 100K for full tests
/lint-checkUse read_lints tool2K tokens vs 50K for full lint
/lint-fixAuto-fix lint issuesOne-step lint resolution
/formatFormat code filesConsistent formatting
/generate-handlerScaffold API handlerFull 9-file handler in seconds
/test-singleTest one file only5K tokens vs 100K for full suite
/test-coverageCoverage reportTargeted coverage analysis
/coverageQuick coverage checkFast coverage snapshot
/buildBuild the projectValidated production build
/deployDeploy the applicationGuided deployment flow
/docker-buildBuild Docker imageCorrect multi-stage build
/audit-depsVulnerability scanCatch CVEs before shipping
/auditFull security auditComprehensive security check
/check-secretsSecret detectionFind leaked keys before commit

Sharing & Team Adoption

cursor-handbook is designed to scale from solo developer to enterprise teams:

graph TD
    subgraph SOLO ["Solo Developer"]
        S1[Clone cursor-handbook<br/>into .cursor/]
        S2[Customize project.json]
        S3[Commit to your project]
    end

    subgraph TEAM ["Team Sharing"]
        T1[Fork cursor-handbook]
        T2[Add team-specific rules]
        T3[Share as Git submodule<br/>in all team repos]
    end

    subgraph ORG ["Organization-Wide"]
        O1[Maintain internal fork]
        O2[Add org standards<br/>& compliance rules]
        O3[Distribute via<br/>internal package registry]
    end

    subgraph OSS ["Open Source"]
        OS1[Contribute rules & agents<br/>back to cursor-handbook]
        OS2[Share stack-specific<br/>examples]
        OS3[Build community<br/>components]
    end

    SOLO --> TEAM --> ORG
    SOLO --> OSS
    TEAM --> OSS

    style SOLO fill:#22c55e,stroke:#16a34a,color:#fff
    style TEAM fill:#3b82f6,stroke:#2563eb,color:#fff
    style ORG fill:#8b5cf6,stroke:#7c3aed,color:#fff
    style OSS fill:#f59e0b,stroke:#d97706,color:#000

Adoption Hierarchy

LevelMethodBest For
PersonalClone directly into .cursor/Solo developers, personal projects
TeamGit submodule in shared reposSmall teams (2-10 developers)
OrganizationInternal fork with org-specific rulesCompanies with coding standards
CommunityPR contributions to this repoOpen source stack-specific configs

Team Setup (Git Submodule)

# One team member sets it up
git submodule add https://github.com/your-org/cursor-handbook.git .cursor
git commit -m "feat: add cursor-handbook for team standards"
git push

# Every other team member gets it automatically
git pull
git submodule update --init
make init

# Update across the team
cd .cursor && git pull origin main && cd ..
git add .cursor && git commit -m "chore: update cursor-handbook"

Organization Fork Strategy

# 1. Fork cursor-handbook to your org
# 2. Add org-specific rules
# 3. All teams use the org fork as their submodule
git submodule add https://github.com/girijashankarj/cursor-handbook.git .cursor

Project Structure

cursor-handbook/
├── .cursor/
│   ├── config/                    # project.json, schema, templates
│   │   ├── project.json.template  #   Template (start here)
│   │   ├── project.json.example   #   Complete example
│   │   └── project-schema.json    #   JSON Schema validation
│   ├── rules/                     # 29 always-applied rules
│   │   ├── main-rules.mdc        #   Master rules
│   │   ├── architecture/          #   3 architecture rules
│   │   ├── backend/               #   6 backend rules
│   │   ├── frontend/              #   4 frontend rules
│   │   ├── security/              #   3 security rules
│   │   ├── database/              #   3 database rules
│   │   ├── cloud/                 #   3 cloud rules
│   │   ├── testing/               #   3 testing rules
│   │   └── devops/                #   3 devops rules
│   ├── agents/                    # 34 specialized AI agents
│   │   ├── architecture/          #   3 agents
│   │   ├── backend/               #   7 agents
│   │   ├── frontend/              #   4 agents
│   │   ├── testing/               #   4 agents
│   │   ├── database/              #   2 agents
│   │   ├── security/              #   3 agents
│   │   ├── cloud/                 #   3 agents
│   │   ├── devops/                #   3 agents
│   │   ├── business/              #   2 agents
│   │   ├── ai-ml/                 #   1 agent
│   │   ├── documentation/         #   1 agent
│   │   └── platform/              #   1 agent
│   ├── skills/                    # 21 guided workflows
│   ├── commands/                  # 14 quick actions
│   ├── hooks/                     # 12 automation scripts
│   ├── templates/                 # 9 code templates
│   └── settings/                  # IDE settings
├── docs/                          # Full documentation
│   ├── getting-started/           #   Quick start & setup
│   ├── components/                #   Component guides
│   ├── guides/                    #   Best practices
│   ├── security/                  #   Security guide
│   └── reference/                 #   Schema & reference
├── examples/                      # 9 stack-specific presets
├── scripts/                       # Setup scripts
├── .cursorignore                  # AI context exclusions
├── AGENTS.md                      # Agent instructions
├── CLAUDE.md                      # Claude-specific instructions
├── CONTRIBUTING.md                # Contribution guide
├── COMPONENT_INDEX.md             # Full component reference
├── LICENSE                        # MIT License
└── README.md                      # You are here

Why You Should Use This

For Individual Developers

  • Save money — 30%+ reduction in token costs adds up fast
  • Save time — Stop repeating your standards every session
  • Better code — AI follows your patterns, not random internet patterns
  • Security by default — Guardrails prevent accidental secret leaks
  • Instant scaffolding — Full handler/component in seconds, not minutes

For Teams

  • Consistency — Every developer gets the same AI behavior
  • Onboarding — New team members get productive on day one
  • Standards enforcement — Rules apply automatically, no code review friction
  • Institutional knowledge — Your patterns are codified, not tribal knowledge
  • Cost control — Token savings compound across the whole team

For Organizations

  • Compliance — Security and data handling rules are always enforced
  • Scalability — Same standards across 10 projects or 1,000
  • Governance — Central control over AI behavior across all teams
  • ROI — Measurable token savings and developer time savings
  • Risk reduction — No more hardcoded secrets or PII in logs

By The Numbers

MetricValue
Components110
Supported tech stacks9
Token savings per operation67-96%
Setup time~5 minutes
Files to customize1 (project.json)
Lines to edit~50
PriceFree (MIT License)

Contributing

We welcome contributions. Whether it's a new rule for a framework we don't cover, a new agent for a workflow you've mastered, or a bug fix — every contribution helps the community.

See CONTRIBUTING.md for guidelines.

graph LR
    A[Fork] --> B[Branch] --> C[Build] --> D[Test in Cursor] --> E[PR]

    style A fill:#22c55e,stroke:#16a34a,color:#fff
    style B fill:#3b82f6,stroke:#2563eb,color:#fff
    style C fill:#8b5cf6,stroke:#7c3aed,color:#fff
    style D fill:#f59e0b,stroke:#d97706,color:#000
    style E fill:#ef4444,stroke:#dc2626,color:#fff

High-impact areas for contribution:

  • New stack-specific examples (Vue, Django, Rails, Spring, etc.)
  • Specialized agents for niche domains (ML pipelines, game dev, embedded)
  • Translations of documentation
  • Performance benchmarks and case studies

Documentation

DocumentDescription
ArchitectureSystem design, data flow, extension points
Quick StartGet running in 5 minutes
Project SetupCustomize rules to your stack
Component OverviewHow components work together
Component readinessProduction-ready, generic components list
Best PracticesGet the most out of cursor-handbook
Cursor usageToken usage, agent review, BugBot setup
Claude IDE supportUse with Claude Code and other IDEs
Security GuideSecurity features and policies
Schema ReferenceFull project.json schema
Component IndexComplete list of all 110 components
ContributingHow to contribute

License

MIT License — use freely in personal and commercial projects. No attribution required (but appreciated).


Stop teaching your AI the same things twice.
Clone cursor-handbook, set your project once, and let 110 rules, agents, and skills work for you — every prompt, every project, every day.

Get Started  •  Browse Components  •  Contribute  •  Documentation