Code Fix Checklist

VerifiedSafe

This skill provides a structured checklist to prevent symptom-driven fixes by identifying root cause before writing code. It guides you to read design docs, trace execution flow, and apply minimal changes. Use it when fixing bugs or modifying implementation to avoid introducing new issues.

Sby Skills Guide Bot
DevelopmentIntermediate
806/2/2026
Claude Code
#root-cause-analysis#code-fixing#debugging#symptom-prevention

Recommended for

Our review

This skill guides root cause analysis before modifying code, preventing symptom-driven fixes.

Strengths

  • Encourages a methodical and structured approach
  • Reduces superficial fixes and regressions
  • Promotes understanding of design and flows

Limitations

  • Can slow down the fix process when the issue is obvious
  • Requires existing design documentation
  • Not suitable for emergency production hotfixes
When to use it

Use this skill before any code modification to resolve a bug or error.

When not to use it

Avoid it for trivial fixes (typo, constant change) or when a quick solution is imperative.

Security analysis

Safe
Quality score85/100

The skill only uses Read, Glob, Grep tools—no execution of code, network, or destructive actions. It provides a methodological checklist for root-cause analysis, with no risk of malicious or unintended operations.

No concerns found

Examples

Bug fix in auth module
I need to fix the login error that shows 'Invalid credentials' for valid users.
Test failure root cause
The unit test for the payment service is failing. Help me find the root cause.
Japanese prompt example
このバリデーションエラーを修正してください。

name: fix-checklist description: Use when about to fix code, modify implementation, or address errors. MUST read before saying "修正します", "fix", "修正する", "直す", "対処する". Prevents symptom-driven fixes. allowed-tools: [Read, Glob, Grep]

症状駆動の修正を防ぐため、コード変更前に根本原因を特定する。

手順

  1. コードを書くな — まず「なぜこのエラーが起きるか」を問う
  2. 設計を読むdocs/ やスキーマから意図された動作を理解する
  3. フローを追う — トリガー → 期待状態 → 乖離点を特定する
  4. 根本原因を特定 — エラー箇所と原因箇所は異なることが多い
  5. 最小限の修正 — 根本原因に対してのみ変更する

| エラー箇所 | 根本原因の典型 | |-----------|--------------| | 実行時バリデーション | スキーマ定義 | | 型不一致 | インターフェース契約 | | テスト失敗 | 実装ロジック |

Bad: 「X が Y にないので Y に X を追加」→ なぜ X が生成されるか未調査 Good: 「なぜ X が生成される?設計上 X は不正 → 生成元を修正」

調査出力

複雑な問題は tmp/investigation/<issue>/ に mermaid図で構造化する(overview.md, trace.md, root-cause.md)。1ファイル500行以内。

Related skills