본문으로 건너뛰기
Skillpedia
문서화85k · #1378

code-documentation

하는 일

이 스킬은 README, API 참고서, 개발자 가이드처럼 소프트웨어 프로젝트를 위한 문서를 만듭니다. 코드를 다른 사람에게 명확히 설명해야 하는 개발자와 팀을 위한 기능입니다.

사용하는 경우

  • ✓사용자가 코드베이스를 문서화하거나 README를 써 달라고 요청할 때.
  • ✓사용자가 소스 코드에서 API 참고 문서를 만들고 싶을 때.
  • ✓소프트웨어 프로젝트의 변경 기록이나 온보딩 가이드가 필요한 경우.

스킬 링크

https://github.com/bytedance/deer-flow/blob/main/skills/public/code-documentation/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/bytedance/deer-flow/blob/main/skills/public/code-documentation/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“새 개발자들이 빨리 시작할 수 있도록 이 프로젝트의 README를 써 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

스킬은 먼저 프로젝트와 코드를 읽은 뒤, 프로젝트의 복잡도에 맞는 문서 초안을 만듭니다. 프로그래밍 언어의 스타일에 맞춰 코드 안의 주석도 추가할 수 있습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Code Documentation Skill

Overview

This skill generates professional, comprehensive documentation for software projects, codebases, libraries, and APIs. It follows industry best practices from projects like React, Django, Stripe, and Kubernetes to produce documentation that is accurate, well-structured, and useful for both new contributors and experienced developers.

The output ranges from single-file READMEs to multi-document developer guides, always matched to the project's complexity and the user's needs.

Core Capabilities

  • Generate comprehensive README.md files with badges, installation, usage, and API reference
  • Create API reference documentation from source code analysis
  • Produce architecture and design documentation with diagrams
  • Write developer onboarding and contribution guides
  • Generate changelogs from commit history or release notes
  • Create inline code documentation following language-specific conventions
  • Support JSDoc, docstrings, GoDoc, Javadoc, and Rustdoc formats
  • Adapt documentation style to the project's language and ecosystem

When to Use This Skill

Always load this skill when:

  • User asks to "document", "create docs", or "write documentation" for any code
  • User requests a README, API reference, or developer guide
  • User shares a codebase or repository and wants documentation generated
  • User asks to improve or update existing documentation
  • User needs architecture documentation, including diagrams
  • User requests a changelog or migration guide

Documentation Workflow

Phase 1: Codebase Analysis

Before writing any documentation, thoroughly understand the codebase.

Step 1.1: Project Discovery

Identify the project fundamentals:

Field How to Determine
Language(s) Check file extensions, package.json, pyproject.toml, go.mod, Cargo.toml, etc.
Framework Look at dependencies for known frameworks (React, Django, Express, Spring, etc.)
Build System Check for Makefile, CMakeLists.txt, webpack.config.js, build.gradle, etc.
Package Manager npm/yarn/pnpm, pip/uv/poetry, cargo, go modules, etc.
Project Structure Map out the directory tree to understand the architecture
Entry Points Find main files, CLI entry points, exported modules
Existing Docs Check for existing README, docs/, wiki, or inline documentation

Step 1.2: Code Structure Analysis

Use sandbox tools to explore the codebase:

# Get directory structure
ls /mnt/user-data/uploads/project-dir/

# Read key files
read_file /mnt/user-data/uploads/project-dir/package.json
read_file /mnt/user-data/uploads/project-dir/pyproject.toml

# Search for public API surfaces
grep -r "export " /mnt/user-data/uploads/project-dir/src/
grep -r "def " /mnt/user-data/uploads/project-dir/src/ --include="*.py"
grep -r "func " /mnt/user-data/uploads/project-dir/ --include="*.go"

Step 1.3: Identify Documentation Scope

Based on analysis, determine what documentation to produce:

Project Size Recommended Documentation
Single file / script Inline comments + usage header
Small library README with API reference
Medium project README + API docs + examples
Large project README + Architecture + API + Contributing + Changelog

Phase 2: Documentation Generation

Step 2.1: README Generation

Every project needs a README. Follow this structure:

# Project Name

[One-line project description — what it does and why it matters]

[![Badge](link)](#) [![Badge](link)](#)

## Features

- [Key feature 1 — brief description]
- [Key feature 2 — brief description]
- [Key feature 3 — brief description]

## Quick Start

### Prerequisites

- [Prerequisite 1 with version requirement]
- [Prerequisite 2 with version requirement]

### Installation

[Installation commands with copy-paste-ready code blocks]

### Basic Usage

[Minimal working example that demonstrates core functionality]

## Documentation

- [Link to full API reference if separate]
- [Link to architecture docs if separate]
- [Link to examples directory if applicable]

## API Reference

[Inline API reference for smaller projects OR link to generated docs]

## Configuration

[Environment variables, config files, or runtime options]

## Examples

[2-3 practical examples covering common use cases]

## Development

### Setup

[How to set up a development
자주 묻는 질문

어떤 주석 형식을 지원하나요?

스킬은 JSDoc, docstring, GoDoc, Javadoc, Rustdoc 형식을 언급합니다.

변경 기록도 쓸 수 있나요?

네. 커밋 이력이나 릴리스 노트로 변경 기록을 만들 수 있습니다.

문서가 실제 코드와 맞나요?

스킬은 문서가 정확해야 하며, 읽은 코드를 바탕으로 해야 한다고 밝힙니다.

상세 정보

작성자의 원본 설명

Use this skill when the user requests to generate, create, or improve documentation for code, APIs, libraries, repositories, or software projects. Supports README generation, API reference documentation, inline code comments, architecture documentation, changelog generation, and developer guides. Trigger on requests like "document this code", "create a README", "generate API docs", "write developer guide", or when analyzing codebases for documentation purposes.

repo: bytedance/deer-flow

인기도

GitHub 스타
85k
순위
#1378
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬