speclite-shard-doc

speclite-shard-doc is a skill for Claude Code from flanliulf/SpecLite. It costs 68 tokens per session (740 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 740 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.00740
Opus 5.5 $0.00027 $0.00296
Sonnet 5.5 $0.00014 $0.00148
Haiku 4.5 $0.00007 $0.00074

Measured 2mo ago against content hash 99d7969135c2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

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

What it actually says

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

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

[执行流程] 1. 获取 source document;未提供时询问用户。 2. 验证文件存在、可访问且扩展名为 .md,否则 HALT。 3. 推导默认目标目录:若 source 是 {planning_artifacts}/prd/prd.md、{planning_artifacts}/epics/epics.md 或 {solutioning_artifacts}/architecture/architecture.md,destination 必须精确为 source parent(same subject directory);其它文档才使用同目录下以 source 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/ 子目录。 - PRD、Epics、Architecture 的分片必须生成 canonical index.md 并保持在 same subject directory;must not create a shards/ layer。 - 若用户选择保留 canonical whole document,报告 whole+sharded coexistence,并说明后续 consumer invocation 必须通过 speclite resolve artifact-documents ... --selection whole|sharded 显式选择;不得自动择一或混合。

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. 2mo ago Changed · +1 lines 99d7969135c2
  2. 2mo 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 (5 stars, last pushed 7d ago), licensed MIT. It adds 68 tokens to every session and 740 once invoked, about $0.0003 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-09-03.

Related

speclite-shard-doc compared with skills from other repositories

speclite-shard-doc next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
speclite-shard-docflanliulf/SpecLiteSkill57d agoMITA68Claude Code
research-codebasedoordash-oss/agentic-orchestratorSkill1362d agoApache-2.0A8Claude Code, Codex
review-commentsdoordash-oss/agentic-orchestratorSkill1362d agoApache-2.0A33Claude Code, Codex
supervisordoordash-oss/agentic-orchestratorSkill1362d agoApache-2.0A22Claude Code, Codex
validate-phase-plan-scopedoordash-oss/agentic-orchestratorSkill1362d agoApache-2.0A20Claude Code, Codex
validate-plan-securitydoordash-oss/agentic-orchestratorSkill1362d agoApache-2.0A10Claude Code, Codex
create-roadmapdoordash-oss/agentic-orchestratorSkill1362d agoApache-2.0A11Claude Code, Codex