Cursor CommandsCursor Commands
CategoriesExamples

Add Comprehensive Documentation

Generates a detailed documentation outline for the current code or feature, covering overview, API, implementation, and examples. Adheres to project documentation standards.

Command Code

# Add Documentation

Please add comprehensive documentation for the current code/feature. Include:

## Overview

- What this code/feature does
- Why it exists and its purpose
- Key concepts and terminology

## API Documentation

- Function/method signatures
- Parameters and return values
- Example usage with code snippets
- Error handling and edge cases

## Implementation Details

- Architecture overview
- Important design decisions
- Dependencies and integrations

## Examples

- Common use cases with full examples
- Best practices and patterns
- Common pitfalls to avoid

Format the documentation according to the project's documentation standards and
include it in the appropriate location (README, docs folder, or inline
comments).