Skip to content
Back to skills

Documentation Best Practices

ASecurity

Provides templates, standards, and best practices for writing clear, comprehensive technical documentation

  • 28 stars
  • 0 votes
  • 0 copies
  • 16 views
  • Added December 19, 2025
developmentjavascriptpythongojavaapidocumentation

Works with

  • api

Security analysis

A100/100

Scanned February 10, 2026

npx -y skills add bejranonda/LLM-Autonomous-Agent-Plugin-for-Claude --skill documentation-best-practices --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Documentation Best Practices?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Documentation Best Practices
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bejranonda-documentation-best-practices/badge)](https://www.skillsdirectory.com/skills/bejranonda-documentation-best-practices)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: documentation-best-practices
description: Provides templates, standards, and best practices for writing clear, comprehensive technical documentation
version: 1.0.0
---

## Overview

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

## Documentation Coverage Targets

- **Public APIs**: 100% documented
- **Internal Functions**: 80%+ documented
- **Complex Logic**: Must have explanation comments
- **Overall**: 85%+ coverage

## Docstring Templates

### Python (Google Style)
```python
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)
```javascript
/**
 * 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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…