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 xonovex/platform --skill debugging-native-codegit clone --depth 1 https://github.com/xonovex/platformWrote 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/xonovex/platform/debugging-native-code)<a href="https://agentmods.dev/skills/xonovex/platform/debugging-native-code"><img src="https://agentmods.dev/badge/skills/xonovex/platform/debugging-native-code/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/xonovex/platform/debugging-native-code"><img src="https://agentmods.dev/badge/skills/xonovex/platform/debugging-native-code.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.00119 | $0.01126 |
| Opus 5.5 | $0.00048 | $0.00450 |
| Sonnet 5.5 | $0.00024 | $0.00225 |
| Haiku 4.5 | $0.00012 | $0.00113 |
Grade A, and why
debugging-native-code 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 9d 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 — 44 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Debugging Guidelines
Systematic, hypothesis-driven debugging of native/low-level software, plus designing each class of bug out of existence. The cheapest bug is the one made impossible; the next cheapest is the one that trips a tripwire the instant it happens. Lifetime/ownership design lives in managing-memory, race correctness in writing-lock-free-code, and speed profiling in applying-data-oriented-design; this skill is about finding bugs and preventing classes of them.
Essentials
- Classify the bug - Each class (logic, uninitialized, leak, overwrite, race, design, intermittent) has a design choice that eliminates the whole class, see references/bug-taxonomy.md
- Hypothesis, not flailing - Form one falsifiable guess, change one thing, predict, observe; never edit randomly, see references/scientific-debugging.md
- Get a deterministic repro first - A reliable repro is what lets you step through the "before"; shrink it small, see references/reproduction-and-bisection.md
- Trip the wire early - Assertions, invariants, validation layers, and sanitizers turn silent corruption into a loud failure at the fault site, see references/instrumentation-and-checks.md
Find the cause
- Bisect to the change - With a 100% repro, search history for the commit that introduced the bug, see references/reproduction-and-bisection.md
- Read the callstack and the bytes - Access violations and watch-window values steer the next hypothesis, see references/scientific-debugging.md
- Confirm before fixing - Verify the hypothesis (breakpoint/log) before you commit to a fix direction, see references/scientific-debugging.md
Make bugs catchable
- Prefer prevention by design - Asserts on preconditions, end-of-page allocators, type-safe APIs, and "clean up everything" expose bugs that would otherwise hide, see references/bug-taxonomy.md
- Tame intermittency with determinism - Remove nondeterminism or record/replay so the rare bug reproduces, see references/determinism-and-replay.md
- Instrument allocations and invariants - Tag allocations with file/line, count references, validate at API entry, see references/instrumentation-and-checks.md
What ships with it
9 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 9d ago First seen · 44 lines · 119 tokens per session scan A 626cc1363c9c
debugging-native-code is a skill published in the GitHub repository xonovex/platform (6 stars, last pushed yesterday), licensed MIT. It adds 119 tokens to every session and 1,126 once invoked, about $0.0005 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-11-21.
debugging-native-code compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| debugging-native-codexonovex/platform | Skill | 6 | yesterday | MIT | A | 119 | Claude Code |
| adopt-c-bounds-safetytartinerlabs/skills | Skill | 9 | yesterday | MIT | A | 50 | Claude Code |
| rust-checkHmbown/CodeWhale | Skill | 41k | yesterday | MIT | A | 15 | Claude Code, Codex |
| cpp-proJeffallan/claude-skills | Skill | 13k | today | MIT | A | 79 | Claude Code |
| temps-plugingotempsh/temps | Skill | 951 | today | Apache-2.0 | A | 94 | Claude Code, Codex |
| memory-modelmohitmishra786/low-level-dev-skills | Skill | 304 | 10d ago | MIT | A | 113 | Claude Code, Codex |
| pi-loop-forensicsdimetron/pi-go | Skill | 232 | 6d ago | MIT | A | 65 | Claude Code, Codex |