debug-loop

debug-loop is a skill for Claude Code, Codex from white1024/agent-nextup. It costs 62 tokens per session (1,168 once invoked), scanned A, original, MIT.

A repeatable method for finding and fixing bugs or performance slowdowns when the cause is unclear. It first creates a test or other check that fails for the exact problem, then uses evidence to guide the fix.

In plain words
What is it for?
Use it for flaky, slow, or failing software, including server requests, browser behavior, random-input failures, version comparisons, and hard-to-reproduce bugs.
Why use it?
It replaces guesswork with a feedback loop and leaves a regression test, meaning a test that prevents the same bug from returning. It also helps protect credentials found in commands, logs, and captured data.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for flaky, slow, or failing software, including server requests, browser behavior, random-input failures, version comparisons, and hard-to-reproduce bugs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/white1024/agent-nextup/debug-loop
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 white1024/agent-nextup --skill debug-loop
Clone the repo
git clone --depth 1 https://github.com/white1024/agent-nextup

Made for: Claude Code, Codex.

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 debug-loop

README.md
[![agentmods](https://agentmods.dev/badge/skills/white1024/agent-nextup/debug-loop/github.svg)](https://agentmods.dev/skills/white1024/agent-nextup/debug-loop)
Your own site
<a href="https://agentmods.dev/skills/white1024/agent-nextup/debug-loop"><img src="https://agentmods.dev/badge/skills/white1024/agent-nextup/debug-loop/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 debug-loop

Your own site · 80×15
<a href="https://agentmods.dev/skills/white1024/agent-nextup/debug-loop"><img src="https://agentmods.dev/badge/skills/white1024/agent-nextup/debug-loop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,168 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.00062 $0.01168
Opus 5.5 $0.00025 $0.00467
Sonnet 5.5 $0.00012 $0.00234
Haiku 4.5 $0.00006 $0.00117

Measured 4d ago against content hash 5fc0701a6a84, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

debug-loop 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 4d 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.

crates/nextup-core/skills/debug-loop/SKILL.md · 78 lines

How it starts

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

debug-loop — no theory before a red loop

Goal: the bug is fixed, a test that once went red on it now passes, and the cause that turned out to be true is on the record.

Redact before you show anything: commands, outputs and captured logs often carry credentials. Write <REDACTED> in their place and keep secrets in environment variables.

1. Build a feedback loop that goes red on this bug

This is the whole skill; everything after it is mechanical. Spend disproportionate effort here, and be inventive. Roughly in order of preference:

  1. a failing test at whatever seam reaches the bug;
  2. a request script against a running server;
  3. a command run on a fixture, its output diffed against a known-good one;
  4. a headless browser script asserting on the page, console or network;
  5. a captured payload or trace replayed through the code path;
  6. a throwaway harness that runs just the failing path;
  7. a loop over many random inputs, for "sometimes wrong";
  8. a bisection script between a known-good and a known-bad state;
  9. the same input through the old and new versions, outputs diffed;
  10. as a last resort, a scripted checklist a human follows, each result fed back to you.

Then tighten it: faster (skip unrelated setup), sharper (assert the exact symptom, not "did not crash"), steadier (pin time, seed randomness, isolate the filesystem). For an intermittent bug, raise the reproduction rate until it is debuggable — loop it, parallelise it, add load.

Done when you can name one command, already run and shown with its output, that drives the real code path, asserts the user's exact symptom, gives the same verdict every run, finishes in seconds and runs without a human. Until that command exists, the next step is more loop-building, not reading code for a theory.

If you genuinely cannot build one, say so and list what you tried. Mark the task blocked with that list as the reason, and ask the user for access to an environment that reproduces it, a captured artifact, or permission to add temporary instrumentation.

Read the full file on GitHub · 78 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. 4d ago First seen · 78 lines · 62 tokens per session scan A 5fc0701a6a84

Subscribe to this mod's changes

debug-loop is a skill published in the GitHub repository white1024/agent-nextup (2 stars, last pushed 5d ago), licensed MIT. It adds 62 tokens to every session and 1,168 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-19.

Related

Other skills, from other repositories

03-assert

Assert the work behaves by iterating the project's coding assertions until they pass, plus optional architecture and frontend facets. Use to validate an implementation. Not for reviewing or writing tests.

ai-driven-dev/framework · 39 tokens

08-debug

Reproduce and fix a known bug, or find an unknown root cause by hypothesis validation. Use when the user wants to fix a bug, find why something breaks, or reopen a stuck investigation. Not for building a feature or reviewing a diff.

ai-driven-dev/framework · 52 tokens

bug-fix-protocol

8-step disciplined bug-fix protocol that treats every production bug as two failures — the code defect itself and the testing system that allowed it through. Use when fixing a production bug, investigating a regression, writing a post-mortem, or auditing a missed defect. Triggers on "fix this bug", "production bug"…

CodeAlive-AI/ai-driven-development · 94 tokens

bugfix-quick

Fast bug fixes with root cause investigation + TDD. Enforces 'no fix without root cause' discipline and verification protocol. Without this skill, fixes are applied at symptoms instead of sources, and bugs return.

nguyenthienthanh/aura-frog · 47 tokens

debug

Debug a stubborn bug with a deterministic reproduction, hypothesis ledger, one-variable fixes, and a regression test. Use after the first obvious look fails, reproduction is unclear, or a fix attempt failed. Not for routine obvious failures; use for "ไล่บั๊ก".

ohm41321/luciazero · 57 tokens

health-checker

Assess selected project health checks using actual configured commands and preserved execution evidence. Distinguish failures, warnings, skips, unavailable checks, and justified non-applicability without applying fixes or claiming release readiness.

RaNDoM6913/claude-code-superkit · 44 tokens