โ† Back to skills
extension
Category: Development & EngineeringNo API key required

dev-doc-suite

Analyzes the codebase to automatically generate/update README, API documentation, and architecture guides.

personAuthor: jakexiaohubgithub

๐Ÿ“ ๋ฌธ์„œํ™” ์Šค์œ„ํŠธ (Dev Doc Suite)

์ด ์›Œํฌํ”Œ๋กœ์šฐ๋Š” dev-doc-suite ์Šคํ‚ฌ์„ ์‚ฌ์šฉํ•˜์—ฌ ํ”„๋กœ์ ํŠธ ๋ฌธ์„œ๋ฅผ ์ฝ”๋“œ๋Š” ํ•ญ์ƒ '์ง„์‹ค(Truth)'์ด๋ผ๋Š” ์›์น™ ํ•˜์— ์ตœ์‹  ์ƒํƒœ๋กœ ์œ ์ง€ํ•ฉ๋‹ˆ๋‹ค.

1. ์ดˆ๊ธฐํ™” (Initialization)

  1. ์Šคํ‚ฌ ๋กœ๋“œ: this document๋ฅผ ์ฝ์–ด ๋ฌธ์„œํ™” ์›์น™(Core Principles)์„ ํŒŒ์•…ํ•ฉ๋‹ˆ๋‹ค.
  2. ๋Œ€์ƒ ํ™•์ธ: ์‚ฌ์šฉ์ž์—๊ฒŒ ๋ฌธ์„œํ™”ํ•  ๋Œ€์ƒ(์ „์ฒด ํ”„๋กœ์ ํŠธ, ํŠน์ • ๋ชจ๋“ˆ, ๋˜๋Š” ํŠน์ • ํŒŒ์ผ)์„ ๋ฌป์Šต๋‹ˆ๋‹ค.

2. ๋ถ„์„ (Analysis - Phase 1)

"์ฝ”๋“œ๊ฐ€ ๊ณง ๋ฌธ์„œ์˜ ์›์ฒœ์ž…๋‹ˆ๋‹ค."

  1. ๊ตฌ์กฐ ํŒŒ์•…: ๋Œ€์ƒ ๊ฒฝ๋กœ์— ๋Œ€ํ•ด list_dir๋ฅผ ์ˆ˜ํ–‰ํ•˜์—ฌ ํŒŒ์ผ ๊ตฌ์กฐ๋ฅผ ํŒŒ์•…ํ•ฉ๋‹ˆ๋‹ค.
  2. ๋‚ด์šฉ ์Šค์บ”: ์ฃผ์š” ํŒŒ์ผ(์ง„์ž…์ , ํ•ต์‹ฌ ๋ชจ๋“ˆ)์— ๋Œ€ํ•ด view_file_outline ๋˜๋Š” read_file์„ ์‚ฌ์šฉํ•˜์—ฌ ํด๋ž˜์Šค, ํ•จ์ˆ˜ ์‹œ๊ทธ๋‹ˆ์ฒ˜, ๋…์ŠคํŠธ๋ง(Docstring)์„ ์ถ”์ถœํ•ฉ๋‹ˆ๋‹ค.
  3. ์˜์กด์„ฑ ๋ถ„์„: ์ฃผ์š” ํŒŒ์ผ๋“ค์ด ์„œ๋กœ ์–ด๋–ป๊ฒŒ ์—ฐ๊ฒฐ๋˜์–ด ์žˆ๋Š”์ง€ ํŒŒ์•…ํ•ฉ๋‹ˆ๋‹ค.

3. ์ž‘์„ฑ (Drafting - Phase 2)

"๋…์ž๋ฅผ ๋จผ์ € ์ƒ๊ฐํ•˜์„ธ์š” (๊ฐœ๋ฐœ์ž vs ์‚ฌ์šฉ์ž)."

  1. ์ดˆ์•ˆ ์ž‘์„ฑ: ๋ถ„์„๋œ ๋‚ด์šฉ์„ ๋ฐ”ํƒ•์œผ๋กœ ๋ฌธ์„œ ์œ ํ˜•์„ ์„ ํƒํ•˜์—ฌ ์ž‘์„ฑํ•ฉ๋‹ˆ๋‹ค. (SKILL.md ์ฐธ์กฐ)
    • Code Docs (Docstrings): ํ•จ์ˆ˜/ํด๋ž˜์Šค ๋‹จ์œ„์˜ ์ƒ์„ธ ์„ค๋ช… (Python/JS).
    • API Docs: REST API ์—”๋“œํฌ์ธํŠธ ๋ช…์„ธ (Request/Response).
    • Architecture: Mermaid ๋‹ค์ด์–ด๊ทธ๋žจ์„ ํฌํ•จํ•œ ์‹œ์Šคํ…œ ๊ตฌ์กฐ๋„.
    • README: ํ”„๋กœ์ ํŠธ ๋ชฉ์ , ์„ค์น˜, ์‚ฌ์šฉ๋ฒ•์„ ํฌํ•จํ•œ ๋Œ€๋ฌธ.
    • Explanations: ๋ณต์žกํ•œ ๋น„์ฆˆ๋‹ˆ์Šค ๋กœ์ง์— ๋Œ€ํ•œ "How it works" ์‹ฌ์ธต ํ•ด์„ค.
  2. ํฌ๋งทํŒ… ์ ์šฉ: SKILL.md์˜ "Standardized Format"์— ๋”ฐ๋ผ ๋งˆํฌ๋‹ค์šด์„ ์ •๋ˆํ•ฉ๋‹ˆ๋‹ค.

4. ๊ฒ€์ฆ ๋ฐ ์™„๋ฃŒ (Verification - Phase 3)

  1. ์ •ํ•ฉ์„ฑ ํ™•์ธ: ์ž‘์„ฑ๋œ ์„ค๋ช…์ด ์‹ค์ œ ์ฝ”๋“œ ๋™์ž‘๊ณผ ์ผ์น˜ํ•˜๋Š”์ง€ ์žฌํ™•์ธํ•ฉ๋‹ˆ๋‹ค.
  2. ์ €์žฅ: docs/ ๋””๋ ‰ํ† ๋ฆฌ ๋˜๋Š” ํ•ด๋‹น ํŒŒ์ผ ์œ„์น˜(README.md ๋“ฑ)์— ๋ฌธ์„œ๋ฅผ ์ €์žฅํ•ฉ๋‹ˆ๋‹ค.
  3. ์‚ฌ์šฉ์ž ์•Œ๋ฆผ: notify_user๋ฅผ ํ†ตํ•ด ์ƒ์„ฑ๋œ ๋ฌธ์„œ์˜ ์œ„์น˜์™€ ์š”์•ฝ์„ ์•Œ๋ฆฌ๊ณ  ๋ฆฌ๋ทฐ๋ฅผ ์š”์ฒญํ•ฉ๋‹ˆ๋‹ค.

Standards & Rules

Documentation Suite (Dev Doc Suite)

Core Principles

  1. Code as Truth: Documentation must always be derived from the actual code implementation, not assumptions.
  2. Living Documents: Documentation is NOT a post-mortem artifact; it must evolve with every commit.
  3. Audience-Centric: Clearly distinguish between User Docs (Ease of use) and Developer Docs (Implementation details).
  4. Standardized Format: Follow the "3-Tier Language Strategy" (Korean for high-level structure, English for technical details).

Documentation Types & Templates (Source: document-suite-skills)

1. Code Documentation (Docstrings)

Goal: Clear, comprehensive function/class documentation

Example Format:

def function_name(param1: Type, param2: Type) -> ReturnType:
    """
    Brief one-line description.

    Detailed explanation of purpose, behavior, and context.

    Args:
        param1: Description with type and example values
        param2: Description with constraints

    Returns:
        Description of return value and meaning

    Example:
        >>> function_name(example_value1, example_value2)
        expected_output

    Raises:
        ErrorType: When and why this error occurs

    Note:
        Important details, gotchas, performance considerations
    """

2. API Documentation

Goal: Complete API reference for endpoints

REST API Example:

## Authentication API

### POST /api/auth/login

Authenticate user and return JWT access token.

**Request:**

```json
{
  "email": "user@example.com",
  "password": "SecureP@ss123"
}

Response (200 OK):

{
  "success": true,
  "data": {
    "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
    "expiresIn": 3600
  }
}

### 3. Architecture Documentation

**Goal:** Clear system overview and component relationships

**Example:**

```markdown
# System Architecture

## System Diagram

```mermaid
graph TD
    Client[Frontend] -->|HTTPS| Gateway[API Gateway]
    Gateway --> Auth[Auth Service]
    Gateway --> Trade[Trading Service]
    Trade --> DB[(Database)]

Core Components

1. API Gateway

Responsibility: Entry point for all client requests

  • Request routing
  • Rate limiting

2. Auth Service

Responsibility: User authentication

  • JWT generation
  • Session management

### 4. README Generation

**Goal:** Comprehensive project README

**Essential Sections:**

```markdown
# [Project Name]

[One-line description] - [What problem it solves]

## Features
- Key feature 1
- Key feature 2

## Installation
\`\`\`bash
npm install
npm run dev
\`\`\`

## Configuration
| Variable | Description | Required |
|----------|-------------|----------|
| `DATABASE_URL` | DB connection string | Yes |

5. Code Explanations

Goal: Clear explanations of complex code

Process:

  1. High-Level Purpose: What problem does this solve?
  2. Step-by-Step Logic: Break down into phases.
  3. Key Algorithms: Identify important patterns.
  4. Edge Cases: validation and error handling.

Quality Standards

  • Freshness: All generated docs must be verified against the current codebase state.
  • Completeness: Every public function/class must have at least a summary description.
  • Readability: Use clear formatting, bullet points, and code blocks.
  • Safe YAML: Frontmatter descriptions with special characters must be quoted.

Checklist

  • [ ] Analysis: Did you read all relevant code files before writing?
  • [ ] Verification: Does the documentation accurately reflect the code behavior?
  • [ ] Formatting: Is the markdown syntax correct and consistent?
  • [ ] Language: Is the appropriate language (Korean/English) used for the target audience?