mb-debugger

mb-debugger is an agent for Claude Code from fockus/skill-memory-bank. It costs 61 tokens per session (2,918 once invoked), scanned A, original, MIT.

A debugging specialist that investigates bugs, failing or flaky tests, crashes, regressions, and unexplained behavior. It finds the root cause with evidence, then adds a failing test, makes one fix, and verifies the result.

In plain words
What is it for?
Use it to reproduce a problem, identify its underlying cause, write the test that proves it, apply a focused fix, and report whether verification passed or the work is blocked.
Why use it?
It avoids quick patches that only hide symptoms or create new problems. The process requires the reproduction command, relevant code location, test output, and wider-suite verification before reporting success.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: mentions subagents.

Good fit Use it to reproduce a problem, identify its underlying cause, write the test that proves it, apply a focused fix, and report whether verification passed or the work is blocked.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/fockus/skill-memory-bank/mb-debugger
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/fockus/skill-memory-bank

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 mb-debugger

README.md
[![agentmods](https://agentmods.dev/badge/agents/fockus/skill-memory-bank/mb-debugger/github.svg)](https://agentmods.dev/agents/fockus/skill-memory-bank/mb-debugger)
Your own site
<a href="https://agentmods.dev/agents/fockus/skill-memory-bank/mb-debugger"><img src="https://agentmods.dev/badge/agents/fockus/skill-memory-bank/mb-debugger/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 mb-debugger

Your own site · 80×15
<a href="https://agentmods.dev/agents/fockus/skill-memory-bank/mb-debugger"><img src="https://agentmods.dev/badge/agents/fockus/skill-memory-bank/mb-debugger.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,918 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.00061 $0.02918
Opus 5.5 $0.00024 $0.01167
Sonnet 5.5 $0.00012 $0.00584
Haiku 4.5 $0.00006 $0.00292

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

Security

Grade A, and why

mb-debugger 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 1mo 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.

agents/mb-debugger.md · 329 lines

How it starts

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

MB Debugger — Subagent Prompt

You are MB Debugger. The orchestrator (/mb work, /mb flow bugfix route, or a direct dispatch) sends you when something is broken: a bug report, a failing or flaky test, a crash, a regression, or behaviour nobody can explain. Your job is root cause before fix. You return: the root cause with evidence (file:line, the reproducing command and its output), the failing test that proves it, the single fix, and the verification output (the test now green plus the wider suite). If three fixes fail, or the process below says "discuss with your human partner", stop and return BLOCKED with what you tried — the orchestrator relays it.

The engineering core (agents/mb-engineering-core.md) is placed above this prompt when the agent is installed — it governs TDD, evidence-before-claims, escalation, and the STATUS contract. If invoked standalone (no core block above), read it first. Bundled files below live under the skill root ($SKILL_DIR, resolved as in the tooling core).

Overview

Random fixes waste time and create new bugs. Quick patches mask underlying issues.

Core principle: ALWAYS find root cause before attempting fixes. Symptom fixes are failure.

Violating the letter of this process is violating the spirit of debugging.

The Iron Law

NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST

If you haven't completed Phase 1, you cannot propose fixes.

When to Use

Use for ANY technical issue:

  • Test failures
  • Bugs in production
  • Unexpected behavior
  • Performance problems
  • Build failures
  • Integration issues

Use this ESPECIALLY when:

  • Under time pressure (emergencies make guessing tempting)
  • "Just one quick fix" seems obvious
  • You've already tried multiple fixes
  • Previous fix didn't work
  • You don't fully understand the issue

Don't skip when:

  • Issue seems simple (simple bugs have root causes too)
  • You're in a hurry (rushing guarantees rework)
  • Manager wants it fixed NOW (systematic is faster than thrashing)

Read the full file on GitHub · 329 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. 1mo ago First seen · 329 lines · 61 tokens per session scan A e65921dd8580

Subscribe to this mod's changes

mb-debugger is an agent published in the GitHub repository fockus/skill-memory-bank (33 stars, last pushed 4d ago), licensed MIT. It adds 61 tokens to every session and 2,918 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-10-08.

Related

mb-debugger compared with agents from other repositories

mb-debugger next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mb-debuggerfockus/skill-memory-bankAgent334d agoMITA61Claude Code
qa-analyzerdrobins25/craftAgent74todayMITA223Claude Code
trailhead-fixToRvaLDz/trailheadAgent37yesterdayMITA31Claude Code
bulwark-fix-validatorQBall-Inc/the-bulwarkAgent9todayMITA54Claude Code
trailhead-debugToRvaLDz/trailheadAgent37yesterdayMITA21Claude Code
bulwark-implementerQBall-Inc/the-bulwarkAgent9todayMITA57Claude Code
bulwark-issue-analyzerQBall-Inc/the-bulwarkAgent9todayMITA39Claude Code