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가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
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]
[](#) [](#)
## 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.
댓글
- …
이 저장소의 다른 스킬
engineer-system-change
85k에이전트가 소프트웨어 변경을 만들기 전에 문제, 사용자, 위험을 확인해 실제로 필요한지 판단하도록 돕습니다.
academic-paper-review
85k에이전트가 연구 논문을 동료 심사자처럼 검토해, 방법, 강점, 약점, 다음 단계를 정리하도록 돕습니다.
bootstrap
85k개인 SOUL.md 파일을 만들기 위해 친근한 온보딩 대화를 진행하며, AI 파트너가 누구이고 어떻게 행동할지 정의합니다.
chart-visualization
85k숫자를 차트 이미지로 바꾸며, 선형, 막대, 원형, 지도, 퍼널 등 26가지 차트 유형 중에서 고릅니다.
비슷한 스킬
technical-documentation
394k에이전트가 명확한 기술 문서와 에이전트 지침 파일을 작성하고 검토하도록 도와, 사람과 AI 도구가 쉽게 따를 수 있게 합니다.
architecture-decision-records
280k에이전트가 프로젝트 구조에 관한 중요한 결정을 기록하도록 합니다. 선택의 이유를 이해하고 변경 이력을 명확히 유지하는 데 도움이 됩니다.
code-tour
280k에이전트가 정확한 파일과 줄 번호를 참조하는 단계별 코드 안내를 만들도록 합니다. 소개, 설명, 리뷰에 유용합니다.