Skip to content
Back to skills

Debug

ASecurity

Systematic debugging with hypothesis tracking — reproduce, hypothesize, test, narrow, fix. Never guess-and-check.

  • 8 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 27, 2026
data-aibashrailsdebugginggit

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add ShaheerKhawaja/ProductionOS --skill debug --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Debug?

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

Security grade badge for Debug
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/shaheerkhawaja-debug/badge)](https://www.skillsdirectory.com/skills/shaheerkhawaja-debug)

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: debug
description: "Systematic debugging with hypothesis tracking — reproduce, hypothesize, test, narrow, fix. Never guess-and-check."
argument-hint: "[bug, failing behavior, or repro path]"
---

# debug

Systematic debugging with hypothesis tracking — reproduce, hypothesize, test, narrow, fix. Never guess-and-check.

## Inputs

| Parameter | Values | Default | Description |
|-----------|--------|---------|-------------|
| `bug` | string | required | Description of the bug or error |
| `max_hypotheses` | string | 5 | Maximum hypotheses to test before escalating (default: 5) |

# /debug — Systematic Debugging

Reproduce. Hypothesize. Test. Narrow. Fix. Never guess-and-check.

## Step 0: Preamble
Run `templates/PREAMBLE.md`.

## Step 1: Reproduce
Make the bug happen consistently:
```bash
# Run the failing test/command
# Capture the exact error output
# Note: environment, branch, recent changes
```
If you cannot reproduce: STOP. You cannot fix what you cannot see.

## Step 2: Gather Evidence
```bash
# Recent changes that might have caused this
git log --oneline -10
# Files most recently modified
git diff --name-only HEAD~5
# Error logs
grep -r "Error\|Exception\|FAIL" logs/ 2>/dev/null | tail -20
```

## Step 3: Generate Hypotheses
Based on evidence, generate up to $ARGUMENTS.max_hypotheses hypotheses:

```markdown
| # | Hypothesis | Evidence For | Evidence Against | Test |
|

## Error Handling

| Scenario | Action |
|----------|--------|
| No target provided | Ask for clarification with examples |
| Target not found | Search for alternatives, suggest closest match |
| Agent dispatch fails | Fall back to manual execution, report the error |
| Ambiguous input | Present options, ask user to pick |
| Execution timeout | Save partial results, report what completed |

## Guardrails

1. Do not silently change scope or expand beyond the user request.
2. Prefer concrete outputs and verification over abstract descriptions.
3. Keep scope faithful to the user intent.
4. Preserve existing workflow guardrails and stop conditions.
5. Verify results before concluding. Run self-eval on output quality.

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…