Skip to content
Back to skills

Debugging

ASecurity

Systematic debugging approach for finding and fixing bugs

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 27, 2026
data-aibashdebugginggit

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add Aditya-PS-05/codesm --skill debugging --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Debugging?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Debugging
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aditya-ps-05-debugging/badge)](https://www.skillsdirectory.com/skills/aditya-ps-05-debugging)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: debugging
description: Systematic debugging approach for finding and fixing bugs
triggers:
  - "(?i)debug"
  - "(?i)bug"
  - "(?i)not working"
  - "(?i)broken"
  - "(?i)error"
  - "(?i)fix.*issue"
---

# Debugging Skill

When this skill is loaded, follow a systematic debugging approach:

## Debugging Process

### 1. Reproduce the Issue
- Get exact steps to reproduce
- Identify the expected vs actual behavior
- Note any error messages verbatim

### 2. Gather Context
- Read relevant code files
- Check recent changes (git log)
- Look for similar issues/patterns

### 3. Form Hypotheses
List potential causes in order of likelihood:
- Most common: typos, logic errors, wrong variable
- Medium: async/timing issues, state bugs
- Less common: library bugs, environment issues

### 4. Test Hypotheses
- Add logging/print statements
- Run tests in isolation
- Use debugger if available
- Check with minimal reproduction

### 5. Verify the Fix
- Ensure the original issue is resolved
- Check for regressions
- Run existing tests
- Consider edge cases

## Debugging Commands

```bash
# Check recent changes
git log --oneline -10

# Search for related code
grep -r "function_name" .

# Run specific test
pytest tests/test_file.py::test_name -v
```

## Common Patterns

- **Undefined errors**: Check imports and variable scope
- **Type errors**: Verify data types at boundaries
- **Async bugs**: Look for missing await, race conditions
- **State bugs**: Check initialization order

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.