learnship: Agent for Claude Code

.windsurf/learnship/agents/debugger.md

learnship-debugger is an agent for Claude Code, Windsurf from FavioVazquez/learnship. It costs 41 tokens per session (1,114 once invoked), scanned A, original, MIT.

A debugging role that investigates a reported bug by forming hypotheses, checking evidence in the code, and recording the findings in a debug session file.

In plain words
What is it for?
Use it to trace code paths, test possible explanations, rule out false leads, and identify the root cause of a bug. It is started by a debugging workflow when parallel investigation is enabled.
Why use it?
It replaces guesswork with a traceable investigation from the observed symptom to a confirmed cause. It asks the user only when the available code and evidence are insufficient.

Agent for Claude CodeWindsurf

Written for Claude Code and Windsurf: shipped in a Claude Code plugin, but also installed under .windsurf/. Also seen: mentions CLAUDE.md; mentions subagents; mentions AGENTS.md.

This is FavioVazquez/learnship's own configuration. It tells Claude Code and Windsurf how to work on learnship itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything learnship configures →

Part of the learnship plugin — 24 skills, 34 agents shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to FavioVazquez/learnship. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/FavioVazquez/learnship/main/.windsurf/learnship/agents/debugger.md
Clone the repo
git clone --depth 1 https://github.com/FavioVazquez/learnship

Made for: Claude Code, Windsurf.

Or install learnship, the plugin that ships this one along with the rest of its 24 skills, 34 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 learnship-debugger

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/faviovazquez/learnship/debugger"><img src="https://agentmods.dev/badge/agents/faviovazquez/learnship/debugger.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,114 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.00041 $0.01114
Opus 5.5 $0.00016 $0.00446
Sonnet 5.5 $0.00008 $0.00223
Haiku 4.5 $0.00004 $0.00111

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

Security

Grade A, and why

learnship-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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.windsurf/learnship/agents/debugger.md · 148 lines

How it starts

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

Spawned by debug when parallelization: true in config.

Your job: Find the root cause through hypothesis testing and write your findings to the debug session file. You have a fresh, full context budget — use it to read deeply.

CRITICAL: Mandatory Initial Read If the prompt contains a <files_to_read> block, you MUST use the Read tool to load every file listed there before performing any other actions.

<debugging_philosophy>

User = Reporter, You = Investigator

The user knows:

  • What the symptom is
  • What they expected
  • What they've already tried

You know:

  • How to trace code paths
  • Where to look for common failure modes
  • How to eliminate hypotheses systematically

Do NOT ask the user for information that you can find by reading the code. Read first, ask only when genuinely blocked.

Scientific Method

  1. Form a specific hypothesis: "The bug is caused by X in file Y because Z"
  2. Find evidence that would confirm or deny it
  3. Check the evidence (read files, grep, run safe read-only commands)
  4. Update: confirmed → root cause found; denied → next hypothesis
  5. Never declare root cause without confirming it explains the symptom

One Root Cause Rule

Bugs almost always have one root cause. Don't patch symptoms. Don't propose multiple "could also be" fixes. Find the one thing that, if changed, would make the symptom go away. </debugging_philosophy>

<execution_flow>

Step 1: Load Context

Read the debug session file completely. Extract:

  • Symptom description
  • Triage answers (when, expected, frequency, regression)
  • Hypotheses ranked by likelihood

Read project context file (./AGENTS.md, ./CLAUDE.md, or ./GEMINI.md — whichever exists).

Read .planning/STATE.md for recent changes and decisions.

Step 2: Investigate Hypotheses

For each hypothesis, starting with the most likely:

Read the full file on GitHub · 148 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 · 148 lines · 41 tokens per session scan A a77c44c6f0f8

Subscribe to this mod's changes

learnship-debugger is an agent published in the GitHub repository FavioVazquez/learnship (61 stars, last pushed 4mo ago), licensed MIT. It adds 41 tokens to every session and 1,114 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-08-30.

Related

Other agents, from other repositories

debugger

Debugging specialist for errors and test failures. Use when encountering build errors, runtime exceptions, test failures, or unexpected behavior. Invoke with /debugger to investigate issues.

madebyaris/advance-minimax-m3-cursor-rules · 37 tokens

dgx-spark-ops-engineer

NVIDIA DGX Spark environment doctor for GB10/aarch64/CUDA-13 systems. Diagnoses and fixes ML stack setup, unified-memory, and thermal issues. Use PROACTIVELY when preparing or debugging any training or inference workload on DGX Spark hardware.

wshobson/agents · 63 tokens

application-performance-performance-engineer

Expert performance engineer specializing in modern observability, application optimization, and scalable system performance. Masters OpenTelemetry, distributed tracing, load testing, multi-tier caching, Core Web Vitals, and performance monitoring. Handles end-to-end optimization, real user monitoring, and scalability…

wshobson/agents · 76 tokens

cicd-automation-devops-troubleshooter

Expert DevOps troubleshooter specializing in rapid incident response, advanced debugging, and modern observability. Masters log analysis, distributed tracing, Kubernetes debugging, performance optimization, and root cause analysis. Handles production outages, system reliability, and preventive monitoring. Use…

wshobson/agents · 74 tokens

team-debugger

Hypothesis-driven debugging investigator that investigates one assigned hypothesis, gathering evidence to confirm or falsify it with file:line citations and confidence levels. Use when debugging complex issues with multiple potential root causes.

wshobson/agents · 43 tokens

code-refactoring-legacy-modernizer

Refactor legacy codebases, migrate outdated frameworks, and implement gradual modernization. Handles technical debt, dependency updates, and backward compatibility. Use PROACTIVELY for legacy system updates, framework migrations, or technical debt reduction.

wshobson/agents · 52 tokens