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.
npx skills add white1024/agent-nextup --skill debug-loopgit clone --depth 1 https://github.com/white1024/agent-nextupWrote 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.
[](https://agentmods.dev/skills/white1024/agent-nextup/debug-loop)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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:
- a failing test at whatever seam reaches the bug;
- a request script against a running server;
- a command run on a fixture, its output diffed against a known-good one;
- a headless browser script asserting on the page, console or network;
- a captured payload or trace replayed through the code path;
- a throwaway harness that runs just the failing path;
- a loop over many random inputs, for "sometimes wrong";
- a bisection script between a known-good and a known-bad state;
- the same input through the old and new versions, outputs diffed;
- 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.
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.
- 4d ago First seen · 78 lines · 62 tokens per session scan A 5fc0701a6a84
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.
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.
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.
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"…
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.
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 "ไล่บั๊ก".
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.