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 DeevsDeevs/agent-system --skill diagnosegit clone --depth 1 https://github.com/DeevsDeevs/agent-systemWrote 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/deevsdeevs/agent-system/diagnose)<a href="https://agentmods.dev/skills/deevsdeevs/agent-system/diagnose"><img src="https://agentmods.dev/badge/skills/deevsdeevs/agent-system/diagnose/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/deevsdeevs/agent-system/diagnose"><img src="https://agentmods.dev/badge/skills/deevsdeevs/agent-system/diagnose.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.00035 | $0.00941 |
| Opus 5.5 | $0.00014 | $0.00376 |
| Sonnet 5.5 | $0.00007 | $0.00188 |
| Haiku 4.5 | $0.00003 | $0.00094 |
Grade A, and why
diagnose 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 27d 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 — 70 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Diagnose
Use when correctness is uncertain. Do not patch from vibes: make the bug observable, prove the cause, fix the smallest thing, verify against the original symptom. Use the target repo's native build/test/runtime commands as the evidence loop.
1. Define the symptom
Expected: ...
Actual: ...
Observed in: command/log/file/process id/agent id/artifact id
If the report is vague, ask for the missing observable (exact command, stack trace, id, log path, repro steps). Do not chase unrelated warnings until they connect to this symptom.
2. Orient just enough
Identify only the smallest relevant area: repo root/cwd, package/crate/service, entrypoint triggering the symptom, closest test/fixture/log source, and expensive commands to avoid. Never map the whole codebase.
3. Build the feedback loop
Find the fastest deterministic loop that reaches the bug, e.g. cargo test -p <crate> <filter> -- --nocapture, a focused unit test, a CLI run on fixture input, a request script against a dev server, a replay of a captured event, or a small throwaway harness when no seam exists.
- Slow repro loops and servers: run them in hc (
hc run --bg, thenhc waitorhc wait --output <ready line>; see thehcskill) — never&,nohup,disown,setsid. - Subagents only for independent investigation, tightly scoped with
cwdand exact files; continue other runnable probes while it runs; its report arrives by itself. - For long diagnoses, save a chain link (
chainsskill) with the symptom, repro command, hypotheses tested, files touched, ids, and next step.
Do not proceed until the loop reproduces the bug or proves more evidence is needed.
4. Reproduce and minimize
Confirm the loop matches the user's symptom, not a nearby failure. Then reduce to the smallest file set, command, input, and package, and the shortest log excerpt that proves the problem. For flaky bugs, raise the reproduction rate: repeat, isolate shared state, pin cwd, tune concurrency/stress, record pass/fail counts.
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.
- 27d ago First seen · 70 lines · 35 tokens per session scan A c0960d281a48
diagnose is a skill published in the GitHub repository DeevsDeevs/agent-system (42 stars, last pushed 2d ago), licensed Apache-2.0. It adds 35 tokens to every session and 941 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-11-05.
diagnose compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| diagnoseDeevsDeevs/agent-system | Skill | 42 | 2d ago | Apache-2.0 | A | 35 | Claude Code, Codex |
| doca-flowNVIDIA/skills | Skill | 4.3k | today | Apache-2.0 | A | 224 | Claude Code |
| compute-sanitizer-diagnose-cuda-bugsNVIDIA/skills | Skill | 4.3k | today | Apache-2.0 | A | 213 | Claude Code, Codex |
| tao-analyze-gaps-visual-changenetNVIDIA/skills | Skill | 4.3k | today | Apache-2.0 | A | 103 | Claude Code |
| doca-debugNVIDIA/skills | Skill | 4.3k | today | Apache-2.0 | A | 234 | Claude Code |
| compileiq-author-objectiveNVIDIA/skills | Skill | 4.3k | today | Apache-2.0 | A | 150 | Claude Code |
| compileiq-debugNVIDIA/skills | Skill | 4.3k | today | Apache-2.0 | A | 125 | Claude Code |