# Oracle debug

> Oracle debug is an open-source agent skill for developer tools. Walks an agent through root-cause debugging before any permanent fix is applied. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/martinffx/atelier/tree/main/skills/oracle-debug
- **Repository:** https://github.com/martinffx/atelier
- **GitHub stars:** 53
- **License:** MIT
- **Skill name:** oracle-debug
- **Collection:** https://github.com/martinffx/atelier
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

Oracle Debug is a structured debugging method for AI coding agents. It requires the agent to finish a root cause investigation before proposing a fix, and it allows temporary containment first when security, production or data-loss risk is present. The method is organized into four phases: investigation, pattern analysis, ranked hypothesis testing, and implementation.

The investigation phase pushes the agent to build a fast, repeatable pass/fail signal for the bug, using options such as a failing test, a curl script, a CLI run with fixture input, a headless browser script, or a git bisect loop. It also covers tracing data flow across components, checking recent changes, and handling non-deterministic failures with safe reproduction practices. Hypotheses are listed with predictions and tested one variable at a time, and debug logs are tagged with a unique prefix so they can be removed later.

The skill expects the agent to have access to the codebase and its git history. It references a project glossary and ADRs, and points to supporting reference files on common bug patterns and techniques. It also mentions companion skills named oracle-codebase-design and atelier-orchestrator.

## When your agent uses it

> 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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/martinffx/atelier/tree/HEAD/skills/oracle-debug)
- [License: MIT](https://github.com/martinffx/atelier/tree/HEAD/skills/oracle-debug)

## Features

- **Root cause first:** Blocks permanent fixes until the agent has gathered evidence explaining why the bug happens.
- **Reproduction loop building:** Guides the agent to create a fast, deterministic pass/fail signal before reading code.
- **Ranked hypothesis testing:** Asks for falsifiable hypotheses with predictions, tested one variable at a time.
- **Tagged debug instrumentation:** Tags temporary logs with a unique prefix so they can be found and removed in one pass.
- **Failed fix escalation:** Requires returning to investigation after failed fixes and questioning architecture after three attempts.
- **Debug summary template:** Provides a closing summary format covering problem, cause, fix, verification and prevention.

## Good for

- Diagnose a failing test suite before changing any code
- Track down an intermittent bug that only appears under load
- Find which commit introduced a performance regression
- Investigate a build failure in a multi-package repository
- Debug unexpected behavior at an integration boundary

## Install

### Claude Code

This skill ships in the `atelier` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add martinffx/atelier
/plugin install atelier@atelier
```

Or copy only this skill to `~/.claude/skills/oracle-debug`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/martinffx/atelier.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/oracle-debug &&
cp -R "$tmp/skills/oracle-debug" ~/.claude/skills/oracle-debug &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/oracle-debug` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/oracle-debug` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/martinffx/atelier.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/oracle-debug &&
cp -R "$tmp/skills/oracle-debug" ~/.agents/skills/oracle-debug &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/oracle-debug` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/oracle-debug` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/martinffx/atelier.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/oracle-debug &&
cp -R "$tmp/skills/oracle-debug" ~/.cursor/skills/oracle-debug &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/oracle-debug` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/martinffx/atelier.git --path skills/oracle-debug
```

Or copy the folder to `~/.gemini/skills/oracle-debug` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/oracle-debug`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/martinffx/atelier.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/oracle-debug &&
cp -R "$tmp/skills/oracle-debug" ~/.copilot/skills/oracle-debug &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/oracle-debug` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/martinffx/atelier.git
```

Then copy `atelier/skills/oracle-debug` into your agent's skills folder as `oracle-debug`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does the skill trigger?

It triggers on bug reports, test failures, requests such as 'debug this' or 'diagnose this', unexpected behavior, build failures, integration issues and performance regressions.

### Does Oracle debug change code automatically?

It requires a failing test before any fix and a single change at a time, but the fix itself is made by the agent following the process.

### What happens if the first fixes do not work?

The agent stops, counts failed attempts, returns to investigation below three, and discusses the architecture with the user before a fourth attempt.

### Are there scripts included?

No scripts are included; the skill is a methodology document with reference files on bug patterns and techniques.

### How do I install Oracle debug in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/oracle-debug to use it in all your projects, or to .claude/skills/oracle-debug in one project. Or install the atelier plugin, which includes it: /plugin marketplace add martinffx/atelier, then /plugin install atelier@atelier.

### Does Oracle debug run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Oracle debug?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Oracle debug?

The closest alternatives to Oracle debug are Debug hypothesis, Diagnostic reasoning, Diagnosing bugs, Principle fix root causes and Debug.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Debug hypothesis](https://ai-powered.com/skills/debug-hypothesis): Debug hypothesis is an open-source agent skill for developer tools.
- [Diagnostic reasoning](https://ai-powered.com/skills/diagnostic-reasoning): Diagnostic reasoning is an open-source agent skill for developer tools.
- [Diagnosing bugs](https://ai-powered.com/skills/diagnosing-bugs): Diagnosing bugs is an open-source agent skill for developer tools.
- [Principle fix root causes](https://ai-powered.com/skills/principle-fix-root-causes): Principle fix root causes is an open-source agent skill for developer tools.
- [Debug](https://ai-powered.com/skills/debug-jasgujral): Debug is an open-source agent skill for developer tools.
- [Interactive debugging](https://ai-powered.com/skills/interactive-debugging): Interactive debugging is an open-source agent skill for developer tools.
- [Agent introspection debugging](https://ai-powered.com/skills/agent-introspection-debugging): Agent introspection debugging is an open-source agent skill for developer tools.
- [Agent architecture audit](https://ai-powered.com/skills/agent-architecture-audit): Agent architecture audit is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/oracle-debug
