corpus-capture

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

A capture tool for saving rough notes, ideas, observations, decisions, and temporary information into a configured corpus inbox. A corpus is the chosen collection of notes and project knowledge; the tool does not turn entries into permanent knowledge.

In plain words
What is it for?
Use it for cross-project programming decisions, unresolved ideas, quick observations, or external clues that you want to store for later processing.
Why use it?
It gives scattered information a designated place without requiring you to organize or fully write it up immediately. It needs an existing configuration that identifies the corpus and its workbench inbox.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Good fit Use it for cross-project programming decisions, unresolved ideas, quick observations, or external clues that you want to store for later processing.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/gyf0311/lorekit/corpus-capture"><img src="https://agentmods.dev/badge/skills/gyf0311/lorekit/corpus-capture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 654 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.00042 $0.00654
Opus 5.5 $0.00017 $0.00262
Sonnet 5.5 $0.00008 $0.00131
Haiku 4.5 $0.00004 $0.00065

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

Security

Grade A, and why

corpus-capture 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 3mo 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-capture/SKILL.md · 93 lines

How it starts

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

corpus-capture

Optional entry skill for cross-project capture. It collects fragments into the configured corpus workbench; it does not compile long-term knowledge.

Config

Read:

~/.config/lorekit/global-corpus.json

Expected fields:

{
  "default_corpus": "/ABSOLUTE/PATH/TO/CORPUS",
  "lorekit_bin": "/ABSOLUTE/PATH/TO/CORPUS/bin/lorekit",
  "workbench_inbox_dir": "_工作台/收件",
  "daily_inbox_dir": "_工作台/日记收件",
  "knowledge_dir": "知识库",
  "raw_dir": "原料",
  "output_dir": "输出"
}

If the config does not exist, ask the user to configure it. Do not guess the corpus path.

Use an absolute lorekit_bin from config, or <default_corpus>/bin/lorekit if it exists.

When To Use

Use for:

  • "记一下", "先存一下", "放到工作台", "收件箱"
  • unresolved ideas, observations, rough notes, external clues
  • cross-project programming decisions that are not a daily journal entry

Do not use for:

  • daily journal, todo, daily compile, rolling/weekly synthesis: use wiki-daily
  • confirmed long-term knowledge: use corpus-fileback
  • URL/file ingest that should become 原料/ + 知识库/: use corpus-ingest
  • deletion or cleanup

Action

  1. Read global-corpus.json.

  2. Detect current project name, cwd, git branch, and commit when available.

  3. Create one append-only Markdown fragment under:

    <default_corpus>/<workbench_inbox_dir>/<YYYY-MM-DD>/<timestamp>-<slug>.md

  4. Use frontmatter:

---
type: inbox-note
status: inbox
captured_at: 2026-05-18T10:30:00+08:00
source_project:
source_context:
source_git_branch:
source_git_commit:
privacy: normal
related: []
---
  1. Preserve the user's meaning. Lightly structure only when it helps.
  2. Do not modify 知识库/.
  3. Do not modify 每日/.
  4. Do not run lorekit sync for workbench-only capture.

Workbench Injection

If the user asks to inject content into the workbench, write to _工作台/收件/ by default.

If the user names a different workbench folder, only write under _工作台/. Do not write outside the configured corpus.

Failure Handling

Read the full file on GitHub · 93 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. 3mo ago First seen · 93 lines · 42 tokens per session scan A ea34201f6113

Subscribe to this mod's changes

corpus-capture is a skill published in the GitHub repository GYF0311/lorekit (5 stars, last pushed 4mo ago), licensed MIT. It adds 42 tokens to every session and 654 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

corpus-capture compared with skills from other repositories

corpus-capture next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
corpus-captureGYF0311/lorekitSkill54mo agoMITA42Claude Code, Codex
mindbasefrankchu91/mindbase-llm-wikiSkill1421mo agoMITA105Claude Code
llm-wikizosmaai/pi-llm-wikiSkill6346d agoMITA52Claude Code
openclaw-memory-tencentdb-setupTencentCloud/TencentDB-Agent-MemorySkill31kyesterdaynoneA70Claude Code, Codex
link-memorygowtham0992/linkSkill2274d agoMITA0Claude Code, Codex
link-retrievegowtham0992/linkSkill2274d agoMITA42Claude Code, Codex
kb-workflowwillynikes2/knowledge-base-serverSkill1903d agoMITA40Claude Code, Codex