split-docs

split-docs is a skill for Claude Code, Codex from sergeyklay/.agents. It costs 179 tokens per session (3,624 once invoked), scanned A, original, Apache-2.0.

A workflow for splitting one large Markdown reference file into an index and smaller section files. Markdown is plain text with simple formatting for headings, links, and lists.

In plain words
What is it for?
Breaking up architecture documents, product requirements, catalogues, or other long references without rewriting their content.
Why use it?
It makes large documents easier to read while checking that wording, order, and links remain intact.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument; installed under .agents/ (shared by several agents).

Good fit Breaking up architecture documents, product requirements, catalogues, or other long references without rewriting their content.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sergeyklay/.agents/split-docs
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 sergeyklay/.agents --skill split-docs
Clone the repo
git clone --depth 1 https://github.com/sergeyklay/.agents

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 split-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/sergeyklay/.agents/split-docs/github.svg)](https://agentmods.dev/skills/sergeyklay/.agents/split-docs)
Your own site
<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.

agentmods 80×15 button for split-docs

Your own site · 80×15
<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>
Per session 179 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,624 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 warn 7 Sept 2026
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.
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.00179 $0.03624
Opus 5.5 $0.00072 $0.01450
Sonnet 5.5 $0.00036 $0.00725
Haiku 4.5 $0.00018 $0.00362

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

Security

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.

.agents/skills/split-docs/SKILL.md · 193 lines

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:

  1. Dropped or reordered bytes during extraction.
  2. Outbound links inside the moved sections that break because the section files now sit one directory deeper than the original.
  3. 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.

Read the full file on GitHub · 193 lines

Files

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.

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. 2mo ago Changed · -26 lines 510de1e4bede
  2. 2mo ago First seen · 219 lines · 179 tokens per session scan A 626439fc3e26

Subscribe to this mod's changes

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.

Related

split-docs compared with skills from other repositories

split-docs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
split-docssergeyklay/.agentsSkill6yesterdayApache-2.0A179Claude Code, Codex
ai-smell-polishhabinsong/k-fable-opus-claude-mdSkill63d agoMITA195Claude Code, Codex
autodoc-next-prospectus-auditPaodingAI/skillsSkill1715d agononeA39Codex
ChatDOC Studio--KnowledgeMatePaodingAI/skillsSkill1715d agononeA92Codex
nanodoc-parsePaodingAI/skillsSkill1715d agononeA108Codex
PDFlux-PDF2MarkdownPaodingAI/skillsSkill1715d agononeA78Codex
Calliper-Compare2MarkdownPaodingAI/skillsSkill1715d agononeA62Codex