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 agentmods add skills/martinffx/atelier/oracle-debugnpx skills add martinffx/atelier --skill oracle-debuggit clone --depth 1 https://github.com/martinffx/atelierWrote 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/martinffx/atelier/oracle-debug)<a href="https://agentmods.dev/skills/martinffx/atelier/oracle-debug"><img src="https://agentmods.dev/badge/skills/martinffx/atelier/oracle-debug.svg" alt="Measured on agentmods" 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 | $0.00056 | $0.02095 |
| Opus 5 | $0.00028 | $0.01047 |
| Sonnet 5 | $0.00011 | $0.00419 |
| Haiku 4.5 | $0.00006 | $0.00210 |
Grade A, and why
oracle-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 3d 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 — 226 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Oracle Debug
Random fixes waste time and create new bugs. Quick patches mask underlying issues.
Core principle: find root cause before a permanent corrective fix. Temporary containment is appropriate when needed to limit security, production, or data-loss impact.
Violating the letter of this process is violating the spirit of debugging.
The Iron Law
NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST
If you haven't completed Phase 1, you cannot propose fixes.
When to Use
Use for any technical issue:
- Test failures
- Bugs in production
- Unexpected behavior
- Performance regressions
- Build or integration failures
- Intermittent failures
Use this especially when:
- Under time pressure
- "Just one quick fix" seems obvious
- You've already tried multiple fixes
- The previous fix didn't work
- You don't fully understand the issue
The Four Phases
You must complete each phase before proceeding to the next.
Phase 1 — Root Cause Investigation
Before attempting any fix:
Use the project's domain glossary and ADRs to build a clear mental model of the relevant modules before tracing.
-
Read error messages carefully. Read the full stack trace, line numbers, file paths, and error codes. Don't skip warnings.
-
Build a fast feedback loop. If you don't have a fast, deterministic, pass/fail signal for the bug, no amount of code-reading will save you. Spend disproportionate effort here.
Try these in order:
- Failing test at the seam that reaches the bug
- Curl / HTTP script against a running dev server
- CLI invocation with fixture input
- Headless browser script (Playwright/Puppeteer)
- Replay a captured trace (network payload, event log)
- Throwaway harness (minimal subset of the system)
- Property/fuzz loop for "sometimes wrong" bugs
- Bisection harness (e.g.,
git bisect run) - Differential loop (old vs new version)
- HITL bash script (last resort — structure the human clicks)
Iterate on the loop: make it faster, sharper, and more deterministic. A 30-second flaky loop is barely better than no loop.
What ships with it
2 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.
- 3d ago First seen · 226 lines · 56 tokens per session scan A fe3fbe8f6768
oracle-debug is a skill published in the GitHub repository martinffx/atelier (45 stars, last pushed 24d ago), licensed MIT. It adds 56 tokens to every session and 2,095 once invoked, about $0.0003 per session on Opus 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-30.
Other skills, from other repositories
security-ownership-map
Analyze git repositories to build a security ownership topology (people-to-file), compute bus factor and sensitive-code ownership, and export CSV/JSON for graph databases and visualization. Trigger only when the user explicitly wants a security-oriented ownership or bus-factor analysis grounded in git history (for…
docx-comment-reply
Reply to comments (批注) in Word .docx/.doc files: extract comment context, draft replies, write threaded replies back, and validate OOXML.
oma-scholar
Scholarly research companion using Knows sidecar spec (.knows.yaml). Generates, validates, reviews, queries, and compares structured research-paper sidecars, and fetches them from knows.academy. Use for academic literature search, survey synthesis, paper authoring assistance, and peer review with token-efficient…
recipe-quality-profile
Proposes repository-specific quality policy for implementation and review and, after confirmation, creates or updates docs/project-context/quality.yaml. Use when asked to create or update a repository quality profile.
spk-team-auth
Handle Spec Kitty team authentication, hosted credentials, account selection, and auth-related recovery.
cross-task-learner
Enable agent loops to learn from similar past tasks and share patterns across loops.