empiricalwiki: Skill for Claude Code

.claude/skills/init/SKILL.md

init is a skill for Claude Code from Lambenthan/empiricalwiki. It costs 31 tokens per session (4,387 once invoked), scanned A, original, MIT.

A workflow for building an OmegaWiki from local research materials and selected discovered papers or web sources.

In plain words
What is it for?
Use it to prepare papers, notes, and web material; create wiki topics, ideas, concepts, and claims; ingest selected papers in parallel; and update indexes, logs, and graph files.
Why use it?
It creates an organized starting structure and supports processing the chosen papers without losing source files, progress checkpoints, or links between research pages.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions subagents.

This is Lambenthan/empiricalwiki's own configuration. It tells Claude Code how to work on empiricalwiki itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything empiricalwiki configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is # .venv 被 gitignore,subagent 的 cwd 在 ../.worktrees/<branch>/ 时本地没有.

Reuse

Borrowing it

Nothing to install: this file belongs to Lambenthan/empiricalwiki. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Lambenthan/empiricalwiki/main/.claude/skills/init/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Lambenthan/empiricalwiki

Made for: Claude Code.

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 init

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/lambenthan/empiricalwiki/init"><img src="https://agentmods.dev/badge/skills/lambenthan/empiricalwiki/init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,387 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.00031 $0.04387
Opus 5.5 $0.00012 $0.01755
Sonnet 5.5 $0.00006 $0.00877
Haiku 4.5 $0.00003 $0.00439

Measured 1mo ago against content hash c4ce4242ae3c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

init 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 1mo 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.

.claude/skills/init/SKILL.md · 262 lines

How it starts

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

/init

从 raw/ 搭建 wiki:先做确定性 prepare,再跑 planner-guided discovery;raw/notes/ 与 raw/web/ 可种下 provisional scaffold;论文消化仍走并行 /ingest fan-out / fan-in。

按需打开这些本地参考文件:

  • references/prepare-and-discovery.md — prepare 流程、最终选择、fetch 与 source-manifest 规则
  • references/planner-policy.md — planner 行为与 LLM 裁剪期望
  • references/parallel-ingest.md — worktree 隔离、子代理 prompt 合同、merge 与清理

Inputs

  • topic(可选):研究方向关键词;当 raw/ 已定义 seed set 时可省略
  • --no-introduction(可选):禁用外部发现;仅在用户明确要求时使用
  • 用户自有素材:raw/papers/、raw/notes/、raw/web/

Outputs

  • wiki/ 骨架与 provisional 页面(Summary、topics、ideas、concepts、claims)
  • raw/tmp/ 与 raw/discovered/ 预处理来源
  • 并行 /ingest 产出的最终论文页面
  • .checkpoints/init-*.json 清单,用于恢复与重放
  • 更新后的 wiki/index.md、wiki/log.md、wiki/graph/*

Wiki Interaction

Reads

  • raw/papers/、raw/notes/、raw/web/
  • .checkpoints/init-prepare.json 与 .checkpoints/init-sources.json,供 resume、planning 与 fan-out 使用
  • wiki/index.md 以及已有 wiki/topics/、wiki/ideas/、wiki/concepts/、wiki/claims/

Writes

  • wiki/ scaffold 与 provisional 页面
  • raw/tmp/ 与 raw/discovered/
  • wiki/index.md、wiki/log.md、wiki/graph/*
  • .checkpoints/init-prepare.json、.checkpoints/init-plan.json、.checkpoints/init-sources.json 与 init-session checkpoint metadata

Graph edges created

  • /init 本身只在 provisional 页面需要时写入少量 scaffold 级别的 edges
  • 论文驱动的 edges 全部委托给 /ingest

Workflow

前置条件:当前目录为项目根,且包含 wiki/、raw/、tools/。设 WIKI_ROOT=wiki/。先解析一次 PYTHON_BIN,并在整个 /init 流程里复用它,确保运行时使用与 setup.sh 安装依赖时相同的解释器:

# 通过 git 找到项目根,让 worktree 中的 subagent 也能定位 .venv。
# .venv 被 gitignore,subagent 的 cwd 在 ../.worktrees/<branch>/ 时本地没有
# .venv——若不解析项目根,PYTHON_BIN 会回退到系统 python3,既丢失 .env 里的
# API key,也丢失安装的依赖(deepxiv-sdk 等)。
# git rev-parse --git-common-dir 无论 cwd 位于哪个 worktree 都返回主仓库的
# .git 目录;其父目录即项目根。
GIT_COMMON_DIR=$(git rev-parse --git-common-dir 2>/dev/null || true)
PROJECT_ROOT=""
if [ -n "$GIT_COMMON_DIR" ]; then
  PROJECT_ROOT=$(cd "$(dirname "$GIT_COMMON_DIR")" 2>/dev/null && pwd)
fi

if   [ -x "$PROJECT_ROOT/.venv/bin/python" ];         then PYTHON_BIN="$PROJECT_ROOT/.venv/bin/python"
elif [ -x "$PROJECT_ROOT/.venv/Scripts/python.exe" ]; then PYTHON_BIN="$PROJECT_ROOT/.venv/Scripts/python.exe"
elif [ -x .venv/bin/python ];                         then PYTHON_BIN=.venv/bin/python
elif [ -x .venv/Scripts/python.exe ];                 then PYTHON_BIN=.venv/Scripts/python.exe
else                                                       PYTHON_BIN=python3
fi
export PYTHON_BIN

Read the full file on GitHub · 262 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. 1mo ago First seen · 262 lines · 31 tokens per session scan A c4ce4242ae3c

Subscribe to this mod's changes

init is a skill published in the GitHub repository Lambenthan/empiricalwiki (96 stars, last pushed 4mo ago), licensed MIT. It adds 31 tokens to every session and 4,387 once invoked, about $0.0001 per session on Opus 5.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.

Related

Other skills, from other repositories

patent-application

A patent-application document workflow that turns supplied invention materials into claims, a description, an abstract, and black-and-white drawings. It can also produce Markdown and Word files.

handsomestWei/patent-disclosure-skill · 87 tokens

patent-reader

A plain-language reader for Chinese patents that turns a publication number or PDF into notes, diagrams, and an Obsidian entry. Obsidian is a note-taking app that stores linked Markdown files.

handsomestWei/patent-disclosure-skill · 31 tokens

wechat-article-ingest

A tool that converts public WeChat Official Account articles, or PDF copies of them, into Markdown notes. It can also extract the article's main viewpoints and create linked questions for further thinking.

chubbyguan/chubbyskills · 39 tokens

data-management-plan

Draft a funder-compliant Data Management Plan (NSF DMP, NIH DMS Policy 2023, ERC, Horizon Europe) by composing the confidential-data and environment-capture primitives. Sections cover data description, formats/metadata, storage/backup, access/sharing, preservation/archiving, and roles. Use when user says "data…

pedrohcgs/claude-code-my-workflow · 143 tokens

new-diagram

Scaffold a new TikZ diagram from the snippet gallery with prevention rules pre-applied (explicit node dimensions, coordinate map, directional edge labels). Compiles standalone, invokes tikz-reviewer with citations from tikz-measurement.md, and loops on revisions until APPROVED.

pedrohcgs/claude-code-my-workflow · 60 tokens

compile-latex

Compile a Beamer LaTeX slide deck with XeLaTeX (3 passes + bibtex). Use when user says "compile", "build the slides", "rebuild the PDF", "run latex", "render the tex", or asks why a .tex file isn't producing a PDF. Operates on Slides/.tex.

pedrohcgs/claude-code-my-workflow · 73 tokens