documentation-standards

Enforce rationale-based comments and structured project documentation standards.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/phrazzld/claude-config --skill documentation-standards
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: documentation-standards
Source: https://github.com/phrazzld/claude-config/tree/main/skills/documentation-standards
Command: npx skills add https://github.com/phrazzld/claude-config --skill documentation-standards

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Inconsistent, outdated, or missing documentation leads to confusion, wasted time, and increased onboarding costs. This Skill provides a universal framework to ensure all documentation is clear, effective, and easy to maintain.

Core Features & Use Cases

  • "Why Not What" Principle: Guides you to write comments that explain reasoning, not just restate code, making code reviews faster and understanding deeper.
  • README & Technical Docs Structure: Provides clear guidelines for essential documentation types (README, ADRs, Changelogs), ensuring every project has a solid foundation.
  • Documentation Maintenance: Offers strategies for keeping documentation current and avoiding stale information, saving future developers from misleading guides.
  • Use Case: When reviewing a pull request, activate this Skill to automatically check if comments explain "why" instead of "what," if the README is up-to-date, and if any breaking changes are properly documented.

Quick Start

Apply the documentation-standards skill to review the attached code and its README. Focus on comment quality and README structure.

Frequently Asked Questions about documentation-standards

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

FAQPage Schema
How do I write better code comments that explain reasoning instead of restating code?

Code comments should explain why a decision was made, not what the code does. Focus on the rationale behind complex logic, trade-offs, and non-obvious choices. This approach accelerates code reviews and helps future developers understand intent without deciphering syntax.

What should a project README include to onboard developers effectively?

A README should cover project purpose, setup instructions, usage examples, and contribution guidelines. Clear structure with these sections reduces onboarding time and prevents confusion about project scope, dependencies, and expected workflows.

How do I keep documentation like READMEs and CHANGELOGs from becoming outdated?

Establish maintenance practices: update documentation during code review, mark sections with last-reviewed dates, and treat docs as first-class artifacts. Stale documentation misleads developers more than missing docs, so regular audits and updates prevent this costly problem.

What documentation types should every project have?

Essential project documentation includes README for overview, ADRs for architectural decisions, ARCHITECTURE.md for system design, CHANGELOGs for version changes, and CONTRIBUTING guides for collaborators. This foundation ensures consistency across project phases and team transitions.

When reviewing a pull request, what documentation should I check beyond code changes?

Verify that comments explain reasoning, breaking changes are documented in CHANGELOGs, ADRs exist for significant decisions, and the README reflects new features or API changes. Complete reviews catch undocumented impacts that create friction for future maintainers.

How do inline comments and project documentation work together?

Inline comments explain localized reasoning and trade-offs within functions; project docs cover architecture, setup, and workflows. Together they create a complete knowledge base—comments answer why specific code exists, while project docs answer how systems fit together.