creating-corpus

creating-corpus is a skill for Claude Code from chrisgagne/grounded-forge. It costs 77 tokens per session (2,570 once invoked), scanned A, original, MIT.

A guided setup tool for creating a new corpus, meaning a self-contained collection of sources, references, distilled guidance, and related files.

In plain words
What is it for?
Use it when starting a new knowledge collection or adding a separate domain to an existing project.
Why use it?
It helps decide the collection’s scope, name, category, and work areas before creating its directory structure.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the grounded-forge plugin — 12 skills, 2 agents, 1 hook shipped together

Good fit Use it when starting a new knowledge collection or adding a separate domain to an existing project.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/chrisgagne/grounded-forge/creating-corpus
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 chrisgagne/grounded-forge --skill creating-corpus
Clone the repo
git clone --depth 1 https://github.com/chrisgagne/grounded-forge

Made for: Claude Code.

Or install grounded-forge, the plugin that ships this one along with the rest of its 12 skills, 2 agents, 1 hook.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/chrisgagne/grounded-forge/creating-corpus.svg)](https://agentmods.dev/skills/chrisgagne/grounded-forge/creating-corpus)
Your own site
<a href="https://agentmods.dev/skills/chrisgagne/grounded-forge/creating-corpus"><img src="https://agentmods.dev/badge/skills/chrisgagne/grounded-forge/creating-corpus.svg" alt="Measured on agentmods" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,570 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.00077 $0.02570
Opus 5 $0.00039 $0.01285
Sonnet 5 $0.00015 $0.00514
Haiku 4.5 $0.00008 $0.00257

Measured 8d ago against content hash c34777401c67, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

creating-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 8d 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/creating-corpus/SKILL.md · 135 lines

How it starts

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

Creating Corpus

A corpus is the unit of self-contained material the matrix operates on: sources, references, distillations, lenses, builds, and packaged releases all live inside one folder. This skill scopes a new corpus—tier, domain, naming, task axes—and then invokes scripts/create-corpus.py to do the deterministic filesystem scaffold.

Dialogue skill, not a generator. The operator is in the conversation throughout. The skill produces scoping decisions captured in the corpus-level README.md; the script produces the directory tree.

When to use

  • The operator is forking the repo and wants to start a new corpus for their own domain.
  • The operator already has one corpus and wants to start a second under a different domain or scope.
  • The operator is unsure whether the work belongs in corpus.commons/ or corpus.local/ and wants to talk through the tier decision before committing.
  • The operator has rough idea of what they want to read into a corpus but hasn't named the task axes yet.

When not to use

  • The operator already has the scoping decisions made (corpus name, tier, task axes) and wants to skip the dialogue. Run python scripts/create-corpus.py {target} --tasks t1,t2 directly.
  • The operator wants to ingest a single source: that's ingesting-resources, not this skill.
  • The operator wants to add a task axis to an existing corpus: that's creating-tasks (scope the axis) plus creating-applications (assemble the application), not this skill.

Inputs

  • Optional: a rough corpus name or domain ("a coaching corpus", "management sciences", "anthropic-cookbook").
  • Optional: existing related corpora; the new corpus might overlap with corpus.commons/demo/ or with an operator's existing corpus.local/ corpora.

Output

Three things, in order:

  1. Scoping decisions confirmed in the dialogue: tier, slug, task axes, scope range, intended first sources.
  2. scripts/create-corpus.py invocation the operator runs (or the skill runs with operator confirmation): produces the corpus tree with stub indexes and a corpus-level README.
  3. The corpus-level README.md with the dialogue's scoping decisions captured: domain, owner, scope, licence, task axes, intended first sources.

Read the full file on GitHub · 135 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. 8d ago First seen · 135 lines · 0 tokens per session scan A c34777401c67

Subscribe to this mod's changes

creating-corpus is a skill published in the GitHub repository chrisgagne/grounded-forge (7 stars, last pushed 17d ago), licensed MIT. It adds 77 tokens to every session and 2,570 once invoked, about $0.0004 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.