wiki-ingest

wiki-ingest is a skill for Claude Code from megaphone-tokyo/kioku. It costs 106 tokens per session (2,061 once invoked), scanned A, original, MIT.

A lightweight workflow for adding knowledge from selected files, directories, or recent Git changes to a claude-brain Wiki.

In plain words
What is it for?
It ingests named files or folders, or extracts knowledge from recent commits, when an Obsidian vault and its Wiki folder are configured.
Why use it?
It captures useful design decisions and lessons from code work without requiring a full project-wide import.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md.

Part of the kioku plugin — 5 skills shipped together

Good fit It ingests named files or folders, or extracts knowledge from recent commits, when an Obsidian vault and its Wiki folder are configured.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/megaphone-tokyo/kioku/wiki-ingest
Install

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.

Any agent
npx skills add megaphone-tokyo/kioku --skill wiki-ingest
Clone the repo
git clone --depth 1 https://github.com/megaphone-tokyo/kioku

Made for: Claude Code.

Or install kioku, the plugin that ships this one along with the rest of its 5 skills.

Wrote 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.

agentmods badge for wiki-ingest

README.md
[![agentmods](https://agentmods.dev/badge/skills/megaphone-tokyo/kioku/wiki-ingest/github.svg)](https://agentmods.dev/skills/megaphone-tokyo/kioku/wiki-ingest)
Your own site
<a href="https://agentmods.dev/skills/megaphone-tokyo/kioku/wiki-ingest"><img src="https://agentmods.dev/badge/skills/megaphone-tokyo/kioku/wiki-ingest/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for wiki-ingest

Your own site · 80×15
<a href="https://agentmods.dev/skills/megaphone-tokyo/kioku/wiki-ingest"><img src="https://agentmods.dev/badge/skills/megaphone-tokyo/kioku/wiki-ingest.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 106 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,061 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00106 $0.02061
Opus 5 $0.00053 $0.01030
Sonnet 5 $0.00021 $0.00412
Haiku 4.5 $0.00011 $0.00206

Measured 11d ago against content hash 4b8dba9e01ad, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

wiki-ingest 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 11d 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.

skills/wiki-ingest/SKILL.md · 187 lines

How it starts

The opening of the file, as written. The whole thing — 187 lines — stays where its author put it; the contents beside it link to each section on GitHub.

wiki-ingest

特定ファイル or 最近の git 変更から知見を抽出して claude-brain Wiki に取り込むスキル。/wiki-ingest-all の軽量版で、日常的に気になる点だけ Wiki に落とすために使う。

いつ使うか

  • 特定のファイル/ディレクトリの知見だけ Wiki に追加したい時
  • 最近の git 差分から設計判断やバグ修正の知見を拾いたい時
  • /wiki-ingest-all ほど大掛かりにする必要がない時

プロジェクト全体を backfill したい場合は /wiki-ingest-all を使うこと。

前提

  • $OBSIDIAN_VAULT が設定され、$OBSIDIAN_VAULT/wiki/ が存在すること
  • 引数なしモードは git リポジトリ内で実行すること

モード判定

モード A: パス指定 (/wiki-ingest <path>)

引数に 1 つ以上のパス (ファイル or ディレクトリ) が渡されたらこのモード。

# 例
/wiki-ingest src/auth/strategy.ts
/wiki-ingest docs/architecture/
/wiki-ingest src/middleware/ src/utils/errors.ts

モード B: git 差分 (/wiki-ingest 引数なし)

引数が空ならこのモード。最近の git 変更から Claude が判断して知見を抽出する。

ワークフロー

Step 0: 環境確認

/wiki-ingest-all の Step 0 と同じ:

test -n "$OBSIDIAN_VAULT" || echo "ERROR: OBSIDIAN_VAULT not set"
test -d "$OBSIDIAN_VAULT/wiki" || echo "ERROR: wiki/ missing"

PROJECT_NAME=$(git config --get remote.origin.url 2>/dev/null | sed -E 's#.*/([^/]+)(\.git)?$#\1#' | sed 's/\.git$//')
test -n "$PROJECT_NAME" || PROJECT_NAME=$(basename "$(pwd)")

Step 1: 対象の決定

モード A (パス指定)
  • 指定されたパスが存在するか test -e で確認
  • ファイルなら直接読む (Read)
  • ディレクトリなら ls で中身を確認し、主要なもの (README, index.*, 設計ドキュメント等) を優先して読む
  • バイナリ/大きすぎるファイルはスキップ
モード B (git 差分)

最近のコミットをまず眺めて範囲を決める:

git log --oneline -10
git status

上の結果を見て Claude が範囲を判断する。固定の HEAD~N は使わない。典型的には:

  • 直近 1〜3 コミットに明確なテーマがある → その範囲
  • コミットが細かくバラバラ → 直近 1 コミットだけ
  • 作業途中 (uncommitted) → git diff + git diff --cached のみ

決めた範囲で差分を取得:

git diff HEAD~<N>..HEAD --stat       # まず概要
git diff HEAD~<N>..HEAD              # 次に本体 (大きければファイル単位で絞る)

スキップする変更:

  • lint / format / typo 修正
  • 依存関係の単純なバージョンバンプ
  • ファイル移動・リネームだけのコミット
  • 生成物 (dist/, build/, lock ファイル)

Step 2: 既存 Wiki 監査

/wiki-ingest-all の Step 0-3 と同じ:

ls "$OBSIDIAN_VAULT/wiki/projects/"
ls "$OBSIDIAN_VAULT/wiki/concepts/"
ls "$OBSIDIAN_VAULT/wiki/patterns/"
cat "$OBSIDIAN_VAULT/wiki/index.md"

qmd MCP が利用可能ならキーワードで事前検索 (オプショナル)。

Read the full file on GitHub · 187 lines

Changes

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.

  1. 11d ago First seen · 187 lines · 106 tokens per session scan A 4b8dba9e01ad

Subscribe to this mod's changes

wiki-ingest is a skill published in the GitHub repository megaphone-tokyo/kioku (5 stars, last pushed 2mo ago), licensed MIT. It adds 106 tokens to every session and 2,061 once invoked, about $0.0005 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.

Related

Other skills, from other repositories

setup

Set up or update TDD Guard for the current project. Detects the test framework, installs or updates the matching reporter, and configures or migrates its configuration to match the current specification.

nizos/tdd-guard · 39 tokens

hook-authoring

Guide creating Claude Code hooks with security-first design. Use for validation and enforcement.

athola/claude-night-market · 20 tokens

agent-harness-optimizer

Use when agent harness optimization patterns for token efficiency, memory persistence, session management, and cross-harness parity. Use when optimizing agent performance, reducing token costs,.

oyi77/1ai-skills · 38 tokens

usage-guard

Arm proactive 5-hour usage protection for long Claude Code sessions (batch, subagents, high window % at start). Daemon reads account-level 5-hour window usage (not per-session). User types /usage-guard at session start. Re-arm every sitting. If user mentions usage-guard by name, read this file and run arm.sh.

shirley-xue-2025/usage-guard · 75 tokens

video-editor-full

A video post-production workflow that transcribes footage, removes silent sections, edits clips, adds effects and subtitles, and creates animated sections.

1596941391qq/ai-openclaw-skeletons · 83 tokens

anything-to-md

Universal document to Markdown converter. Convert any file (PDF, Word, Excel, PPT, images, audio, video, YouTube URLs) to clean LLM-ready Markdown. Use when: User wants to convert documents to Markdown User needs to process entire directories of files User has YouTube videos or audio files to transcribe User wants to…

1596941391qq/ai-openclaw-skeletons · 265 tokens