Skill library / For developers

Codex skill for bug triage

For developers working through bug reports who want a consistent first pass on each one.

Most debugging time goes on finding the cause, not fixing it. This skill gives Codex (and any Agent Skills tool) a disciplined loop: reproduce, isolate, fix minimally, and prove it with a test.

Use this skill nowSee the SKILL.md

Answer up to 4 quick questions, add your email, and get a version written around you, ready to paste into Codex & others. Free, no account needed.

What it's good for

The SKILL.md file

Save as bug-triage/SKILL.md. It follows the open Agent Skills format.

---
name: bug-triage
description: "Reproduces reported bugs, identifies the likely root cause, and proposes a minimal fix with a regression test. Use when the user reports a bug, pastes an error or stack trace, or asks why something is broken."
---

# Bug Triage

## Workflow
1. Restate expected vs actual behaviour
2. Reproduce with the smallest possible input or test
3. Trace the code path and form a hypothesis
4. Apply the smallest fix that addresses the root cause
5. Add a regression test that fails before and passes after

## Rules
- Don't refactor unrelated code during a fix
- Report if the bug can't be reproduced instead of guessing
- Explain the root cause in plain English

How to install it in Codex & others

Put the folder in .agents/skills/ in your repo (read by Codex, Cursor, Gemini CLI, Copilot and others) or ~/.codex/skills/.

Example

Illustrative example. This shows the kind of request and result to expect. It is not a real conversation, and your result will depend on what you give it.

You ask: “TypeError: cannot read 'id' of undefined in checkout.ts”

What you get back: A failing test, a root cause (race on cart load), a 3-line guard fix and a passing test.

Pro tip

Install it in .agents/skills/ so Codex, Cursor, Gemini CLI and Copilot all share it.

Make your own version

This prompt is a good start, but it doesn't know you. Answer a few quick questions about your situation and how you like things done, and we'll write a version that does. It appears on screen with a Copy button and setup steps for your AI, and we email you a copy. Free, up to 10 a month.

Make my own version free

Questions

Which tools can use it?

Tools that read the open Agent Skills format from .agents/skills/, including Codex, Cursor, Gemini CLI and GitHub Copilot.

Does it fix the bug automatically?

It proposes a minimal fix and a regression test for you to review.

How do I install it in Codex & others?

Put the folder in .agents/skills/ in your repo (read by Codex, Cursor, Gemini CLI, Copilot and others) or ~/.codex/skills/.

Is it free?

Yes. You can copy the prompt on this page for free, with no sign-up. If you want a version written around you, our generator is free too (up to 10 a month, no account needed): answer a few questions and we email you a copy.

Related skills

One small, practical way to get more from the AI you already use. Free, every Tuesday, five minutes to read.