docs-builder

docs-builder is a skill for Claude Code from hamr0/liteagents. It costs 23 tokens per session (4,368 once invoked), scanned A, original, Apache-2.0.

A tool for reorganising a documentation collection, splitting oversized pages, searching the collection, keeping pages current, and maintaining an index. It uses scripts for bookkeeping and a language model to suggest themes and write pages.

In plain words
What is it for?
Use it to review a docs corpus, group related material, split large documents, create or update pages, and maintain the documentation index.
Why use it?
It makes project documentation easier to find and keep organised, while keeping mechanical record-keeping separate from model-written content.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; names the AskUserQuestion tool; mentions AGENTS.md.

Good fit Use it to review a docs corpus, group related material, split large documents, create or update pages, and maintain the documentation index.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/hamr0/liteagents/docs-builder"><img src="https://agentmods.dev/badge/skills/hamr0/liteagents/docs-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,368 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: 2 findings, 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 Prompt Injection · line 250
    Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
    Fix: Audit all comments and invisible characters. Remove any instructions that direct the agent to perform unauthorized actions. Use plain, reviewable content.
  • medium Excessive Agency · line 360
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
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.00023 $0.04368
Opus 5.5 $0.00009 $0.01747
Sonnet 5.5 $0.00005 $0.00874
Haiku 4.5 $0.00002 $0.00437

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

Security

Grade A, and why

docs-builder 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 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (docs-builder.cjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

packages/ampcode/skills/docs-builder/SKILL.md · 197 lines

How it starts

The opening of the file, as written. The whole thing — 197 lines — stays where its author put it; the contents beside it link to each section on GitHub.

docs-builder

Keep project docs current, complete and findable, and split a file when it outgrows its row in docs/index.md. Why it works this way, measured numbers and history: docs/product/docs-builder-README.md.

This does NOT make docs cheaper to read — never sell it as a token saving. Every mechanical step is the docs-builder.cjs script beside this file, the $DB path below (vanilla Node, zero deps). A model does two things only: classify and propose themes, and write pages.

  • Heavy model work always spawns a worker, tier stated explicitly (an omitted tier inherits the parent's). Never name a vendor model. Hand the worker its inputs — it has no skill text of its own — and it does the work itself, no sub-spawning. Anything that asks the user stays in the main session. Fall back to inline only if your tool cannot spawn.

Setup

docs-builder.cjs sits next to this file in docs-builder/, installed or run from the package. Never search the target repo for it, never reconstruct it from this spec; if it exists nowhere, say so and stop. Set DB to its ABSOLUTE path, then cd to the target repo root:

DB=<absolute path to docs-builder.cjs>
cd <target repo root>

Every command below is node $DB …. Everything the script writes (docs/.docs-builder/* state, docs/index.md, docs/log.md, the ledger, the config pointer) lands under the target repo; REPO= is only needed when not running from its root.

Hard rules

  • Only .md files are ever opened, read, edited or listed — a non-.md file is never touched, not even to report a mention.
  • Never moved, enforced in code: README.md, index.md, log.md, CHANGELOG.md, LICENSE.md, CONTRIBUTING.md, CODE_OF_CONDUCT.md, SECURITY.md, CLAUDE.md, AGENTS.md, AGENT.md (case-insensitive, any depth), every dot-dir, node_modules/.
  • Nothing moves before the user approves the table. Only after approval does apply-reorg run; it refuses while any row's bucket is empty.
  • Never split N files in one shot on a list the user has not seen.
  • reorg never splits. cleanup <file.md> is the ONLY entry to the split pipeline: exactly one .md file, refuses a missing or protected one.
  • cleanup-apply refuses without a labels.json that has exactly one core: true theme.
  • The original is always archived byte-identical (git mv into docs/archive/); every cleanup output is a new file, nothing edits a source doc.
  • docs/index.md has exactly one writer: index-flat — never hand-edit it.
  • Never rewrite CHANGELOG.md or log.md links (any depth). Nothing under docs/archive/ is ever a rewrite target; links elsewhere that point at an archived file are still repaired.
  • Commit only through the printed pathspec recipe; never git add -A, git add -u or git commit -a.

Read the full file on GitHub · 197 lines

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. 1mo ago Changed · +2 lines afce0943ff44
  2. 1mo ago Changed · -809 lines 6c20b507f3f9
  3. 2mo ago Changed · +3 lines 3e48328cfb4c
  4. 2mo ago Changed · +98 lines 7683be48f450
  5. 2mo ago First seen · 903 lines · 23 tokens per session scan A ec38ac6df51c

Subscribe to this mod's changes

docs-builder is a skill published in the GitHub repository hamr0/liteagents (28 stars, last pushed 3d ago), licensed Apache-2.0. It adds 23 tokens to every session and 4,368 once invoked, about $0.0001 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-05.

Related

docs-builder compared with skills from other repositories

docs-builder next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
docs-builderhamr0/liteagentsSkill283d agoApache-2.0A23Claude Code
chatgpt-share-markdownadampoit/aiSkill27d agoMITA50Claude Code, Codex
pdfagentscope-ai/QwenPawSkill38k3d agoApache-2.0A95Claude Code, Codex
seats-aeroborski/travel-hacking-toolkitSkill1.1k7d agoMITA78Claude Code
southwestborski/travel-hacking-toolkitSkill1.1k7d agoMITA40Claude Code
chase-travelborski/travel-hacking-toolkitSkill1.1k7d agoMITA44Claude Code
lessons-learnedborski/travel-hacking-toolkitSkill1.1k7d agoMITA45Claude Code