Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/okash1n/kb/claude-mdgit clone --depth 1 https://github.com/okash1n/kbWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/okash1n/kb/claude-md)<a href="https://agentmods.dev/instructions/okash1n/kb/claude-md"><img src="https://agentmods.dev/badge/instructions/okash1n/kb/claude-md.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.02169 | $0.02169 |
| Opus 5 | $0.01085 | $0.01085 |
| Sonnet 5 | $0.00434 | $0.00434 |
| Haiku 4.5 | $0.00217 | $0.00217 |
Grade A, and why
kb CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 141 lines — stays where its author put it; the contents beside it link to each section on GitHub.
kb リポジトリ
複数プロジェクト × 複数AIの共通コンテキスト基盤。ローカルMCPサーバーとして動作する。
kb は単なるノート置き場ではなく、AI がセッションをまたいで成長するための共有学習基盤を目指している。
Claude、Copilot、Codex のような複数の AI が、gap、knowledge、adr を通じて「ユーザーが AI に求めること」と「そのプロジェクトで積み上がった判断や知見」を学び、次のやり取りで自然に活かせる状態を作る。
目標は 2 つある。
- 単体 AI が、過去の失敗や判断を踏まえて継続的に賢くなること
- AI チーム全体が、同じユーザー・同じプロジェクト文脈を共有しながら揃って成長していくこと
アーキテクチャ
- kb_mcp は「Obsidian CLIのラッパー + kb固有ロジック」
- Obsidian CLI 1.12+ 起動済みを前提とする
- Obsidian CLI に委譲: ファイルI/O、frontmatter操作、検索、リンク構造取得
- kb_mcp 固有: ULID生成、slug生成、ファイル命名規則、ADR status管理、organize提案、graduate分析
データ配置
ノートはこのリポジトリには含まれない。kb-mcp setup で設定した Obsidian Vault に保存される。
設定: ~/.config/kb/config.yml
vault_path: Obsidian Vault のルートパスkb_root: Vault 内の kb 専用スコープ(空 = Vault 直下、kb= サブディレクトリ)
実効パス = vault_path / kb_root の下に以下の構造が作られる:
projects/<project-name>/— プロジェクトごとのコンテキストadr/— 意思決定ログgap/— AI指摘 → 本当はどうしてほしかったかsession-log/— セッションログknowledge/— 開発中に得た知識draft/— やりたいこと・アイデアメモ
inbox/— プロジェクトに紐づかないアイデア・雑多なメモgeneral/— プロジェクト横断の共通知見(kb_graduateで昇格)knowledge/— 共通知識requirements/— ユーザーがAIに求めることの集約
ノートのルール
- frontmatter必須:
id(ULID),summary,ai_tool,created,updated - frontmatter任意:
ai_client,repo,tags,related,status(ADR用) ai_tool: AI ベンダー(claude | copilot | codex)ai_client: 具体的なクライアント(claude-code | copilot-cli | codex-cli等、optional)- 配列フィールド(
tags,related)はインライン形式[a, b]で表現する - ファイル命名:
{slug}--{ULID}.md(session-logのみ{yyyymmdd-hhmm}--{ULID}.md) - ノート間の関連付けは ULID(
id)を正とする(relatedはULID配列)
Project resolver
- 保存系 tool は
projectを自動解決する(cwd の git remote →.kb-project.ymlでマッチング) - 明示的に
projectを指定することもできる - 各プロジェクトの
.kb-project.ymlに紐付くリポジトリを記録する
MCP Tools
| tool | 役割 |
|---|---|
kb_init |
プロジェクト初期化 |
kb_adr |
意思決定ログ保存 |
kb_gap |
反省記録保存 |
kb_knowledge |
知識保存 |
kb_session |
セッションログ保存 |
kb_draft |
アイデア・やりたいことメモ(project指定→draft/、なし→inbox/) |
kb_search |
検索 |
kb_read |
ノート読み込み |
kb_lint |
ルール整合性チェック |
kb_organize |
リンク候補の発見・提案 |
kb_graduate |
general/への昇格提案 |
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago First seen · 141 lines · 2,169 tokens per session scan A a3842d61a343
kb CLAUDE.md is an instructions file published in the GitHub repository okash1n/kb (0 stars, last pushed 5mo ago), licensed MIT. It adds 2,169 tokens to every session, about $0.0108 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other instructions, from other repositories
cognirepo CLAUDE.md
Claude Code instructions for ashlesh-t/cognirepo, covering claude.md, key rules, session start sequence (run in this order), behavioral confirmation rule and personas (cognirepo-402, cognirepo-403).
aeon CLAUDE.md
Instructions for aeonfun/aeon, covering aeon, how aeon works, strategy, voice and soul file hierarchy (read in this order).
wayland-core copilot-instructions.md
Copilot instructions for FerroxLabs/wayland-core, covering ijfw rules, output discipline, memory routing, context discipline and cross-audit.
mcp-structured-memory CLAUDE.md
Claude Code instructions for nmeierpolys/mcp-structured-memory, a project described as: Structured Memory MCP Server.
inkwell-memory CLAUDE.md
Instructions for veronchenko/inkwell-memory, covering claude.md — inkwellmemory, layout, multi-tenant mode (inkwellmultitenant=1), conventions and testing.
memory-mcp-1file AGENTS.md
Instructions for pomazanbohdan/memory-mcp-1file, covering ⛔ l0 invariants (never violate under any circumstance), detection heuristic, 🔀 phase transition routing (⛔ blocking), gate-0: phase identification & loading and 🧾 proof-of-load requirement (critical).