debug-assist

Provides a systematic debugging workflow that prevents the common problem of circular debugging (try something → doesn't work → try something else → forget what was tried → repeat). Logs all hypotheses and results as a debugging trace.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "debug-assist" with this command: npx skills add flitzrrr/opencode-processing-skills/flitzrrr-opencode-processing-skills-debug-assist

Skill: Debug Assist

What This Skill Does

Provides a systematic debugging workflow that prevents the common problem of circular debugging (try something → doesn't work → try something else → forget what was tried → repeat). Logs all hypotheses and results as a debugging trace.

When to Use

  • When a bug is non-trivial (not an obvious typo)

  • When initial fix attempts haven't worked

  • When the user says "I can't figure out why X happens"

Execution Model

  • Always: the primary agent runs this skill directly.

  • Output: chat-based debugging trace + the fix itself.

Workflow

Step 1: Define the Bug

Clarify with the question tool:

  • What's the expected behavior?

  • What's the actual behavior?

  • When did it start? (after a specific change? always?)

  • Is it reproducible? (always, sometimes, only in certain conditions?)

Step 2: Reproduce

Reproduce the bug locally:

Run the failing scenario

<command that triggers the bug>

If it doesn't reproduce → it's environment-specific. Check: OS, versions, configuration, data.

Log: "Reproduced: Yes/No, with command: X"

Step 3: Isolate

Narrow down the failure:

  • Which file is the error in? (from stack trace or error message)

  • Which function fails? (add logging if needed)

  • Which input triggers it? (test with minimal input)

Log: "Isolated to: :, triggered by: "

Step 4: Hypothesize

List possible causes (max 3):

  • Hypothesis A:

  • Hypothesis B:

  • Hypothesis C:

Do NOT fix yet. Just list hypotheses.

Step 5: Verify

Test each hypothesis:

  • Add targeted logging or assertions

  • Run the failing scenario

  • Check which hypothesis matches

Log each result: "Hypothesis A: confirmed/rejected because "

Step 6: Fix

Apply the minimal fix for the confirmed hypothesis.

  • One change: fix only the confirmed root cause

  • No refactoring: fix the bug, nothing else

Step 7: Test

  • Run the original failing scenario → must pass

  • Run the full test suite → no regressions

  • Remove any debugging logging

Step 8: Document

If the bug was non-obvious, document it:

  • What was the root cause?

  • Why was it non-obvious?

  • How to prevent it in the future?

Consider creating a test case that specifically prevents regression.

Rules

  • Log the path: every hypothesis and its result must be recorded. This prevents circular debugging.

  • Reproduce first: never fix a bug you can't reproduce. You won't know if the fix works.

  • Isolate before fixing: narrow down to the smallest possible scope before changing code.

  • One hypothesis at a time: test one hypothesis, get a result, then move to the next.

  • Minimal fix: fix only the bug. No improvements, no refactoring, no "while I'm here."

  • No built-in explore agent: do NOT use the built-in explore subagent type.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

create-plan

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

openclaw-version-monitor

监控 OpenClaw GitHub 版本更新,获取最新版本发布说明,翻译成中文, 并推送到 Telegram 和 Feishu。用于:(1) 定时检查版本更新 (2) 推送版本更新通知 (3) 生成中文版发布说明

Archived SourceRecently Updated
Coding

ask-claude

Delegate a task to Claude Code CLI and immediately report the result back in chat. Supports persistent sessions with full context memory. Safe execution: no data exfiltration, no external calls, file operations confined to workspace. Use when the user asks to run Claude, delegate a coding task, continue a previous Claude session, or any task benefiting from Claude Code's tools (file editing, code analysis, bash, etc.).

Archived SourceRecently Updated
Coding

ai-dating

This skill enables dating and matchmaking workflows. Use it when a user asks to make friends, find a partner, run matchmaking, or provide dating preferences/profile updates. The skill should execute `dating-cli` commands to complete profile setup, task creation/update, match checking, contact reveal, and review.

Archived SourceRecently Updated