cursor-agent-starter-kit v1.0.0
Open Source · Zero Dependencies · MIT

Structured context for
every AI coding agent.

One zero-dependency CLI installs lean always-on rules, 9 native slash commands, 6 isolated subagents, Open-Standard skills, stack presets, and a cross-platform shell guard across Cursor, Claude Code, Codex, Copilot, and Windsurf.

$npx cursor-agent-starter-kit init
npm Docs (VI)
cli · init --yes
Cursor .cursor/rules · commands · agents
Claude Code CLAUDE.md · SKILL.md
OpenAI Codex AGENTS.md · SKILL.md
GitHub Copilot .github/copilot-instructions.md
Windsurf .windsurf/rules/core.md
01Configure

Generate an exact install command

Select only the AI tools, stack presets, and flags your repository needs. Existing files are never overwritten unless you pass --force.

Target tools --tools
Stack presets --preset
Flags optional
npx cursor-agent-starter-kit init --yes
Install manifest
    02Commands

    Nine slash commands for daily engineering

    Invoke repeatable workflows directly in Cursor chat instead of re-typing process instructions. Use arrow keys or click any command to inspect its output contract.

    .cursor/commands/ ↑ ↓
    /plan Approval Gate

    
            
    03Presets

    File-scoped stack rules with zero idle overhead

    Each preset uses YAML globs frontmatter so rules only enter context when editing matching source files. Auto-detected on init or installed individually anytime.

    Next.js + TypeScript

    *.ts, *.tsx

    App Router RSC boundaries, strict TypeScript without any, Server Action authz checks, and Tailwind token hygiene.

    add preset nextjs-typescript

    Node.js + TS API

    *.ts, *.mjs

    Thin HTTP handlers, pure domain services, Zod boundary validation, structured API errors, and AbortSignal timeouts.

    add preset node-typescript

    Python + FastAPI

    *.py

    Python 3.12+ annotations, Pydantic v2 DTOs, non-blocking async I/O hygiene, parameterized SQL, ruff/mypy, and pytest.

    add preset python-fastapi

    Full-Stack SaaS

    prisma · sql

    Multi-tenant isolation (anti-IDOR), additive zero-downtime migrations, idempotent Stripe webhooks, and startup env validation.

    add preset fullstack-saas

    Go Backend

    *.go · go.mod

    Consumer-side small interfaces, first-arg context.Context, %w error wrapping, goroutine ownership, and go test -race.

    add preset go-backend

    Missing your stack?

    < 150 lines

    Rust, Vue/Nuxt, Laravel, Flutter, or Spring Boot presets are single .mdc files. Open a preset issue or PR in minutes.

    Contribute a stack preset
    04Safety Guard

    Live pre-tool shell guard simulator

    Implemented in pure Node.js so it works identically on Windows, macOS, and Linux. Test the exact pattern rules executed by .cursor/hooks/pre-tool-guard.mjs before any shell call runs.

    DENY .cursor/hooks/pre-tool-guard.mjs
    
            
    05Architecture

    Progressive disclosure keeps context lean

    Heavy monolithic rule files silently degrade reasoning and burn tokens every turn. This kit holds always-on instructions near ~1,088 tokens and loads deeper playbooks only when triggered.

    Always-on token footprint

    Typical monolithic .cursorrules ~9,500 tokens / turn
    cursor-agent-starter-kit (4 core rules) ~1,088 tokens / turn

    Verify token budgets, frontmatter schemas, hook integrity, and .gitignore hygiene in CI with npx cursor-agent-starter-kit doctor --strict.

    Four-layer loading model

    L1Core Rules
    4 always-on · ~1.1k tok
    L2Stack Presets
    loaded on file glob match
    L3Open Agent Skills
    SKILL.md → GUIDE.md
    L4Isolated Subagents
    6 fresh-context roles
    06In Practice

    Concrete behavior changes in real repositories

    Failure mode Unconfigured agent With starter kit
    Scope creep Rewrites unrelated modules while fixing a localized bug Bounded diffs enforced by 03-surgical-changes.mdc and /fix
    Hidden assumptions Starts editing immediately on ambiguous requirements Spec, non-goals, and file plan gated via /plan
    Destructive shell ops Executes force-push, hard reset, or reads .env Blocked pre-execution across OSes by pre-tool-guard.mjs
    Mixed team tooling Rules locked to a single IDE format Native files for Cursor, Claude Code, Codex, Copilot, and Windsurf
    MCP boilerplate Manual wiring of common developer MCP servers Ready-to-copy mcp.json.example (Context7, GitHub, Playwright, Memory)