Skill: doc-generate
Technical documentation generation. Trigger when the user wants to create a README, API docs, or guides.
Configuration
| Property | Value |
|---|---|
| Context | fork |
| Allowed tools | Read, Write, Edit, Glob, Grep |
| Keywords | doc, generate |
Detailed description
Documentation Generation
README Structure
# Project Name
> Short description
[](link) [](link)
## Features
- Feature 1
- Feature 2
## Quick Start
\`\`\`bash
npm install
npm run dev
\`\`\`
## Documentation
- [Getting Started](docs/getting-started.md)
- [API Reference](docs/api.md)
## Contributing
See [CONTRIBUTING.md](CONTRIBUTING.md)
## License
MIT
API Documentation
## POST /api/users
Create a new user.
**Request:**
| Field | Type | Required | Description |
|-------|------|----------|-------------|
| email | string | Yes | User email |
| name | string | Yes | User name |
**Response:**
\`\`\`json
{
"id": "uuid",
"email": "user@example.com",
"name": "John"
}
\`\`\`
**Errors:**
| Status | Description |
|--------|-------------|
| 400 | Validation error |
| 409 | Email already exists |
Principles
- Working code examples
- Tables for parameters
- Request/response schemas
- List of possible errors
- Internal links for navigation
Automatic triggering
This skill is automatically activated when:
- The matching keywords are detected in the conversation
- The task context matches the skill's domain
Triggering examples
- "I want to doc..."
- "I want to generate..."
Context fork
Fork means the skill runs in an isolated context:
- Does not pollute the main conversation
- Results are returned cleanly
- Ideal for autonomous tasks
Practical examples
1. Example: API Documentation
Example: API Documentation
Scenario
Generate comprehensive API documentation for a user management service.
Generated Output
API Reference: User Management
Base URL: https://api.example.com/v1
Authentication: Bearer token in Authorization header