bugfix

bugfix is a command for Claude Code from rube-de/cc-skills. It costs 60 tokens per session (828 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 for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions subagents; names the AskUserQuestion tool.

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

Good fit Use it with an issue number, a bug description, or both to run tester, developer, and reviewer steps and optionally create a pull request.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/rube-de/cc-skills/bugfix
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/rube-de/cc-skills

Made for: Claude Code.

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/github.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/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 bugfix

Your own site · 80×15
<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="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 828 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.00060 $0.00828
Opus 5.5 $0.00024 $0.00331
Sonnet 5.5 $0.00012 $0.00166
Haiku 4.5 $0.00006 $0.00083

Measured 12d ago against content hash d35fd04432fe, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 12d 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: ask before push (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. 12d ago Changed · +5 tokens per session d35fd04432fe
  2. 1mo 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 60 tokens to every session and 828 once invoked, about $0.0002 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.