Debugging And Error Recoveryのロゴ

Debugging And Error Recovery

コミュニティ
GeekFamilyCorp
debugging-and-error-recovery

Débogage discipliné par cause racine pour scripts Python, VPS (systemd/Docker/SFTP), pipelines de veille et automatisations maison. À utiliser quand un test échoue, un build casse, un timer ou une tâche planifiée ne produit rien, un script renvoie un résultat inattendu, ou face à toute erreur non comprise. Déclencheurs : "débogue", "ça marche pas", "pourquoi cette erreur", "trouve la cause", "root cause", "ça plantait avant", "le timer ne tourne plus", "sortie vide". Ne pas activer pour une coquille triviale corrigée en un coup d'œil, ni pour corriger/durcir une application web entière → code-corrector, ni pour ajouter du logging préventif → observability- and-instrumentation.

概要

公開者GeekFamilyCorp
リポジトリTricorderKit
スキル名debugging-and-error-recovery
スター
32
フォーク
1
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    GeekFamilyCorpがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Debugging And Error Recovery」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/GeekFamilyCorp/TricorderKit/tree/main/cowork-plugins/tk-dev-discipline/skills/debugging-and-error-recovery
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/GeekFamilyCorp/TricorderKit.git /tmp/TricorderKit
mkdir -p .claude/skills
cp -r /tmp/TricorderKit/cowork-plugins/tk-dev-discipline/skills/debugging-and-error-recovery .claude/skills/debugging-and-error-recovery
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでDebugging And Error Recoveryを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にDebugging And Error Recoveryを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Debugging And Error Recoveryは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Débogage par cause racine

Objectif : trouver et corriger LA cause, pas un symptôme.

Règles citées, en une ligne chacune (détail dans ${CLAUDE_PLUGIN_ROOT}/references/regles.md) :

  • R22 — au deuxième échec identique, s'arrêter, chercher la cause racine et changer de méthode.
  • R48 — toute erreur rencontrée est consignée en fin de session (symptôme, cause, correctif).
  • R51 — un cache ou une note n'est pas l'état réel : recouper sur la machine avant d'affirmer.

Méthode (séquentielle)

  1. Reproduire de façon fiable et minimale (commande et contexte exacts). Non reproductible → instrumenter d'abord (→ observability-and-instrumentation).
  2. Observer les faits avant toute hypothèse : message complet, stacktrace, logs (journalctl -u <unit>, fichiers *.log), code de sortie, état réel (processus, fichiers, systemctl list-timers, docker ps).
  3. Une hypothèse falsifiable à la fois : « si X, alors je verrais Y » → tester Y.
  4. Bissection : réduire la surface (dry-run, git bisect, isoler le sous-script) jusqu'au point de bascule.
  5. Corriger la cause, pas le symptôme ; vérifier qu'aucune autre branche n'en dépendait.
  6. Prouver : rejouer le cas + un cas voisin (régression).
  7. Capitaliser (R48) : une entrée dans le log d'erreurs du projet (par exemple 40_ERRORS/) — symptôme, cause, correctif, pattern si récurrent.

Exemple — timer systemd muet

Symptôme : « la veille n'a rien produit depuis deux jours ».

  1. systemctl list-timers --all | grep veille → le timer existe, LAST date d'il y a deux jours, NEXT à n/a : il ne se réarme pas.
  2. systemctl status veille.service → inactive (dead), dernier résultat exit-code.
  3. journalctl -u veille.service --since "3 days ago" → ModuleNotFoundError: paramiko à la première ligne de l'exécution ratée ; la veille précédente passait.
  4. Hypothèse : le virtualenv a été recréé sans la dépendance → ls <venv>/lib/*/site-packages | grep paramiko → absent. Confirmé.
  5. Cause : réinstallation du venv la veille sans requirements.txt à jour. Correctif : ajouter la dépendance au fichier, réinstaller, systemctl start veille.service → exit 0 ; list-timers affiche à nouveau un NEXT.
  6. Entrée au log d'erreurs : « timer muet ≠ timer cassé : lire status puis journalctl avant de toucher à l'unité ».

Pièges connus

  • Cache ≠ source (R51). Quoting PowerShell → bash (le $ disparaît) : passer par un fichier de commande.
  • Encodage : un chemin ou une sortie en caractères non latins plante en cp1252 → forcer UTF-8 (errors=replace).
  • Saturation du poste (outil lent, timeout) n'est pas un bug applicatif : basculer d'outil d'abord.
  • Variable PYTHONHOME héritée : casse socket/paramiko de façon silencieuse.
  • Un exit 0 sans effet est un bug (R71) : vérifier l'effet, pas le code.

Anti-patterns

Changer plusieurs choses à la fois. Deviner sans observer. Réessayer la même approche trois fois (R22). Corriger le symptôme et fermer.

Changelog

  • 2026-09-07 — 1.1 : R22/R48/R51 définies en une ligne ; chemins vault remplacés par « log d'erreurs du projet » ; noms de scripts privés retirés ; exemple timer systemd ajouté ; frontmatter normalisé.
  • 2026-07 — 1.0 : version initiale.

よくある質問

AIスキル「Debugging And Error Recovery」では何ができますか?

Débogage discipliné par cause racine pour scripts Python, VPS (systemd/Docker/SFTP), pipelines de veille et automatisations maison. À utiliser quand un test échoue, un build casse, un timer ou une tâche planifiée ne produit rien, un script renvoie un résultat inattendu, ou face à toute erreur non comprise. Déclencheurs : "débogue", "ça marche pas", "pourquoi cette erreur", "trouve la cause", "root cause", "ça plantait avant", "le timer ne tourne plus", "sortie vide". Ne pas activer pour une coquille triviale corrigée en un coup d'œil, ni pour corriger/durcir une application web entière → co...

TypingMindでDebugging And Error Recoveryを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Debugging And Error Recoveryはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにDebugging And Error Recoveryをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/GeekFamilyCorp/TricorderKit/tree/main/cowork-plugins/tk-dev-discipline/skills/debugging-and-error-recoveryを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Debugging And Error Recoveryを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Debugging And Error Recoveryで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもDebugging And Error Recoveryを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Debugging And Error Recovery」は無料ですか?

はい。GeekFamilyCorpがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇