bugfix-protocol

bugfix-protocol is a skill for Claude Code, Codex from ellmos-ai/skills. It costs 34 tokens per session (2,303 once invoked), scanned C, original, MIT.

A six-step method for finding and fixing software bugs. It covers quick checks, cause-finding, isolated testing, fixing, verification and documentation.

In plain words
What is it for?
Use it to investigate error messages, reproduce bugs, apply a small correction, check for side effects and record the result.
Why use it?
It replaces unfocused trial and error with a repeatable debugging process. A 20-minute rule prompts you to change approach or ask for help when progress stops.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to investigate error messages, reproduce bugs, apply a small correction, check for side effects and record the result.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ellmos-ai/skills/en
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 ellmos-ai/skills --skill en
Clone the repo
git clone --depth 1 https://github.com/ellmos-ai/skills

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/ellmos-ai/skills/en/github.svg)](https://agentmods.dev/skills/ellmos-ai/skills/en)
Your own site
<a href="https://agentmods.dev/skills/ellmos-ai/skills/en"><img src="https://agentmods.dev/badge/skills/ellmos-ai/skills/en/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-protocol

Your own site · 80×15
<a href="https://agentmods.dev/skills/ellmos-ai/skills/en"><img src="https://agentmods.dev/badge/skills/ellmos-ai/skills/en.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,303 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.00034 $0.02303
Opus 5 $0.00017 $0.01151
Sonnet 5 $0.00007 $0.00461
Haiku 4.5 $0.00003 $0.00230

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

Security

Grade C, and why

bugfix-protocol 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 9d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

find . -name "__pycache__" -type d -exec rm -rf {} + 2>&1
skills/dev/bugfix-protocol/EN/SKILL.md · 334 lines

How it starts

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

English — Official English version of bugfix-protocol.

Bugfix Protocol: Systematic 6-Phase Debugging

A structured approach to bugs — from symptom analysis to verification. Prevents aimless trial-and-error and ensures fixes are sustainable.


Overview & Purpose

Phase Name Goal Max. Time
1 Quick Checks Rule out obvious causes 2 min
2 Diagnosis Locate root cause 10 min
3 Isolated Test Make bug reproducible 5 min
4 Fix Minimal correction 10 min
5 Verification Verify fix + check side effects 5 min
6 Documentation Preserve knowledge 2 min

20-Minute Rule: If no progress after 20 minutes, change approach or seek help.


Phase 1: Quick Checks (2 min)

Before diving deep — check the most common causes:

Checklist

  • Syntax error? Read error message carefully, check line
  • Import error? Module installed? Correct name? Circular import?
  • Typo? Variable/function names correct?
  • Wrong data type? String instead of int? None where object expected?
  • Stale cache? Delete __pycache__, restart
  • Wrong environment? Correct venv active? Correct Python version?
  • Encoding? UTF-8 vs. cp1252 (Windows classic)

Quick Actions

# Clear cache
find . -name "__pycache__" -type d -exec rm -rf {} + 2>&1
find . -name "*.pyc" -delete 2>&1

# Check imports
python -c "import modulename"

# Check syntax
python -m py_compile file.py

Phase 2: Diagnosis (10 min)

Strategy: Outside-In

  1. Analyze error message — Read traceback from bottom to top
  2. Check recent changesgit diff, git log --oneline -10
  3. Use diagnostic tools — Use project-specific diagnostic tools

Diagnostic Tools (Examples)

Depending on the project, specialized diagnostic scripts may be helpful:

Tool Purpose
import_diagnose.py Analyze import problems
method_analyzer.py Check method signatures
env_checker.py Validate environment variables/paths

Read the full file on GitHub · 334 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. 9d ago First seen · 334 lines · 34 tokens per session scan C 4e607ad53666

Subscribe to this mod's changes

bugfix-protocol is a skill published in the GitHub repository ellmos-ai/skills (4 stars, last pushed today), licensed MIT. It adds 34 tokens to every session and 2,303 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.