bug-detective

Debug code errors across Python, JavaScript, and Bash with systematic workflows.

21|4|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/HaipingXu/social-science-claude-scholar --skill bug-detective-haipingxu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bug-detective
Source: https://github.com/HaipingXu/social-science-claude-scholar/tree/main/skills/bug-detective
Command: npx skills add https://github.com/HaipingXu/social-science-claude-scholar --skill bug-detective-haipingxu

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides a structured approach to identify, diagnose, and resolve code errors, exceptions, and bugs, saving developers time and frustration.

Core Features & Use Cases

  • Systematic Debugging Workflow: Guides users through understanding the problem, gathering evidence, forming hypotheses, and verifying fixes.
  • Error Type Analysis: Helps categorize errors (Syntax, Type, Import, etc.) to apply the most effective debugging strategy.
  • Common Error Patterns: Offers insights into recurring issues in Python, JavaScript, and Bash.
  • Use Case: When encountering a TypeError in a Python script, this Skill can help analyze the error message, suggest potential causes, and guide the user through debugging steps to find the root cause.

Quick Start

Use the bug-detective skill to help me debug a Python script that is raising a KeyError.

Frequently Asked Questions about bug-detective

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

FAQPage Schema
How do I debug a Python KeyError systematically instead of guessing?

Debugging a TypeError in JavaScript involves categorizing the error type, tracing logs to find where the unexpected type occurs, and forming hypotheses about variable assignments. A systematic workflow guides you through verifying the fix.

What is the best way to troubleshoot unquoted variables in a Bash script?

The best way to troubleshoot unquoted variables in a Bash script is to recognize common shell scripting pitfalls like scope problems and apply error pattern analysis. Using log tracing helps pinpoint where variable expansion fails.

Can I use a binary search strategy to find errors in JavaScript code?

Yes, you can use a binary search strategy to find errors in JavaScript code. By systematically isolating sections of code and checking if the error persists, you can narrow down the root cause of exceptions or failures efficiently.

Does this debugging workflow support both Python and Bash scripting errors?

Yes, this debugging workflow supports Python, JavaScript, and Bash. It provides common error pattern recognition for syntax errors, type errors, attribute errors, and shell scripting pitfalls like unquoted variables and scope problems across these languages.

Why does my Python script keep raising an AttributeError after checking the syntax?

An AttributeError in Python often occurs because an object lacks the expected property, not from syntax issues. By analyzing error patterns and tracing logs, you can identify whether the object type is incorrect or the attribute name is misspelled.