corpus-ingest

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

A cross-project entry point for saving URLs, articles, PDFs, files, and other outside material into a configured LoreKit knowledge collection. It routes the work to that collection's own filing rules.

In plain words
What is it for?
Use it to ingest and archive external sources when the target corpus is configured separately from the current working directory.
Why use it?
It prevents material received from another project or folder from being saved to the wrong knowledge collection or with inconsistent filing rules.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Good fit Use it to ingest and archive external sources when the target corpus is configured separately from the current working directory.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gyf0311/lorekit/corpus-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 GYF0311/lorekit --skill corpus-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 corpus-ingest

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/gyf0311/lorekit/corpus-ingest"><img src="https://agentmods.dev/badge/skills/gyf0311/lorekit/corpus-ingest.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 692 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.00045 $0.00692
Opus 5.5 $0.00018 $0.00277
Sonnet 5.5 $0.00009 $0.00138
Haiku 4.5 $0.00005 $0.00069

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

Security

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

skills/corpus-ingest/SKILL.md · 76 lines

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_corpus
  • lorekit_bin or <default_corpus>/bin/lorekit
  • raw_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.md when 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-remove or the lorekit remove dry-run path

Action

  1. Read config and corpus rules.
  2. cd <default_corpus>.
  3. For URL input, run <lorekit_bin> fetch <url>.
  4. Follow the corpus-local wiki-ingest process for archive, wiki compilation, backlinks, ingest state, lint, sync, and cleanup of consumed _工作台/收件/ originals.
  5. Keep 原料/ immutable after archive.
  6. Preserve fetched slugs unless corpus rules explicitly say otherwise.
  7. Use <lorekit_bin> sync and <lorekit_bin> lint --quick when the local ingest skill requires them; workbench-only evidence does not trigger sync until it is promoted.

Read the full file on GitHub · 76 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. 1mo ago First seen · 76 lines · 45 tokens per session scan A 5311f82eddb1

Subscribe to this mod's changes

corpus-ingest is a skill published in the GitHub repository GYF0311/lorekit (5 stars, last pushed 3mo ago), licensed MIT. It adds 45 tokens to every session and 692 once invoked, about $0.0002 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-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-deck-neon

A skill for creating a single-file HTML slide deck from content stored in OpenKB, a knowledge-base chat system. It defines a dark, high-tech visual style using neon colors, glow effects, and glass-like panels.

VectifyAI/OpenKB · 173 tokens

openkb-deck-editorial

A tool for creating a single-file HTML slide presentation from compiled knowledge-base content. Its visual style uses a warm cream background, serif typography, and brick-red accents.

VectifyAI/OpenKB · 117 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

create-an-asset

Build a customer deck, one-pager or leave-behind from your account data, call notes and approved materials, with no made-up numbers. Use when the user asks for a sales asset, one-pager, deck, leave-behind, "create an asset for [prospect]", or "make something for [account]".

Bevel-Software/Hexis · 72 tokens

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…

atukunare/wiki-knowledge-agent · 141 tokens