An open API service indexing awesome lists of open source software.

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.

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: MIT](https://img.shields.io/badge/License-MIT-22c55e?style=for-the-badge)](LICENSE)
[![Stack](https://img.shields.io/badge/Stack-agnostic-6366f1?style=for-the-badge)]()
[![Cursor](https://img.shields.io/badge/Cursor-Rules_&_Skills-0ea5e9?style=for-the-badge)](https://cursor.com)
[![Composer 2.5](https://img.shields.io/badge/Tuned_for-Composer_2.5-f97316?style=for-the-badge)]()


[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.**