Documentation Standards

Enforce documentation standards for code comments, READMEs, and architectural docs.

51|6|Updated Mar 28, 2019
One-click install
npx skills add https://github.com/Mte90/dotfiles --skill documentation-standards-mte90
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Documentation Standards
Source: https://github.com/Mte90/dotfiles/tree/main/.config/opencode/skills/common/documentation
Command: npx skills add https://github.com/Mte90/dotfiles --skill documentation-standards-mte90

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the challenge of inconsistent and insufficient documentation by providing clear, actionable standards for code comments, README files, and architectural documentation.

Core Features & Use Cases

  • Standardized Comments: Enforces "why" over "what" for inline comments and mandates docstrings for public APIs.
  • Comprehensive READMEs: Outlines essential sections for project onboarding, maintainability, and usage.
  • Architectural Documentation: Guides the use of ADRs and diagrams for clarity on design decisions.
  • API Documentation: Promotes self-documenting APIs and clear examples.

Quick Start

Apply the Documentation Standards skill to ensure all new code includes proper docstrings and a comprehensive README.

Frequently Asked Questions about Documentation Standards

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What standards should code comments and docstrings follow for API documentation?

Code comments should explain the "why" rather than the "what," while public APIs require mandatory docstrings. This documentation standard enforces high-density inline comments and ensures API documentation is self-documenting with clear examples to improve maintainability.

How do I write a comprehensive README for project onboarding?

A comprehensive README should outline essential sections for project onboarding, usage, and maintainability. This standard provides actionable guidelines to structure your README file so new developers can quickly understand and interact with your project.

When do I need to create architectural decision records for my project?

Architectural decision records are needed when you want to clarify design decisions and improve project clarity. This standard guides the use of ADRs alongside diagrams to document architectural changes and maintain long-term code clarity.

What is the best way to track TODO and FIXME comments in a codebase?

The best way to track TODO and FIXME comments is by enforcing high-density documentation standards that mandate clear explanations for workarounds. This ensures technical debt is visible and maintainable rather than leaving unresolved markers without context.

Does this documentation standard work for existing codebases or only new projects?

This documentation standard works for both new and existing codebases. You can apply it to ensure all new code includes proper docstrings and a comprehensive README, progressively elevating documentation density and project clarity across your repository.

How do I enforce consistent documentation across inline comments and README files?

You can enforce consistent documentation by applying standards that cover inline comments, README structure, and architectural documentation. This approach mandates docstrings for public APIs and outlines essential README sections to solve the challenge of insufficient project documentation.