bug-fix

bug-fix is a skill for Claude Code from onur-aslan/sdd. It costs 23 tokens per session (509 once invoked), scanned A, original, MIT.

A guided workflow for reproducing, diagnosing, fixing, and verifying software bugs.

In plain words
What is it for?
Use it to investigate bugs with code, logs, tests, browser checks, command-line tools, or other suitable evidence, applying the smallest effective fix.
Why use it?
It prevents changes from being made before the problem is understood and checks that a fix resolves the bug without causing a regression.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Part of the sdd plugin — 11 skills, 1 MCP server shipped together

Good fit Use it to investigate bugs with code, logs, tests, browser checks, command-line tools, or other suitable evidence, applying the smallest effective fix.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/onur-aslan/sdd/bug-fix
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.

Any agent
npx skills add onur-aslan/sdd --skill bug-fix
Clone the repo
git clone --depth 1 https://github.com/onur-aslan/sdd

Made for: Claude Code.

Or install sdd, the plugin that ships this one along with the rest of its 11 skills, 1 MCP server.

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-fix

README.md
[![agentmods](https://agentmods.dev/badge/skills/onur-aslan/sdd/bug-fix/github.svg)](https://agentmods.dev/skills/onur-aslan/sdd/bug-fix)
Your own site
<a href="https://agentmods.dev/skills/onur-aslan/sdd/bug-fix"><img src="https://agentmods.dev/badge/skills/onur-aslan/sdd/bug-fix/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-fix

Your own site · 80×15
<a href="https://agentmods.dev/skills/onur-aslan/sdd/bug-fix"><img src="https://agentmods.dev/badge/skills/onur-aslan/sdd/bug-fix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 509 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 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.00023 $0.00509
Opus 5.5 $0.00009 $0.00204
Sonnet 5.5 $0.00005 $0.00102
Haiku 4.5 $0.00002 $0.00051

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

Security

Grade A, and why

bug-fix scanned grade A 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 18d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- curl
sdd/skills/bug-fix/SKILL.md · 62 lines

How it starts

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

Bug Fix

Fix bugs autonomously without asking questions or waiting for approval.

Arguments

  • max_turns: Maximum attempts per phase. Default: 5. Must be a positive integer. If invalid, report the invalid value and stop.

Suitable Tools

Use tools as appropriate to the bug; not every tool is required.

  • Playwright MCP
  • Python
  • curl
  • CLI tools
  • Tests
  • Logs
  • Build tools

Workflow

flowchart TD
    A([Bug]) --> B[Analyze code and logs]
    B --> C[Reproduce using suitable tools]
    C --> D{Bug reproduced?}
    D -->|No| C
    D -->|Yes| E[Apply minimal fix]
    E --> F[Verify using suitable tools]
    F --> G{Resolved without regression?}
    G -->|No| H[Analyze evidence and reassess root cause]
    H --> E
    G -->|Yes| I[Report results]
    I --> J([Done])

Rules

  • Reproduce the bug before changing code.
  • For backend bugs, prioritize writing a failing test among suitable tools.
  • If the bug cannot be reproduced within the attempt limit, do not attempt a fix; report the failure and available evidence.
  • Identify the root cause and apply the smallest effective fix.
  • Use tests that exercise the real code path; mock only external dependencies when appropriate.
  • Never weaken, skip, or delete tests to make them pass.
  • Validate max_turns before starting. Apply it independently to the reproduction phase and the fix-and-verify phase; each phase has its own counter.
  • Each reproduction attempt counts as one turn. Each fix-and-verify iteration, including one fix followed by verification, counts as one turn. The initial attempt counts toward the limit.
  • When either phase reaches its limit without success, stop and report the outcome, evidence, and unresolved issues.
  • If verification fails, analyze the evidence and reassess the root cause before attempting another fix.
  • Never claim success without verification.
  • If tools or infrastructure are unavailable, complete possible checks and report limitations.

Report

Summarize the root cause, changes made, attempts used in each phase, verification results, and unresolved issues or limitations.

Read the full file on GitHub · 62 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. 18d ago First seen · 62 lines · 23 tokens per session scan A bd22f29c75e1

Subscribe to this mod's changes

bug-fix is a skill published in the GitHub repository onur-aslan/sdd (12 stars, last pushed 3d ago), licensed MIT. It adds 23 tokens to every session and 509 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-12.

Related

bug-fix compared with skills from other repositories

bug-fix next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bug-fixonur-aslan/sddSkill123d agoMITA23Claude Code
comet-hotfixrpamis/cometSkill3.3kyesterdayMITA40Claude Code, Codex
comet-hotfixrpamis/cometSkill3.3kyesterdayMITA40Codex
comet-github-ci-triagerpamis/cometSkill3.3kyesterdayMITA72Claude Code, Codex
comet-github-issue-triagerpamis/cometSkill3.3kyesterdayMITA66Claude Code, Codex
comet-runtime-diagnoserpamis/cometSkill3.3kyesterdayMITA70Claude Code, Codex
comet-github-issue-fixrpamis/cometSkill3.3kyesterdayMITA71Claude Code, Codex