docgen

docgen is a skill for Claude Code from harnessprotocol/harness-kit. It costs 80 tokens per session (1,753 once invoked), scanned A, original, Apache-2.0.

A documentation generator that creates or updates project documents from the codebase, including readme files, API references, architecture overviews, and changelogs.

In plain words
What is it for?
Use it to generate or update a README, document an API or architecture, or prepare a changelog for a specified version range.
Why use it?
It helps keep technical documentation tied to the actual code while preserving existing manual writing and project style.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md.

Part of the docgen plugin — 1 skill shipped together

Good fit Use it to generate or update a README, document an API or architecture, or prepare a changelog for a specified version range.

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

Made for: Claude Code.

Or install docgen, the plugin that ships this one along with the rest of its 1 skill.

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 docgen

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/harnessprotocol/harness-kit/docgen"><img src="https://agentmods.dev/badge/skills/harnessprotocol/harness-kit/docgen.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,753 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 medium

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 →

  • medium Excessive Agency · line 13
    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.
  • medium Excessive Agency · line 210
    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.00080 $0.01753
Opus 5.5 $0.00032 $0.00701
Sonnet 5.5 $0.00016 $0.00351
Haiku 4.5 $0.00008 $0.00175

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

Security

Grade A, and why

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 3mo 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.

plugins/docgen/skills/docgen/SKILL.md · 216 lines

How it starts

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

Documentation Generator

Overview

Generate or update project documentation from the codebase — READMEs, API references, architecture overviews, and changelogs. Designed to produce accurate, non-padded docs that match the project's existing style.

Core principles:

  1. Generate to conversation first. Never write a file without asking. Always: "Want me to write this to [path]?"
  2. Preserve manual content. If a doc already exists, identify what's outdated vs. what to keep. Don't blow away prose that was written by hand.
  3. Detect existing style. Match the formatting, heading levels, and tone of existing docs in the project.
  4. No filler. Omit empty or generic sections rather than padding them with boilerplate.

Invocation Examples

/docgen readme                          # generate or update project README
/docgen readme src/auth/                # README for a subdirectory or package
/docgen api src/routes/                 # API endpoint documentation
/docgen architecture                    # architecture overview from codebase structure
/docgen changelog v0.2.0..v0.3.0       # changelog from git history for a version range

Workflow Order (MANDATORY)

You MUST follow this order. No skipping steps.


Step 1: Parse Input

Determine doc type and scope:

Doc Type Detection Scope Default
readme First arg is "readme" Project root or specified path
api First arg is "api" Specified path (required); error if missing
architecture First arg is "architecture" Project root
changelog First arg is "changelog" Optional git range (e.g. v0.2.0..v0.3.0); defaults to recent history

If no argument or unrecognized type: say "Usage: /docgen readme, /docgen api src/routes/, /docgen architecture, /docgen changelog [range]." Then stop.

If api is invoked without a path: say "Please provide a path. Example: /docgen api src/routes/." Then stop.

Read the full file on GitHub · 216 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. 3mo ago First seen · 216 lines · 80 tokens per session scan A fe655d33172d

Subscribe to this mod's changes

docgen is a skill published in the GitHub repository harnessprotocol/harness-kit (13 stars, last pushed today), licensed Apache-2.0. It adds 80 tokens to every session and 1,753 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-31.

Related

docgen compared with skills from other repositories

docgen next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
docgenharnessprotocol/harness-kitSkill13todayApache-2.0A80Claude Code
llm-wikipraneybehl/llm-wiki-pluginSkill1271mo agoMITA143Claude Code
add-cloud-flowmicrosoft/power-platform-skillsSkill1.2ktodayMITA91Claude Code
configure-env-variablesmicrosoft/power-platform-skillsSkill1.2ktodayMITA119Claude Code
deploy-sitemicrosoft/power-platform-skillsSkill1.2ktodayMITA91Claude Code
create-businesswondelai/skillsSkill2.8ktodayMITA211Claude Code
influence-psychologywondelai/skillsSkill2.8ktodayMITA156Claude Code