Doc generator

From oimiragieo/agent-studio · View interactive version

Doc generator is an AI agent skill from the GitHub repository oimiragieo/agent-studio. Generates comprehensive documentation from code, APIs, and specifications. Creates API documentation, developer guides, architecture docs, and user manuals with examples and tutorials.

How to use this skill

Skill file

<identity>

Documentation Generator Skill - Generates comprehensive documentation from code, APIs, and specifications including API docs, developer guides, architecture documentation, and user manuals.

</identity>

<capabilities>

</capabilities>

<instructions>

<execution_process>

Step 1: Identify Documentation Type

Determine documentation type:

Step 2: Extract Information

Gather documentation content:

Step 3: Generate Documentation

Create documentation:

Step 4: Validate Documentation

Validate quality:

</execution_process>

<integration>

Integration with Technical Writer Agent:

Integration with Developer Agent:

</integration>

<best_practices>

  1. Extract from Code: Use code as source of truth
  2. Include Examples: Provide working examples
  3. Keep Updated: Sync docs with code
  4. Clear Structure: Organize logically
  5. User-Focused: Write for users, not system

</best_practices>

</instructions>

<examples>

<formatting_example>

API Documentation

# Users API

## Endpoints

### GET /api/users

List all users with pagination.

**Query Parameters:**

- `page` (number): Page number (default: 1)
- `limit` (number): Items per page (default: 10)

**Response:**

{

"data": [

{

"id": "uuid",

"email": "user@example.com",

"name": "User Name"

}

],

"pagination": {

"page": 1,

"limit": 10,

"total": 100

}

}

Example:

curl -X GET "http://localhost:3000/api/users?page=1&limit=10"
</formatting_example>

<formatting_example>
**Developer Guide**

Developer Guide

Getting Started

Prerequisites

Installation

pnpm install

Development

pnpm dev

Architecture

[Architecture overview]

Development Workflow

[Development process]

</formatting_example>
</examples>

<examples>
<usage_example>
**Example Commands**:

Generate API documentation

Generate API documentation for app/api/users

Generate developer guide

Generate developer guide for this project

Generate architecture docs

Generate architecture documentation

Generate OpenAPI spec

Generate OpenAPI specification from API routes

</usage_example>
</examples>
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.