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 skills/gyf0311/lorekit/corpus-ingestnpx skills add GYF0311/lorekit --skill corpus-ingestgit clone --depth 1 https://github.com/GYF0311/lorekitWrote 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/skills/gyf0311/lorekit/corpus-ingest)<a href="https://agentmods.dev/skills/gyf0311/lorekit/corpus-ingest"><img src="https://agentmods.dev/badge/skills/gyf0311/lorekit/corpus-ingest.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.00045 | $0.00692 |
| Opus 5 | $0.00023 | $0.00346 |
| Sonnet 5 | $0.00009 | $0.00138 |
| Haiku 4.5 | $0.00005 | $0.00069 |
Grade A, and why
corpus-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 5d 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 — 76 lines — stays where its author put it; the contents beside it link to each section on GitHub.
corpus-ingest
Optional ingest gateway for a configured Lorekit corpus. It brings external material into the target corpus while delegating filing rules to that corpus itself.
Config
Read ~/.config/lorekit/global-corpus.json.
Required:
default_corpuslorekit_binor<default_corpus>/bin/lorekitraw_dir(default原料)knowledge_dir(default知识库)
Use the configured corpus-local wrapper for ingest writes.
Boundary
Optional cross-project skill = entry and routing.
Target corpus rules = execution authority.
If the current working directory is already the intended corpus, prefer its local wiki-ingest route directly. Use this skill when the request starts outside the target corpus and needs configured cross-project routing.
Before writing, read:
<default_corpus>/AGENTS.md<default_corpus>/CLAUDE.md<default_corpus>/系统/filing-rules.md<default_corpus>/系统/frontmatter-spec.md<default_corpus>/skills/wiki-ingest/SKILL.mdwhen present
When To Use
Use for:
- URLs, articles, PDFs or files the user wants saved
- "ingest", "归档", "整理进知识库", "收藏"
- external evidence that should become
原料/and compiled wiki pages - project-local evidence only when the user explicitly wants it promoted into the selected corpus
Do not use for:
- quick rough notes: use
corpus-capture - conversation insights without external material: use
corpus-fileback - daily journal: use
wiki-daily - deletion: use corpus-local
wiki-removeor thelorekit removedry-run path
Action
- Read config and corpus rules.
cd <default_corpus>.- For URL input, run
<lorekit_bin> fetch <url>. - Follow the corpus-local
wiki-ingestprocess for archive, wiki compilation, backlinks, ingest state, lint, sync, and cleanup of consumed_工作台/收件/originals. - Keep
原料/immutable after archive. - Preserve fetched slugs unless corpus rules explicitly say otherwise.
- Use
<lorekit_bin> syncand<lorekit_bin> lint --quickwhen the local ingest skill requires them; workbench-only evidence does not trigger sync until it is promoted.
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.
- 5d ago First seen · 76 lines · 45 tokens per session scan A 5311f82eddb1
corpus-ingest is a skill published in the GitHub repository GYF0311/lorekit (5 stars, last pushed 1mo ago), licensed MIT. It adds 45 tokens to every session and 692 once invoked, about $0.0002 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 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…
openkb-deck-neon
Use when the user asks the openkb chat to make a deck / slide presentation / PPT / slides / 演示稿 / 幻灯片 from their compiled KB content AND wants a dark, high-tech, neon / glow / glassmorphism look (赛博 / 科技风 / 暗色 / 霓虹 / 炫酷). Generates a polished single-file HTML deck in the Aurora Glass visual direction (near-black…
openkb-deck-editorial
Use when the user asks the openkb chat to make a deck / slide presentation / PPT / slides / 演示稿 / 幻灯片 from their compiled KB content. Generates a polished single-file HTML deck in the Editorial Monocle visual direction (warm cream background, serif type, brick-red accent) — designed to be opened in a browser…
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…"…
wiki-knowledge-agent
Turn chat-pasted text/links into a verified, translated, searchable wiki knowledge base. When a user pastes a link or text (in ANY channel — Discord, Slack, CLI, etc.), fetch+verify it, classify it (useful vs ad), translate+summarize it into the target language, save it to the wiki, and optionally alert on…
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.