# Debugging

> Debugging is an open-source agent skill for developer tools. Guides an agent through hypothesis-driven bug hunting from reproduction to minimal fix. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/zerotechdebt/ffflow/tree/main/plugin/skills/debugging
- **Repository:** https://github.com/zerotechdebt/ffflow
- **GitHub stars:** 6
- **License:** Apache-2.0
- **Skill name:** debugging
- **Collection:** https://github.com/zerotechdebt/ffflow
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

This skill walks the agent through a structured bug investigation: reproduce the failure with the smallest set of steps, record the error, conditions and recent changes, then list and test competing hypotheses until one is confirmed as the root cause. It also covers investigation patterns such as binary search through code paths, diffing against a last-known-good commit with git bisect, and writing a reproducer test when a bug only appears outside the local environment.

Once a cause is found, the workflow asks for a minimal fix that addresses one root cause, followed by verification with the project's test and check commands. The skill is written for a project that uses the just task runner and a spec-driven workflow, so it references just test, just spec-test and just check-all, and it expects the spec change and fix to ship in the same pull request.

The skill assumes a repository with a test suite and access to git history. It does not include scripts or reference files of its own.

## When your agent uses it

> Hypothesis-driven debugging — reproduce, gather evidence, test hypotheses, find root cause, fix minimally, then close the spec gap.

## What it can access

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

- [Instructions only, no scripts](https://github.com/zerotechdebt/ffflow/tree/HEAD/plugin/skills/debugging)
- [License: Apache-2.0](https://github.com/zerotechdebt/ffflow/tree/HEAD/plugin/skills/debugging)

## Features

- **Reproduction first:** Requires isolating the minimum steps to trigger the bug and confirming it reproduces consistently before any fix.
- **Hypothesis testing log:** Structures each candidate cause with a test, expected result, actual result and a confirmed or rejected outcome.
- **Root cause write-up:** Captures the cause, what was ruled out and why the bug was missed, to guide new tests or spec entries.
- **Defect-driven specification:** At higher levels, records the violated invariant as a spec and a test tagged as a known defect before fixing.
- **Minimal fix discipline:** Limits changes to one root cause and one fix, and keeps refactors out of the bug fix.
- **Investigation patterns:** Offers binary search through code paths, git bisect against a known-good commit and reproducer tests.

## Good for

- Track down why a function returns wrong results after a recent change
- Investigate an intermittent failure that only happens with certain data
- Find the commit that introduced a regression using git bisect
- Write a failing test that reproduces a production bug before fixing it
- Prepare a pull request that documents the root cause and the fix

## Install

### Claude Code

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

```sh
/plugin marketplace add zerotechdebt/ffflow
/plugin install fff@ffflow
```

Or copy only this skill to `~/.claude/skills/debugging`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zerotechdebt/ffflow.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/debugging &&
cp -R "$tmp/plugin/skills/debugging" ~/.claude/skills/debugging &&
rm -rf "$tmp"
```

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

### Codex

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zerotechdebt/ffflow.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/debugging &&
cp -R "$tmp/plugin/skills/debugging" ~/.agents/skills/debugging &&
rm -rf "$tmp"
```

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

### Cursor

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zerotechdebt/ffflow.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/debugging &&
cp -R "$tmp/plugin/skills/debugging" ~/.cursor/skills/debugging &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/debugging` 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/zerotechdebt/ffflow.git --path plugin/skills/debugging
```

Or copy the folder to `~/.gemini/skills/debugging` yourself.

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zerotechdebt/ffflow.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/debugging &&
cp -R "$tmp/plugin/skills/debugging" ~/.copilot/skills/debugging &&
rm -rf "$tmp"
```

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/zerotechdebt/ffflow.git
```

Then copy `ffflow/plugin/skills/debugging` into your agent's skills folder as `debugging`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Debugging need to run?

It is a SKILL.md instruction file with no scripts. The workflow refers to just commands such as just test and just check-all, so the project is expected to provide those tasks.

### When does the skill trigger?

It is loaded by the work-issue workflow when a change is a bug fix, or it can be invoked directly when investigating a failure.

### Does Debugging change any files on its own?

No. It is a set of instructions that guide the agent's investigation and fix process; any edits come from the agent following the workflow.

### Is a spec step always required?

The defect-driven specification step applies at L1 and above. Lower levels use a prose section instead, and the spec test step applies at L2 and above.

### How do I install Debugging in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/debugging to use it in all your projects, or to .claude/skills/debugging in one project. Or install the fff plugin, which includes it: /plugin marketplace add zerotechdebt/ffflow, then /plugin install fff@ffflow.

### Does Debugging 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 Debugging?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Debugging?

The closest alternatives to Debugging are Debug, Debug hypothesis, Debug issue, Bugfix and Fix bug.

## Where this comes from

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

## Alternatives

- [Debug](https://ai-powered.com/skills/debug-tansuasici): Debug is an open-source agent skill for developer tools.
- [Debug hypothesis](https://ai-powered.com/skills/debug-hypothesis): Debug hypothesis is an open-source agent skill for developer tools.
- [Debug issue](https://ai-powered.com/skills/debug-issue): Debug issue is an open-source agent skill for developer tools.
- [Bugfix](https://ai-powered.com/skills/bugfix): Bugfix is an open-source agent skill for developer tools.
- [Fix bug](https://ai-powered.com/skills/fix-bug): Fix bug is an open-source agent skill for developer tools.
- [Debugging and error recovery](https://ai-powered.com/skills/debugging-and-error-recovery): Debugging and error recovery is an open-source agent skill for developer tools.
- [Debug](https://ai-powered.com/skills/debug-evist0): Debug 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.

---
Source: https://ai-powered.com/skills/debugging
