wiki-ingest

wiki-ingest is a skill for Claude Code, Codex from GYF0311/lorekit. It costs 62 tokens per session (5,777 once invoked), scanned A, original, MIT.

A workflow for bringing URLs, files, and pasted external material into a LoreKit knowledge collection, then saving it as wiki pages with source links and tracking records.

In plain words
What is it for?
Use it when archiving articles, public-account posts, documents, images, or other external sources in a corpus, especially when the user provides a URL or file.
Why use it?
It defines how outside information is fetched, checked for duplicates and broken links, filed, and recorded without manually maintaining indexes and logs.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/gyf0311/lorekit/wiki-ingest
Any agent
npx skills add GYF0311/lorekit --skill wiki-ingest
Clone the repo
git clone --depth 1 https://github.com/GYF0311/lorekit

Made for: Claude Code, Codex.

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/gyf0311/lorekit/wiki-ingest.svg)](https://agentmods.dev/skills/gyf0311/lorekit/wiki-ingest)
Your own site
<a href="https://agentmods.dev/skills/gyf0311/lorekit/wiki-ingest"><img src="https://agentmods.dev/badge/skills/gyf0311/lorekit/wiki-ingest.svg" alt="Measured on agentmods" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,777 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00062 $0.05777
Opus 5 $0.00031 $0.02889
Sonnet 5 $0.00012 $0.01155
Haiku 4.5 $0.00006 $0.00578

Measured 4d ago against content hash 59af026e26a7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

wiki-ingest scanned grade A with 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

| `error` | 抓取失败 | 按 `reason` 字段判断回退路径(反爬走 web-access skill;gist/github raw 失败用 `curl`) |
skills/wiki-ingest/SKILL.md · 391 lines

How it starts

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

wiki-ingest

把外部内容(URL / 文件 / 粘贴文本)摄入当前 corpus:fetch → 写 wiki → 反链 → CLI 关账。

项目/domain skill 可以把 finished package、课程单元或客户材料路由到这里;它只补充来源分类、命名和验收规则,不重写 fetch/archive/wiki/lint/state 流程。

When to trigger

  • 用户发来 URL / 文件路径 / 粘贴一段外部内容
  • 用户说"ingest 这个"、"存一下"、"整理进知识库"、"收藏"、"归档一下"
  • 用户发公众号链接(mp.weixin.qq.com)且希望整理

不要触发

  • 对话中的洞察存回 → wiki-fileback
  • 只是查询已有内容 → wiki-query

分工边界(重要)

CLI 负责(自动) LLM 负责(你)
URL 查重(fetch 内建) 主语识别 / Notability 判断
抽 publishDate / 写 frontmatter Compiled Truth 写作
死链检测(ingest check Timeline 措辞、反链选择
corpus/index.md 受控区(sync) 建反链时的 timeline 追加
corpus/log.mdrecord --log 一句话归纳本次 ingest 做了什么
推进 ingest state machine(record) 决定哪些主语该建独立页
_INDEX.md / root index / doctor(sync)
frontmatter 合规 / 死链 / 孤岛(lint)

铁律:能让 CLI 做的就让 CLI 做。 不要手动 Edit index.md / log.md,不要先跑 lorekit search 做查重(fetch 已做)。

6 步流程

1. Fetch — lorekit fetch <url>

对任何 URL 统一调 lorekit fetch,按站点路由抓正文 + 图片,落 _工作台/收件/fetch/<slug>/。stdout 是单行 JSON:

status 含义 下一步
ok 抓取成功 markdown 字段、按需读关键图。fetcher 自动写 status:started, stepsDone:['fetch']
duplicate URL 之前已 ingest 过 duplicate.path 看已有页,跟用户确认覆盖/追加/取消;要重抓加 --force
in_progress 上次 ingest 中断 ingestState.stepsDone + nextStep,从下一步继续,不要重抓
error 抓取失败 reason 字段判断回退路径(反爬走 web-access skill;gist/github raw 失败用 curl
unsupported 站点不直接处理(lark / x / pdf) suggest 字段用对应工具

Read the full file on GitHub · 391 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. 4d ago First seen · 391 lines · 62 tokens per session scan A 59af026e26a7

Subscribe to this mod's changes

wiki-ingest is a skill published in the GitHub repository GYF0311/lorekit (5 stars, last pushed 1mo ago), licensed MIT. It adds 62 tokens to every session and 5,777 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). 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

wiki-ingest

Ingest exactly one research paper or source document into an open-llm-wiki vault. Use when the user explicitly asks to add, ingest, process, or publish a paper into the wiki. The workflow parses the source, drafts a source page, runs independent QA, publishes only after the quality gate passes, extracts and normalizes…

AIwork4me/open-llm-wiki · 116 tokens

openkb

Use when the user asks about content in their OpenKB knowledge base — research topics, concepts compiled from their documents, cross-document synthesis — or mentions openkb, an .openkb/ directory, or a wiki/ tree generated by openkb. The user may invoke you from any working directory; the active KB resolves via openkb…

VectifyAI/OpenKB · 102 tokens

mindbase

Maintain a persistent AI-tended research wiki. Activates when the user wants to ingest a source (PDF, URL, article, paste), capture a thought, build the wiki context, query what's already known, lint for orphans/contradictions, or maintain page conventions. Phrases include "add this to my wiki", "today I decided…"…

frankchu91/mindbase-llm-wiki · 105 tokens

ingest-l1

L1 analysis loop for the abapwiki knowledge base: for each batch it launches the abap-analyzer sub-agent in parallel, then the adversarial judge abap-deepcheck (separate session), applies only the analyses that pass the fail-closed gate, and commits. Resumes exactly after an interruption. Use this skill to document…

Gixsy95/abap_wiki · 91 tokens

wiki-ingest

Digest a course source file into the wiki. This skill should be used when the user says "ingest", "消化", "process this PDF/slide", or drops a course file into raw/ and wants it turned into wiki pages. Reads the source, deduplicates via manifest, creates source + concept pages, and finds cross-course connections.

IssacW228/student-llm-wiki · 75 tokens

wiki-diagram

Add Mermaid diagrams to wiki pages to aid understanding. This skill should be used during ingest/review when a concept involves a process, architecture, sequence, hierarchy, or comparison that is easier to grasp visually, or when the user explicitly asks to "画图"/"配图"/"diagram"/"visualize" a concept.

IssacW228/student-llm-wiki · 70 tokens