spec-debugger

spec-debugger is an agent for Claude Code from Habib0x0/spec-driven-plugin. It costs 25 tokens per session (2,591 once invoked), scanned A, original, MIT.

An agent that repairs an implementation after a tester or reviewer finds a problem, starting with a fresh investigation.

In plain words
What is it for?
Use it to check missing routes, menu links, component rendering, API registration, frontend requests, and displayed responses after a rejected change.
Why use it?
It helps resolve defects that the original implementer missed, especially when code exists but is not connected to the application.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the spec-driven plugin — 1 skill, 18 commands, 11 agents shipped together

Good fit Use it to check missing routes, menu links, component rendering, API registration, frontend requests, and displayed responses after a rejected change.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/habib0x0/spec-driven-plugin/spec-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/Habib0x0/spec-driven-plugin

Made for: Claude Code.

Or install spec-driven, the plugin that ships this one along with the rest of its 1 skill, 18 commands, 11 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/habib0x0/spec-driven-plugin/spec-debugger/github.svg)](https://agentmods.dev/agents/habib0x0/spec-driven-plugin/spec-debugger)
Your own site
<a href="https://agentmods.dev/agents/habib0x0/spec-driven-plugin/spec-debugger"><img src="https://agentmods.dev/badge/agents/habib0x0/spec-driven-plugin/spec-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 spec-debugger

Your own site · 80×15
<a href="https://agentmods.dev/agents/habib0x0/spec-driven-plugin/spec-debugger"><img src="https://agentmods.dev/badge/agents/habib0x0/spec-driven-plugin/spec-debugger.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 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,591 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.00025 $0.02591
Opus 5.5 $0.00010 $0.01036
Sonnet 5.5 $0.00005 $0.00518
Haiku 4.5 $0.00003 $0.00259

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

Security

Grade A, and why

spec-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/spec-debugger.md · 281 lines

How it starts

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

You are a Spec Debugger. You get called when the Tester or Reviewer rejects an implementation. Your job is to fix the specific issues they identified with a fresh perspective.

When You Get Called

  1. Tester found the implementation doesn't work or isn't wired in
  2. Reviewer found security/quality/architecture/integration issues
  3. Implementer's fixes didn't resolve the problem

The #1 Problem You'll Fix: Missing Wiring

The most common failure mode is code that exists but isn't connected to the application. Before looking at functional bugs, ALWAYS check:

  1. Is the route registered? Check router config files for the new route.
  2. Is the page in navigation? Check sidebar/menu/header for links to the new page.
  3. Is the component rendered? Check that new components are imported and used.
  4. Is the endpoint registered? Check the server/router for the new API endpoint.
  5. Is the frontend calling the API? Check that UI actions trigger the right API calls.
  6. Are responses rendered? Check that API data is displayed in the UI.

Wiring Diagnostic Checklist

Run through this when the Tester reports an integration failure:

1. Entry point → Router: Is the route defined?
2. Router → Page component: Does the route render the right component?
3. Navigation → Route: Is there a link/menu item that points to the route?
4. Page → API call: Does the page fetch/send data to the backend?
5. API call → Endpoint: Is the endpoint registered in the server?
6. Endpoint → Service: Does the endpoint call the right service/handler?
7. Service → Database: Does the service read/write the right data?
8. Response → UI: Does the API response get rendered in the component?

Find the broken link in this chain and fix it.

Your Approach

You bring fresh eyes to the problem. Don't assume the Implementer's approach was correct -- sometimes the fix requires a different strategy entirely.

Debugging Process

  1. Read the failure report from Tester or Reviewer
  2. Understand EXACTLY what's failing and why
  3. Check wiring first -- most "bugs" are actually missing connections
  4. Read the relevant code
  5. Identify the root cause (not just symptoms)
  6. Fix the issue
  7. Verify the fix connects everything -- trace the full path
  8. Message the Lead that fix is ready for re-testing

Read the full file on GitHub · 281 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 · 281 lines · 25 tokens per session scan A cffc398604bc

Subscribe to this mod's changes

spec-debugger is an agent published in the GitHub repository Habib0x0/spec-driven-plugin (10 stars, last pushed 5mo ago), licensed MIT. It adds 25 tokens to every session and 2,591 once invoked, about $0.0001 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-08-31.

Related

Other agents, from other repositories

code-explorer

Deep codebase discovery agent for refactoring and feature development workflows. Traces execution paths, maps architecture layers, catalogs dependencies, and produces structured codebase maps that feed all downstream agents. Runs as Phase 0.5 in refactoring or as parallel explorers in feature development.

zircote-plugins/refactor · 59 tokens

quality-fixer

Specialized agent for verifying software projects and fixing quality failures within the current task scope. Use proactively after code changes or for quality, test, build, lint, format, correctness, or fix requests.

shinpr/claude-code-workflows · 44 tokens

doctrine-performance-optimizer

Read-only performance audit of Doctrine usage: N+1 queries, fetch modes, batch processing, missing indexes, and caching opportunities. Use proactively after adding entities, relations, repository queries, or when a page/endpoint is reported slow.

dev-toolings/superpowers-symfony · 53 tokens

sniper

Use when: after ANY code modification (mandatory post-edit validation). Do NOT use for: new features, quick fixes already identified (use sniper-faster), read-only analysis.

fusengine/agents · 38 tokens

error-handler-inspector

Inspect code for unhandled errors, missing edge cases, silent failures, and exception handling gaps. Use when dispatching the error-handling facet of a parallel review. Do not use for a full-scope code review. Return P1/P2/P3 findings with file:line citations.

synaptiai/synapti-marketplace · 63 tokens

architect

Deep technical work. Use for complex implementation, deep debugging, cross-module reasoning, architecture review, and risky or security-sensitive changes (auth, billing, migrations, concurrency, caching, data consistency, public APIs). Also reviews work from cheaper agents for hidden flaws.

realgarit/fable-baton · 54 tokens