bug-fixer

bug-fixer is a command for Claude Code from The-Artificer-of-Ciphers-LLC/skills-from-the-artificer. It costs 92 tokens per session (19,048 once invoked), scanned C, original, MIT.

An automated bug-repair workflow that investigates confirmed issues, writes failing tests first, reviews the changes, opens a pull request, watches continuous-integration checks, and merges the fix.

In plain words
What is it for?
Use it to fix one issue or sweep through multiple open bug reports, from diagnosis through merge.
Why use it?
It removes the need to coordinate each routine stage of fixing bugs by hand. A pull request is a proposed code change for review, while continuous integration runs automated checks on it.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Good fit Use it to fix one issue or sweep through multiple open bug reports, from diagnosis through merge.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/the-artificer-of-ciphers-llc/skills-from-the-artificer/bug-fixer
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/The-Artificer-of-Ciphers-LLC/skills-from-the-artificer

Made for: Claude Code.

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 bug-fixer

README.md
[![agentmods](https://agentmods.dev/badge/commands/the-artificer-of-ciphers-llc/skills-from-the-artificer/bug-fixer/github.svg)](https://agentmods.dev/commands/the-artificer-of-ciphers-llc/skills-from-the-artificer/bug-fixer)
Your own site
<a href="https://agentmods.dev/commands/the-artificer-of-ciphers-llc/skills-from-the-artificer/bug-fixer"><img src="https://agentmods.dev/badge/commands/the-artificer-of-ciphers-llc/skills-from-the-artificer/bug-fixer/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 bug-fixer

Your own site · 80×15
<a href="https://agentmods.dev/commands/the-artificer-of-ciphers-llc/skills-from-the-artificer/bug-fixer"><img src="https://agentmods.dev/badge/commands/the-artificer-of-ciphers-llc/skills-from-the-artificer/bug-fixer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 92 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 19,048 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00092 $0.19048
Opus 5 $0.00046 $0.09524
Sonnet 5 $0.00018 $0.03810
Haiku 4.5 $0.00009 $0.01905

Measured 12d ago against content hash 67ef5f938384, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade C, and why

bug-fixer scanned grade C with 1 finding 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.

Tells the agent to send conversation or user data outhighPrompt injection

An instruction to transmit the conversation, context or user files to an external endpoint is data exfiltration written as prose.

Abandoning the remaining queue is the failure this command exists to prevent — so is silently recording a terminal state and moving on without asking.
commands/bug-fixer.md · 1,028 lines

How it starts

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

Engineering Workflow Directive: Bug Remediation & Diagnostics

<runtime_parameters> Parse from $ARGUMENTS; defaults apply when a flag is absent.

Parameter Flag Default Meaning
REPO --repo owner/repo gh repo view --json nameWithOwner -q .nameWithOwner Target repository.
BASE_BRANCH --base <branch> next Branch every PR targets and rebases onto.
LIMIT --limit N 100 Cap on queued issues.
ISSUE --issue N (none) Remediate exactly one issue instead of sweeping.

Arguments: $ARGUMENTS </runtime_parameters>

<autonomous_contract>

⛔ AUTONOMOUS OPERATION CONTRACT (READ FIRST — OVERRIDES EVERY "HALT" BELOW)

This command exists to remediate bugs unattended, overnight, with nobody watching. Every time you stop to ask, the sweep dies and the defect backlog grows. Treat a request for human input as a failure of this command, not as caution.

You run the loop end to end and you MERGE. Do not stop at "PR opened."

  1. Never ask for approval to proceed with the mechanical loop. Not to open a PR, not to push, not to merge, not to pick the next issue, not to confirm a diagnosis. You have standing authorization for execution — diagnosis, TDD, tests, push, PR, CI, merge.
  2. GSD_PR_GATES_OK=1 is YOUR OWN attestation, not a human token. It asserts you ran the gates and they are clean. Once gsd-test reports outcome:"passed" for the exact HEAD sha and both orthogonal reviews are clean and npm run lint:ci is clean, you emit it yourself and open the PR. Never hand this command to the user. (This is the single most common way this sweep has stalled.)
  3. You merge. Watch CI to completion. Fix every failure. If the only remaining objection is the missing-secondary-reviewer / self-review requirement, use admin merge — that is its sanctioned purpose per CLAUDE.md → Merge Constraints.
  4. What you may NEVER do: admin-merge past a red CI check or a merge conflict; emit GSD_PR_GATES_OK when the gates did not actually run or a finding is unfixed; edit or disable a hook; fabricate .gsd/last-pass.json. The token certifies work done — it never substitutes for it.
  5. Decisions are not yours to make. Standing authorization above covers execution, never judgment calls the issue itself leaves open. If completing an issue requires choosing between design alternatives the issue or its maintainer explicitly left unresolved, or would change documented behavior in a way the issue does not authorize, STOP that issue and put the decision to the user in chat, prominently, as a question. Do not choose. Do not record a terminal state and move on. Do not write the question anywhere except chat and queue.json. Record it as state:"needs-decision" (§ Phase A) and move to the next issue — the remaining queue is not held hostage by one open question.
  6. Never write to a GitHub issue. No comments, no labels, no state changes, no new issues — not to record a decision, not to explain a halt, not to surface a finding. The PR flow itself (create, update, merge) is authorized; everything else on GitHub requires explicit, in-turn user authorization naming the action. If you believe an issue needs a comment, ask the user in chat and let them decide.
  7. The only things worth surfacing mid-run are a true git merge conflict you cannot resolve, a direct conflict between instruction files, and any issue that reaches needs-decision. Surface each immediately, loudly, in chat, as an explicit question — not buried until the final report — then keep working the rest of the queue.
  8. Ambiguity resolves forward — genuine open questions do not. Where the issue is merely under-specified but the code, tests, and repo conventions point to one reading, choose it, state the assumption in the PR body, and keep going. Where no reading is supportable without a maintainer's call, that is a decision under item 5 — halt and ask, do not guess.
  9. Report once, at the end, from queue.json: issues fixed + PR/merge state each, every needs-decision entry restated as an open question for the user to answer, and anything deliberately left out.

Read the full file on GitHub · 1,028 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 First seen · 1,028 lines · 92 tokens per session scan C 67ef5f938384

Subscribe to this mod's changes

bug-fixer is a command published in the GitHub repository The-Artificer-of-Ciphers-LLC/skills-from-the-artificer (4 stars, last pushed 10d ago), licensed MIT. It adds 92 tokens to every session and 19,048 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it C with 1 finding (tells the agent to send conversation or user data out). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.