Raw notes
レビューコメント、事故メモ、ADR、デバッグログをまず証拠として保存します。
gh skill for repository memory
PR レビュー、ADR、障害メモ、調査ログを .repo-kb/ に集め、
LLM が読みやすいリポジトリ知識として育てるための skill です。
gh skill install
.repo-kb/ に運用知を蓄積
すべての知識を起動時コンテキストへ詰め込まず、raw evidence から synthesized pages、 generated references、必要な guidance へ段階的に昇格します。
レビューコメント、事故メモ、ADR、デバッグログをまず証拠として保存します。
繰り返し使える知識だけを、LLM と一緒にページや review aspects へ整理します。
lint と compile で短い参照出力を生成し、drift を検出します。
月次や明示的な依頼時だけ、安定した知識を agent rules や docs へ反映します。
GitHub CLI 2.90.0 以降の gh skill を使います。
まず preview してから、対象リポジトリへ project scope で入れるのがおすすめです。
gh --version
gh skill --help
gh skill preview makikub/repo-knowledge-compiler repo-kb
cd /path/to/target-repo
gh skill install makikub/repo-knowledge-compiler repo-kb \
--agent codex \
--scope project
cd /path/to/target-repo
gh skill install makikub/repo-knowledge-compiler repo-kb \
--agent claude-code \
--scope project
ユーザーが Python パスを覚える必要はありません。 agent にやりたいことを伝え、必要な場面で skill の helper が決定的な処理を担当します。
$repo-kb を使って、このリポジトリを初期化して
/repo-kb ingest DBトランザクション境界の教訓: 外部API呼び出しを中に入れない
/repo-kb ask DBトランザクション境界の注意点は?
/repo-kb promote 今月の安定した知識だけ CLAUDE.md / REVIEW.md / rules に反映して
repo-local に vendoring した場合は、対象リポジトリの中で構造チェックや compile を直接実行できます。
.repo-kb/ の初期構造を作成します。
人間のメモ、ディレクトリ snapshot、PR コメントを raw source として取り込みます。
frontmatter、リンク、sources、generated drift を確認し、参照出力を更新します。
.agents/skills/repo-kb/scripts/repo-kb init
.agents/skills/repo-kb/scripts/repo-kb ingest --kind human-note --title "Review lesson" --note "Sanitized note."
.agents/skills/repo-kb/scripts/repo-kb lint
.agents/skills/repo-kb/scripts/repo-kb compile --check
.agents/skills/repo-kb/scripts/repo-kb ask "What should I know before changing src/api?"