---
name: Debug
slug: debug-5
category: Quality
description: Debug helps diagnose incorrect Dippy approval or block behavior from a reported command, expected result, and logs. It guides a minimal fix by reproducing the bug with a failing test first and then verifying it passes.
github: "https://github.com/ldayton/Dippy/tree/main/.claude/skills/debug"
language: Python
stars: 243
forks: 21
install: "npx degit https://github.com/ldayton/Dippy/tree/main/.claude/skills/debug ~/.claude/skills/debug"
installs_to: ~/.claude/skills/debug
source_path: .claude/skills/debug/SKILL.md
collection_size: 5
category_size: 1418
collection_url: "https://dirskills.com/collections/ldayton/Dippy"
added: 2026-09-02T05:21:48.961Z
last_synced: 2026-09-02T05:21:48.961Z
canonical_url: "https://dirskills.com/skills/debug-5"
---

# Debug

Debug helps diagnose incorrect Dippy approval or block behavior from a reported command, expected result, and logs. It guides a minimal fix by reproducing the bug with a failing test first and then verifying it passes.

**Install:**

```bash
npx degit https://github.com/ldayton/Dippy/tree/main/.claude/skills/debug ~/.claude/skills/debug
```

## README

Debug a Dippy issue based on user-provided context.

The user will provide:
- The command that was incorrectly approved or blocked
- Expected vs actual behavior
- Any relevant error messages or logs

## Process

1. Understand the bug from the provided context
2. Search the codebase to find the relevant handler or pattern
3. Write a failing test FIRST in the appropriate test file
4. Run `just test` and verify the test fails as expected
5. Fix the bug in the handler or pattern
6. Run `just test` until the test passes

## Finish

When tests pass:
```
uv run ruff check --fix && uv run ruff format
```

`just check` MUST pass before you're done.

## Restrictions

- ONLY modify files directly related to the bug
- Make minimal, targeted fixes
- Do NOT refactor or "improve" unrelated code
- Do NOT create a git commit or PR
