atelier-orchestrator
Skill routing and workflow orchestration. Selects Inline Plan or Spec-backed Plan, routes to the correct workflow skill, and manages transitions between…
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.
$ npx -y skills add martinffx/atelier --skill oracle-debug --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/oracle-debugContext preview
The summary Claude sees to decide when to auto-load this skill.
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.
name: oracle-debug description: > 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. user-invocable: true
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.
1. **Read error messages carefully.** Read the full stack trace, line numbers, file paths, and error codes. Don't skip warnings. 2. **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:
Iterate on the loop: make it faster, sharper, and more deterministic. A 30-second flaky loop is barely better than no loop.
3. **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. 4. **Check recent changes.** `git diff`, recent commits, new dependencies, config changes, environment differences. 5. **Trace data flow.** In multi-component systems, add diagnostic instrumentation at each boundary:
Run once to gather evidence, then narrow to the failing component. 6. **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.
1. **Find working examples.** Locate similar working code in the same codebase. 2. **Compare against references.** If implementing a known pattern, read the reference implementation completely. 3. **Identify differences.** List every difference between working and broken, however small. 4. **Understand dependencies.** What components, config, settings, and assumptions does this code rely on?
---
Use the scientific method.
1. **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."
2. **Test one variable at a time.** Make the smallest possible change to test the hypothesis. 3. **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.
4. **Performance regressions.** Establish a baseline measurement using the least intrusive evidence available, then bisect. Measure first, fix second.
5. **When you don't know, say so.** Don't pretend. Ask for help or research more.
---
Fix the root cause, not the symptom.
1. **Create a failing test case.** The simplest possible reproduction. MUST exist before the fix.
A **correct seam** is one where
A personal development toolkit for AI agents. It covers spec-driven development, code quality, and deep thinking. Atelier gives coding agents a disciplined way to move from an idea to reviewed, verified code without taking control away from the developer.
Repo: martinffx/atelier
Skill routing and workflow orchestration. Selects Inline Plan or Spec-backed Plan, routes to the correct workflow skill, and manages transitions between…
Configure a repository for Atelier's development workflow. Use only when explicitly invoked; inspect existing guidance, issue-tracker and domain-document…
Generate and validate conventional commit messages following the conventionalcommits.org spec. Use whenever the user wants to commit code, mentions commit…
Compact the current conversation into a handoff document for another agent to pick up.
Manage GitHub pull requests or GitLab merge requests: create, read/leave/respond to comments, and merge. Triggers on "open a PR", "make a PR", "merge this PR",…
Multi-agent code review with parallel specialized reviewers, architecture validation, challenge validation, and durable handling of previously decided…