Skip to content
Back to skills

Bugfix

ASecurity

Fixes bugs of any size from hotfixes to complex debugging sessions using root cause diagnosis and TDD. User-invoked entry point via /bugfix; not for autonomous or subagent use.

  • 156 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 9, 2026
developmentdebuggingrefactoringgitapidatabase

Works with

  • api

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add irahardianto/antigravity-setup --skill bugfix --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Bugfix?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Bugfix
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/irahardianto-bugfix/badge)](https://www.skillsdirectory.com/skills/irahardianto-bugfix)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: bugfix
description: >-
  Fixes bugs of any size from hotfixes to complex debugging sessions using root cause diagnosis and TDD. User-invoked entry point via /bugfix; not for autonomous or subagent use.
disable-model-invocation: true
---

# Bug-Fix Skill

> **Entry-point guard:** This is a user-invoked command skill (`/bugfix`). If you are a spawned subagent, do NOT execute this skill — return to your assigned scope card.

## Purpose
Fix bugs of any size — from one-line hotfixes to multi-file debugging sessions — without the overhead of a full feature workflow.

## When to Use
- Bug fixes (any size, any complexity)
- Hotfixes for production issues
- Addressing review findings from `/audit`
- Regression fixes after deployments
- Flaky test fixes

## When NOT to Use
- New features (use `/workflow-solo`)
- Refactoring (use `/refactor`)
- Code quality audits (use `/audit`)

## Pre-Implementation Checklist
Before starting, you MUST:
1. Scan `.agents/rules/` directory for applicable rules
2. Read `rule-priority.md` for conflict resolution

## Phases

### Phase 1: Diagnose
**Set Mode:** Use `task_boundary` to set mode to **PLANNING**

1. Identify the bug or issue
2. Locate the affected code — trace from symptoms to root cause
3. If the cause is not immediately obvious, activate the **Debugging Protocol** skill
4. Assess blast radius — which files, features, and tests are affected?
5. Define the fix in `task.md`

**Skills to consider:**
- **Debugging Protocol** — for non-obvious root causes, flaky tests, or multi-component bugs
- **Sequential Thinking** — when multiple hypotheses need systematic evaluation

### Phase 2: Fix + Test (TDD)
**Set Mode:** Use `task_boundary` to set mode to **EXECUTION**

1. **Write a failing test** that reproduces the bug
2. **Apply the fix** to make the test pass
3. **Verify existing tests** still pass
4. If the fix touches integration boundaries (database queries, API calls, external services), write or update integration tests
5. Follow applicable rules:
   - Error Handling Principles @error-handling-principles.md
   - Logging and Observability Mandate @logging-and-observability-mandate.md

### Phase 3: Verify + Ship
**Set Mode:** Use `task_boundary` to set mode to **VERIFICATION**

1. Run the full validation suite: quality checks per idiom skill, all tests, build check
2. If the fix touched UI or user-facing flows, run E2E validation per `browser-automation` skill
3. If all checks pass, commit with conventional format per @git-workflow-principles.md
4. Use commit type `fix(<scope>): <description>`

## Completion Criteria
- [ ] Root cause identified and documented
- [ ] Bug reproduced with a test
- [ ] Fix applied and test passes
- [ ] Integration tests updated (if applicable)
- [ ] Full verification suite passes
- [ ] Committed with `fix` type

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.