← ClaudeAtlas

documentation-standardslisted

This skill should be used when the user asks to "document code", "add documentation", "write docstrings", "add JSDoc", "fix documentation", "update docs", "check documentation quality", "add doc comments", or "generate API docs". Provides language-specific documentation format knowledge and quality standards for generating, updating, and auditing code documentation.
ClaudeRegistry/marketplace · ★ 3 · Data & Documents · score 72
Install: claude install-skill ClaudeRegistry/marketplace
# Documentation Standards ## Purpose Define language-specific documentation formats, quality standards, and writing principles for generating, auditing, and maintaining code documentation. Apply these standards consistently across all documentation-related operations. ## Core Principles ### Explain the Why, Not the What Focus documentation on intent, rationale, and context rather than restating what the code already expresses. A function named `calculateTax` does not need a description that says "calculates tax." Instead, describe which tax rules apply, what edge cases exist, and why a particular algorithm was chosen. **Weak:** ```javascript /** Sorts the array. */ function sortUsers(users) { ... } ``` **Strong:** ```javascript /** * Sort users by subscription tier (premium first), then by join date. * * Premium users appear first to ensure priority support routing. * Within the same tier, older accounts take precedence per SLA policy. */ function sortUsers(users) { ... } ``` ### Use Active Voice Write descriptions in active voice, present tense. Start function descriptions with a verb. | Preferred | Avoid | |-----------|-------| | "Validate user credentials against the auth database" | "User credentials are validated" | | "Return the cached result if available" | "The cached result is returned" | | "Parse the CSV file into a list of records" | "A list of records is parsed from the CSV" | ### Completeness Requirements Document every public API with all of the