https://github.com/madebyaris/cursor-composer-rules
How a senior engineer thinks, encoded for Cursor agents β evidence-first, surgical edits, reasoning & metacognition, and honest verification. Stack-agnostic rules, skills & subagents tuned for Composer.
https://github.com/madebyaris/cursor-composer-rules
agent-rules ai-coding-assitance composer cursor cursor-ai cursor-composer cursor-ide cursor-rules developer-tools llm
Last synced: 7 days ago
JSON representation
How a senior engineer thinks, encoded for Cursor agents β evidence-first, surgical edits, reasoning & metacognition, and honest verification. Stack-agnostic rules, skills & subagents tuned for Composer.
- Host: GitHub
- URL: https://github.com/madebyaris/cursor-composer-rules
- Owner: madebyaris
- License: mit
- Created: 2026-05-17T03:05:48.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2026-06-15T03:51:56.000Z (11 days ago)
- Last Synced: 2026-06-15T05:15:40.364Z (11 days ago)
- Topics: agent-rules, ai-coding-assitance, composer, cursor, cursor-ai, cursor-composer, cursor-ide, cursor-rules, developer-tools, llm
- Homepage:
- Size: 55.7 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# πΌ Composer-era Cursor Rules
**How a senior engineer thinks β encoded for Cursor agents.**
Evidence over assumption Β· surgical edits Β· honest uncertainty Β· root-cause debugging Β· structured research Β· sane orchestration
[](LICENSE)
[]()
[](https://cursor.com)
[]()
[Quick start](#-quick-start) Β· [What's new](#-whats-new-25-refresh) Β· [Rules](#-what-the-pack-teaches) Β· [Design](#-design-principles) Β· [Extend](#-extending)
---
## β¨ At a glance
| | Principle | What you get |
| --- | --- | --- |
| π | **Evidence first** | Read code, run commands, cite paths β never guess |
| π€ | **Reason, then re-check** | Infer the real ask; challenge the plan before acting; push back honestly |
| βοΈ | **Surgical edits** | Match project style; smallest diff that proves the next step |
| π | **Rich plans** | Structured plan template with options, inventory, verification matrix |
| π‘οΈ | **Git safety** | Never `git push` unprompted β commits β remote updates |
| π§ | **Senior practices** | Version-pinned guidance from official docs, not stale training data |
| β
| **Proof contract** | `verified` / `implemented but unverified` / `blocked` β no fake "done" |
Stack-agnostic. **Two always-on rules** form the operating spine; everything else loads on demand by description match. No model identity claims β Cursor's lineup changes; the principles don't.
```text
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β ALWAYS ON β REQUESTABLE ON TASK β
β composer-core β reasoning Β· orchestration Β· coding β
β composer-verify β debugging Β· research Β· delivery β
β β tools Β· clarify β
βββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββ€
β AGENTS β SKILLS β
β verifier Β· debuggerβ deep-research Β· senior-practices β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
```
---
## π Quick start
Repository: **`madebyaris/cursor-composer-rules`**
```bash
git clone https://github.com/madebyaris/cursor-composer-rules.git
# Replace the destination with your actual app directory
cp -r cursor-composer-rules/.cursor path/to/your-app/.cursor
```
> **β οΈ Merge carefully** if you already have `.cursor/rules` or `.cursor/agents`:
>
> - Duplicate **always-on** rules hurt quality β keep one core + one verification spine.
> - If you already have a `verifier` subagent, merge prompts or rename to avoid conflicting delegation.
> - Custom subagents in this pack are examples; adapt descriptions to your team.
---
## π What's new (2.5 refresh)
| Addition | Purpose |
| --- | --- |
| [`composer-reasoning.mdc`](.cursor/rules/composer-reasoning.mdc) | **Senior reasoning + metacognition** β infer the real ask, reason then re-evaluate, principal judgment (tradeoffs, reversibility), honest pushback |
| [`composer-core.mdc`](.cursor/rules/composer-core.mdc) | **Intent + re-evaluate** principles; effort calibration tier; sharper plan vs act; **git remote safety** (never push unprompted) |
| [`composer-orchestration.mdc`](.cursor/rules/composer-orchestration.mdc) | When to delegate vs inline; **structured plan template**; foreground/background subagents; long-running checkpoints |
| [`composer-coding-excellence.mdc`](.cursor/rules/composer-coding-excellence.mdc) | **Style governance** β match vs improve decision tree; no drive-by refactors |
| [`composer-senior-practices.mdc`](.cursor/rules/composer-senior-practices.mdc) | Version-pinned best practices from primary docs + corroborated guidance |
| [`cursor-tools-discipline.mdc`](.cursor/rules/cursor-tools-discipline.mdc) | Explore/Bash/Browser subagents, background work, sandbox **blocked** handling; **git command allow/deny** |
| [`.cursor/skills/senior-practices/`](.cursor/skills/senior-practices/SKILL.md) | Workflow to anchor framework guidance to repo versions and credible sources |
| [`.cursor/agents/verifier.md`](.cursor/agents/verifier.md) | Skeptical post-work check before **verified** |
| [`.cursor/agents/debugger.md`](.cursor/agents/debugger.md) | Isolated root-cause pass (repro first in parent) |
Optional: extend the pack with [Cursor Marketplace](https://cursor.com/marketplace) plugins (skills, MCP, hooks) β not required for the core behavior contract.
---
## π What the pack teaches
### π Always-on (the operating spine)
| File | Purpose |
| --- | --- |
| [`composer-core.mdc`](.cursor/rules/composer-core.mdc) | Principles: evidence-first, read before edit, smallest diff, effort calibration, plan vs act |
| [`composer-verification.mdc`](.cursor/rules/composer-verification.mdc) | Proof contract: `verified` / `implemented but unverified` / `blocked`; independent verification |
### π Requestable (loaded by description match)
| File | Use for |
| --- | --- |
| [`composer-reasoning.mdc`](.cursor/rules/composer-reasoning.mdc) | Ambiguous, high-stakes, or architectural work: infer real intent, reason then re-evaluate, weigh tradeoffs, push back honestly |
| [`composer-orchestration.mdc`](.cursor/rules/composer-orchestration.mdc) | Subagents, plan mode, parallel workstreams, long-running tasks |
| [`composer-coding-excellence.mdc`](.cursor/rules/composer-coding-excellence.mdc) | Writing or modifying code: surgical edits, convention matching, style governance, no fabricated APIs |
| [`composer-senior-practices.mdc`](.cursor/rules/composer-senior-practices.mdc) | Version-pinned framework/coding guidance from primary docs and corroborated sources |
| [`composer-debugging.mdc`](.cursor/rules/composer-debugging.mdc) | Broken or unexpected behavior: reproduce, trace, root cause |
| [`composer-fullstack-delivery.mdc`](.cursor/rules/composer-fullstack-delivery.mdc) | Multi-layer changes: seams, vertical slice, failure modes |
| [`composer-deep-research.mdc`](.cursor/rules/composer-deep-research.mdc) | Audits, comparisons, benchmarks: primaries, claim ledger, contradictions |
| [`cursor-tools-discipline.mdc`](.cursor/rules/cursor-tools-discipline.mdc) | Tools: parallel reads, MCP schemas, subagents, no fabricated output |
| [`clarify-first.mdc`](.cursor/rules/clarify-first.mdc) | When to ask (after inspect); plan-mode exception |
### π€ Example subagents
| File | Use for |
| --- | --- |
| [`verifier.md`](.cursor/agents/verifier.md) | After "done" claims β run checks, report verified vs gaps (`readonly`) |
| [`debugger.md`](.cursor/agents/debugger.md) | Isolated debug when repro is known β root cause + minimal fix |
Built-in Explore, Bash, and Browser subagents need no config; orchestration rule explains when Cursor uses them.
Invoke explicitly: `/verifier confirm tests pass`, or ask naturally: *"use the debugger subagent on this failure."*
### π Skills (long-form workflows)
| Path | Purpose |
| --- | --- |
| [`.cursor/skills/deep-research/SKILL.md`](.cursor/skills/deep-research/SKILL.md) | Multi-pass research with claim ledger and contradiction log |
| [`.cursor/skills/deep-research/reference.md`](.cursor/skills/deep-research/reference.md) | Compact checklist version |
| [`.cursor/skills/senior-practices/SKILL.md`](.cursor/skills/senior-practices/SKILL.md) | Version-pinned best practices: inventory β T1 anchor β reconcile with repo |
| [`.cursor/skills/senior-practices/reference.md`](.cursor/skills/senior-practices/reference.md) | Compact checklist version |
---
## π§ Design principles
| | Principle |
| --- | --- |
| π― | **Behavior contracts, not model identity.** Rules don't assert "Composer = X model". Cursor's model lineup changes; the principles are durable. |
| π€ | **Intent + metacognition.** Read for the real outcome, not the literal words; form an approach, then re-evaluate it before acting. Depth scales with blast radius. |
| πͺΆ | **Tiny always-on core.** Always-on prompts cost context forever. Orchestration, tools, and specialists stay requestable or in `.cursor/agents/`. |
| π§© | **One concern per rule.** Orchestration is separate from debugging is separate from research. Activate what the task needs. |
| π§ | **Concrete over abstract.** Rules show good vs bad with examples, not adjectives. |
| πͺ | **Honest tooling.** Never fabricate output; never mark **verified** from a subagent summary alone. |
| π« | **Git remote safety.** Agents must not `git push` unless the user explicitly asks in the current turn. For hard enforcement, add your own [`beforeShellExecution` hook](https://cursor.com/docs/agent/hooks) β not shipped in this pack. |
| βοΈ | **Agents execute, rules govern.** Verifier runs checks; verification rule defines when and how to label results. |
---
## π§ Extending
Add stack-specific rules as new `.mdc` files with `globs`:
```text
.cursor/rules/typescript.mdc # globs: **/*.{ts,tsx}
.cursor/rules/python.mdc # globs: **/*.py
.cursor/rules/rust.mdc # globs: **/*.rs
```
Add focused subagents under `.cursor/agents/` with specific `description` fields β avoid dozens of vague helpers ([Cursor subagent docs](https://cursor.com/docs/agent/subagents)).
Keep extensions short. Don't duplicate core or verification β link to them.
---
## π Layout
```text
.cursor/
agents/
verifier.md # example subagent
debugger.md # example subagent
rules/
composer-core.mdc # always on
composer-verification.mdc # always on
composer-reasoning.mdc # requestable
composer-orchestration.mdc # requestable
composer-coding-excellence.mdc # requestable
composer-senior-practices.mdc # requestable
composer-debugging.mdc # requestable
composer-deep-research.mdc # requestable
composer-fullstack-delivery.mdc # requestable
cursor-tools-discipline.mdc # requestable
clarify-first.mdc # requestable
skills/
deep-research/
SKILL.md
reference.md
senior-practices/
SKILL.md
reference.md
README.md
LICENSE
.gitignore
```
---
## π License
MIT β see [LICENSE](LICENSE)
**Made for teams who want agents that ship evidence, not vibes.**