一键导入
kimchisystematic-debugging
Use when encountering any bug, test failure, or unexpected behavior — before proposing fixes. Enforces 4-phase root cause analysis.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when encountering any bug, test failure, or unexpected behavior — before proposing fixes. Enforces 4-phase root cause analysis.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Convert the kimchi plugin into OpenCode and Codex compatible formats using the bundled converter CLI. Requires bun runtime.
This command should be used to run the Kimchi planning pipeline through refinement, transforming a vague idea into a draft plan ready for cross-model analysis. Orchestrates 6 stages: clarify, requirements, research, generate, review, refine. Use --full-auto to also run beads + validate after manual revise/synthesize.
Use when executing a bead task. Detects orchestration mode (ACFS or GasTown) from .beads/manifest.yaml and enforces the appropriate execution discipline.
This command should be used to convert the final plan into standalone bead YAML task specifications for multi-agent execution. Ninth stage of the Kimchi planning pipeline. Produces .beads/ directory. Supports both ACFS and GasTown orchestration modes.
This command should be used to run the Kimchi self-improvement system. Observes execution outcomes, proposes incremental improvements to skills/validators/personas, validates against history, and applies with versioning.
This command should be used to clear the Kimchi working directory (.kimchi/) and start fresh. Preserves .beads/ directory. Use when starting a new planning session or recovering from a bad state.
| name | kimchi:systematic-debugging |
| description | Use when encountering any bug, test failure, or unexpected behavior — before proposing fixes. Enforces 4-phase root cause analysis. |
Random fixes waste time and create new bugs. Quick patches mask underlying issues.
Core principle: ALWAYS find root cause before attempting fixes. Symptom fixes are failure.
Violating the letter of this process is violating the spirit of debugging.
Whenever something isn't working as expected. This is NOT optional.
Use for ANY technical issue:
Use this ESPECIALLY when:
Don't skip when:
NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST
If you haven't completed Phase 1, you cannot propose fixes.
FORBIDDEN: Random changes hoping something works.
You MUST complete each phase before proceeding to the next.
Gather evidence before forming theories.
Reproduce the issue
Collect context
Read error messages carefully
Document observations
Issue: Upload fails with "AccessDenied"
Reproduces: Every time with files > 1MB
Works: Files < 1MB upload successfully
Recent changes: Updated AWS SDK yesterday
Gather evidence in multi-component systems
BEFORE proposing fixes, add diagnostic instrumentation:
For EACH component boundary:
- Log what data enters component
- Log what data exits component
- Verify environment/config propagation
- Check state at each layer
Run once to gather evidence showing WHERE it breaks
THEN analyze evidence to identify failing component
THEN investigate that specific component
Form testable theories based on evidence.
List possible causes
Document hypotheses
H1: S3 bucket policy changed (likelihood: low - no recent changes)
H2: AWS SDK breaking change (likelihood: high - updated yesterday)
H3: File size validation wrong (likelihood: medium - size-related)
Validate or eliminate hypotheses systematically.
Testing H2: AWS SDK breaking change
Action: Downgrade AWS SDK to previous version
Result: Upload works
Conclusion: H2 confirmed - SDK update introduced issue
Address the ROOT CAUSE, not symptoms.
Create failing test case
kimchi:tdd skill for writing proper failing testsImplement single fix
Verify the fix
If fix doesn't work
If 3+ fixes failed: question architecture
Pattern indicating architectural problem:
STOP and question fundamentals:
Discuss with your human partner before attempting more fixes.
| Excuse | Reality |
|---|---|
| "Issue is simple, don't need process" | Simple issues have root causes too. Process is fast for simple bugs. |
| "Emergency, no time for process" | Systematic debugging is FASTER than guess-and-check thrashing. |
| "Just try this first, then investigate" | First fix sets the pattern. Do it right from the start. |
| "I'll write test after confirming fix works" | Untested fixes don't stick. Test first proves it. |
| "Multiple fixes at once saves time" | Can't isolate what worked. Causes new bugs. |
| "I see the problem, let me fix it" | Seeing symptoms ≠ understanding root cause. |
| "One more fix attempt" (after 2+ failures) | 3+ failures = architectural problem. Question pattern, don't fix again. |
If you catch yourself thinking:
ALL of these mean: STOP. Return to Phase 1.
If 3+ fixes failed: Question the architecture.
| Phase | Key Activities | Success Criteria |
|---|---|---|
| 1. OBSERVE | Read errors, reproduce, check changes, gather evidence | Understand WHAT and WHY |
| 2. HYPOTHESIZE | List causes, rank likelihood | Testable theories formed |
| 3. TEST | Test highest likelihood first, one variable at a time | Confirmed or new hypothesis |
| 4. FIX | Create test, fix root cause, verify | Bug resolved, tests pass |