template-docgen

template-docgen is a skill for Claude Code, Codex from docxology/template. It costs 28 tokens per session (271 once invoked), scanned A, original, Apache-2.0.

A collection of scripts that regenerate documentation from a research-template repository, including stage tables, API references, project lists, architecture notes, and measured counts.

In plain words
What is it for?
Use it after repository changes to rebuild generated documentation or check that exported APIs remain documented.
Why use it?
It keeps derived documentation synchronized with the source code and pipeline configuration instead of relying on hand-edited copies.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

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.

agentmods
npx agentmods add skills/docxology/template/docgen
Any agent
npx skills add docxology/template --skill docgen
Clone the repo
git clone --depth 1 https://github.com/docxology/template

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 template-docgen

README.md
[![agentmods](https://agentmods.dev/badge/skills/docxology/template/docgen.svg)](https://agentmods.dev/skills/docxology/template/docgen)
Your own site
<a href="https://agentmods.dev/skills/docxology/template/docgen"><img src="https://agentmods.dev/badge/skills/docxology/template/docgen.svg" alt="Measured on agentmods" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 271 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00028 $0.00271
Opus 5 $0.00014 $0.00135
Sonnet 5 $0.00006 $0.00054
Haiku 4.5 $0.00003 $0.00027

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

Security

Grade A, and why

template-docgen 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 2d ago.

The scan reads SKILL.md. This mod also ships 10 executable files (__init__.py, active_projects.py, api_reference.py, …), 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.

scripts/docgen/SKILL.md · 42 lines

What it actually says

template-docgen

Documentation generation scripts under scripts/docgen/.

When to use

Load this skill when you need to regenerate derived documentation:

  • Stage table in docs/_generated/
  • API reference from __all__
  • Active projects doc
  • Architecture overview
  • Counts and measured facts

Scripts

uv run python scripts/docgen/stage_table.py
uv run python scripts/docgen/api_reference.py --write
uv run python scripts/docgen/active_projects.py --write
uv run python scripts/docgen/architecture_overview.py --write
uv run python scripts/docgen/counts.py --write

Pitfalls

  • Run after any change to infrastructure/core/pipeline/pipeline.yaml.
  • api_reference.py --check is run in CI — do not break exports.
  • Generated files in docs/_generated/ must not be hand-edited.
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. 2d ago First seen · 42 lines · 28 tokens per session scan A 75f0e4c7f43f

Subscribe to this mod's changes

template-docgen is a skill published in the GitHub repository docxology/template (19 stars, last pushed today), licensed Apache-2.0. It adds 28 tokens to every session and 271 once invoked, about $0.0001 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

computer-systems-analyst

Use when a task needs the judgment of a Computer Systems Analyst — running requirements elicitation and gap analysis against a target system, writing a feasibility study for a build-vs-buy-vs-customize decision, designing a system integration approach (point-to-point vs middleware vs API-led), scoping data-migration…

wonsukchoi/domain-experts · 85 tokens

construction-trades-supervisor

Use when a task needs the judgment of a Construction Trades Supervisor (foreman) — allocating a crew's daily task assignments against a labor-unit budget, deciding whether today's scope requires a formally designated OSHA competent person, arbitrating a trade-sequencing conflict between crews needing the same physical…

wonsukchoi/domain-experts · 87 tokens

corrections-sergeant

Use when a task needs the judgment of a corrections sergeant or shift supervisor — mandating overtime to restore a post below minimum staffing, reviewing and countersigning a subordinate's use-of-force report, running progressive discipline for a line officer, assuming incident command during a multi-officer response…

wonsukchoi/domain-experts · 71 tokens

architectural-engineering-manager

Use when a task needs the judgment of an Architecture/Engineering firm or department manager — pricing a project fee (lump sum vs. hourly vs. % of construction cost), staffing a project against backlog, evaluating scope creep on a fixed-fee job, managing professional liability exposure, or deciding whether to pursue a…

wonsukchoi/domain-experts · 73 tokens

biomass-power-plant-manager

Use when a task needs the judgment of a Biomass Power Plant Manager — running a biomass-fired power generation facility, managing fuel supply logistics and quality variability, evaluating combustion/efficiency problems, or balancing generation output against fuel cost and emissions constraints.

wonsukchoi/domain-experts · 57 tokens

chief-executive

Use when a task needs the judgment of a CEO/chief executive — setting company strategy, allocating scarce resources (capital, headcount, attention) across competing priorities, making a call that only the top of the org can make, or communicating direction to the board, investors, or the whole company.

wonsukchoi/domain-experts · 65 tokens