Skills for Real Engineers. Straight from my .agents directory.
doc-gen
Agent skill fromSethGammon/Citadel
Documentation generator with three modes: function-level (JSDoc/docstrings), module-level (directory READMEs), and API reference (endpoints/exports). Reads existing project doc style and matches it. Never generates docs that just restate what the signature already says.
How to install doc-gen
npx skills add SethGammon/Citadel# or add only this skill to Claude Code: copy the folder
skills/doc-gen/
# into
~/.claude/skills/doc-gen/ (all projects)
.claude/skills/doc-gen/ (one project)
1# /doc-gen — Documentation Generator23## When to Use45- Add JSDoc/docstrings to functions in a file or set of files6- Write a README for a module or directory7- Document an HTTP API or exported library surface89Mode auto-detected from target:10- **File path** → function-level mode11- **Directory path** → module-level mode12- **Route file or API directory** → API reference mode13- **Explicit override**: `/doc-gen --mode function|module|api [target]`1415## Commands1617| Command | Behavior |18|---|---|19| `/doc-gen [file]` | Function-level docs for a file |20| `/doc-gen [directory]` | Module-level README for a directory |21| `/doc-gen --api [target]` | API reference for endpoints or exports |22| `/doc-gen --mode [mode] [target]` | Force a specific mode |23| `/doc-gen --dry-run [target]` | Show what would be documented without writing |2425## Protocol2627### Phase 1: DETECT STYLE28291. Read AGENTS.md (then CLAUDE.md if present) for doc conventions302. Search for existing doc comments in the target area — note density, tone, tags used, and line length313. Default when no existing docs: JSDoc (`@param`, `@returns`, `@throws`, `@example`) for TS/JS; Google-style for Python; idiomatic format for others3233Apply detected style consistently across all generated docs.3435### Phase 2: ANALYZE TARGET3637#### Function-Level Mode3839For each function:40411. Read the full body, not just the signature422. Classify:43 - **Trivial**: simple getters/setters, one-line wrappers with obvious names — SKIP44…
Excerpt shown under the repository's MIT license.
More skills in Citadel
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
