Best for
- Test failures
- Bugs in production
- Unexpected behavior
martinffx/atelier/skills/oracle-debug/SKILL.md
Disciplined debugging methodology. Triggers on bug reports, test failures, "debug this", "diagnose this", unexpected behavior, build failures, integration issues, or performance regressions. Find root cause before a permanent corrective fix; contain urgent harm safely first.
Decision brief
Random fixes waste time and create new bugs. Quick patches mask underlying issues.
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/martinffx/atelier --skill "skills/oracle-debug"Inspect the Agent Skill "oracle-debug" from https://github.com/martinffx/atelier/blob/ab5331c44326f24cde29f30c269d079c84864134/skills/oracle-debug/SKILL.md at commit ab5331c44326f24cde29f30c269d079c84864134. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
Before attempting any fix:
Find the pattern before fixing.
Use the scientific method.
Fix the root cause, not the symptom.
If you catch yourself thinking:
Permission review
No configured static risk pattern was detected
This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.
Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 98/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 41 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
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.
NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST
If you haven't completed Phase 1, you cannot propose fixes.
Use for any technical issue:
Use this especially when:
You must complete each phase before proceeding to the next.
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:
git bisect run)Iterate on the loop: make it faster, sharper, and more deterministic. A 30-second flaky loop is barely better than no loop.
Reproduce the bug. Run the loop when safe. Confirm the failure matches what the user described and capture the exact symptom. When reproduction is unsafe or impossible, use historical artifacts, static evidence, or targeted telemetry instead.
Check recent changes. git diff, recent commits, new dependencies, config changes, environment differences.
Trace data flow. In multi-component systems, add diagnostic instrumentation at each boundary:
Run once to gather evidence, then narrow to the failing component.
Trace backward through the call stack. Where does the bad value originate? What called this with the bad value? Trace up until you find the source. Fix at the source, not at the symptom.
The goal is not a clean repro but a higher reproduction rate. Narrow timing windows and vary one condition at a time. Treat added delay or load as a perturbation, not proof. Do not replay state-changing traffic, stress production, or collect sensitive artifacts without explicit authorization and a safe operational plan.
Stop and say so explicitly. Ask the user for:
Do not claim root cause without evidence you can explain. A safe loop is preferred, but artifact-based investigation is valid when a loop is unavailable.
Find the pattern before fixing.
Use the scientific method.
Generate 3–5 ranked hypotheses. Single-hypothesis generation anchors on the first plausible idea. Each hypothesis must be falsifiable: state the prediction it makes. Show the ranked list to the user before testing — they often have domain knowledge that re-ranks instantly.
Format: "If
<X>is the cause, then<changing Y>will make the bug disappear /<changing Z>will make it worse."
Test one variable at a time. Make the smallest possible change to test the hypothesis.
Instrument mapped to predictions. Each probe must map to a specific prediction. Prefer a debugger/REPL over logs; prefer targeted logs at boundaries over "log everything and grep".
Tag every debug log with a unique prefix, e.g. [DEBUG-a4f2]. Cleanup becomes a single grep.
Performance regressions. Establish a baseline measurement using the least intrusive evidence available, then bisect. Measure first, fix second.
When you don't know, say so. Don't pretend. Ask for help or research more.
Fix the root cause, not the symptom.
Create a failing test case. The simplest possible reproduction. MUST exist before the fix.
A correct seam is one where the test exercises the real bug pattern as it occurs at the call site. If the only available seam is too shallow, note that the codebase architecture is preventing the bug from being locked down.
Implement a single fix. Address the root cause. One change at a time. No "while I'm here" improvements. No bundled refactoring.
Verify the fix. Does the test pass? Do other tests still pass? Does the original repro no longer reproduce?
If the fix doesn't work:
Before declaring done:
[DEBUG-...] instrumentation removedIf you catch yourself thinking:
All of these mean: stop. Return to Phase 1.
| Excuse | Reality |
|---|---|
| "Issue is simple, don't need process" | Simple issues have root causes too. |
| "Emergency, no time for process" | Systematic debugging is faster than thrashing. |
| "Just try this first, then investigate" | First fix sets the pattern. Do it right from the start. |
| "I'll write the test after confirming the fix" | Untested fixes don't stick. Test first proves the bug. |
| "Multiple fixes at once saves time" | Can't isolate what worked. Causes new bugs. |
| "Reference too long, I'll adapt the pattern" | Partial understanding guarantees bugs. |
| "I see the problem, let me fix it" | Seeing symptoms ≠ understanding root cause. |
| Phase | Key Activities | Success Criteria |
|---|---|---|
| 1. Root cause | Read errors, build loop, reproduce, trace data flow | Understand what and why |
| 2. Pattern analysis | Find working examples, compare | Identify differences |
| 3. Hypothesis | Form theory, test minimally | Confirmed or new hypothesis |
| 4. Implementation | Failing test, single fix, verify | Bug resolved, tests pass |
After each session, summarize:
## Debug Summary
**Problem:** [One sentence]
**Root Cause:** [What actually was wrong]
**Fix:** [How you fixed it]
**Verification:** [Test results]
**Prevention:** [Regression test added? Architectural finding?]
references/bug-patterns.mdreferences/techniques.mdStructure inspired by obra/superpowers systematic-debugging.
Frequently asked questions
Random fixes waste time and create new bugs. Quick patches mask underlying issues.
The source record exposes this install command: npx skills add https://github.com/martinffx/atelier --skill "skills/oracle-debug". Inspect the command and pinned source before running it.
Alternatives
coreyhaines31/marketingskills
When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program
alirezarezvani/claude-skills
App Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklist
JasonColapietro/suede-creator-skills
Suede-owned experimentation discipline for hypotheses, sample sizing, test duration, significance, and repeatable experiment programs. Use when comparing variants, deciding whether a result is reliable, or building an experiment backlog and cadence. NOT FOR: analytics instrumentation (use suede-analytics), post-click conversion diagnosis (use suede-site-alchemy), or writing the variant copy itself (use suede-copy).
tenequm/skills
Decision validation and thinking frameworks for startup founders. Use when you need to pressure-test a decision, validate your next steps, think through strategic options, or sanity-check your approach. Triggers on phrases like "should I", "help me think through", "is this the right move", "validate my thinking", "what am I missing". Covers fundraising, customer development, runway management, prioritization, and crypto/web3 founder challenges.