docs-generator

docs-generator is a skill for Claude Code, Codex from ValorVie/custom-skills. It costs 61 tokens per session (1,772 once invoked), scanned A, original, MIT.

A tool for generating usage documentation from project sources. It can create a complete feature reference and a shorter cheatsheet from commands, skills, agents, workflows, scripts, and standards.

In plain words
What is it for?
Use it to generate English, Traditional Chinese, or Simplified Chinese documentation, either as a full reference, a cheatsheet, or both.
Why use it?
It removes the need to manually keep feature lists and quick references in sync with the project.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is **Language**: English | [繁體中文](../../../locales/zh-TW/skills/claude-code/docs-generator/SKILL.md).

Good fit Use it to generate English, Traditional Chinese, or Simplified Chinese documentation, either as a full reference, a cheatsheet, or both.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/ValorVie/custom-skills
agentmods
npx agentmods add skills/valorvie/custom-skills/docs-generator

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/valorvie/custom-skills/docs-generator.svg)](https://agentmods.dev/skills/valorvie/custom-skills/docs-generator)
Your own site
<a href="https://agentmods.dev/skills/valorvie/custom-skills/docs-generator"><img src="https://agentmods.dev/badge/skills/valorvie/custom-skills/docs-generator.svg" alt="Measured on agentmods" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,772 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.00061 $0.01772
Opus 5 $0.00030 $0.00886
Sonnet 5 $0.00012 $0.00354
Haiku 4.5 $0.00006 $0.00177

Measured 4d ago against content hash 2f766cf9fdab, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

docs-generator 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 4d 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.

upstream/uds/backup/skills/docs-generator/SKILL.md · 260 lines

How it starts

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

Documentation Generator Skill

Language: English | 繁體中文

Version: 1.0.0 Last Updated: 2026-01-26 Applicability: Claude Code Skills


Purpose

Automatically generate comprehensive usage documentation from project source files. This skill creates:

  1. FEATURE-REFERENCE.md: Complete feature documentation with all details
  2. CHEATSHEET.md: Single-page quick reference table

Supports multiple languages (English, Traditional Chinese, Simplified Chinese) and scans various sources:

  • CLI commands
  • Slash commands
  • Skills
  • Agents
  • Workflows
  • Core standards
  • Scripts

Quick Reference

Generate All Documentation

node scripts/generate-usage-docs.mjs

Generate Specific Language

node scripts/generate-usage-docs.mjs --lang=en       # English only
node scripts/generate-usage-docs.mjs --lang=zh-TW    # Traditional Chinese
node scripts/generate-usage-docs.mjs --lang=zh-CN    # Simplified Chinese

Generate Specific Format

node scripts/generate-usage-docs.mjs --cheatsheet    # Cheatsheet only
node scripts/generate-usage-docs.mjs --reference     # Reference only

Check Sync Status

# Check if docs need update
node scripts/generate-usage-docs.mjs --check

# Or use sync check script
./scripts/check-usage-docs-sync.sh         # Check
./scripts/check-usage-docs-sync.sh --fix   # Fix if needed

Configuration

The generator uses .usage-docs.yaml in project root to define:

  • Output paths: Where to generate documents
  • Languages: Which languages to generate
  • Sources: What to scan (CLI, skills, commands, etc.)
  • Templates: Document structure templates

Configuration Example (Multi-language)

# .usage-docs.yaml - Full UDS configuration
version: "1.0"
output:
  directory: "docs/"
  formats: [reference, cheatsheet]
  languages: [en, zh-TW, zh-CN]
  paths:
    en: "docs/"
    zh-TW: "locales/zh-TW/docs/"
    zh-CN: "locales/zh-CN/docs/"

sources:
  cli:
    enabled: true
    entry: "cli/bin/uds.js"
  skills:
    enabled: true
    directory: "skills/claude-code/"
    pattern: "**/SKILL.md"

Read the full file on GitHub · 260 lines

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. 4d ago First seen · 260 lines · 61 tokens per session scan A 2f766cf9fdab

Subscribe to this mod's changes

docs-generator is a skill published in the GitHub repository ValorVie/custom-skills (5 stars, last pushed 7d ago), licensed MIT. It adds 61 tokens to every session and 1,772 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.