fix-root-cause
できること
このスキルは、問題が最初に表れた場所ではなく、本当の原因の解決へデバッグを導きます。長く続く修正を求める開発者向けです。
使う場面
- ✓素早いパッチの後も、バグが別の場所で何度も戻ってくるとき。
- ✓エラーを隠すためにガードやリトライや回避策を追加しようとしているとき。
- ✓アプリの再起動の後にだけ問題が起き、原因がはっきりしないとき。
スキルのリンク
https://github.com/remotion-dev/remotion/blob/main/.agents/skills/fix-root-cause/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“アプリを再起動するたびに違うエラーが出ます。症状ごとにパッチを当てるのではなく、本当の原因を見つけてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは問題を再現し、「なぜ」を各段階で繰り返し問うて、最初に誤った判断を見つけます。その原因を直し、ほかの場所にも同じパターンがないかを確認します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Fix Root Causes
When debugging, fix the fault, not the place where it surfaced. The symptom is where a wrong state became visible. The root cause is the first place the system did something it should not do, or failed to handle a state it should handle.
Why: A symptom fix hides the evidence and leaves the fault free to surface somewhere else. Each one makes the system harder to reason about, because the code now carries a workaround for a bug that nobody named.
Pattern:
- Reproduce first.
- Ask "why" at each step until the answer is a wrong decision in the code, not a consequence of an earlier one.
- When stuck, instrument. Read the actual error and the actual state. Do not guess.
- Ask whether the state that triggered the symptom is legitimate. If the system may be in that state, the code that broke on it is the root cause, and handling the state there is the fix. If the state should never exist, a check where it broke hides the bug. Find what produced the state. Guards, retries, swallowed errors, clamped values, and discarded state are the usual ways to hide a bug.
- When something fails only after a restart, suspect persisted state first: config files, caches, lock files, serialized state.
- Check for the pattern, not just the instance. Find every place with the same fault and fix them all.
- If a workaround needs a paragraph-long comment to justify it, the code is wrong. Fix the code, not the comment.
- If the deciding fact took a deep dig to find, propose the cheap, always-on signal that would have shown it at first look.
よくある質問
症状と根本の原因の違いは何ですか?
症状は誤った状態が目に見えるようになる場所です。根本の原因は、コードが本来してはいけないことを最初にした場所です。
ガードはいつ本当の修正になりますか?
このスキルによると、扱う状態が正当なものである場合だけです。状態そのものが存在すべきでない場合、ガードはバグを隠すだけです。
問題が再起動の後にだけ起きる場合はどうしますか?
このスキルは、まず保存された状態を疑うよう述べています。設定ファイル、キャッシュ、ロックファイル、シリアライズされたデータなどです。
詳細
作者による元の説明
Apply when debugging. Trace each symptom back to the first place the system went wrong and fix it there. A guard is a fix only when the state it handles is legitimate.
repo: remotion-dev/remotion
人気
- GitHubのスター
- 70k
- ランキング
- #3144
- ライセンス
- —
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
gh-stack
70kエージェントが大きな作業を、リンクされたブランチとプルリクエストのスタックに分割し、レビューする人が一度に小さな層の変更だけを見られるよう支援します。
issue-management
70kエージェントがGitHubのイシューを、親、サブイシュー、ブロッカーとしてリンクし、GitHub CLIでプロジェクトの作業を明確に整理するよう支援します。
no-comments
70kエージェントがチーム自身のコードだけを説明しているコードのコメントを取り除き、ブラウザーやライブラリ、プラットフォームの癖についてのメモは残すよう支援します。
pr-ready
70kエージェントが、失敗したチェックを直し、マージのコンフリクトを解消し、ローカルの変更をプッシュして、プルリクエストをマージできる状態に戻すよう支援します。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。