Borrowing it
Nothing to install: this file belongs to junghwaYang/oh-my-codex. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/junghwaYang/oh-my-codex/main/.codex/skills/debug/SKILL.mdgit clone --depth 1 https://github.com/junghwaYang/oh-my-codexWrote 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/junghwayang/oh-my-codex/debug)<a href="https://agentmods.dev/skills/junghwayang/oh-my-codex/debug"><img src="https://agentmods.dev/badge/skills/junghwayang/oh-my-codex/debug/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/junghwayang/oh-my-codex/debug"><img src="https://agentmods.dev/badge/skills/junghwayang/oh-my-codex/debug.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.00000 | $0.00862 |
| Opus 5.5 | $0.00000 | $0.00345 |
| Sonnet 5.5 | $0.00000 | $0.00172 |
| Haiku 4.5 | $0.00000 | $0.00086 |
Grade A, and why
debug 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 2mo 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 — 171 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Debug Skill
Systematic debugging and troubleshooting.
When to Use
- Unexpected errors or behavior
- Performance issues
- Intermittent failures
- Complex bugs that resist simple fixes
When NOT to Use
- Clear, simple errors with obvious fixes
- Feature development (use autopilot)
Debugging Methodology
1. REPRODUCE
Before fixing anything:
- Get exact steps to reproduce
- Identify if it's consistent or intermittent
- Note environment (OS, browser, versions)
- Capture error messages verbatim
2. ISOLATE
Narrow down the problem:
- Binary search through code/commits
- Remove components until bug disappears
- Check if bug exists in isolation
3. HYPOTHESIZE
Form theories:
- What changed recently?
- What assumptions might be wrong?
- What are the edge cases?
4. TEST
Verify hypothesis:
- Add logging/breakpoints
- Write failing test
- Check in debugger
5. FIX
Apply minimal fix:
- Fix root cause, not symptoms
- Don't introduce new bugs
- Add regression test
6. VERIFY
Confirm fix:
- Original bug is gone
- No new bugs introduced
- Tests pass
Common Bug Patterns
Off-by-One
// Bug: skips last item
for (let i = 0; i < arr.length - 1; i++)
// Fix:
for (let i = 0; i < arr.length; i++)
Null/Undefined
// Bug: crashes on null
user.profile.name
// Fix: optional chaining
user?.profile?.name
Async Race Condition
// Bug: uses stale data
setData(await fetch('/api'));
doSomething(data); // data not updated yet
// Fix: use returned value
const newData = await fetch('/api');
setData(newData);
doSomething(newData);
State Mutation
// Bug: mutates original
const sorted = arr.sort();
// Fix: copy first
const sorted = [...arr].sort();
Closure Capture
// Bug: all callbacks use final i
for (var i = 0; i < 5; i++) {
setTimeout(() => console.log(i), 100);
}
// Fix: use let or IIFE
for (let i = 0; i < 5; i++) {
setTimeout(() => console.log(i), 100);
}
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.
- 2mo ago First seen · 171 lines · 0 tokens per session scan A 675c024174fd
debug is a skill published in the GitHub repository junghwaYang/oh-my-codex (5 stars, last pushed 8mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 862 tokens. 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.
debug compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| debugjunghwaYang/oh-my-codex | Skill | 5 | 8mo ago | MIT | A | 0 | Codex |
| systematic-debuggingopen-metadata/OpenMetadata | Skill | 16k | today | Apache-2.0 | A | 37 | Claude Code |
| log-error-digestzebbern/claude-code-guide | Skill | 4.7k | today | MIT | A | 71 | Claude Code, Codex |
| cwv-optimizeradobe/skills | Skill | 319 | today | Apache-2.0 | A | 112 | Claude Code |
| ci-fixersipyourdrink-ltd/bernstein | Skill | 1.2k | today | Apache-2.0 | A | 15 | Claude Code, Codex |
| diagnosing-missing-recordingsPostHog/posthog | Skill | 41k | today | none | A | 76 | Claude Code, Codex |
| loop-engineeringhuytieu/COG-second-brain | Skill | 1.3k | 15d ago | MIT | A | 63 | Claude Code |