fix

Investigate bugs, write failing tests, fix root causes, and verify with end-to-end execution.

Updated Oct 28, 2022
One-click install
npx skills add https://github.com/patrykk21/dotfiles --skill fix-patrykk21
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fix
Source: https://github.com/patrykk21/dotfiles/tree/main/claude/skills/fix
Command: npx skills add https://github.com/patrykk21/dotfiles --skill fix-patrykk21

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the bugfix process, ensuring thorough investigation, test-driven development, and end-to-end verification.

Core Features & Use Cases

  • Bug Investigation: Trace bugs to their root cause, with guidance on handling non-reproducible bugs.
  • Test-Driven Development (TDD): Write and execute tests before the fix, ensuring the bug is reproducible.
  • End-to-End Verification: Run the actual program with the original input to confirm the fix works as expected.
  • Use Case: When you encounter a bug in your codebase, use this Skill to efficiently diagnose and fix it, ensuring no oversight.

Quick Start

To address a bug, run: /fix "bug description".

Frequently Asked Questions about fix

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix a bug using test-driven development?

To fix a bug using test-driven development, you investigate the root cause, write a failing test to reproduce the issue, implement the fix, and then verify the resolution through end-to-end execution to ensure accuracy.

What is the best way to trace a non-reproducible bug to its root cause?

Tracing a non-reproducible bug to its root cause requires systematic investigation and test-driven development. You analyze the codebase, write targeted tests to isolate the faulty logic, and verify the resolution through end-to-end execution.

How do I verify a bugfix with end-to-end execution?

You verify a bugfix with end-to-end execution by running the actual program using the original input that triggered the bug. This confirms the root cause fix works as expected in the real application flow, ensuring comprehensive end-to-end verification.

Do I need to understand my testing frameworks to use a TDD bugfix workflow?

Yes, you need a solid understanding of your testing frameworks and codebase to use a TDD bugfix workflow. Writing failing tests and performing end-to-end verification requires familiarity with the project's existing test infrastructure and execution environment.

Why does end-to-end verification matter after a root cause analysis?

End-to-end verification matters after a root cause analysis because it confirms the fix resolves the original bug in the actual program. Running the application with the original input ensures the test-driven development fix works without introducing new issues.