bugfix

bugfix is a command for coding agents from rube-de/cc-skills. It costs 55 tokens per session (821 once invoked), scanned A, original, MIT.

A coordinated test-driven development workflow for fixing bugs. TDD means writing a failing test first, making it pass, and then improving the code without breaking the test.

In plain words
What is it for?
Use it with an issue number, a bug description, or both to run tester, developer, and reviewer steps and optionally create a pull request.
Why use it?
It structures the fix and review work so the bug is reproduced, the change is checked, and the result is reviewed before completion.

Command

Part of the cdt plugin — 1 skill, 5 commands, 1 agent, 4 hooks shipped together

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.

agentmods
npx agentmods add commands/rube-de/cc-skills/bugfix
Clone the repo
git clone --depth 1 https://github.com/rube-de/cc-skills

Or install cdt, the plugin that ships this one along with the rest of its 1 skill, 5 commands, 1 agent, 4 hooks.

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 bugfix

README.md
[![agentmods](https://agentmods.dev/badge/commands/rube-de/cc-skills/bugfix.svg)](https://agentmods.dev/commands/rube-de/cc-skills/bugfix)
Your own site
<a href="https://agentmods.dev/commands/rube-de/cc-skills/bugfix"><img src="https://agentmods.dev/badge/commands/rube-de/cc-skills/bugfix.svg" alt="Measured on agentmods" height="20"></a>
Per session 55 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 821 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00055 $0.00821
Opus 5 $0.00028 $0.00411
Sonnet 5 $0.00011 $0.00164
Haiku 4.5 $0.00006 $0.00082

Measured 4d ago against content hash 2728581f5e87, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

bugfix 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 4d 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.

plugins/cdt/commands/bugfix.md · 78 lines

How it starts

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

ROLE: Coordinator only. You MUST NOT use Edit, Write, or NotebookEdit tools on source code, test files, or project docs. All implementation, testing, review, and documentation MUST be delegated to teammates via SendMessage. If you find yourself about to edit a file, STOP and delegate to the appropriate teammate instead. You verify artifacts and manage git operations only.

/bugfix — TDD Bugfix Workflow

Target: $ARGUMENTS

Single-phase workflow: assemble bug spec, then run a red-green-refactor cycle with a Developer/Tester/Reviewer triad. No planning phase — the bug issue IS the plan.

bugfix-team
┌───────────────────────────────┐
│  Lead (You)                   │
│  ├── tester     [tm]  RED     │
│  ├── developer  [tm]  GREEN   │
│  ├── reviewer   [tm]  REVIEW  │
│  └── researcher [sa]  on-demand│
└───────────────────────────────┘

Flow: Tester → Developer → Tester → Developer → Tester → Reviewer
      (RED)    (GREEN)    (VERIFY)  (REFACTOR) (VERIFY)  (REVIEW)

[tm] = teammate (Agent Team) [sa] = subagent

The bugfix-team label above is a role name; the actual team name created by the workflow is scoped per run as bugfix-<branch-slug>-<YYYYMMDD-HHMMSS>-<nonce> to avoid collisions on the global ~/.claude/teams/ namespace, where branch-slug is the current branch name with / replaced by -.

Step 0: Workflow Declaration

Print to the user before proceeding:

Workflow: bugfix
 Roles: tester [tm], developer [tm], reviewer [tm], researcher [sa]
 Pipeline: RED → GREEN → REFACTOR → REVIEW
 Coordinator role: orchestration only — no direct file edits
 PR: auto (pass --no-pr to commit only)

Execution

Follow the bugfix workflow defined in @bugfix-workflow.md.

Completion Audit

Before wrap-up, log which roles were actually used:

Bugfix complete:
 - tester     [tm]: [used / NOT USED]
 - developer  [tm]: [used / NOT USED]
 - reviewer   [tm]: [used / NOT USED]
 - researcher [sa]: [used / NOT USED]

Read the full file on GitHub · 78 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. 4d ago First seen · 78 lines · 55 tokens per session scan A 2728581f5e87

Subscribe to this mod's changes

bugfix is a command published in the GitHub repository rube-de/cc-skills (10 stars, last pushed today), licensed MIT. It adds 55 tokens to every session and 821 once invoked, about $0.0003 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-08-31.