egregore: Skill for Claude Code

.claude/skills/ingest-corpus/SKILL.md

ingest-corpus is a skill for Claude Code from egregore-labs/egregore. It costs 48 tokens per session (2,065 once invoked), scanned A, original, MIT.

A tool that turns a large folder of documents into a searchable shared knowledge base with answers linked to their sources.

In plain words
What is it for?
Use it when you have hundreds or thousands of documents and want to ask questions about them. It is intended for a shared Egregore Connect knowledge base.
Why use it?
It makes a large research archive, contract set, manual library, or regulatory collection easier to question without searching every file by hand.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is egregore-labs/egregore's own configuration. It tells Claude Code how to work on egregore 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 egregore configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash bin/config-get.sh mode.

Reuse

Borrowing it

Nothing to install: this file belongs to egregore-labs/egregore. 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/egregore-labs/egregore/main/.claude/skills/ingest-corpus/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/egregore-labs/egregore

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 ingest-corpus

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/egregore-labs/egregore/ingest-corpus"><img src="https://agentmods.dev/badge/skills/egregore-labs/egregore/ingest-corpus.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,065 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00048 $0.02065
Opus 5.5 $0.00019 $0.00826
Sonnet 5.5 $0.00010 $0.00413
Haiku 4.5 $0.00005 $0.00206

Measured 24d ago against content hash 6e3222544223, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ingest-corpus 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 24d 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/ingest-corpus/SKILL.md · 190 lines

How it starts

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

Turn a folder of documents into a knowledge base that answers questions with its sources.

When to invoke

/ingest routes here when the user brings a body of documents to be asked questions of — a research archive, a contract set, a manual library, a regulatory corpus. Signals: hundreds or thousands of files, subject folders, "make this searchable", "build a knowledge base", "I want to ask these questions".

Not this: a handful of files to keep for reference → the plain /ingest path · a meeting recording → ingest-meeting · a Notion or Google source → those connectors.

Step 0 — Connected mode only

bash bin/config-get.sh mode

Use the printed value as {mode}; quote it in single quotes when you use it in a command, and write any single quote inside the value as '\''.

If it prints local, stop and tell the user:

This specialized corpus workflow needs Egregore Connect. It uses a hosted index of extracted statements. Your ordinary memory and search with QMD run locally.

Plain /ingest still works — it stores your documents and makes them searchable on this machine.

Offer egregore connect or “Not now,” then stop. Do not run the survey in Local mode. Do not describe this specialized statement index as shared hosted retrieval or hosted embeddings.

What makes this different from plain ingest

Plain ingest stores documents and makes them searchable. This additionally works out which document may answer which question, extracts the sentences that carry advice, and checks each one against the sentence it came from.

That needs a profile: which folder means which region or client, which source outranks which, and what a sentence carrying advice looks like in the language the documents are written in. Nobody can write that file cold. So it is generated from a survey plus two answers.

Step 1 — Look before asking

python3 bin/corpus_survey.py  # or: python3 -c "import sys;sys.path.append('bin');import corpus_survey as cs;print(cs.summarise(cs.survey('<path>')))"

Read the full file on GitHub · 190 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. 24d ago Changed · +2 lines 6e3222544223
  2. 1mo ago First seen · 188 lines · 48 tokens per session scan A 841212363984

Subscribe to this mod's changes

ingest-corpus is a skill published in the GitHub repository egregore-labs/egregore (293 stars, last pushed 9d ago), licensed MIT. It adds 48 tokens to every session and 2,065 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-30.

Related

Other skills, from other repositories

bailian-kb

A command-line manager for Alibaba Cloud Bailian knowledge bases, which are collections of documents prepared for search and question answering. It handles the stored documents, search services, text chunks, and data-centre files rather than everyday searches.

modelstudioai/cli · 235 tokens

docs-scraper

A tool-assisted method for downloading an entire technical documentation website as local Markdown files. It first checks whether the site offers ready-made Markdown or text bundles before crawling pages.

AmbroseX/larksnap · 158 tokens

rag-assistant

A local knowledge-base assistant for answering questions from indexed private documents. It searches the stored documents, checks whether the results are relevant, and cites the source files in its answers.

MerkyorLynn/Lynn · 41 tokens

vibeknow-doc

Upload documents to vectoria and check processing status. Use when: user wants to upload a document, check if a document is ready, or get a docid for use with vibeknow create.

vibeknow/cli · 46 tokens

dead-letter

Convert .eml email files (Gmail, Outlook, Apple Mail, Thunderbird exports, email archives) to Markdown with YAML front matter for reading, summarizing, RAG, or building a local email archive. Use when a task involves a .eml file or folder, exported email, or turning email into Markdown. Runs locally via uvx or the…

BigCactusLabs/dead-letter · 88 tokens

markitdown

Converts heterogeneous documents and selected URIs to Markdown with Microsoft MarkItDown for text analysis, search, and LLM/RAG ingestion. Covers safe local conversion, streams, Office/PDF/data formats, batch workflows, plugins, vision OCR, Azure extraction, and the official MCP server.

K-Dense-AI/scientific-agent-skills · 62 tokens