user-corpus-explorer

user-corpus-explorer is a skill for Claude Code, Codex from woodfishhhh/EZ_math_model. It costs 45 tokens per session (558 once invoked), scanned A, original, MIT.

A skill that builds a searchable index of user-provided papers, notes, PDFs, datasets, and examples. It creates reference files in the local user-corpus folder.

In plain words
What is it for?
Cataloguing a local research corpus, extracting basic content and metadata, and giving later modeling steps a list of relevant references.
Why use it?
It helps a modeling workflow find and reuse local research materials without repeatedly scanning the whole collection. It also records files that could not be read.

Skill for Claude CodeCodex

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

Good fit Cataloguing a local research corpus, extracting basic content and metadata, and giving later modeling steps a list of relevant references.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/woodfishhhh/ez_math_model/user-corpus-explorer
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 woodfishhhh/EZ_math_model --skill user-corpus-explorer
Clone the repo
git clone --depth 1 https://github.com/woodfishhhh/EZ_math_model

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 user-corpus-explorer

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/woodfishhhh/ez_math_model/user-corpus-explorer"><img src="https://agentmods.dev/badge/skills/woodfishhhh/ez_math_model/user-corpus-explorer.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 558 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.00045 $0.00558
Opus 5 $0.00023 $0.00279
Sonnet 5 $0.00009 $0.00112
Haiku 4.5 $0.00005 $0.00056

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

Security

Grade A, and why

user-corpus-explorer 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 9d 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/ez-math-model/tools/user-corpus-explorer/SKILL.md · 68 lines

What it actually says

user-corpus-explorer — 用户资料库索引

何时使用

  • external/user-corpus/ 存在用户自带参考材料。
  • pipeline 00 对该域决策不是 skip
  • pipeline 01 intake 结束前需要生成用户资料索引。

设计原则

  • 由 subagent 执行,不污染主对话上下文。
  • 每次覆盖生成 external/user-corpus/AGENTS.md
  • 失败不打断主 pipeline。
  • 不上传全文到外部服务。

扫描范围

递归扫描 external/user-corpus/,跳过:

  • .gitkeep
  • README.md
  • AGENTS.md
  • .corpus_index.json
  • .git/.cache/、以 . 开头的目录
  • 大于 200MB 的文件只记录路径和大小

读取策略

扩展名 策略
.md .txt 读全文,超长读首尾
.pdf MinerU → pdf → pdfplumber,长文仅读首 15 页和末 5 页
.docx docx 提取文本
.html Jina Reader 或 BeautifulSoup
图片 视觉描述
其他二进制 只记录元信息

输出

生成:

external/user-corpus/AGENTS.md
external/user-corpus/.corpus_index.json

AGENTS.md 包含 inventory、per-file index、cross-cutting topics、recommendations、limitations。

下游衔接

  • modeler 必读 recommendations,并在 modeling_plan.md 标注参考来源。
  • writer 可优先把 corpus 中可验证 DOI 的论文列入参考候选。
  • coder 不直接读 corpus,除非 modeler 在计划中转述其方法。

失败诊断

情况 处理
corpus 目录为空 写空索引,pipeline 继续
单文件读取失败 在 limitations 记录
MinerU 不可用 降级 pdf → pdfplumber
总耗时超过 5 分钟 写已完成索引,剩余标 unread
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. 9d ago First seen · 68 lines · 45 tokens per session scan A 65df3d79e38e

Subscribe to this mod's changes

user-corpus-explorer is a skill published in the GitHub repository woodfishhhh/EZ_math_model (41 stars, last pushed 1mo ago), licensed MIT. It adds 45 tokens to every session and 558 once invoked, about $0.0002 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-30.