← ClaudeAtlas

documentation-fundamentalslisted

Auto-invoke when reviewing README files, JSDoc comments, or inline documentation. Enforces "WHY not WHAT" principle.
aiskillstore/marketplace · ★ 329 · Data & Documents · score 79
Install: claude install-skill aiskillstore/marketplace
# Documentation Fundamentals Review > "Code tells you HOW, comments tell you WHY. If you only explain what the code does, you're wasting everyone's time." ## When to Apply Activate this skill when: - Reviewing or creating README files - Writing JSDoc/docstring comments - Inline code comments - API documentation - Architecture decision records --- ## The Golden Rule: WHY, Not WHAT ```typescript // ❌ BAD: Explains what (code already says this) // Increment counter by 1 counter++; // ✅ GOOD: Explains why (context the code can't provide) // Counter must be incremented before validation runs // to account for the edge case where initial value is 0 counter++; ``` --- ## README Structure (The 5 Essentials) Every README must answer these questions: ### 1. What Is This? (1 sentence) > "What problem does this solve in one sentence?" ```markdown ## What A CLI tool that converts Figma designs to React components. ``` ### 2. Why Does It Exist? > "What pain point motivated this project?" ```markdown ## Why Manually converting designs to code takes hours and introduces inconsistencies. This tool automates the process, ensuring pixel-perfect components. ``` ### 3. How to Install > "Copy-paste instructions that work." ```markdown ## Installation npm install your-package ``` ### 4. How to Use > "The simplest possible example that works." ```markdown ## Quick Start npx your-tool --input design.fig --output ./components ``` ### 5. How to Contribute (Optional) > "For o