speclite-shard-doc

speclite-shard-doc is a skill for Claude Code from flanliulf/SpecLite. It costs 68 tokens per session (564 once invoked), scanned A, original, MIT.

A documentation skill that splits a large Markdown file into smaller files based on its headings and creates an index. Markdown is a plain-text format commonly used for technical documentation.

In plain words
What is it for?
Use it to shard Markdown documents, create organized documentation folders, verify generated files, and decide how to handle the original.
Why use it?
It makes large documents easier to maintain and navigate while preserving their structure and providing links between the resulting files.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to shard Markdown documents, create organized documentation folders, verify generated files, and decide how to handle the original.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/flanliulf/speclite/speclite-shard-doc
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 flanliulf/SpecLite --skill speclite-shard-doc
Clone the repo
git clone --depth 1 https://github.com/flanliulf/SpecLite

Made for: Claude Code.

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 speclite-shard-doc

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/flanliulf/speclite/speclite-shard-doc"><img src="https://agentmods.dev/badge/skills/flanliulf/speclite/speclite-shard-doc.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 564 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.00068 $0.00564
Opus 5 $0.00034 $0.00282
Sonnet 5 $0.00014 $0.00113
Haiku 4.5 $0.00007 $0.00056

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

Security

Grade A, and why

speclite-shard-doc 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 6d 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.

assets/source/speclite/core-skills/speclite-shard-doc/SKILL.md · 38 lines

What it actually says

[技能说明] Speclite Shard Doc 使用 npx @kayvan/markdown-tree-parser 将大型 Markdown 文档按二级标题等结构拆分成更小、更易维护的文件,并生成 index。

[核心能力] - 源文档校验:确认源路径存在、可访问且为 .md 文件。 - 目标目录选择:默认使用源文件同名目录,也允许用户指定。 - 分片执行:运行 npx @kayvan/markdown-tree-parser explode <source> <destination>。 - 输出验证:确认目标目录中生成文件和 index.md。 - 完成报告:报告源文件、目标目录、生成文件数量和工具输出。 - 原文处理:询问删除、归档或保留原文,并执行用户选择。

[执行流程] 1. 获取 source document;未提供时询问用户。 2. 验证文件存在、可访问且扩展名为 .md,否则 HALT。 3. 推导默认目标目录:同目录下以源文件 basename 命名的文件夹;询问用户确认或提供新路径。 4. 确认目标目录存在或可创建,且有写权限。 5. 运行 npx @kayvan/markdown-tree-parser explode [source-document] [destination-folder]。 6. 验证输出文件和 index.md;无输出时 HALT。 7. 报告完成结果。 8. 询问用户如何处理原文:delete、move archive、keep,并执行所选操作。

[注意事项] - 保留原文和分片版本会造成重复和后续加载混乱,应明确提醒用户。 - npx 命令失败或没有生成文件时必须 HALT。 - 删除或移动原文前必须获得用户选择。 - 对 archive 路径,默认使用源文件同目录 archive/ 子目录。

Files

What ships with it

1 file 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. 6d ago First seen · 38 lines · 68 tokens per session scan A 9b38d9e14cfa

Subscribe to this mod's changes

speclite-shard-doc is a skill published in the GitHub repository flanliulf/SpecLite (4 stars, last pushed 2mo ago), licensed MIT. It adds 68 tokens to every session and 564 once invoked, about $0.0003 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-09-03.

Related

Other skills, from other repositories

lain

Structural code intelligence for AI coding agents. Use this skill when the user wants to understand how a codebase is organized (modules, call graphs, file dependencies), find where to start reading, trace the impact of a change, find code by meaning, or understand what a symbol does in its full context. Do NOT use…

spuentesp/lain · 90 tokens

botpipe-workflow-authoring

Author, review, and improve Botpipe workflows. Use when Codex is asked to create packaged or workspace-local Botpipe workflows, convert codebases into workflows, design provider-heavy producer/verifier steps, write Botpipe prompts/contracts, inspect Botpipe traces, or apply Codex CLI/gpt-5.5 workflow patterns.

mrauter1/botpipe · 72 tokens

pre-merge

The CI gate. Takes a feature branch from "eng says done" to "PR open against staging with green checks". Runs the project's preflight-resolved pipeline from devkit/policy.json components[]: sync → parallel correctness + security waves → coverage → regression tail → security/migration → PRD-consistency → open PR. Emits…

ndisisnd/msg · 101 tokens

intake

The planning front-door. Captures feature ideas and bugs as graded rows in the root INTAKE.md ledger. Use it when the user says "log an idea", "capture a bug", "add to the backlog", "note this down", "track this feature", or invokes /intake. Owns the requirements interview — fleshes out thin ideas, proactively…

ndisisnd/msg · 239 tokens

merge

The ship gate — the only skill that merges. --staging merges the feature→staging PR on green CI, deploys, verifies, emits a human test script and stamps the staging sign-off on approval. --production ships the double-confirmed release to main and deploys production. Never self-certifies staging; nothing reaches main…

ndisisnd/msg · 94 tokens

msg

Root menu for msg skills, plus harness modes. --init is the one-time project bootstrap — use it when the user says "initialise project", "bootstrap repo", "set up the framework", "start a new project", or asks to set up project structure in an empty repo. Other modes: --init-staging (add a staging branch), --update…

ndisisnd/msg · 162 tokens