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エージェントが正確なファイル名と行番号を示しながら、コードを段階的に解説できるようにします。紹介、説明、レビューに役立ちます。