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 furkangonel/cowrangler --skill debugginggit clone --depth 1 https://github.com/furkangonel/cowranglerWrote 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/furkangonel/cowrangler/debugging)<a href="https://agentmods.dev/skills/furkangonel/cowrangler/debugging"><img src="https://agentmods.dev/badge/skills/furkangonel/cowrangler/debugging/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/furkangonel/cowrangler/debugging"><img src="https://agentmods.dev/badge/skills/furkangonel/cowrangler/debugging.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.00019 | $0.00754 |
| Opus 5.5 | $0.00008 | $0.00302 |
| Sonnet 5.5 | $0.00004 | $0.00151 |
| Haiku 4.5 | $0.00002 | $0.00075 |
Grade A, and why
debugging 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 3mo 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 — 116 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Debugging SOP
The Scientific Method for Bugs
Step 1 — Understand the Symptom
- Read the error message / stack trace carefully (every line)
- Identify: What was expected? What actually happened?
- Note: When does it occur? Always, or only sometimes?
- Check: Is this a regression? When did it last work?
Step 2 — Reproduce the Bug
# Can you reproduce it reliably?
# If not, it may be:
# - Race condition (timing-dependent)
# - Environment-specific (env vars, OS, versions)
# - Data-dependent (specific inputs trigger it)
- Reduce to the minimal reproduction case
- Confirm the reproduction before investigating
- Check if it reproduces in a fresh environment
Step 3 — Read the Code
- Locate the exact file and function from the stack trace
- Trace the execution path from input → failure point
- Look at what changed recently:
git log --since="3 days ago" -- <file>
Step 4 — Form a Hypothesis
State your hypothesis explicitly:
"I think the bug is caused by X because Y"
Then check what evidence would confirm or disprove it.
Step 5 — Verify the Hypothesis
Add targeted logging to confirm:
console.log("[DEBUG]", { variableName, type: typeof variableName });
Or use the debugger:
node --inspect-brk dist/main.js # Attach Chrome DevTools
Step 6 — Fix
- Make the minimal change that fixes the root cause
- Do NOT fix symptoms — fix root causes
- Do NOT refactor while fixing (separate concerns)
Step 7 — Verify the Fix
# Run existing tests
npm test
# Confirm the original reproduction no longer fails
# Add a regression test to prevent recurrence
Common Bug Patterns
Async/Await Issues
// WRONG — Promise not awaited
const data = fetchData(); // returns Promise, not data
console.log(data.name); // undefined!
// CORRECT
const data = await fetchData();
Off-by-One
- Array indices:
arr[arr.length]is undefined,arr[arr.length - 1]is last - Loop boundaries:
< lengthvs<= length
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.
- 3mo ago First seen · 116 lines · 19 tokens per session scan A 0e47e95d2b6e
debugging is a skill published in the GitHub repository furkangonel/cowrangler (1 stars, last pushed 2mo ago), licensed MIT. It adds 19 tokens to every session and 754 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-31.
debugging compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| debuggingfurkangonel/cowrangler | Skill | 1 | 2mo ago | MIT | A | 19 | Claude Code, Codex |
| session-investigatorevalstate/fast-agent | Skill | 4.0k | today | Apache-2.0 | A | 68 | Claude Code, Codex |
| smiles-validationsynthetic-sciences/openscience | Skill | 4.5k | yesterday | Apache-2.0 | A | 24 | Claude Code, Codex |
| claw-adminx-cmd/x-cmd | Skill | 4.8k | 10d ago | Apache-2.0 | A | 48 | Claude Code, Codex |
| optimizex-cmd/x-cmd | Skill | 4.8k | 10d ago | Apache-2.0 | A | 29 | Claude Code, Codex |
| vs-search-tuning-partial-casevolcengine/SearchCLI | Skill | 1.2k | 22d ago | Apache-2.0 | A | 85 | Claude Code, Codex |
| sivtr-memoryAriestar/sivtr | Skill | 259 | today | Apache-2.0 | A | 46 | Claude Code, Codex |