debugging-before-fixes

debugging-before-fixes is a skill for Claude Code from bartoszarendt/agenticloop. It costs 77 tokens per session (1,077 once invoked), scanned A, original, MIT.

A debugging procedure for when a test, build, required check, or runtime behavior fails or is unexpected. It requires reproducing the problem reliably and finding its underlying cause before changing the code.

In plain words
What is it for?
Use it to reproduce failures with tests, commands, API calls, scripts, captured inputs, fuzzing, or comparison with an earlier working version. It also covers recording debugging evidence and hypotheses.
Why use it?
A quick patch can hide the real problem or create another bug. A repeatable failure loop provides evidence for investigating and verifying the eventual fix.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the agenticloop plugin — 18 skills, 3 commands, 4 agents shipped together

Good fit Use it to reproduce failures with tests, commands, API calls, scripts, captured inputs, fuzzing, or comparison with an earlier working version. It also covers recording debugging evidence and hypotheses.

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

Made for: Claude Code.

Or install agenticloop, the plugin that ships this one along with the rest of its 18 skills, 3 commands, 4 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 debugging-before-fixes

README.md
[![agentmods](https://agentmods.dev/badge/skills/bartoszarendt/agenticloop/debugging-before-fixes/github.svg)](https://agentmods.dev/skills/bartoszarendt/agenticloop/debugging-before-fixes)
Your own site
<a href="https://agentmods.dev/skills/bartoszarendt/agenticloop/debugging-before-fixes"><img src="https://agentmods.dev/badge/skills/bartoszarendt/agenticloop/debugging-before-fixes/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 debugging-before-fixes

Your own site · 80×15
<a href="https://agentmods.dev/skills/bartoszarendt/agenticloop/debugging-before-fixes"><img src="https://agentmods.dev/badge/skills/bartoszarendt/agenticloop/debugging-before-fixes.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,077 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 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.00077 $0.01077
Opus 5.5 $0.00031 $0.00431
Sonnet 5.5 $0.00015 $0.00215
Haiku 4.5 $0.00008 $0.00108

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

Security

Grade A, and why

debugging-before-fixes scanned grade A 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 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

3. A `curl` or API smoke call against the dev stack.
skills/debugging-before-fixes/SKILL.md · 101 lines

How it starts

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

Debugging before fixes

No fix without a root cause first. Patching symptoms burns review iterations and often adds a second bug. Guess-and-check thrashing is how tasks end blocked or review-exhausted under [[blocked-state]].

Step 1: build the feedback loop

Before investigating or fixing, stand up a fast, deterministic, agent-runnable loop that reproduces the failure on demand. Reach for the highest item on this list that actually reproduces the failure:

  1. A failing unit, integration, or browser test.
  2. The targeted command from the task record's Required Checks.
  3. A curl or API smoke call against the dev stack.
  4. A small CLI or script run against a checked-in fixture.
  5. Replaying a captured payload, request, or log line through the failing code.
  6. A throwaway harness in .agenticloop/tmp/ that calls the failing unit directly.
  7. A fuzz or property loop when the triggering input is unknown.
  8. git bisect or a differential loop when a previously passing behavior regressed.

Prefer the cheapest deterministic loop that still fails for the real reason. Capture the exact command: it becomes RED proof for [[tdd-implementation]] and evidence for [[verification-evidence]].

Phase 2: investigate

  • Read the entire error message and stack trace.
  • Run the Step 1 loop and watch the real failure.
  • Diff what changed.
  • Trace the bad value or state back to where it originates.

Phase 3: compare

Find code in this repo that does the same kind of thing and works. Read the reference fully, then list concrete differences between it and the broken path.

Phase 4: hypothesize and test

Calibrate effort to the failure:

  • If the output fully explains a trivial error, fix it directly.
  • If the failure is non-obvious, not fully explained, or already survived one fix attempt, write 3-5 ranked falsifiable hypotheses before changing code.

Put each hypothesis in this form:

If X is the cause, then observing or changing Y should produce Z.

Test hypotheses in rank order with the smallest observation or change that discriminates. Wrong hypotheses are reverted and recorded as ruled out.

Read the full file on GitHub · 101 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 Changed 39fc24bfd7cc
  2. 1mo ago First seen · 101 lines · 77 tokens per session scan A ffee49788dac

Subscribe to this mod's changes

debugging-before-fixes is a skill published in the GitHub repository bartoszarendt/agenticloop (2 stars, last pushed 1mo ago), licensed MIT. It adds 77 tokens to every session and 1,077 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

opencli-autofix

Automatically fix broken OpenCLI adapters when commands fail. Load this skill when an opencli command fails — it guides you through collecting a trace artifact, patching the adapter, retrying, and filing an upstream GitHub issue after a verified fix. Works with any AI agent.

OWWZO/ai-agent · 61 tokens

ppt-generation

Use this skill when the user requests to generate, create, or make presentations (PPT/PPTX). Creates visually rich slides by generating images for each slide and composing them into a PowerPoint file.

bytedance/deer-flow · 44 tokens

academic-paper-review

Use this skill when the user requests to review, analyze, critique, or summarize academic papers, research articles, preprints, or scientific publications. Supports comprehensive structured reviews covering methodology assessment, contribution evaluation, literature positioning, and constructive feedback generation.…

bytedance/deer-flow · 95 tokens

code-documentation

Use this skill when the user requests to generate, create, or improve documentation for code, APIs, libraries, repositories, or software projects. Supports README generation, API reference documentation, inline code comments, architecture documentation, changelog generation, and developer guides. Trigger on requests…

bytedance/deer-flow · 88 tokens

image-generation

Use this skill when the user requests to generate, create, imagine, or visualize images including characters, scenes, products, or any visual content. Supports structured prompts and reference images for guided generation.

bytedance/deer-flow · 42 tokens

newsletter-generation

Use this skill when the user requests to generate, create, write, or draft a newsletter, email digest, weekly roundup, industry briefing, or curated content summary. Supports topic-based research, content curation from multiple sources, and professional formatting for email or web distribution. Trigger on requests…

bytedance/deer-flow · 88 tokens