Skip to content
Agentmart
Submit a tool

bug-fix

Activate before creating, modifying, or deleting any production code file.

Skill by ceilidhboy

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/ceilidhboy-bug-fix

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Activate before creating, modifying, or deleting any production code file. Whether the task is a bug fix, feature, refactor, rename, or improvement — any write to production code requires a failing test first. The trigger is any write-mode action on production code, not the reason for it.

Use cases: testing, writing, productivity

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/bug-fix

What's inside

Skill name
bug-fix
Description
Activate before creating, modifying, or deleting any production code file. Whether the task is a bug fix, feature, refactor, rename, or improvement — any write to production code requires a failing test first. The trigger is any write-mode action on production code, not the reason for it.
License
MIT
Instructions
46 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Bug Fix — Red-Green, No Exceptions

A bug report means our tests are incomplete. The bug is a gap in test coverage, not just a gap in production code. Fix the test first; the production fix follows.

## Hard gate

**Do not write or modify production code until a failing test exists and is confirmed failing.** This is non-negotiable. If you catch yourself reaching for a production file, stop and ask: "Do I have a failing test yet?"

## Step 1 — Expose the bug (red)

1. **Run the existing test suite.** If a test already fails and matches the reported bug, step 1 is done — the test already exposes the gap. Move to step 2.

2. **If all tests pass**, write a new test that reproduces the bug:
   - Place it in the appropriate test file, next to related tests.
   - Use the simplest setup that triggers the failure.
   - The test must assert the *correct* behaviour (what the user expects), so it fails against the *current* (broken) code.

3. **Run the test and confirm it fails.** Show the failure output. This is proof that the test catches the bug. Do not proceed until you see red.

## Step 2 — Fix the bug (green)

1. Modify production code to make the failing test pass.
2. Run the full test suite — all tests must be green.
3. If your fix breaks other tests, investigate: either the fix is wrong, or the other tests were relying on the buggy behaviour (update them too, with justification).

## What not to do

- Do not fix the bug and then write a test that passes. That test proves nothing — it would have passed before the fix too.
- Do not skip step 1 because "the fix is obvious." Obvious fixes still need a guard against regression.
- Do not batch multiple bug fixes into one step-1/step-2 cycle. Each bug gets its own failing test, its own fix. Isolation is the point.

## Example flow

```
User: "Tiles overlap when I drag them."

Agent:
1. Run tests → all green. No existing test covers drag overlap.
2. Write test: "drag into obstacle → actual position must not overlap obstacle."
3. Run test → FAILS (red). Bug confirmed.
4. Fix production code.
5. Run test → PASSES (green).
6. Run full suite → all green.
```

From ceilidhboy/skills, MIT.

More from ceilidhboy/skills

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Sep 16, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from ceilidhboy

Cite this page

bug-fix skill. Agent Mart. https://agentmart.dev/skills/ceilidhboy-bug-fix (last updated 2026-10-24)