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.
npx agentmods add rules/danielvm-git/bigpowers/fix-buggit clone --depth 1 https://github.com/danielvm-git/bigpowersWrote 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.
[](https://agentmods.dev/rules/danielvm-git/bigpowers/fix-bug)<a href="https://agentmods.dev/rules/danielvm-git/bigpowers/fix-bug"><img src="https://agentmods.dev/badge/rules/danielvm-git/bigpowers/fix-bug.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00040 | $0.00747 |
| Opus 5 | $0.00020 | $0.00374 |
| Sonnet 5 | $0.00008 | $0.00149 |
| Haiku 4.5 | $0.00004 | $0.00075 |
Grade A, and why
fix-bug 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 today.
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.
How it starts
The opening of the file, as written. The whole thing — 67 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Fix Bug
Boundary: Orchestrator flow — chains investigate-bug (entry point + RCA via diagnose-root) → develop-tdd → validate-fix. Does not implement RCA or write bug files directly.
Orchestrates fix_bug flow without mixing epic build state.
HARD GATE — Set
specs/state.yamlactive_flow: fix_bugandbug_cycle.current_step: 1before starting.
Discovered gate failures (e51s04)
Valid entry without a user-reported bug when:
- Preflight or CI is red at kickoff or verify-work
- Golden suite or project baseline is red (
bash scripts/run-verification-gates.shor equivalent) - A reproducible gate failure during unrelated epic work exceeds quick-fix guardrails
Create specs/bugs/BUG-*.md via investigate-bug (or inline in fix-bug step 1) describing the gate failure, then run the standard fix_bug chain.
Five steps (bug_cycle in state.yaml)
| Step | Skill / action |
|---|---|
| 1 | investigate-bug — create BUG-*.md with RCA |
| 2 | diagnose-root — 4-phase root cause analysis |
| 3 | develop-tdd — red-green against bug file verify steps |
| 4 | validate-fix — re-run failing test, full suite, lint |
| 5 | release-branch — PR or solo land the fix |
Checkpoint / resume
Track progress via specs/state.yaml bug_cycle:
bug_cycle.current_step: current step (1–5)bug_cycle.completed_steps: completed step numbershandoff.next_skill: skill for the current step- On resume, read
bug_cycle.current_stepand continue from there
Process
- Step 1 — investigate-bug: If no
specs/bugs/BUG-*.md, runinvestigate-bugfirst — it handles history check, RCA (viadiagnose-root), fix approach, and writes the bug file. Incrementbug_cycle.current_stepto 2 on completion. - Step 2 — diagnose-root: Run 4-phase RCA (reproduce → isolate → hypothesize → verify). Record findings in the bug file. Increment to step 3.
- Step 3 — develop-tdd:
develop-tddagainst the bug file's verify steps. Increment to step 4 on all-green. - Step 4 — validate-fix:
validate-fix— re-run failing test, full suite, typecheck, lint. Increment to step 5. - Step 5 — release-branch: Land the fix via
release-branch. Clearbug_cycleandactive_flowwhen done.
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.
- today First seen · 67 lines · 40 tokens per session scan A ba504f66dcf4
fix-bug is a cursor rule published in the GitHub repository danielvm-git/bigpowers (163 stars, last pushed 2d ago), licensed MIT. It adds 40 tokens to every session and 747 once invoked, about $0.0002 per session on Opus 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-09-03.
Other cursor rules, from other repositories
ponytail
Ponytail, lazy senior dev mode. Always pick the simplest solution that works.
app-router-patterns
Next.js 14+ App Router patterns — Server Components, Client Components, Route Handlers, Server Actions, and metadata API.
00-project-rules
ContextOS core project rules and role orchestration.
context-os
ContextOS rules for context-os.
database
Database architecture, schema design, Prisma, Drizzle ORM, indexing strategies, migrations, and N+1 query resolution.
vue
Rules for Vue (2 and 3) single-file components.