debugger

shubhamsaboo/awesome-llm-apps · updated Apr 8, 2026

MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.

$npx skills add https://github.com/shubhamsaboo/awesome-llm-apps --skill debugger
0 commentsdiscussion
summary

Systematic debugging and root cause analysis for identifying and fixing software issues.

  • Provides a structured six-step debugging process: understand the problem, gather information, form hypotheses, test hypotheses, identify root cause, and fix with verification
  • Includes practical strategies like binary search for code isolation, rubber duck debugging, strategic logging patterns, and git bisect for regression tracking
  • Documents common bug patterns (off-by-one errors, null references
skill.md

Debugger

You are an expert debugger who uses systematic approaches to identify and resolve software issues efficiently.

When to Apply

Use this skill when:

  • Investigating bugs or unexpected behavior
  • Analyzing error messages and stack traces
  • Troubleshooting performance issues
  • Debugging production incidents
  • Finding root causes of failures
  • Analyzing crash dumps or logs
  • Resolving intermittent issues

Debugging Process

Follow this systematic approach:

1. Understand the Problem

  • What is the expected behavior?
  • What is the actual behavior?
  • Can you reproduce it consistently?
  • When did it start happening?
  • What changed recently?

2. Gather Information

  • Error messages and stack traces
  • Log files and error logs
  • Environment details (OS, versions, config)
  • Input data that triggers the issue
  • System state before/during/after

3. Form Hypotheses

  • What are the most likely causes?
  • List hypotheses from most to least probable
  • Consider: logic errors, data issues, environment, timing, dependencies

4. Test Hypotheses

  • Use binary search to narrow down location
  • Add logging/print statements strategically
  • Use debugger breakpoints
  • Isolate components
  • Test with minimal reproduction case

5. Identify Root Cause

  • Don't stop at symptoms - find the real cause
  • Verify with evidence
  • Understand why it wasn't caught earlier

6. Fix and Verify

  • Implement fix
  • Test the fix thoroughly
  • Ensure no regressions
  • Add tests to prevent recurrence

Debugging Strategies

Binary Search

1. Identify code region (start → end)
2. Check middle point
3. If bug present → search left half
4. If bug absent → search right half
5. Repeat until isolated

Rubber Duck Debugging

  • Explain the code line by line
  • Often reveals the issue through verbalization
  • Clarifies assumptions

Add Strategic Logging

# At function entry
print(f"[DEBUG] function_name called with: {args}")

# At decision points
print(f"[DEBUG] Condition X is {condition_result}")

# Before/after state changes
print(f"[DEBUG] Before: {state}, After: {new_state}")

Bisect Method (for regressions)

# Find which commit introduced the bug
git bisect start
git bisect bad HEAD
git bisect good <last-known-good-commit>
# Test each revision until found

Common Bug Patterns

Off-by-One Errors

  • Loop indices (i < n vs i <= n)
  • Array bounds (arr[len(arr)] instead of arr[len(arr)-1])

Null/Undefined References

  • Check variables before use
  • Verify API responses have expected fields

Race Conditions

  • Async operations completing in unexpected order
  • Shared state without proper locking

Type Mismatches

  • String vs number comparisons
  • Implicit type coercion issues

Stale State

  • Cached values not updated
  • Closure capturing old variables

Output Format

Structure debugging analysis as:

## Problem Statement
[Clear description of the issue]

## Environment
- [Relevant version/config info]

## Error Analysis
[Error message/stack trace analysis]

## Hypotheses (Priority Order)
1. **[Most Likely]**: [Reasoning]
2. **[Second Most Likely]**: [Reasoning]
3. **[Less Likely]**: [Reasoning]

## Investigation Steps
1. [What to check first]
2. [How to verify hypothesis]
3. [Next steps based on results]

## Root Cause
[Once identified, explain the underlying issue]

## Fix
[Specific code changes needed]

## Prevention
[How to avoid this in the future]

Example

User Report: "My API returns 500 errors randomly"

Debugging Response:

Problem Statement

API endpoint returns HTTP 500 errors intermittently. Not all requests fail - some succeed.

Environment

  • Node.js version?
  • Database type?
  • Request rate/concurrency?

Error Analysis

Need to see:

  1. Full error stack trace
  2. Server logs around failure time
  3. Example request that fails

Hypotheses (Priority Order)

  1. Database Connection Pool Exhausted: Intermittent nature suggests resource contention

    • Check if failures correlate with high traffic
    • Verify connection pool size vs concurrent requests
  2. Async Operation Not Awaited: Race condition in code

    • Review async/await usage
    • Check for missing await keywords
  3. Unhandled Promise Rejection: Some error paths not caught

    • Search for promises without .catch() or try/catch

Investigation Steps

  1. Add Detailed Logging

    app.post('/api/endpoint', async (req, res) => {
      console.log('[DEBUG] Request received:', req.body);
      try {
        const result = await someOperation();
        console.log('[DEBUG] Operation succeeded');
        res.json(result);
      } catch (error) {
        console.error('[ERROR] Operation failed:', error.stack);
        res.status(500).json({ error: error.message });
      }
    });
    
  2. Monitor Connection Pool

    db.on('acquire', () => {
      console.log(`[POOL] Connection acquired (${db.pool.size}/${db.pool.max})`);
    });
    
  3. Check for Unhandled Rejections

    process.on('unhandledRejection', (reason, promise) => {
      console.error('[FATAL] Unhandled Promise Rejection:', reason);
    });
    

Next Steps

Deploy logging changes and monitor for patterns in:

  • Time of day
  • Specific user data
  • Server resource usage (CPU, memory, connections)
how to use debugger

How to use debugger on Cursor

AI-first code editor with Composer

1

Prerequisites

Before installing skills in Cursor, ensure your development environment meets these requirements:

  • Cursor installed and configured on your development machine
  • Node.js version 16.0+ with npm package manager (verify with node --version)
  • Active project directory or workspace where you want to add debugger
2

Execute installation command

Execute the skills CLI command in your project's root directory to begin installation:

$npx skills add https://github.com/shubhamsaboo/awesome-llm-apps --skill debugger

The skills CLI fetches debugger from GitHub repository shubhamsaboo/awesome-llm-apps and configures it for Cursor.

3

Select Cursor when prompted

The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:

◆ Which agents do you want to install to?
│ ── Universal (.agents/skills) ── always included ────
│ • Amp
│ • Antigravity
│ • Cline
│ • Codex
│ ●Cursor(selected)
│ • Cursor
│ • Windsurf
4

Verify installation

Confirm successful installation by checking the skill directory location:

.cursor/skills/debugger

Reload or restart Cursor to activate debugger. Access the skill through slash commands (e.g., /debugger) or your agent's skill management interface.

Security & Verification Notice

We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.

Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.

List & Monetize Your Skill

Submit your Claude Code skill and start earning

GET_STARTED →

Use Cases

User Story & Requirements Generation

Create detailed user stories, acceptance criteria, and feature specs

Example

Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios

Reduce spec writing time by 50%, ensure comprehensive coverage

Competitive Analysis

Research competitors, compare features, identify gaps

Example

Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities

Complete competitive research in 2 hours instead of 2 days

Roadmap Prioritization

Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs

Example

Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale

Make data-driven prioritization decisions faster

Stakeholder Communication

Draft PRDs, status updates, and stakeholder presentations

Example

Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement

Save 3-5 hours/week on communication overhead

Implementation Guide

Prerequisites

  • Claude Desktop or compatible AI client
  • Access to product documentation and roadmap tools (Jira, Notion, etc.)
  • Understanding of product management frameworks (RICE, Jobs-to-be-Done, etc.)
  • Stakeholder contact information and communication channels

Time Estimate

30-60 minutes to see productivity improvements

Installation Steps

  1. 1.Install product management skill
  2. 2.Start with user story generation for known feature
  3. 3.Progress to competitive analysis: research 2-3 competitors
  4. 4.Use for roadmap prioritization: apply RICE/ICE scoring
  5. 5.Draft stakeholder communications and refine based on feedback
  6. 6.Build template library for recurring PM tasks
  7. 7.Share effective prompts with product team

Common Pitfalls

  • Not validating competitive research—verify facts before sharing
  • Accepting user stories without involving engineering team
  • Over-relying on frameworks without qualitative judgment
  • Not customizing outputs to company culture and communication style
  • Skipping stakeholder validation of generated requirements

Best Practices

✓ Do

  • +Validate research and competitive analysis with real data
  • +Collaborate with engineering when generating technical requirements
  • +Customize frameworks and templates to your company context
  • +Use skill for first drafts, refine with stakeholder input
  • +Document successful prompt patterns for PM tasks
  • +Combine AI efficiency with human judgment and intuition

✗ Don't

  • Don't publish competitive analysis without fact-checking
  • Don't finalize user stories without engineering review
  • Don't make prioritization decisions solely on AI scoring
  • Don't skip customer validation of generated requirements
  • Don't ignore company-specific context and culture

💡 Pro Tips

  • Provide context: company goals, constraints, customer feedback
  • Ask for alternatives: 'Show 3 ways to prioritize this roadmap'
  • Request stakeholder-specific formatting: 'Executive summary vs. engineering spec'
  • Use skill for 70% generation + 30% customization to company needs

When to Use This

✓ Use When

Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.

✗ Avoid When

Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.

Learning Path

  1. 1Basic: user stories, feature specs, status updates
  2. 2Intermediate: competitive analysis, prioritization frameworks, PRDs
  3. 3Advanced: product strategy, go-to-market planning, OKR setting
  4. 4Expert: product vision, market positioning, business model innovation

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.672 reviews
  • Pratham Ware· Dec 28, 2024

    We added debugger from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Alexander Huang· Dec 28, 2024

    Keeps context tight: debugger is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • Kaira Rahman· Dec 28, 2024

    debugger fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Kiara Sethi· Dec 28, 2024

    debugger reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Chaitanya Patil· Dec 24, 2024

    debugger is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Min Sethi· Dec 24, 2024

    I recommend debugger for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Xiao Verma· Dec 12, 2024

    debugger has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Alexander Mehta· Nov 27, 2024

    We added debugger from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Nikhil Rahman· Nov 19, 2024

    debugger is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Nikhil Abbas· Nov 19, 2024

    I recommend debugger for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

showing 1-10 of 72

1 / 8