corpus-health

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

A report-only health checker for a configured LoreKit corpus, meaning a local collection of knowledge and its search indexes.

In plain words
What is it for?
Use it to inspect the corpus path, run LoreKit diagnostics, find items waiting to be ingested, and identify suggested next commands.
Why use it?
It shows configuration problems, failed checks, stale indexes, and pending items without changing the knowledge base.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to inspect the corpus path, run LoreKit diagnostics, find items waiting to be ingested, and identify suggested next commands.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/gyf0311/lorekit/corpus-health"><img src="https://agentmods.dev/badge/skills/gyf0311/lorekit/corpus-health.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 257 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.00033 $0.00257
Opus 5.5 $0.00013 $0.00103
Sonnet 5.5 $0.00007 $0.00051
Haiku 4.5 $0.00003 $0.00026

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

Security

Grade A, and why

corpus-health 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-health/SKILL.md · 48 lines

What it actually says

corpus-health

Optional health-check gateway for a configured Lorekit corpus. It reports state and does not write knowledge.

Config

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

Required:

  • default_corpus
  • lorekit_bin or <default_corpus>/bin/lorekit

Use the configured corpus-local wrapper for lorekit.

Checks

From <default_corpus>, run the narrow checks needed:

  • <lorekit_bin> doctor --json
  • <lorekit_bin> ingest pending

Do not run sync or mutating repair commands unless the user explicitly asks.

Output

Summarize:

  • corpus path
  • hard failures
  • warnings
  • stale indexes
  • pending ingest items
  • suggested next commands

Keep optional integration warnings separate from corpus hard failures.

Safety

This skill is report-only by default.

Do not modify 知识库/, 原料/, 每日/, or .wiki/ during a health check unless the user separately requests repair.

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 · 48 lines · 33 tokens per session scan A 922937ad4352

Subscribe to this mod's changes

corpus-health is a skill published in the GitHub repository GYF0311/lorekit (5 stars, last pushed 4mo ago), licensed MIT. It adds 33 tokens to every session and 257 once invoked, about $0.0001 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-health compared with skills from other repositories

corpus-health next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
corpus-healthGYF0311/lorekitSkill54mo agoMITA33Claude Code, Codex
mindbasefrankchu91/mindbase-llm-wikiSkill1421mo agoMITA105Claude Code
wiki-ingestAIwork4me/open-llm-wikiSkill26mo agoMITA116Claude Code, Codex
query-writebackAIwork4me/open-llm-wikiSkill26mo agoMITA82Claude Code, Codex
wiki-lintAIwork4me/open-llm-wikiSkill26mo agoMITA84Claude Code, Codex
zenwiki-askChenXplorer/zenwikiSkill17mo agoMITA63Claude Code
paper-readerpoco-ai/AgenteroSkill3.0kyesterdayMITA43Claude Code, Codex