Documentation templates and structure guidelines. README, API docs, code comments, and AI-friendly documentation.
Installation
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Documentation templates and structure guidelines. README, API docs, code comments, and AI-friendly documentation.
risk
safe
source
community
date_added
2026-02-27
Documentation Templates
Templates and structure guidelines for common documentation types.
1. README Structure
Essential Sections (Priority Order)
Section
Purpose
Title + One-liner
What is this?
Quick Start
Running in <5 min
Features
What can I do?
Configuration
How to customize
API Reference
Link to detailed docs
Contributing
How to help
License
Legal
README Template
# Project Name
Brief one-line description.
## Quick Start
[Minimum steps to run]
## Features- Feature 1
- Feature 2
## Configuration
| Variable | Description | Default |
|----------|-------------|---------|
| PORT | Server port | 3000 |
## Documentation- API Reference
- Architecture
## License
MIT
2. API Documentation Structure
Per-Endpoint Template
## GET /users/:id
Get a user by ID.
**Parameters:**
| Name | Type | Required | Description |
|------|------|----------|-------------|
| id | string | Yes | User ID |
**Response:**- 200: User object
- 404: User not found
**Example:**
[Request and response example]
3. Code Comment Guidelines
JSDoc/TSDoc Template
/**
* Brief description of what the function does.
*
* @paramparamName - Description of parameter
* @returns Description of return value
* @throwsErrorType - When this error occurs
*
* @example
* const result = functionName(input);
*/
# ADR-001: [Title]## Status
Accepted / Deprecated / Superseded
## Context
Why are we making this decision?
## Decision
What did we decide?
## Consequences
What are the trade-offs?