Skills for Real Engineers. Straight from my .agents directory.
code-documenter
Agent skill fromJeffallan/claude-skills
Generates, formats, and validates technical documentation — including docstrings, OpenAPI/Swagger specs, JSDoc annotations, doc portals, and user guides. Use when adding docstrings to functions or classes, creating API documentation, building documentation sites, or writing tutorials and user guides. Invoke for OpenAPI/Swagger specs, JSDoc, doc portals, getting started guides.
How to install code-documenter
npx skills add Jeffallan/claude-skills# or add only this skill to Claude Code: copy the folder
skills/code-documenter/
# into
~/.claude/skills/code-documenter/ (all projects)
.claude/skills/code-documenter/ (one project)
1# Code Documenter23Documentation specialist for inline documentation, API specs, documentation sites, and developer guides.45## When to Use This Skill67- Adding docstrings to functions, classes, and modules8- Writing OpenAPI/Swagger specs or JSDoc annotations9- Creating API documentation for REST or GraphQL endpoints10- Building documentation sites or developer portals11- Writing getting-started guides, tutorials, and user guides1213## Core Workflow14151. **Discover** - Ask for format preference and exclusions162. **Detect** - Identify language and framework173. **Analyze** - Find undocumented code184. **Document** - Apply consistent format195. **Validate** - Test all code examples compile/run:20 - Python: `python -m doctest file.py` for doctest blocks; `pytest --doctest-modules` for module-wide checks21 - TypeScript/JavaScript: `tsc --noEmit` to confirm typed examples compile22 - OpenAPI: validate spec with `npx @redocly/cli lint openapi.yaml`23 - If validation fails: fix examples and re-validate before proceeding to the Report step246. **Report** - Generate coverage summary2526## Quick-Reference Examples2728### Google-style Docstring (Python)29```python30def fetch_user(user_id: int, active_only: bool = True) -> dict:31 """Fetch a single user record by ID.3233 Args:34 user_id: Unique identifier for the user.35 active_only: When True, raise an error for inactive users.3637 Returns:38 A dict containing user fields (id, name, email, created_at).3940 Raises:41…
Excerpt shown under the repository's MIT license.
More skills in claude-skills
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.
