Documentation best practices

From bejranonda/LLM-Autonomous-Agent-Plugin-for-Claude · View interactive version

Documentation best practices is an AI agent skill from the GitHub repository bejranonda/LLM-Autonomous-Agent-Plugin-for-Claude. Provides templates, standards, and best practices for writing clear, comprehensive technical documentation

How to use this skill

Skill file

Overview

This skill provides guidelines for creating high-quality documentation including docstrings, API documentation, README files, and usage guides.

Documentation Coverage Targets

Docstring Templates

Python (Google Style)

def function_name(param1: str, param2: int) -> bool:
    """Brief one-line description.

    Longer detailed explanation if needed.

    Args:
        param1: Description of param1
        param2: Description of param2

    Returns:
        Description of return value

    Raises:
        ValueError: When and why
    """

JavaScript (JSDoc)

/**
 * Brief one-line description.
 *
 * @param {string} param1 - Description of param1
 * @param {number} param2 - Description of param2
 * @returns {boolean} Description of return value
 * @throws {Error} When and why
 */

README Structure

  1. Project Title & Description
  2. Installation: Step-by-step setup
  3. Usage: Basic examples
  4. API Documentation: Overview or link
  5. Contributing: Guidelines (if applicable)
  6. License: Project license

When to Apply

Use when generating documentation, updating docstrings, creating README files, or maintaining API documentation.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.