wiki-doc-sink

wiki-doc-sink is a skill for Claude Code, Codex from chengkj99/kj-skills. It costs 141 tokens per session (1,543 once invoked), scanned A, original, MIT.

A set of rules for saving information in a personal LLM Wiki, meaning a private knowledge base organized for use with language models.

In plain words
What is it for?
Use it when turning conversations or conclusions into lasting personal Wiki pages, or when searching that Wiki for existing knowledge.
Why use it?
It keeps personal notes in the intended Wiki location and prevents them from being mixed with a project's documentation or raw records.

Skill for Claude CodeCodex

Written for Claude Code and Codex: disable-model-invocation in frontmatter, but also agents/openai.yaml present. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Part of the kj-skills plugin — 34 skills, 1 command, 1 hook shipped together

Good fit Use it when turning conversations or conclusions into lasting personal Wiki pages, or when searching that Wiki for existing knowledge.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/chengkj99/kj-skills/wiki-doc-sink
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 chengkj99/kj-skills --skill wiki-doc-sink
Clone the repo
git clone --depth 1 https://github.com/chengkj99/kj-skills

Made for: Claude Code, Codex.

Or install kj-skills, the plugin that ships this one along with the rest of its 34 skills, 1 command, 1 hook.

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-doc-sink

README.md
[![agentmods](https://agentmods.dev/badge/skills/chengkj99/kj-skills/wiki-doc-sink/github.svg)](https://agentmods.dev/skills/chengkj99/kj-skills/wiki-doc-sink)
Your own site
<a href="https://agentmods.dev/skills/chengkj99/kj-skills/wiki-doc-sink"><img src="https://agentmods.dev/badge/skills/chengkj99/kj-skills/wiki-doc-sink/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-doc-sink

Your own site · 80×15
<a href="https://agentmods.dev/skills/chengkj99/kj-skills/wiki-doc-sink"><img src="https://agentmods.dev/badge/skills/chengkj99/kj-skills/wiki-doc-sink.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 141 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,543 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.00141 $0.01543
Opus 5 $0.00071 $0.00772
Sonnet 5 $0.00028 $0.00309
Haiku 4.5 $0.00014 $0.00154

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

Security

Grade A, and why

wiki-doc-sink 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 12d 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-doc-sink/SKILL.md · 94 lines

How it starts

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

Wiki 文档沉淀(个人知识库)

范围边界

  • 本 skill 仅处理个人 <WIKI_ROOT>,不处理组织/公司业务专用 Wiki。
  • 若用户要沉淀的是业务域 Wiki,停止并按其本机已配置的业务 Wiki 规则执行(常见位置:~/.claude/rules/)。

Fork 与路径配置(必读)

本 skill 的知识库根目录须由你自行指定(下称 <WIKI_ROOT>)。将下文所有 <WIKI_ROOT> 替换为你的 Wiki 仓库在本机的绝对路径。

维护者示例曾使用路径 .../kj-llm-wiki;开源使用者请改为自己的目录。

执行前必读(按顺序 Read)

  1. 本 skill 目录下:
    • references/personal-wiki-bridge.md
    • references/routing-notes.md
  2. 用户环境(若存在):
    • ~/.claude/CLAUDE.md(全局 WIKI_ROOT 等)
  3. Wiki 仓库(以磁盘为准):
    • <WIKI_ROOT>/SCHEMA.md
    • <WIKI_ROOT>/CLAUDE.md

何时写入 Wiki(默认)

当对话出现以下或同义表述,且意图为个人知识库 / Wiki(不是当前项目的 README、不是用户明确说的「就写在这个 repo」)时:

  • 「沉淀内容到文档」
  • 「沉淀到文档」「沉淀到知识库」
  • 「把内容沉淀成文档」
  • 「个人 wiki」「个人知识库」
  • 其他明确表达「要把当前讨论/结论写成可长期维护的文档」且指向个人 Wiki

默认应执行:按 <WIKI_ROOT> 仓库规范写入知识库,不要默认写当前打开项目的 docs/ 或随意新建说明文件。

落点含糊时,按 references/routing-notes.md 先问一句(个人 Wiki vs 当前项目 docs/)。

何时写入当前项目

仅当用户同时或随后明确指定例如:「写在当前项目」「放在本仓库 docs/...」「只更新 README」等——按用户最后一次明确指定的落点执行。

查询流程(检索个人 Wiki 时)

  1. 读取 <WIKI_ROOT>/wiki/index.md 定位条目。
  2. 打开对应 wiki/concepts/wiki/analysis/wiki/synthesis/ 等页面。
  3. 综合多页作答;可用 [[wiki-link]] 标明关联。
  4. 不要修改 raw/(例外以 <WIKI_ROOT>/CLAUDE.md 为准)。

知识库根目录与必读规范

路径 用途
<WIKI_ROOT>/ 个人 LLM Wiki 仓库根目录
<WIKI_ROOT>/SCHEMA.md 目录结构、页面格式、raw/wiki 边界
<WIKI_ROOT>/CLAUDE.md Ingest / Analysis / Synthesis / Query / Lint 步骤与硬性约束

执行要点(摘要)

  1. raw/ 只读:不得擅自编辑、删除、移动 raw/ 内已有文件;例外以该仓库 CLAUDE.md.cursor/rules/ 为准。
  2. 可写主战场为 wiki/:按素材类型在 wiki/sources/wiki/concepts/wiki/entities/wiki/analysis/wiki/synthesis/ 等路径创建或更新页面,格式遵循 SCHEMA.md
  3. 索引与日志:新建或重要更新后,按需更新 wiki/index.md;在 wiki/log.md 仅追加记录。
  4. 语言与日期:摘要与解析以中文为主;日期使用用户环境中的当前日期,不臆造。

对 Agent 的操作顺序(写入)

  1. Read references/ 两篇 + SCHEMA.md + CLAUDE.md,确定页面类型与路径命名。
  2. wiki/ 下创建或更新页面;不触碰 raw/ 除非该仓库规则允许。
  3. 按需更新 wiki/index.md;向 wiki/log.md 追加一行说明。
  4. 若用户其实要的是项目内文档,停止并按用户指定路径写入。
  5. 写入后在回复中注明:实际写入的绝对路径与库名(个人 Wiki),便于用户核对。

Read the full file on GitHub · 94 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago First seen · 94 lines · 141 tokens per session scan A d0f38563bdcd

Subscribe to this mod's changes

wiki-doc-sink is a skill published in the GitHub repository chengkj99/kj-skills (14 stars, last pushed 11d ago), licensed MIT. It adds 141 tokens to every session and 1,543 once invoked, about $0.0007 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-30.