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

Content Collector

个人内容收藏与知识管理系统。收藏、整理、检索、二创。 Use when: (1) 用户分享链接/文字/截图并要求保存或收藏, (2) 用户说"收藏这个"/"存一下"/"记录下来"/"save this"/"bookmark"/"clip this", (3) 用户要求按关键词/标签搜索之前收藏的内容, (4) 用...

Registry SourceRecently Updated
Coding

Github Stars Tracker

GitHub 仓库 Stars 变化监控与通知。追踪指定仓库的 star 增长、fork 变化,发现新趋势。适合开发者关注项目动态。

Registry SourceRecently Updated
Coding

RabbitMQ client guide for Tencent Cloud TDMQ

RabbitMQ 客户端代码指南。当用户需要编写、调试或审查 RabbitMQ 应用代码时使用。涵盖:用任意语言(Java/Go/Python/PHP/.NET)写生产者或消费者;排查连接暴增、消息丢失、Broken pipe、消费慢、漏消费等客户端问题;审查 spring-boot-starter-amqp、a...

Registry SourceRecently Updated