composer-debugging

composer-debugging is a cursor rule for Cursor from madebyaris/cursor-composer-rules. It costs 33 tokens per session (1,218 once invoked), scanned A, original, MIT.

A set of rules for investigating broken, flaky, or unexpected software behavior. It emphasizes reproducing the problem, tracing the data, testing likely causes, and fixing the underlying cause.

In plain words
What is it for?
Use it to structure bug investigations, establish a repeatable reproduction, narrow down causes, and choose a focused fix.
Why use it?
It prevents random changes and symptom fixes that hide the real problem without making the software reliable.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions subagents.

Good fit Use it to structure bug investigations, establish a repeatable reproduction, narrow down causes, and choose a focused fix.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/madebyaris/cursor-composer-rules/composer-debugging
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/madebyaris/cursor-composer-rules

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for composer-debugging

README.md
[![agentmods](https://agentmods.dev/badge/rules/madebyaris/cursor-composer-rules/composer-debugging/github.svg)](https://agentmods.dev/rules/madebyaris/cursor-composer-rules/composer-debugging)
Your own site
<a href="https://agentmods.dev/rules/madebyaris/cursor-composer-rules/composer-debugging"><img src="https://agentmods.dev/badge/rules/madebyaris/cursor-composer-rules/composer-debugging/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for composer-debugging

Your own site · 80×15
<a href="https://agentmods.dev/rules/madebyaris/cursor-composer-rules/composer-debugging"><img src="https://agentmods.dev/badge/rules/madebyaris/cursor-composer-rules/composer-debugging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,218 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00033 $0.01218
Opus 5.5 $0.00013 $0.00487
Sonnet 5.5 $0.00007 $0.00244
Haiku 4.5 $0.00003 $0.00122

Measured 25d ago against content hash 270efa4cdd5b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

composer-debugging scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 25d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/composer-debugging.mdc · 124 lines

How it starts

The opening of the file, as written. The whole thing — 124 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Composer debugging

Use whenever something is broken, failing, flaky, or behaves unexpectedly. The goal is to find the cause, not silence the alarm.

A bug with a known repro: reproduce, trace, minimal fix, one scoped test — the fast path in composer-core § Two speeds. The six steps below are for an unclear or flaky failure.

Establish reproduction in the parent before spawning the debugger subagent (.cursor/agents/debugger.md), unless the task is explore-only. For parallel survey work, see composer-orchestration.

The debugging mindset

Bugs are not random. They have causes. Your job is to find the cause with the cheapest possible experiments, then fix it surgically.

Reproduce before theory. A plausible hypothesis is not a diagnosis — establish the failing path first, then explain it.

Avoid the three classic anti-patterns:

  1. Symptom-patching: making the error message disappear without understanding why it appeared.
  2. Guess-and-check: changing things at random hoping it works.
  3. Premature theory: committing to a hypothesis before evidence supports it — especially tempting when a confident explanation arrives early.

Step 1 — Reproduce reliably

Do not start fixing until you can reproduce. A bug you cannot reproduce is a bug you cannot fix; you can only paper over it.

  • Find the smallest reliable repro: an exact command, input, route, or test case that triggers it.
  • Note environment specifics: OS, runtime version, dependency versions, timing, concurrency, data state.
  • If it's flaky, reproduce it at least three times before believing you have it.

If you genuinely cannot reproduce, say so and propose what data would let you (logs, a failing test, more user steps).

Step 2 — Read the actual error

Read the full error message and stack trace, not just the first line.

  • What component reported the error?
  • What was the input/state at the failure point?
  • What's the closest frame in code you control?
  • What does the error message actually mean (look it up if unfamiliar)?

Read the full file on GitHub · 124 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 25d ago Changed · +2 lines · +12 tokens per session 270efa4cdd5b
  2. 1mo ago First seen · 122 lines · 21 tokens per session scan A 35a5416da40e

Subscribe to this mod's changes

composer-debugging is a cursor rule published in the GitHub repository madebyaris/cursor-composer-rules (3 stars, last pushed 26d ago), licensed MIT. It adds 33 tokens to every session and 1,218 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.