Documentation Generation

VerifiedSafe

Generates comprehensive project documentation including README files, API documentation (OpenAPI/Swagger), code comments with proper docstrings (Python, JSDoc), architecture overviews, and changelogs. Useful for creating new documentation from scratch or improving existing documentation to ensure clarity and consistency across projects.

Sby Skills Guide Bot
DocumentationIntermediate
6/2/2026
Claude Code
#documentation#readme#api-docs#code-comments#changelog

Recommended for

Automated summary

Generates comprehensive project documentation, including README files, API docs, code comments, changelogs, and architecture documentation.

Strengths

  • Provides ready-to-use templates for various documentation types
  • Supports standard formats like OpenAPI/Swagger, JSDoc, and Sphinx
  • Can auto-generate documentation from source code
  • Helps standardize documentation across a project

Limitations

  • Requires manual adjustments for project-specific needs
  • Does not replace human review for accuracy and consistency
  • Depends on source code quality for auto-generated docs
When to use it

Use this skill when you need to create or improve project documentation, especially README, API docs, code comments, and changelogs.

When not to use it

Avoid using it for highly technical documentation requiring deep domain expertise, or for projects where documentation is already complete and up-to-date.

Security analysis

Safe
Quality score90/100

The skill only generates documentation files using Read/Write/Grep/Glob. No execution of bash commands, network access, or destructive actions. No exfiltration risk.

No concerns found

How this analysis is made

Examples

Generate README
Generate a complete README.md file for my Python project that includes installation, usage, features, configuration, and contributing sections.
Create API documentation
Create OpenAPI/Swagger documentation for my REST API with endpoints for users and orders.
Add code comments
Add JSDoc comments to all functions in my JavaScript file to document parameters, return values, and examples.

name: docs description: Generate documentation, API docs, README files, and code comments. Use for creating or improving project documentation. allowed-tools: Read, Write, Grep, Glob

Documentation Generation Skill

Create comprehensive documentation for projects.

1. README Templates

Basic README:

# Project Name

Brief description of what this project does.

## Installation

\`\`\`bash
npm install
# or
pip install -r requirements.txt
\`\`\`

## Usage

\`\`\`bash
npm start
# or
python app.py
\`\`\`

## Features

- Feature 1
- Feature 2
- Feature 3

## Configuration

Environment variables:
- `API_KEY` - Your API key
- `DATABASE_URL` - Database connection string

## Contributing

Pull requests are welcome.

## License

MIT

2. API Documentation

OpenAPI/Swagger:

openapi: 3.0.0
info:
  title: My API
  version: 1.0.0
paths:
  /users:
    get:
      summary: List users
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/User'
components:
  schemas:
    User:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        email:
          type: string

3. Code Comments

Python Docstrings:

def calculate_total(items, tax_rate=0.08):
    """
    Calculate total price including tax.

    Args:
        items (list): List of items with price and quantity
        tax_rate (float, optional): Tax rate. Defaults to 0.08.

    Returns:
        float: Total price including tax

    Raises:
        ValueError: If items is empty or tax_rate is negative

    Example:
        >>> items = [{'price': 10, 'qty': 2}]
        >>> calculate_total(items)
        21.6
    """
    if not items:
        raise ValueError("Items cannot be empty")
    if tax_rate < 0:
        raise ValueError("Tax rate cannot be negative")

    subtotal = sum(item['price'] * item['qty'] for item in items)
    return subtotal * (1 + tax_rate)

JavaScript JSDoc:

/**
 * Calculate total price including tax
 * @param {Array<{price: number, qty: number}>} items - Items to calculate
 * @param {number} [taxRate=0.08] - Tax rate
 * @returns {number} Total price including tax
 * @throws {Error} If items is empty
 * @example
 * const items = [{price: 10, qty: 2}];
 * calculateTotal(items); // 21.6
 */
function calculateTotal(items, taxRate = 0.08) {
    if (!items.length) {
        throw new Error("Items cannot be empty");
    }
    const subtotal = items.reduce((sum, item) =>
        sum + item.price * item.qty, 0);
    return subtotal * (1 + taxRate);
}

4. Architecture Documentation

# Architecture

## Overview

System consists of three main components:
- Frontend (React)
- Backend API (Node.js)
- Database (PostgreSQL)

## Components

### Frontend
- React SPA
- Redux for state management
- Material-UI components

### Backend
- Express.js REST API
- JWT authentication
- PostgreSQL database

### Database Schema

\`\`\`sql
users (id, email, password_hash, created_at)
orders (id, user_id, total, status, created_at)
\`\`\`

## Data Flow

1. User makes request
2. Frontend sends API call
3. Backend validates and processes
4. Database updated
5. Response returned to frontend

5. Generate Docs from Code

Python (Sphinx):

# Install
pip install sphinx

# Initialize
sphinx-quickstart docs

# Generate
cd docs
make html

JavaScript (JSDoc):

# Install
npm install -g jsdoc

# Generate
jsdoc src/ -d docs/

6. Changelog

# Changelog

## [1.2.0] - 2026-01-22

### Added
- New user authentication feature
- CSV export functionality

### Changed
- Improved performance of search
- Updated UI design

### Fixed
- Bug in payment processing
- XSS vulnerability in comments

### Removed
- Deprecated API endpoint /old-users

When to Use This Skill

Use /docs for generating documentation, API specs, README files, and code comments.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/documentation-generation-mmk3nhjr/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/documentation-generation-mmk3nhjr' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/documentation-generation-mmk3nhjr/download' --output '.skill-downloads/documentation-generation-mmk3nhjr/SKILL.md.part' && mv '.skill-downloads/documentation-generation-mmk3nhjr/SKILL.md.part' '.skill-downloads/documentation-generation-mmk3nhjr/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

Tools declared by the author (check availability in your agent): Read, Write, Grep, Glob

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/documentation-generation-mmk3nhjr/SKILL.md' && test -s '.skill-downloads/documentation-generation-mmk3nhjr/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/docs' && cp -R '.skill-downloads/documentation-generation-mmk3nhjr' '.claude/skills/docs'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/documentation-generation-mmk3nhjr'

openskills read 'documentation-generation-mmk3nhjr'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/documentation-generation-mmk3nhjr/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills