Documentation templates and structure guidelines. README, API docs, code comments, and AI-friendly documentation.
Add this skill
npx mdskills install sickn33/documentation-templatesComprehensive reference with clear templates for READMEs, APIs, comments, and modern AI-friendly docs
1---2name: documentation-templates3description: Documentation templates and structure guidelines. README, API docs, code comments, and AI-friendly documentation.4allowed-tools: Read, Glob, Grep5---67# Documentation Templates89> Templates and structure guidelines for common documentation types.1011---1213## 1. README Structure1415### Essential Sections (Priority Order)1617| Section | Purpose |18|---------|---------|19| **Title + One-liner** | What is this? |20| **Quick Start** | Running in <5 min |21| **Features** | What can I do? |22| **Configuration** | How to customize |23| **API Reference** | Link to detailed docs |24| **Contributing** | How to help |25| **License** | Legal |2627### README Template2829```markdown30# Project Name3132Brief one-line description.3334## Quick Start3536[Minimum steps to run]3738## Features3940- Feature 141- Feature 24243## Configuration4445| Variable | Description | Default |46|----------|-------------|---------|47| PORT | Server port | 3000 |4849## Documentation5051- [API Reference](./docs/api.md)52- [Architecture](./docs/architecture.md)5354## License5556MIT57```5859---6061## 2. API Documentation Structure6263### Per-Endpoint Template6465```markdown66## GET /users/:id6768Get a user by ID.6970**Parameters:**71| Name | Type | Required | Description |72|------|------|----------|-------------|73| id | string | Yes | User ID |7475**Response:**76- 200: User object77- 404: User not found7879**Example:**80[Request and response example]81```8283---8485## 3. Code Comment Guidelines8687### JSDoc/TSDoc Template8889```typescript90/**91 * Brief description of what the function does.92 *93 * @param paramName - Description of parameter94 * @returns Description of return value95 * @throws ErrorType - When this error occurs96 *97 * @example98 * const result = functionName(input);99 */100```101102### When to Comment103104| ✅ Comment | ❌ Don't Comment |105|-----------|-----------------|106| Why (business logic) | What (obvious) |107| Complex algorithms | Every line |108| Non-obvious behavior | Self-explanatory code |109| API contracts | Implementation details |110111---112113## 4. Changelog Template (Keep a Changelog)114115```markdown116# Changelog117118## [Unreleased]119### Added120- New feature121122## [1.0.0] - 2025-01-01123### Added124- Initial release125### Changed126- Updated dependency127### Fixed128- Bug fix129```130131---132133## 5. Architecture Decision Record (ADR)134135```markdown136# ADR-001: [Title]137138## Status139Accepted / Deprecated / Superseded140141## Context142Why are we making this decision?143144## Decision145What did we decide?146147## Consequences148What are the trade-offs?149```150151---152153## 6. AI-Friendly Documentation (2025)154155### llms.txt Template156157For AI crawlers and agents:158159```markdown160# Project Name161> One-line objective.162163## Core Files164- [src/index.ts]: Main entry165- [src/api/]: API routes166- [docs/]: Documentation167168## Key Concepts169- Concept 1: Brief explanation170- Concept 2: Brief explanation171```172173### MCP-Ready Documentation174175For RAG indexing:176- Clear H1-H3 hierarchy177- JSON/YAML examples for data structures178- Mermaid diagrams for flows179- Self-contained sections180181---182183## 7. Structure Principles184185| Principle | Why |186|-----------|-----|187| **Scannable** | Headers, lists, tables |188| **Examples first** | Show, don't just tell |189| **Progressive detail** | Simple → Complex |190| **Up to date** | Outdated = misleading |191192---193194> **Remember:** Templates are starting points. Adapt to your project's needs.195
Full transparency — inspect the skill content before installing.