bug-fix

bug-fix is a skill for Claude Code, Codex from mtvrkan/senior-dev-kit. It costs 31 tokens per session (261 once invoked), scanned A, original, MIT.

A workflow for fixing localized software problems such as runtime errors, failing tests, white screens, console errors, and regressions.

In plain words
What is it for?
Use it to inspect an error or failing test, make a focused fix, add a regression test when needed, and verify the result.
Why use it?
It traces the reported symptom to its cause and limits the change to the smallest responsible code path, reducing the chance of introducing new problems.

Skill for Claude CodeCodex

Part of the senior-dev-kit plugin — 25 skills, 6 commands, 9 agents, 1 hook 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 skills/mtvrkan/senior-dev-kit/bug-fix
Any agent
npx skills add mtvrkan/senior-dev-kit --skill bug-fix
Clone the repo
git clone --depth 1 https://github.com/mtvrkan/senior-dev-kit

Made for: Claude Code, Codex.

Or install senior-dev-kit, the plugin that ships this one along with the rest of its 25 skills, 6 commands, 9 agents, 1 hook.

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/mtvrkan/senior-dev-kit/bug-fix.svg)](https://agentmods.dev/skills/mtvrkan/senior-dev-kit/bug-fix)
Your own site
<a href="https://agentmods.dev/skills/mtvrkan/senior-dev-kit/bug-fix"><img src="https://agentmods.dev/badge/skills/mtvrkan/senior-dev-kit/bug-fix.svg" alt="Measured on agentmods" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 261 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.00031 $0.00261
Opus 5 $0.00015 $0.00130
Sonnet 5 $0.00006 $0.00052
Haiku 4.5 $0.00003 $0.00026

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

Security

Grade A, and why

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

skills/bug-fix/SKILL.md · 27 lines

What it actually says

bug-fix

Read error → root cause → smallest fix → test → done.

  1. Read stack trace / error / failing test first. Open ONLY files in the stack trace or directly symptom-related.
  2. Fix the smallest responsible code path. Run targeted test — no test exists → add 1 regression test. Non-obvious fix → one-line comment explaining why.
  3. Escalate immediately: auth/session/token/payment → security-guard | DB corruption/schema/migration → db-guard.

Deep reference: agent_docs/error-handling-patterns.md — typed error hierarchies, boundary handling, retry/fallback patterns.

Output

ROOT: [what and where]
FIX: [file:line — what changed]
TEST: [command — ✓ | regression test added]
RISK: low | medium
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 · 27 lines · 31 tokens per session scan A c8c223f4705c

Subscribe to this mod's changes

bug-fix is a skill published in the GitHub repository mtvrkan/senior-dev-kit (5 stars, last pushed 4d ago), licensed MIT. It adds 31 tokens to every session and 261 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-08-31.

Related

Other skills, from other repositories

planning-with-files-ar

تخطيط مستمر قائم على الملفات لعمل وكلاء الذكاء الاصطناعي متعدد الخطوات. يحتفظ بملفات taskplan.md و findings.md و progress.md على القرص، وتحقن خطافات دورة الحياة سياق التخطيط المحدد للمشروع. تقرأ الاستعادة التلقائية ملفات تخطيط المشروع فقط. يمكن للأمر الصريح session-catchup.py --metadata فحص بيانات وصفية لجلسات الوكيل…

OthmanAdi/planning-with-files · 189 tokens

baoyu-youtube-transcript

Downloads YouTube video transcripts/subtitles and cover images by URL or video ID. Supports multiple languages, translation, chapters, and speaker identification. Caches raw data for fast re-formatting. Use when user asks to "get YouTube transcript", "download subtitles", "get captions", "YouTube字幕", "YouTube封面"…

JimLiu/baoyu-skills · 107 tokens

kl-consistency-test

Write, calibrate, and debug the prefill-vs-decode logprob (KL) consistency tests in sglang -- the two independent conditions a zero requires (every operator batch-invariant, and the two paths computing the same function), which helper separates them, how to pick a threshold once they hold, and how to localize a…

sgl-project/sglang · 108 tokens

i18n-localization

Internationalization and localization patterns. Detecting hardcoded strings, managing translations, locale files, RTL support.

vudovn/ag-kit · 27 tokens

switchyard-rust-review

Review Switchyard Rust changes for correctness and maintainability. Use for pull requests or diffs touching crates, PyO3 bindings, async runtime behavior, streaming, protocol types, translation, algorithms, or LLM clients.

NVIDIA-NeMo/Switchyard · 50 tokens

seedance-vocab-ja

This skill should be used when the user asks for Japanese Seedance 2.0 prompt wording, Japanese cinematic vocabulary, or translation of camera, lighting, action, VFX, audio, and production terms into Japanese.

Emily2040/seedance-2.0 · 50 tokens