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

tderoussel/codebase-audit

製品、コードベース、またはサブシステムに対して、証拠に基づいた優先順位付けされた監査を実行し、最後に検証リストを作成して、立証された発見事項と推測された発見事項を区別します。

codebase-audit とは?

このスキルは、Claude CodeやCursorなどのAIエージェントがコードベースの包括的な監査を実行するための構造化されたフレームワークを提供します。主な目的は、証拠に基づいた発見事項に優先順位を付け、推測と事実を明確に区別することです。監査はTL;DRで始まり、盲点、欠落している機能、改善が必要な既存機能、アーキテクチャの変更、今後30日間の推奨事項をカバーする複数のパートで構成されます。ドキュメントと実際のコードやプロダクションの状態との矛盾を積極的に探し出し、それ自体を重要な発見事項として扱います。特に価値が高いのは、リポジトリ内に既に存在するが呼び出し元のない「休眠スキャフォールド」を検出することです。監査の最後には検証リストが含まれ、解決できなかった矛盾点とそれを解決するためのクエリやチェック方法を明示します。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/tderoussel/agent-skills/tree/main/skills/codebase-audit

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

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

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

ドキュメント

コードベース監査(Codebase Audit)

監査の価値は優先順位付けとエビデンスにあり、長さではありません。ファイルパス、クエリ結果、PR番号、または行数がない発見事項は仮説であり、そのようにラベル付けしてください。

監査をドキュメントではなくコードとプロダクションに基づかせる

プロジェクトノート、計画、ステータスドキュメントはチェックポイントであり、権威ではありません。それらを出発点として何が主張されているかを学び、その後、実際のコミット、データベースの状態、PRチェック、ブランチヘッドに対して検証します。

ドキュメントとコードが矛盾する場合、その矛盾自体が発見事項であり、多くの場合監査の中で最も価値のあるものです。

プロダクションに関する主張には、プロダクションに対するクエリが必要です。メカニクスについては検証ゲートスキルと組み合わせてください。

構造

# <スコープ> 監査 (YYYY-MM-DD)

## TL;DR
<重要な3つのことと、最初に何をするか>

## パート1 — 見えていないもの(盲点、優先順位付け済み)
## パート2 — 欠落している機能(優先順位付け済み、それぞれに大まかな工数見積もり)
## パート3 — 改善が必要な既存機能(優先順位付け済み)
## パート4 — アーキテクチャの変更(優先順位付け済み、平易な日本語で)
## パート5 — 次の30日間を私が運営するなら
## 検証リスト(監査中に見つかった矛盾)

すべてに優先順位を付けましょう。 40件の発見事項が優先順位付けされていないリストは、行動が起こされない40件のリストです。

見積もり前に休眠スキャフォールドを確認する

各ギャップに大まかな工数見積もりを添付し、なぜそれが安価か高価かを説明してください。

通常、最も価値のある監査の発見事項はこれです:価値の高い「ギャップ」のほとんどは、数週間ではなく数日の作業であり、それはスキャフォールドがリポジトリ内に呼び出し元なしで既に存在するからです。 すでに80%構築されている機能は、そうでない機能とはまったく異なる判断を下します。

存在しないと宣言する前に、該当するものをgrepで検索してください。呼び出し元がゼロの関数が典型的なケースです — コードは存在するがそれを呼び出すものはなく、すべてのステータスドキュメントはその機能が存在しないと説明しています。

検証リスト

すべての監査は、解決できなかった矛盾で終了します。各エントリには次の内容を記載します:

  • 何が主張されていたか
  • 何が観測されたか
  • それを解決するためのクエリまたはチェックは何か

これは次のセッションが実際に使用するセクションです。 短くても必ず記述してください。

明示的に価値がないと判断したセクション

調査したが意図的に却下したものを、その理由とともに明記してください。

バックログに追加するだけの監査は、バックログを役に立たなくします。調査して却下した発見事項は、言及すらしなかったものよりも価値があります。なぜなら、次の監査で再び持ち上げられるのを防ぐからです。

保留中の項目はギャップではない

すでに意図的に先送りされたもの、または明示的な人間の判断のために保留されたものは、意図的に保留されています。それをギャップとしてリストしないでください。

意図的な保留を発見事項として再浮上させることは、保留された判断が誤って実行される方法です。

出力

監査はプロジェクトが保管する場所に書き出してください。以前の監査を置き換える場合は、どれが置き換えられ、何が変わったかを明記してください — 監査のフォルダは、積み重なるのではなく、シーケンスとして読みやすい状態を保つべきです。

Individual skills in this repo

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

tderoussel/competitive-teardown

Researches a competing product against your own and produces a ranked build-or-ignore verdict, plus optional comparison-page copy. Use when the user names a competitor or asks how their product stacks up against one. Trigger phrases include "vs us", "competitor", "what does X have", "should we copy", "competitive gap", "teardown", "are we behind". Produces a ranked verdict with effort estimates and an explicit not-worth-copying list.

tderoussel/decision-council

Run a structured multi-perspective review of a decision instead of getting one agreeable answer. Use when the user says run a council, get me perspectives on this, should I do X, stress-test this decision, or is this a good idea.

tderoussel/fleet-brief

Authors a workstream brief for dispatching multiple parallel build agents across one codebase, with per-lane file ownership, shared-ground warnings, and a derived DO-NOT list. Use whenever work is about to be split across concurrent agents, workers, lanes, or waves — even if the user does not say "write a brief". Trigger phrases include "fan out", "parallel agents", "orchestrate this", "split into lanes", "workstreams", "run these in parallel", "review-gated build". Produces the brief; does not dispatch.

tderoussel/inbox-triage

Triage an email inbox — sort what needs a reply, draft the replies, flag what needs a decision, and surface what can be ignored or unsubscribed. Use when the user says triage my inbox, do my email, what's in my inbox, or clean up my email.

tderoussel/overnight-build

Composes an autonomous unattended Claude Code build prompt that survives usage-limit resets via BUILD_LOG.md checkpointing, plus the launcher that restarts it. Use when the user asks for an overnight build, an autonomous build, a build to run while they sleep, an unattended or unsupervised session, or any long build they will not be monitoring. Trigger phrases include "overnight build", "run overnight", "build while I sleep", "autonomous build", "let it run", "unattended". Produces a single copyable prompt; does not run the build.

tderoussel/session-log

Write a durable record of a work session — what was built, root-caused, or shipped — into the project's notes. Use when the user says log this session, write a session log, record this, or when a substantial piece of work has just finished and needs to be handed off to a future session.

tderoussel/ship-gate

Verification gate for a Next.js-on-Vercel + Supabase + GitHub Actions stack, to run before claiming anything is shipped, deployed, live, merged, passing, or done. Use before saying a change is in production, before merging a PR, before reporting CI green, and before writing any status into a document — even if the user does not ask for verification. Trigger phrases include "is it live", "did it deploy", "ship it", "merge it", "is CI green", "confirm prod", "did that work". Encodes traps where the obvious check returns a false pass.

tderoussel/vault-doctor

Audits and repairs an Obsidian vault's structural health — broken [[wikilinks]], ambiguous duplicate filenames, missing or malformed frontmatter, stale status markers, and hub notes whose state sections have gone cold. Use when the user asks about vault health, broken links, vault cleanup, dead links, orphan notes, tag consistency, or says the vault feels messy or out of date. Trigger phrases include "vault health", "broken links", "clean up the vault", "audit the vault", "is the vault current". Read-only by default; every repair is proposed before it is made.

関連スキル