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.
npx skills add sergeyklay/.agents --skill split-docsgit clone --depth 1 https://github.com/sergeyklay/.agentsWrote 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.
[](https://agentmods.dev/skills/sergeyklay/.agents/split-docs)<a href="https://agentmods.dev/skills/sergeyklay/.agents/split-docs"><img src="https://agentmods.dev/badge/skills/sergeyklay/.agents/split-docs/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.
<a href="https://agentmods.dev/skills/sergeyklay/.agents/split-docs"><img src="https://agentmods.dev/badge/skills/sergeyklay/.agents/split-docs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to high
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- high Rogue Agent · line 150 Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.Fix: Prevent the skill from modifying its own code, SKILL.md, or configuration files. Treat skill files as read-only at runtime.
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00179 | $0.03624 |
| Opus 5.5 | $0.00072 | $0.01450 |
| Sonnet 5.5 | $0.00036 | $0.00725 |
| Haiku 4.5 | $0.00018 | $0.00362 |
Grade A, and why
split-docs 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 193 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Splitting a Large Doc into a Progressive-Disclosure Tree
A reference doc that has grown past a few hundred lines is read whole every time any part of it is relevant, which wastes context and buries the section that matters. The fix is to split it into one file per top-level section under a sibling directory, and replace the original with a curated index that routes a reader to the one section their task touches.
The hard constraint is that this is a move, not a rewrite. Section prose must survive byte-for-byte; only the index is new writing. Three failure modes recur and all are silent:
- Dropped or reordered bytes during extraction.
- Outbound links inside the moved sections that break because the section files now sit one directory deeper than the original.
- Inbound links from elsewhere in the repo that pointed into the doc by section anchor (
thedoc.md#some-heading), left dangling because that anchor no longer exists in the doc - it moved to a section file.
This skill makes all three verifiable instead of hoped-for. The third is the easiest to miss and the most damaging, because the dangling links sit in other files, often ones an agent never reopens during the split.
A frequent variant: the doc travels with a hand-written digest (*-digest.md, *-summary.md) that has drifted out of date. The digest's job - route a reader to the right part - is exactly what the new index does, so the digest is deleted after the split, not carried forward.
This document uses one example doc to keep the commands concrete, but nothing here is specific to it: it applies equally to an architecture spec, a PRD, or any long reference. Set the two variables below once and the rest is doc-agnostic.
When this applies
Run it when a single Markdown reference doc is too large to read whole and the request is to break it up. It generalizes across doc types. If the repo holds several monolith-plus-digest pairs (for example an architecture spec and a PRD, each with its own digest), each is a separate application of this same procedure.
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 2mo ago Changed · -26 lines 510de1e4bede
- 2mo ago First seen · 219 lines · 179 tokens per session scan A 626439fc3e26
split-docs is a skill published in the GitHub repository sergeyklay/.agents (6 stars, last pushed yesterday), licensed Apache-2.0. It adds 179 tokens to every session and 3,624 once invoked, about $0.0007 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.
split-docs compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| split-docssergeyklay/.agents | Skill | 6 | yesterday | Apache-2.0 | A | 179 | Claude Code, Codex |
| ai-smell-polishhabinsong/k-fable-opus-claude-md | Skill | 6 | 3d ago | MIT | A | 195 | Claude Code, Codex |
| autodoc-next-prospectus-auditPaodingAI/skills | Skill | 17 | 15d ago | none | A | 39 | Codex |
| ChatDOC Studio--KnowledgeMatePaodingAI/skills | Skill | 17 | 15d ago | none | A | 92 | Codex |
| nanodoc-parsePaodingAI/skills | Skill | 17 | 15d ago | none | A | 108 | Codex |
| PDFlux-PDF2MarkdownPaodingAI/skills | Skill | 17 | 15d ago | none | A | 78 | Codex |
| Calliper-Compare2MarkdownPaodingAI/skills | Skill | 17 | 15d ago | none | A | 62 | Codex |