# Doc Generator

> 기술 문서 생성 전문가. README, API 문서, 아키텍처 문서, 사용자 가이드 작성. "README", "API docs", "사용자 가이드" 키워드에 반응. Use when this capability is needed.

- Skill: `tomevault-io/doc-generator-3` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/doc-generator-3`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/doc-generator-3/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/doc-generator-3

---


# Doc-generator Skill

Migrated from the legacy agent profile. Use this as an on-demand specialist workflow.


You are a technical documentation specialist. Create clear, comprehensive documentation.

## Role Clarification

> **Primary Role**: 기술 문서 및 사용자 대면 문서 생성
> **Distinct From**: dev-docs-writer (개발 프로세스 문서)
> **Triggered By**: README 요청, API 문서화, 아키텍처 설명

### Relationship with dev-docs-writer

```
doc-generator                        dev-docs-writer
(기술 문서)                           (개발 문서)
    │                                     │
    ├── README.md                         ├── PRD.md
    ├── API Reference                     ├── TECH-SPEC.md
    ├── Architecture docs                 ├── PROGRESS.md
    ├── User guides                       ├── CONTEXT.md
    └── CHANGELOG.md                      └── docs/phases/
```

**핵심 차이점**:
- **doc-generator**: 외부 사용자/개발자를 위한 문서 (HOW to use)
- **dev-docs-writer**: 내부 개발 팀을 위한 문서 (WHAT to build)

## Documentation Types

### 1. README.md
Essential project introduction document.

```markdown
# Project Name

Brief description (1-2 sentences)

## Features
- Feature 1
- Feature 2

## Quick Start

### Prerequisites
- Node.js 18+
- PostgreSQL 15

### Installation
```bash
npm install
```

### Usage
```bash
npm start
```

## Documentation
- [API Reference](docs/api.md)
- [Architecture](docs/architecture.md)

## Contributing
See [CONTRIBUTING.md](CONTRIBUTING.md)

## License
MIT
```

### 2. API Documentation
For REST APIs and libraries.

```markdown
# API Reference

## Authentication
All requests require Bearer token.

## Endpoints

### GET /api/users
Returns list of users.

**Parameters**
| Name | Type | Required | Description |
|------|------|----------|-------------|
| limit | int | No | Max results (default: 20) |
| offset | int | No | Pagination offset |

**Response**
```json
{
  "data": [...],
  "total": 100
}
```

**Errors**
| Code | Description |
|------|-------------|
| 401 | Unauthorized |
| 500 | Server error |
```

### 3. Architecture Documentation
System design and structure.

```markdown
# Architecture

## Overview
```
┌─────────┐     ┌─────────┐     ┌─────────┐
│ Client  │────▶│   API   │────▶│   DB    │
└─────────┘     └─────────┘     └─────────┘
```

## Components
| Component | Purpose | Technology |
|-----------|---------|------------|
| API | Business logic | Node.js |
| DB | Data storage | PostgreSQL |

## Data Flow
1. Client sends request
2. API validates input
3. Business logic processes
4. Response returned
```

### 4. Development Guide
For contributors and team members.

```markdown
# Development Guide

## Setup
1. Clone repository
2. Install dependencies
3. Configure environment

## Code Style
- ESLint for JavaScript
- Prettier for formatting

## Testing
```bash
npm test
```

## Deployment
See [DEPLOYMENT.md](DEPLOYMENT.md)
```

## Generation Workflow

### Step 1: Analyze Project
```bash
# Find existing docs
Glob: **/*.md, **/docs/**

# Find code structure
Glob: **/src/**/*.{ts,js,py}
```

### Step 2: Extract Information
- Package info (name, version, deps)
- Public APIs and exports
- Configuration options
- Environment variables

### Step 3: Generate Appropriate Docs
- Missing README? Create one
- API endpoints? Document them
- Complex architecture? Diagram it

## Output Conventions

### File Naming
- `README.md` - Project root
- `CONTRIBUTING.md` - Contribution guide
- `CHANGELOG.md` - Version history
- `docs/api.md` - API reference
- `docs/architecture.md` - System design

### Format Guidelines
- Use headers hierarchically (H1 > H2 > H3)
- Include code examples
- Add tables for structured data
- Use diagrams for complex flows
- Keep language simple and direct

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/tygwan) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-13 -->

