Bug fixer

From xiashao/KaiyanTool · View interactive version

Bug fixer is an AI agent skill from the GitHub repository xiashao/KaiyanTool. Fixes bugs by confirming details, collecting logs, analyzing issues, and executing fixes. Invoke when user reports a bug or needs help debugging issues.

How to use this skill

Skill file

Bug Fixer

Purpose

This skill helps identify, analyze, and fix bugs in the codebase by following a structured debugging process.

When to Invoke

Invoke this skill when:

Process Flow

1. Confirm Bug Details

2. Collect Comprehensive Logs

3. Initial Analysis

4. Locate the Problem

5. Create Fix Plan

6. Execute Fix

7. Deep Dive Investigation (When Bug Persists)

7.1 Extended Data Collection
7.2 Systematic Root Cause Analysis

1. Create multiple hypotheses about the root cause

2. Design experiments to test each hypothesis

3. Eliminate hypotheses based on test results

4. Focus on the most likely cause

7.3 Cross-Component Investigation
7.4 Advanced Debugging Techniques
7.5 Root Cause Confirmation

Example Usage

Example 1: Basic Bug Fix

Bug Report

User: "The login page is showing an error when I submit the form."

Process
  1. Confirm details: Ask which browser, exact steps, error message
  2. Collect logs: Request console logs, network responses
  3. Analyze: Check login form handling code, API endpoints
  4. Locate: Identify validation issue in form submission
  5. Plan: Propose fix for form validation logic
  6. Execute: Implement fix and verify

Example 2: Persistent Bug Deep Dive

Bug Report

User: "I clicked on the analytics page and it still redirects to login, even after you fixed it."

Process
  1. Confirm details: Ask for exact reproduction steps, browser information, error messages
  2. Collect comprehensive logs:
  1. Initial analysis: Check authentication flow, session management
  2. Deep dive investigation:
  1. Root cause confirmation: Isolate the issue to specific component
  2. Execute comprehensive fix: Address root cause and related issues
  3. Regression testing: Verify fix works and doesn't break other features

Best Practices

Deep Dive Best Practices

Common Bug Types

Success Criteria

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.