Fix

From bellini666/dotfiles · View interactive version

Fix is an AI agent skill from the GitHub repository bellini666/dotfiles. This skill should be used when the user asks to "fix this bug", reports a Sentry issue, provides an error report, stack trace, screenshot, or production error and wants an end-to-end fix from diagnosis through a reproduction test to validation.

How to use this skill

Skill file

Fix: End-to-End Bug Workflow

End-to-end workflow from error report to tested fix.

Input

Accept any combination of:

If no input is provided, ask for context about the bug.

Workflow

Phase 1: Diagnose (5 min max)

  1. If a Sentry URL is provided and Sentry MCP is available, pull issue details (stack trace, breadcrumbs, tags)
  2. If a screenshot is provided, analyze it for error messages, stack traces, and UI state
  3. Otherwise, parse error details from the provided input
  4. Identify: file, function, line number, root cause
  5. Check if the error path has existing tests

Phase 2: Reproduce

  1. Write a failing test that reproduces the exact scenario from the error:
  1. Run the test, confirm it fails for the right reason

Phase 3: Fix

  1. Implement the minimal fix addressing root cause, not symptoms
  2. Do not refactor, generalize, or improve surrounding code

Phase 4: Validate

  1. Run the reproduction test, confirm it passes
  2. Run linter + type checker
  3. Run the tests for the touched modules. CI runs the full suite

Phase 5: Report

  1. Suggest commit message:
  1. Summarize: root cause, fix applied, test added

Batch of Issues

When given several issues (a Sentry list, a batch of errors):

  1. Pull every issue first, then report one table before touching code:

| Issue | Class | Evidence |

| ----- | ----- | -------- |

Class is REAL BUG, NOISE, or NEEDS DECISION. Evidence is a code reference or telemetry, never speculation.

  1. Stop and wait for the user to pick which ones to fix.
  2. Run Phases 2 to 4 for each picked bug, then selfreview over the whole diff.
  3. One commit per issue, staging files explicitly.

Type Safety

Anti-Patterns

Stop immediately if about to:

Complex Bugs

If diagnosis exceeds 5 minutes or root cause is unclear, switch to the debugging skill for structured root cause analysis.

Integration

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.