shipyard:debugger

shipyard:debugger is an agent for Claude Code from lgbarn/shipyard. It costs 37 tokens per session (930 once invoked), scanned A, original, MIT.

A debugging guide for finding the underlying cause of bugs, failed tests, and unexpected behavior before suggesting a fix. It uses the “5 Whys” method, which repeatedly asks why a problem happened until the cause is clear.

In plain words
What is it for?
Use it to investigate software bugs, test failures, and errors that cross multiple components. It helps trace failures, compare broken code with working examples, and identify missing checks or design problems.
Why use it?
It helps prevent fixes that only hide symptoms or create new problems. The investigation is based on error messages, repeatable tests, recent changes, and evidence from each system component.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Part of the shipyard plugin — 25 skills, 25 commands, 20 agents, 6 hooks shipped together

Good fit Use it to investigate software bugs, test failures, and errors that cross multiple components. It helps trace failures, compare broken code with working examples, and identify missing checks or design problems.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/lgbarn/shipyard/shipyard-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/lgbarn/shipyard

Made for: Claude Code.

Or install shipyard, the plugin that ships this one along with the rest of its 25 skills, 25 commands, 20 agents, 6 hooks.

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 shipyard:debugger

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/lgbarn/shipyard/shipyard-debugger"><img src="https://agentmods.dev/badge/agents/lgbarn/shipyard/shipyard-debugger.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 930 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.00037 $0.00930
Opus 5.5 $0.00015 $0.00372
Sonnet 5.5 $0.00007 $0.00186
Haiku 4.5 $0.00004 $0.00093

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

Security

Grade A, and why

shipyard: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.

.claude/agents/shipyard-debugger.md · 120 lines

How it starts

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

NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST

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

Phase 1: Root Cause Investigation

  1. Read Error Messages Carefully

    • Read stack traces completely
    • Note line numbers, file paths, error codes
    • Don't skip past warnings
  2. Reproduce Consistently

    • Run the failing command/test
    • Can you trigger it reliably?
    • What are the exact steps?
  3. Check Recent Changes

    • git log --oneline -20 for recent commits
    • git diff for uncommitted changes
    • New dependencies, config changes
  4. Gather Evidence in Multi-Component Systems

    • For each component boundary: log what enters and exits
    • Run once to gather evidence showing WHERE it breaks
    • Then investigate that specific component
  5. Apply 5 Whys

    • Ask "Why?" iteratively (3-8 times) until reaching a systemic root cause
    • Base each answer on evidence (logs, data, code), not speculation
    • Follow one causal chain to completion before exploring alternatives
    • Stop when you reach a fixable process gap, missing validation, or design flaw

Phase 2: Pattern Analysis

  1. Find similar working code in the codebase
  2. Compare against references (read completely, don't skim)
  3. Identify every difference between working and broken
  4. Understand dependencies and assumptions

Phase 3: Hypothesis and Testing

  1. Form a single, specific hypothesis: "X is the root cause because Y"
  2. Test with the SMALLEST possible change
  3. One variable at a time
  4. If hypothesis is wrong, form a NEW one (don't pile fixes)
  5. Timebox each hypothesis — If ~15 minutes of investigation yields no confirming evidence, pivot to the next hypothesis. Don't sink diminishing returns into a dead end.

Read the full file on GitHub · 120 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 · 120 lines · 37 tokens per session scan A fd05e2a40bb8

Subscribe to this mod's changes

shipyard:debugger is an agent published in the GitHub repository lgbarn/shipyard (65 stars, last pushed 8d ago), licensed MIT. It adds 37 tokens to every session and 930 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-30.

Related

Other agents, from other repositories

evidence-based-investigator

Investigates codebase issues by gathering concrete evidence — file paths, line numbers, code snippets, error messages, git history, and test coverage. Use when thorough, multi-angle research into a bug, failure, or unexpected behavior is needed. Does not trace runtime data flow across modules — use behavioral-analyst.…

testdouble/han · 85 tokens

ia-bug-reproduction-validator

Validates, reproduces, and root-cause analyzes bug reports (does not fix). Use when a bug report needs verification and root-cause identification before committing to a fix; invoked without a GitHub issue. For issue-linked reproduction use /ia-reproduce-bug.

iliaal/whetstone · 62 tokens

e2e-failure-classifier

Use when a Playwright or Cypress test failure needs a root cause, to classify ONE failure into the F1–F15 taxonomy shared by playwright-debugger and cypress-debugger. Give it the failing test name and the report excerpt (error, stack, attempt info); it reads the spec and config, returns the F-code with confidence…

voidmatcha/e2e-skills · 100 tokens

e2e-finding-verifier

Use after e2e-reviewer or scan.sh reports findings, to adversarially verify ONE finding in its real code context before it is acted on. Give it the pattern ID, file:line, and the flagged snippet; it reads the surrounding spec, project config, and the pattern contract, tries to REFUTE the finding first, and returns…

voidmatcha/e2e-skills · 118 tokens

inspector-error-edge

Pre-delivery inspector for error-handling completeness and edge-case coverage across the whole codebase. Produces findings only; never edits code.

mumerfarooq-con/asdlc-tools · 33 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