generate-docs

generate-docs is a skill for Claude Code, Codex from DasDigitaleMomentum/opencode-processing-skills. It costs 64 tokens per session (1,264 once invoked), scanned A, original, MIT.

A documentation generator that examines an existing codebase and creates structured documentation for people and coding agents. It produces an overview, module descriptions, and feature descriptions with file and code inventories.

In plain words
What is it for?
Use it to document a project that lacks organized documentation, including its architecture, modules, features, files, folders, and code symbols.
Why use it?
It gives a new contributor or future coding session a reliable map of an unfamiliar project instead of requiring repeated exploration.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; mentions OpenCode.

Good fit Use it to document a project that lacks organized documentation, including its architecture, modules, features, files, folders, and code symbols.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/dasdigitalemomentum/opencode-processing-skills/generate-docs"><img src="https://agentmods.dev/badge/skills/dasdigitalemomentum/opencode-processing-skills/generate-docs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,264 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 pass 7 Sept 2026
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.00064 $0.01264
Opus 5.5 $0.00026 $0.00506
Sonnet 5.5 $0.00013 $0.00253
Haiku 4.5 $0.00006 $0.00126

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

Security

Grade A, and why

generate-docs 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.

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.

skills/generate-docs/SKILL.md · 125 lines

How it starts

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

Skill: Generate Documentation

What This Skill Does

Creates structured project documentation from an existing codebase. This documentation shall serve Agents and Humans when working in consecutive sessions with the project.

Produces three artifact types:

  1. Project Overview (docs/overview.md) - High-level architecture, module listing, feature listing
  2. Module Documentation (docs/modules/<name>.md) - Overview + exhaustive inventories (files/dirs + symbols)
  3. Feature Documentation (docs/features/<name>.md) - How features work, with implementation references

When to Use

  • When a project has no structured documentation yet
  • When onboarding to an unfamiliar codebase
  • When the user asks to "document this project" or "create documentation"

Do NOT use this skill to update existing documentation - use update-docs instead.

Execution Model

  • The primary agent spawns doc-explorer. doc-explorer explores the repo and writes artifacts under docs/.
  • Rationale: documentation is primarily anchored in the codebase (not in the conversation). Keeping exploration + writing in the same subagent session reduces context loss.
  • For large codebases with multiple modules, doc-explorer self-delegates: it spawns additional doc-explorer instances scoped to individual modules (see Self-Delegation below).
  • The primary agent should keep chat output minimal (paths changed + any open questions).

Self-Delegation

For projects with 3+ modules or modules with 50+ files, doc-explorer SHOULD delegate per-module work to separate doc-explorer instances via the Task tool:

  1. Orchestrator instance: Identifies modules, creates docs/overview.md, spawns per-module instances
  2. Per-module instance: Receives scoped task ("document module X in directory Y"), explores only that module, writes docs/modules/<name>.md
  3. Orchestrator: Collects status, writes cross-cutting feature docs

This prevents token bloat from accumulating the entire codebase analysis in a single context.

Read the full file on GitHub · 125 lines

Files

What ships with it

3 files 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 First seen · 125 lines · 64 tokens per session scan A 0a07a11e7162

Subscribe to this mod's changes

generate-docs is a skill published in the GitHub repository DasDigitaleMomentum/opencode-processing-skills (60 stars, last pushed yesterday), licensed MIT. It adds 64 tokens to every session and 1,264 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-08-30.