# bugfix

bugfix fixes confirmed bugs through a strict loop: reproduces failures with isolated tests, pinpoints root causes, and applies minimal diffs without weakening tests.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 176 installs · ★ 5 repo stars
- Author: ulpi-io
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/ulpi-io/skills/tree/HEAD/bugfix/SKILL.md
- Updated: 2026-08-31
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/bugfix

## What it does

This workflow forces the assistant to follow a four-step cycle: reproduce, diagnose, apply a minimal fix, and verify regressions. Before editing code, it inspects manifest files like `package.json`, `go.mod`, or `Cargo.toml` to identify languages and frameworks, then pulls the matching reference rules.

The skill strictly blocks speculative edits. It requires a failing test harness before touching application files. When a bug cannot be reproduced reliably, the agent stops and explains the blocker instead of patching symptoms.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add ulpi-io/skills --skill bugfix -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/bugfix/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/bugfix/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add ulpi-io/skills --skill bugfix -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/bugfix/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add ulpi-io/skills --skill bugfix -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/bugfix/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install ulpi-io/skills bugfix
```

2. **Manually: put the files in place**
- File: `.github/skills/bugfix/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add ulpi-io/skills --skill bugfix -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/ulpi-io/skills --path bugfix
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/bugfix/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add ulpi-io/skills --skill bugfix -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/ulpi-io/skills/tree/HEAD/bugfix/SKILL.md

## When to use it
- write an isolated failing test before changing codebase files
- trace execution flows to diagnose broken root assumptions
- patch confirmed runtime defects with minimal code changes
- prevent regression failures while keeping test assertions strict

## Example prompts
- /bugfix checkout crash when payload contains an empty shipping address
- Fix the runtime error in auth token renewal, write a test first
- /bugfix resolve finding #3 from the recent inspection

## Similar
- [red-green-proof](https://affpapa.org/en/nevibecode/plugins/red-green-proof.md) — plugin · ★ 1596 repo stars
- [tdd](https://affpapa.org/en/nevibecode/skills/backnotprop-tdd.md) — skill · 10000 installs
- [fix-bug](https://affpapa.org/en/nevibecode/skills/fix-bug.md) — skill · ★ 1586 repo stars
- [issue-tracer](https://affpapa.org/en/nevibecode/skills/issue-tracer.md) — skill · ★ 539 repo stars
- [w-debug](https://affpapa.org/en/nevibecode/skills/w-debug.md) — skill · 647 installs
- [fix](https://affpapa.org/en/nevibecode/skills/buiducnhat-fix.md) — skill · 280 installs

From the same set: [ulpi-io/skills](https://affpapa.org/en/nevibecode/by/ulpi-io/skills.md) — 49 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
