Communityコーディング&開発github.com

thananon/debug-mantra

四つのマントラからなるデバッグの規律——再現し、失敗パスを追跡し、仮説を反証し、すべての手がかりを相互参照する。

debug-mantra とは?

このスキルは、デバッグセッションを構造化された4ステップのプロセスに導く「debug-mantra」を提供します。開発者がバグ報告やエラーログ、スタックトレースを受け取った際に、まずマントラブロックを暗唱し、その後「再現」「失敗パスの追跡」「仮説の反証」「手がかりの相互参照」の手順を順に適用することで、衝動的な修正提案を防ぎます。Claude CodeやCursorなどのAIエージェント上で動作し、`/debug-mantra` コマンドまたはデバッグ開始が検出されたときに自動的にトリガーされます。各ステップでは具体的なアクション(例えば、最小限の再現手順の記録、各仮説を反証するテストの要求、関連コードやログの相互参照など)が定義されており、整然としたエビデンスベースのデバッグを実現します。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/thananon/9arm-skills/tree/main/skills/debug-mantra

Installed? Explore more コーディング&開発 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

thanaon/debug-mantra

四つのマントラからなるデバッグの規律——再現し、失敗パスを追跡し、仮説を反証し、すべての手がかりを相互参照する。デバッグセッションの開始時にマントラブロックをそのまま暗唱し、修正を提案する前に4つのステップを順に適用すること。/debug-mantra でトリガーされ、またユーザーがバグを報告したり、「壊れている」「例外を投げている」「失敗している」などと言った場合、デバッグ/診断/調査を依頼した場合、またはスタックトレースやエラーログを貼り付けた場合に、プロアクティブに発動する。

Individual skills in this repo

This repo contains 3 individual skills — each has its own dedicated page.

thananon/management-talk

Rewrite engineer-to-engineer content for engineering-org leadership (VPs, directors, PMs, release managers, execs in an engineering-savvy company) and shape it for the channel it is going to — JIRA comment, Slack post, async standup line, email, or meeting talking-points. Trigger when the user asks to write/rewrite for management / exec / VP / director / PM / release manager, asks for an "executive summary / leadership update / status update", says "make this less technical / less jargony", or asks for a slack / email / standup / meeting version of work originally written engineer-to-engineer.

thananon/post-mortem

Write the canonical engineering record of a fixed bug — root cause, mechanism, fix, validation, and how it slipped through. Engineer-audience, code identifiers welcome. Use after a debug session lands a fix, before closing the ticket. Trigger on /post-mortem, when the user says "write the post-mortem / postmortem / RCA / root cause analysis", "document this fix", "write up the root cause", "close out this bug with a writeup", or hands you a fixed-and-validated bug and asks for the writeup.

thananon/scrutinize

Outsider-perspective end-to-end review of a plan, PR, or code change. First questions intent and whether a simpler/more elegant approach would achieve the same goal, then traces the actual code path (not just the diff) to verify the change does what it claims. Output is concise, actionable, and every call carries its rationale. Trigger on /scrutinize and proactively whenever the user asks to review, audit, sanity-check, or get a second opinion on a plan, PR, diff, design doc, or proposed code change.

関連スキル