compile-knowledge
できること
このツールは、重要な情報を小さな別々のファイルに整理します。索引も作成するため、過去のセッションで学んだことを、もう一度調べ直すことなく簡単に見つけられます。
使う場面
- ✓ドキュメントを見ただけではすぐにわからない、重要な事実を見つけたとき。
- ✓調査が終わり、分かったことを保存したいとき。
- ✓「この情報を保存して」「ナレッジベースを更新して」と頼まれたとき。
スキルのリンク
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/compile-knowledge/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“この情報を保存してください。GitHub APIは、プルリクエストを合計数の中でissueとして数えます。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このツールは、重要な事実を一つずつ別々のファイルに、タイトルと短い説明を付けて保存します。関連する情報同士をリンクでつなぎ、検索しやすいように全体の索引も作成します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Compile Knowledge
Overview
Durable knowledge is worth keeping as many small, interlinked markdown files compiled over
time and surfaced through an index — not as one giant doc, a chat log, or a one-off
notes.md that rots. This skill makes compiling consistent, so what an agent learns in one
session is retrievable in the next one instead of being re-derived from scratch.
The shape is deliberately boring: one fact per file, a one-line description that recall
matches against, [[slug]] links between related files, and a single index line per entry.
The hard part is not the format — it is the discipline of writing only what is durable, and
of updating an existing file instead of creating a near-duplicate.
When to Use This Skill
- Use when you have just produced research, competitive intel, a digest, or an investigation result, and are about to close the task — compile before you close.
- Use when you learn a non-obvious fact the hard way (a tool that fails silently, a measurement that contradicts the docs, a constraint nobody wrote down).
- Use when the user says "save this", "write this to the wiki", "update the memory", "log this finding", "structure this knowledge", or "follow the karpathy method".
- Do not use it for routine work. A deploy, a restart, or a one-line fix usually produces nothing durable, and filler pollutes recall.
How It Works
Step 1: Pick the store
- Agent memory — the per-agent folder your harness already loads (
memory/with an index file such asMEMORY.md). This is the default and, for a solo agent, usually the only store you need. - Shared wiki — a
wiki/folder withwiki/index.md, for knowledge the whole team would otherwise re-derive. Skip it entirely if you work alone; do not manufacture team ceremony.
Rule of thumb: "only I act on this" goes to memory, "anyone on my team might need this"
goes to the wiki. Cross-link the two with [[slug]] rather than copying the fact into both.
Step 2: Pass the hygiene gate
Compile only a fact that is durable and non-obvious. Skip it if it is derivable from the repository, the git history, or the existing docs; if it is true only for this one conversation; or if an existing file already covers it — in that last case update that file.
Step 3: Search before you write
Grep the store and skim the index for the topic. A near-duplicate is worse than no entry, because recall then has two answers and no way to choose between them.
Step 4: Write one atomic file
One fact per file. Two unrelated facts are two files. Name it as a kebab-case slug — the
slug is the link target, so it has to be guessable by the next reader. Frontmatter carries
name (equal to the slug), a one-line description specific enough to be matched during
recall, and a type or category. In the body, state the fact plainly and link related
entries with [[slug]] liberally; a link to a file that does not exist yet is a fine TODO
marker, not an error.
Step 5: Add exactly one index line
Use one line in the form - Title → slug.md — hook, under ~200 characters. Detail lives in
the file; an index line that restates the file defeats the point of having an index. Create
the index if it is missing, or the store is undiscoverable.
Step 6: Age the fact instead of letting it rot
Facts expire. When one is time-sensitive or replaces an older one, say so in the frontmatter so recall can demote it rather than serving stale truth:
valid_to: YYYY-MM-DD— the date the fact needs a recheck.supersedes: <slug>— the older fact this replaces. Prefer this over editing in place when the old value is still worth seeing; edit in place when it is not.confidence: high|medium|low— so a hunch never outranks a measurement.provenance: "<source>"— where the fact came from, distinct from who wrote the note.
All four are optional and portable; omitting them changes nothing.
Examples
Example 1: A measured, non-obvious fact goes to memory
---
name: reference_search_api_counts_prs_as_issues
description: "GitHub's /search/issues endpoint counts pull requests in total_count, so a zero there proves neither issues nor PRs exist — but a non-zero one does not tell you which."
confidence: high
provenance: "measured 2026-08-16 while dupe-checking four upstream repos"
---
`total_count` from `/search/issues?q=<term>+repo:<owner>/<name>` is the sum of issues and
…
よくある質問
「durable, non-obvious fact(長く通用する、自明でない事実)」とは何ですか?
しばらくは正しいままであろうと考えられ、ドキュメントやコードを見るだけではすぐに分からない情報のことです。
すでに保存されている内容をもう一度保存しようとするとどうなりますか?
重複して混乱を招かないように、ツールは新しいファイルを作る代わりに、既存のファイルを更新するよう求めます。
日々の簡単なメモにも使えますか?
おすすめしません。このツールは、重要で長く役立つ知識を保存するためのもので、一時的なメモや日常的な記録向けではありません。
詳細
作者による元の説明
Compile durable, non-obvious findings into an interlinked markdown knowledge store — atomic files, [[wiki-links]], a maintained index — so an agent gets smarter across sessions instead of relearning the same facts.
人気
- GitHubのスター
- 48k
- ランキング
- #4222
- ライセンス
- MIT
- 更新日
- 2026/10/15
コメント
- …
このリポジトリの他のスキル
00-andruia-consultant
48kエージェントがAIプロジェクトの立ち上げや改善を支援します。コードを分析し、ツールを提案し、スペイン語で行動計画を作成します。
007
48kエージェントがセキュリティ監査と脅威モデリングを行えるようにします。攻撃や脆弱性からプロジェクトを守るのに役立ちます。
10-andruia-skill-smith
48kエージェントがAIツールの作成や改善を支援します。ツールの動作を定義し、ドキュメントを書き、構造を検証します。
20-andruia-niche-intelligence
48kエージェントが特定の業界に関する要約を作成できるようにします。信頼できる情報源を使って、プロジェクトの背景、ルール、利用パターン、リスクを把握するのに役立ちます。
似ているスキル
technical-documentation
394k明確な技術ドキュメントやエージェントの指示ファイルを書いて確認し、人やAIツールが簡単に従えるようエージェントを支援します。
architecture-decision-records
280kエージェントがプロジェクト構成に関する重要な決定を記録できるようにします。選択の理由を把握しやすくし、変更履歴を明確に残すのに役立ちます。
code-tour
280kエージェントが正確なファイル名と行番号を示しながら、コードを段階的に解説できるようにします。紹介、説明、レビューに役立ちます。