code-documentation
यह क्या करती है
यह स्किल सॉफ़्टवेयर प्रोजेक्ट के लिए दस्तावेज़ बनाती है, जैसे README, API संदर्भ और डेवलपर गाइड। यह उन डेवलपर और टीमों के लिए है जिन्हें दूसरों को अपना कोड साफ़ समझाना है।
कब इस्तेमाल करें
- ✓जब कोई किसी codebase का दस्तावेज़ बनाना या README लिखना चाहता है।
- ✓जब कोई स्रोत कोड से API संदर्भ दस्तावेज़ बनवाना चाहता है।
- ✓जब किसी सॉफ़्टवेयर प्रोजेक्ट को changelog या ऑनबोर्डिंग गाइड चाहिए।
Skill का लिंक
https://github.com/bytedance/deer-flow/blob/main/skills/public/code-documentation/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“इस प्रोजेक्ट के लिए एक README लिखिए, ताकि नए डेवलपर जल्दी शुरू कर सकें।”
हर हफ़्ते 5 नई skills, 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, docstrings, GoDoc, Javadoc और Rustdoc फ़ॉर्मेट का ज़िक्र करती है।
क्या यह changelog लिख सकती है?
हाँ। यह कमिट इतिहास या रिलीज़ नोट्स से changelog बना सकती है।
क्या दस्तावेज़ असली कोड से मेल खाएँगे?
स्किल कहती है कि दस्तावेज़ सटीक होने चाहिए और उसी कोड पर आधारित होने चाहिए जो वह पढ़ती है।
जानकारी
लेखक का मूल विवरण
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
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
engineer-system-change
85kआपके एजेंट को सॉफ़्टवेयर बदलाव बनाने से पहले जाँचने देती है कि वह सच में ज़रूरी है या नहीं, समस्या, उपयोगकर्ताओं और जोखिमों की जाँच करते हुए।
academic-paper-review
85kआपके एजेंट को शोध पत्र की समीक्षा एक peer reviewer की तरह करने देती है, तरीकों, मज़बूत पक्षों, कमज़ोरियों और अगले कदमों के साथ।
bootstrap
85kएक दोस्ताना ऑनबोर्डिंग बातचीत का मार्गदर्शन करती है, जो एक निजी SOUL.md फ़ाइल बनाती है और तय करती है कि आपका AI साथी कौन है और कैसे व्यवहार करता है।
chart-visualization
85kआपके नंबरों को चार्ट इमेज में बदलती है, 26 चार्ट प्रकारों में से चुनकर, जैसे लाइन, बार, पाई, मानचित्र और फ़नल।
मिलती-जुलती skills
technical-documentation
394kयह आपके एजेंट को साफ़ तकनीकी डॉक्स और एजेंट निर्देश फ़ाइलें लिखने और जांचने में मदद करती है, ताकि लोग और AI टूल उन्हें आसानी से समझ सकें।
architecture-decision-records
280kयह आपके एजेंट को project structure से जुड़े ज़रूरी फैसलों को दर्ज करने देता है। इससे पता चलता है कि कोई चुनाव क्यों किया गया, और बदलावों का साफ़ इतिहास बना रहता है।
code-tour
280kआपके एजेंट को exact file और line references के साथ step-by-step code walkthrough बनाने देता है। intro, explanations और reviews के लिए उपयोगी है।