doc-generator

doc-generator is a skill for Claude Code from AGoldian/claudenv. It costs 46 tokens per session (590 once invoked), scanned A, original, MIT.

A generator and updater for Claude Code project documentation, including CLAUDE.md, rules, and hooks.

In plain words
What is it for?
Detecting the technology stack, checking existing documentation, creating missing documentation files, and proposing updates or MCP configuration.
Why use it?
It keeps instructions aligned with the project's actual tools, dependencies, commands, and directory structure as the project changes.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Good fit Detecting the technology stack, checking existing documentation, creating missing documentation files, and proposing updates or MCP configuration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/agoldian/claudenv/doc-generator
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 AGoldian/claudenv --skill doc-generator
Clone the repo
git clone --depth 1 https://github.com/AGoldian/claudenv

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/agoldian/claudenv/doc-generator"><img src="https://agentmods.dev/badge/skills/agoldian/claudenv/doc-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 590 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.00046 $0.00590
Opus 5.5 $0.00018 $0.00236
Sonnet 5.5 $0.00009 $0.00118
Haiku 4.5 $0.00005 $0.00059

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

Security

Grade A, and why

doc-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 2mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/validate.sh), 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.

scaffold/.claude/skills/doc-generator/SKILL.md · 60 lines

How it starts

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

Documentation Generator Skill

When to use

  • User mentions documentation, CLAUDE.md, or project setup
  • User asks to configure Claude Code for their project
  • New files detected that change the tech stack (new framework, test runner, etc.)
  • After major refactoring that changes directory structure
  • When CLAUDE.md references files or directories that no longer exist
  • When .mcp.json is missing and the project has significant external dependencies

Process

1. Detect Tech Stack

Scan the project root for manifest files, framework configs, and tooling:

@.claude/skills/doc-generator/templates/detection-patterns.md

2. Cross-Reference Existing Documentation

If CLAUDE.md already exists, read it and identify:

  • Outdated commands or directory references
  • Missing entries for new tools/dependencies
  • Stale @imports pointing to removed files

3. Generate or Update

  • For new documentation: generate CLAUDE.md, _state.md, .claude/rules/code-style.md, .claude/rules/testing.md, .claude/rules/workflow.md
  • For MCP configuration: suggest running /setup-mcp to search the MCP Registry and generate .mcp.json
  • For updates: propose specific changes and wait for user approval
  • Always present generated content for review before writing
  • NEVER create .md files beyond the ones listed above unless the user explicitly asks

4. Validate

After writing, run the validation script:

bash .claude/skills/doc-generator/scripts/validate.sh

Fix any errors before completing.

Output Format

Generated CLAUDE.md should follow this structure:

  • # CLAUDE.md heading
  • ## Project overview — one-sentence description with stack
  • ## Commands — all dev/build/test/lint commands
  • ## Architecture — key directories with descriptions
  • ## Conventions — @imports to code-style.md and testing.md
  • ## Workflow — @import to workflow.md (Claude Code best practices)
  • ## Memory — reference to _state.md for session persistence
  • ## Rules — project-specific rules as bullet points

Read the full file on GitHub · 60 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. 2mo ago First seen · 60 lines · 46 tokens per session scan A 36734dc1c7c7

Subscribe to this mod's changes

doc-generator is a skill published in the GitHub repository AGoldian/claudenv (10 stars, last pushed 5mo ago), licensed MIT. It adds 46 tokens to every session and 590 once invoked, about $0.0002 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

doc-generator compared with skills from other repositories

doc-generator next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
doc-generatorAGoldian/claudenvSkill105mo agoMITA46Claude Code
storage-retentionget-bb/bbSkill5.4kyesterdayMITA20Claude Code, Codex
modal-sandboxesget-bb/bbSkill5.4kyesterdayMITA27Claude Code, Codex
thread-listget-bb/bbSkill5.4kyesterdayMITA33Claude Code, Codex
memoryget-bb/bbSkill5.4kyesterdayMITA16Claude Code, Codex
submit-a-pluginget-bb/bbSkill5.4kyesterdayMITA23Claude Code, Codex
workflowsget-bb/bbSkill5.4kyesterdayMITA21Claude Code, Codex