debug-assist
Systematic debugging workflow for diagnosing and fixing issues. Follows a structured approach to isolate problems, form hypotheses, and verify fixes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Systematic debugging workflow for diagnosing and fixing issues. Follows a structured approach to isolate problems, form hypotheses, and verify fixes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Consolidate and clean up existing brain memory. Run this periodically (like a sleep cycle) to dedupe, decay, merge, and relocate memories to vault.
Remove old pi session files to reclaim disk space
Testing-focused coding workflow. Extends code-assist with enhanced test generation, coverage analysis, and test quality gates.
Generate documentation from code or scratch - READMEs, API docs, changelogs, and user guides. Complements codebase-summary which analyzes existing code.
Extract durable learnings and preferences from the current conversation for memory capture. Use this after a conversation to capture what should be remembered.
Track skill usage with correctness scoring, generate reports, and identify unused or misused skills for pruning.
| name | debug-assist |
| description | Systematic debugging workflow for diagnosing and fixing issues. Follows a structured approach to isolate problems, form hypotheses, and verify fixes. |
| kind | sop |
A systematic debugging workflow for diagnosing issues and verifying fixes. Unlike code-assist which builds new features, this skill focuses on understanding and fixing existing broken behavior.
When to use:
Difference from code-assist:
code-assist = "Build something new" (explore → plan → implement)debug-assist = "Fix something broken" (observe → hypothesize → test → fix)Capture the symptoms:
Constraints:
Narrow down where the issue occurs:
Constraints:
Generate possible explanations:
Common hypothesis categories:
Verify or falsify each hypothesis:
Constraints:
Confirm the actual cause:
Constraints:
Fix the root cause (not just the symptom):
Constraints:
Confirm the issue is resolved:
Constraints:
Record what was learned:
Output:
debug-report.md:
# Debug Report: [Issue Title]
## Symptoms
- What was observed
- Expected vs actual behavior
## Investigation Log
| Step | Hypothesis | Test | Result |
|------|------------|------|--------|
| 1 | ... | ... | Confirmed/Refuted |
## Root Cause
[Explanation of the actual cause]
## Fix Applied
[What was changed]
## Verification
- [x] Original issue resolved
- [x] Tests pass
- [x] Edge cases handled
## Prevention
[How to avoid similar issues]
/skill run debug-assist issue_description="Test 'should calculate total' fails with undefined error" context="~/project/src/cart.js" reproduction_steps="1. npm test 2. See failure in cart.test.js line 42"
/skill run debug-assist issue_description="Users reporting 500 errors on checkout page since yesterday's deploy" logs_output="[paste relevant logs]"