code-documenter
Automatically generates and improves code documentation across Python, JavaScript/TypeScript, Java, Go, and Rust. Detects language conventions, applies appropriate docstring standards, and validates documentation quality.
What this skill does
# Code Documenter
Automatically generate and improve code documentation following language-specific standards.
## Overview
This skill automates documentation generation for development teams. It detects your codebase language, applies appropriate docstring standards (Google/NumPy for Python, JSDoc/TSDoc for TypeScript, Javadoc for Java, godoc for Go, rustdoc for Rust), and validates documentation quality.
**What it automates:**
- Detection of language and existing documentation style
- Generation of missing docstrings for public APIs
- Validation of documentation completeness and quality
- Suggestions for documentation improvements
## Language Support
| Language | Supported Styles | Generator Tool |
|----------|------------------|----------------|
| Python | Google, NumPy, Sphinx | Sphinx + Napoleon |
| JavaScript/TypeScript | JSDoc, TSDoc | TypeDoc |
| Java | Javadoc | javadoc |
| Go | godoc conventions | pkgsite |
| Rust | rustdoc (CommonMark) | cargo doc |
## Workflow
### Step 1: Detect Language and Style
First, I'll scan your codebase to identify:
- Primary programming language(s)
- Existing documentation conventions (if any)
- Public API surface that needs documentation
### Step 2: Analyze Coverage
I'll check current documentation status:
- Files with existing documentation
- Public functions/classes missing documentation
- Documentation quality issues (incomplete params, missing returns)
### Step 3: Generate Documentation
For undocumented code, I'll generate:
- One-line summary describing purpose
- Parameter documentation with types and descriptions
- Return value documentation
- Exception/error documentation where applicable
- Usage examples for complex functions
### Step 4: Validate Quality
I'll verify documentation meets quality standards:
- No placeholder content (TODO, TBD, ...)
- All parameters documented
- Return types specified
- Consistent style throughout
## Triggers
Run this skill when:
- Adding new functions or classes
- Preparing code for review
- Onboarding new team members
- Setting up documentation infrastructure
## Verification
### Success Indicators
- All public APIs have docstrings
- Documentation style is consistent
- No placeholder content remains
- Parameters and returns documented
### Coverage Report
After running, I'll provide:
- Documentation coverage percentage
- List of newly documented items
- Remaining items needing manual attention
## Examples
### Example 1: Document a Python Module
```
User: Document the functions in src/utils/helpers.py
Assistant: Analyzing src/utils/helpers.py...
Found 5 public functions, 2 already documented.
Generating documentation for 3 functions using Google style:
def calculate_discount(price: float, percentage: float) -> float:
"""Calculate discounted price.
Args:
price: Original price in dollars.
percentage: Discount percentage (0-100).
Returns:
Final price after applying discount.
Raises:
ValueError: If percentage is not between 0 and 100.
"""
[Continues for remaining functions...]
Coverage: 100% (5/5 functions documented)
```
### Example 2: Audit TypeScript Documentation
```
User: Check documentation coverage in src/components/
Assistant: Scanning TypeScript files in src/components/...
Documentation Report:
- Total exports: 24
- Documented: 18 (75%)
- Missing: 6
Missing documentation:
1. src/components/Button.tsx: ButtonProps interface
2. src/components/Modal.tsx: useModal hook
3. src/components/Form.tsx: validateField, submitForm, resetForm
Would you like me to generate TSDoc comments for these?
```
### Example 3: Set Up Documentation Standards
```
User: Help us establish documentation standards for our Python project
Assistant: I'll analyze your current codebase and recommend a standard.
Current state:
- 3 files use Google-style docstrings
- 2 files use NumPy-style docstrings
- 5 files have no docstrings
Recommendation: Standardize on Google style (most common in your codebase).
I'll create:
1. Documentation style guide (CONTRIBUTING.md section)
2. Pre-commit hook to validate docstring format
3. Generate missing docs in Google style
Proceed? (y/n)
```
## Configuration
### Style Preferences
When multiple styles are valid, I'll ask which you prefer:
| Language | Options |
|----------|---------|
| Python | google, numpy, sphinx |
| TypeScript | jsdoc, tsdoc |
### Scope Control
| Option | Effect |
|--------|--------|
| Public only | Document exported functions/classes only |
| Include private | Document all functions including internal |
| Specific files | Target only specified files/directories |
## Safety
### Idempotency
Running multiple times is safe:
- Existing documentation is preserved
- Only missing documentation is added
- Style conflicts are flagged, not overwritten
### Reversibility
All changes are made through standard file edits:
- Use `git diff` to review changes
- Use `git checkout` to revert if needed
## Output Checklist
Before considering documentation complete:
- [ ] All public functions have docstrings
- [ ] Parameter types and descriptions present
- [ ] Return values documented with type
- [ ] Exceptions documented where thrown
- [ ] No placeholder content (TODO, TBD, FIXME)
- [ ] Consistent style across codebase
- [ ] At least one example for complex functions
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.