本文へスキップ
Skillpedia
一般的なプログラミング70k · #3144

fix-root-cause

できること

このスキルは、問題が最初に表れた場所ではなく、本当の原因の解決へデバッグを導きます。長く続く修正を求める開発者向けです。

使う場面

  • ✓素早いパッチの後も、バグが別の場所で何度も戻ってくるとき。
  • ✓エラーを隠すためにガードやリトライや回避策を追加しようとしているとき。
  • ✓アプリの再起動の後にだけ問題が起き、原因がはっきりしないとき。

スキルのリンク

https://github.com/remotion-dev/remotion/blob/main/.agents/skills/fix-root-cause/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/remotion-dev/remotion/blob/main/.agents/skills/fix-root-cause/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

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

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル