generate-docs

generate-docs is a skill for Claude Code from viknesh20-20/claude-code-tool-kit. It costs 35 tokens per session (753 once invoked), scanned A, original, MIT.

A documentation generator that examines a project's existing style and creates documentation such as README files, API references, inline code notes, or architecture documents.

In plain words
What is it for?
Creating project setup instructions, usage examples, configuration notes, public API references, code documentation, and architecture documentation.
Why use it?
It avoids writing documentation from scratch and helps new documents match the formats already used in the project.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Creating project setup instructions, usage examples, configuration notes, public API references, code documentation, and architecture documentation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/viknesh20-20/claude-code-tool-kit/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 viknesh20-20/claude-code-tool-kit --skill generate-docs
Clone the repo
git clone --depth 1 https://github.com/viknesh20-20/claude-code-tool-kit

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/viknesh20-20/claude-code-tool-kit/generate-docs/github.svg)](https://agentmods.dev/skills/viknesh20-20/claude-code-tool-kit/generate-docs)
Your own site
<a href="https://agentmods.dev/skills/viknesh20-20/claude-code-tool-kit/generate-docs"><img src="https://agentmods.dev/badge/skills/viknesh20-20/claude-code-tool-kit/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/viknesh20-20/claude-code-tool-kit/generate-docs"><img src="https://agentmods.dev/badge/skills/viknesh20-20/claude-code-tool-kit/generate-docs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 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.
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.00035 $0.00753
Opus 5.5 $0.00014 $0.00301
Sonnet 5.5 $0.00007 $0.00151
Haiku 4.5 $0.00003 $0.00075

Measured 1mo ago against content hash 774e3def451e, 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.

.claude/skills/generate-docs/SKILL.md · 77 lines

How it starts

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

Generate Documentation

Detect Documentation Style

!find . -name "README*" -o -name "CONTRIBUTING*" -o -name "CHANGELOG*" -o -name "docs" -type d 2>/dev/null | grep -v node_modules | grep -v .git | head -10 !ls docs/ doc/ documentation/ wiki/ 2>/dev/null

Detect Code Documentation Format

!grep -r "\/\*\*" --include="*.ts" --include="*.js" --include="*.java" -l 2>/dev/null | head -3 !grep -r '"""' --include="*.py" -l 2>/dev/null | head -3 !grep -r "\/\/\/" --include="*.rs" --include="*.cs" --include="*.go" -l 2>/dev/null | head -3


Documentation Types

Type 1: README Generation

If "readme" is specified, generate a complete README.md with:

  • Project name and one-line description
  • Badges (build status, coverage, version — if CI is configured)
  • Table of contents
  • Features list
  • Prerequisites and installation
  • Quick start / usage examples
  • Configuration options
  • API reference (if applicable)
  • Contributing guidelines
  • License

Type 2: API Documentation

If "api" is specified:

  • Find all public endpoints/routes/handlers
  • Document each with: method, path, description, parameters, request body, response body, error codes
  • Generate in the format matching existing docs (OpenAPI, Markdown, or inline)

Type 3: Module/File Documentation

If a file or module is specified:

  • Read the code completely
  • Add inline documentation following the project's convention:
    • JavaScript/TypeScript: JSDoc (/** ... */)
    • Python: Docstrings ("""...""")
    • Go: GoDoc comments (// FunctionName ...)
    • Rust: Doc comments (/// ...)
    • Java: Javadoc (/** ... */)
    • C#: XML comments (/// <summary>)
    • Ruby: YARD (# @param, # @return)

For each public function/method/class, document:

  • Brief description of what it does
  • Parameters with types and descriptions
  • Return value with type and description
  • Exceptions/errors that can be thrown
  • Usage example (for complex APIs)

Type 4: Architecture Documentation

If "architecture" is specified:

  • Map the high-level system components
  • Create ASCII or Mermaid diagrams
  • Document data flow between components
  • List external dependencies and integrations
  • Note key design decisions and trade-offs

Read the full file on GitHub · 77 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. 1mo ago First seen · 77 lines · 35 tokens per session scan A 774e3def451e

Subscribe to this mod's changes

generate-docs is a skill published in the GitHub repository viknesh20-20/claude-code-tool-kit (7 stars, last pushed 5mo ago), licensed MIT. It adds 35 tokens to every session and 753 once invoked, about $0.0001 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

Other skills, from other repositories

paperclip

Use for Paperclip-managed tasks and heartbeats: reading task context, delivering task documents or files, updating completion or blockers, coordinating or delegating work, and following company governance. Includes control plane API operations for assignments, comments, approvals, and routines.

paperclipai/paperclip · 54 tokens

agentmail

Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by your inbox assignment.

paperclipai/paperclip · 30 tokens

cw-gates

Use before claiming any Codewhale change is done, green, or ready to land: the focused-to-broad verification ladder, the budget checks CI enforces, and the rules for what counts as a passing test.

Hmbown/Codewhale · 48 tokens

refocusing

Use when a long-running agent may have lost the product outcome, when context was compacted, when work has crossed a major boundary, or when a fresh path-based trace is needed before the next consequential action. Not for fresh-session orientation, waking an idle seat, or checkpoints.

mvschwarz/openrig · 59 tokens

oversight-team

Use when you are a seat on the oversight pod (a standing monitor-mode rig that keeps OTHER rigs healthy), configuring or running the drift detectors, or choosing whether to intervene vs escalate. Covers the pull-not-poll posture, the v0 detectors (premature-park, process-drift, off-task, token-burn), the intervention…

mvschwarz/openrig · 117 tokens

package-installer

Install third-party open-source projects (a GitHub URL or a local git directory the user provides) as external packages. The project is cloned verbatim into the per-user packages directory — never edit, normalize, or reorganize its files.

Orkas-AI/Orkas · 3 tokens