用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill systematic-debugging命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
| Use when this capability is needed.
> Use when this capability is needed.
Review architecture and API design for the vfs-s3 project. Use when the user mentions @architect, asks to review an issue's design, discuss module boundaries, API shape, or architectural decisions for vfs-s3. Also trigger when the user wants to create an ADR (Architecture Decision Record) or evaluate a technical approach for the project. Intended for dispatch from Codex automation or Claude routines; GitHub trigger phrase: @vfs-s3-bot please prepare design doc Use when this capability is needed.
基于 SOC 职业分类
正在显示 SKILL.md
| name | systematic-debugging |
| description | >- Use when this capability is needed. |
Find root cause before fixing.
Announce: "I'm using systematic-debugging to investigate this issue before proposing fixes."
NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST
If you haven't completed Phase 1, you cannot propose fixes.
You MUST complete each phase before proceeding to the next.
1.1 Read Error Messages Carefully
1.2 Reproduce Consistently
1.3 Check Recent Changes
git log --oneline -10
git diff HEAD~5
1.4 Gather Evidence
For multi-component issues, trace the data flow:
Component A → Component B → Component C
↓ ↓ ↓
Log input Log input Log input
Log output Log output Log output
Add diagnostic logging at each boundary to find WHERE it breaks.
2.1 Find Working Examples
2.2 Compare Against References
openspec show [capability]2.3 Identify Differences
3.1 Form Single Hypothesis State clearly:
I think [X] is the root cause because [Y].
Evidence: [Z]
3.2 Test Minimally
3.3 Evaluate Result
4.1 Create Failing Test
→ REQUIRED SUB-SKILL: Load test-tdd
4.2 Implement Fix
4.3 Verify Fix
When debugging async systems (pgmq, triggers, edge functions):
1. Don't assume the queue is broken
-- Check if queue exists and has messages
SELECT * FROM pgmq.list_queues();
SELECT * FROM pgmq.read('queue_name', 30, 10);
-- Check ARCHIVED messages (already processed!)
SELECT * FROM pgmq.a_queue_name ORDER BY archived_at DESC LIMIT 10;
2. Verify triggers are attached
SELECT tgname, tgenabled, pg_get_triggerdef(oid)
FROM pg_trigger
WHERE tgrelid = 'schema.table'::regclass
AND NOT tgisinternal;
3. Check for race conditions
4. Trace the actual code path
Common pitfall: "Inconsistent results" often means concurrent execution, not queue failure.
This indicates an architectural problem, not a bug:
STOP: 3+ fix attempts have failed.
This suggests the issue is architectural, not a simple bug.
Pattern observed:
- Fix 1 tried: [what]
- Fix 2 tried: [what]
- Fix 3 tried: [what]
Each fix revealed new issues in different places.
Question: Is this pattern fundamentally sound, or should we
refactor the architecture?
Awaiting guidance before attempting more fixes.
If you catch yourself thinking:
STOP. Return to Phase 1.
| Excuse | Reality |
|---|---|
| "Issue is simple, skip investigation" | Simple issues have root causes too. |
| "Emergency, no time for process" | Systematic is FASTER than thrashing. |
| "Just try this first" | First fix sets the pattern. Do it right. |
| "I'll write test after fix works" | Untested fixes don't stick. Test first. |
For implementing the fix → Load test-tdd
After investigation:
## Root Cause Analysis
**Symptom:** [What was observed]
**Root Cause:** [What's actually wrong]
**Evidence:** [How I know this]
**Fix:** [What should change]
**Test:** [How to verify the fix]
Proceed with fix? (Will use test-tdd skill)
Converted and distributed by TomeVault — claim your Tome and manage your conversions.