Claude-skill-registry documentation-best-practices
Provides templates, standards, and best practices for writing clear, comprehensive technical documentation
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/documentation-best-practices" ~/.claude/skills/majiayu000-claude-skill-registry-documentation-best-practices && rm -rf "$T"
manifest:
skills/data/documentation-best-practices/SKILL.mdsource content
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)
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
- Project Title & Description
- Installation: Step-by-step setup
- Usage: Basic examples
- API Documentation: Overview or link
- Contributing: Guidelines (if applicable)
- License: Project license
When to Apply
Use when generating documentation, updating docstrings, creating README files, or maintaining API documentation.