code-documentation
Skill83k starsChanged 5 months agoMITView on GitHub
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.
13 other projects use a version of this.
Trending
More talk lately.about the whole repository
Most recently taken up by
- gilsmt/skillstheir own version, first seen Oct 4, 2026
- velonx/agent-skillstheir own version, first seen Sep 24, 2026
- Suuunboy/code-documentation-skilltheir own version, first seen Sep 22, 2026
- gspencergoog/skillstheir own version, first seen Sep 8, 2026
- lexicalninja/my-little-scrum-teamtheir own version, first seen Jul 26, 2026
- CreamyLong/quillword for word, first seen Jul 16, 2026
Who's talking about bytedance/deer-flow
- @sungkim.bsky.social“ByteDance's DeerFlow A framework for deep research, combining language models with tools like web search, …”Bluesky · May 11, 2025 · 17 likes
- @langchain.bsky.social“🔬 DeerFlow: Deep Research Framework An open-source framework for conducting systematic deep research …”Bluesky · May 12, 2025 · 8 likes
- A Hacker News story“Has Anyone Tried Deerflow?”Hacker News · Mar 27, 2026 · 4 points
- A Hacker News story“DeerFlow, a community-driven Deep Research framework”Hacker News · May 12, 2025 · 4 points
- @toolhunt.bsky.social“ByteDance выкатили deer-flow — открытый SuperAgent harness для долгосрочных задач, который сам кодит, …”Bluesky · Aug 19, 2026 · 3 likes
The biggest 5 of 79 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 79
Talked about on GitHub, Bluesky and Hacker News (79 times).
On GitHub · 50
- Jun 22, 2026feat(agents): add DeerFlow (bytedance/deer-flow) framework support — jaylfc/taOS2 reactions · 4 comments
- Feb 26, 2026[Add App]DeerFlow - 2.0 — beclab/apps2 reactions · 1 comment
- May 31, 2025更加炫酷的打字动画 — ant-design/x2 reactions · 1 comment
- Mar 7, 2026Feature: Automatic Session Title Generation — Lightweight LLM-Based Title After First Exchange (inspired by DeerFlow) — NousResearch/hermes-agent1 reaction · 5 comments
- Nov 26, 2025Explore integrating deer-flow into research features — XJTU-RL/Power-Planer1 reaction
45 more on GitHub
- May 12, 2025Request - Bytedance DeerFlow Integration — onyx-dot-app/onyx1 reaction · 2 comments
- Nov 18, 2026North+GLM wildcard experiment (epoch 21): When a tool output exceeds the observation budget, the agent should automatically revise its plan to insert a recall step that fetches the missing tail via read_offloaded, ensuring the full output can be retrieved without exceeding the budget. — DervinEvolve/AI-Agent0 reactions
- Nov 11, 2026Extra Fingerprints to add — SocksTheWolf/AgenticAlert0 reactions · 1 comment
- Nov 10, 2026fix(models): add opt-in merge of consecutive user messages (#6751) — wycocoyu/deer-flow0 reactions
- Nov 10, 2026fix(frontend): restore the draft and welcome state when a new session send fails (upstream #8039) — Zhong-fan/deer-flow0 reactions · 2 comments
- Nov 9, 2026fix(agents): count vLLM reasoning tokens in the summarization trigger (upstream #8074) — Zhong-fan/deer-flow0 reactions · 1 comment
- Nov 9, 2026fix(gateway): evict completed RunRecords in production (upstream #5009) — Zhong-fan/deer-flow0 reactions · 2 comments
- Nov 9, 2026fix(gateway): evict completed RunRecords in production (upstream #5009) — Zhong-fan/deer-flow0 reactions
- Nov 9, 2026fix(gateway): evict completed RunRecords in production (upstream #5009) — Zhong-fan/deer-flow0 reactions
- Nov 9, 2026fix(gateway): evict completed RunRecords in production (upstream #5009) — Zhong-fan/deer-flow0 reactions
- Nov 9, 2026fix(gateway): evict completed RunRecords in production (upstream #5009) — Zhong-fan/deer-flow0 reactions
- Nov 9, 2026fix(gateway): evict completed RunRecords in production (upstream #5009) — Zhong-fan/deer-flow0 reactions
- Nov 9, 2026fix(gateway): evict completed RunRecords in production (upstream #5009) — Zhong-fan/deer-flow0 reactions
- Nov 4, 2026agent-skills.github.bytedance.deer-flow: 2.1.0 → 2.2.0 — sudosubin/agents.nix0 reactions
- Nov 4, 2026claude-code-plugins.github.bytedance.deer-flow: 2.1.0 → 2.2.0 — sudosubin/agents.nix0 reactions
- Oct 28, 2026fix(subagents): validate recovery before superseding source tasks — Aldenshile/deer-flow0 reactions
- Oct 26, 2026Add licensed skills, reusable materials, and source catalogues — EmbeddedLLM/nice-skills0 reactions
- Oct 26, 2026[Feature] Sub Agent 派生与 Agent 能力分档 — Code-MonkeyZhang/persona-agent0 reactions
- Oct 26, 2026[Refactor] Agent Core 拓扑重构以支撑能力分档与 Sub Agent — Code-MonkeyZhang/persona-agent0 reactions
- Oct 24, 2026fix(agent): enforce delegated skill scope and show saved progress — pyrelio88-afk/Selenyx0 reactions
- Oct 20, 2026Capability request: BoxLite sandbox (local micro-VM workspace backend) — pydantic/pydantic-ai0 reactions · 1 comment
- Oct 20, 2026Context runtime acceptance: accurate budgets, cancellation and durable task continuity — bei-shan/WodeAgent0 reactions
- Oct 19, 2026Framework drift review required — aporthq/aport-agent-guardrails0 reactions · 4 comments
- Oct 19, 2026fix(channels): acknowledge GitHub comments queued during a busy run — wannT-1/deer-flow0 reactions
- Oct 17, 2026fix(vikingbot): screen web search result URLs — volcengine/OpenViking0 reactions
- Oct 15, 2026fix(vikingbot): reconcile streaming token usage — volcengine/OpenViking0 reactions
- Oct 15, 2026sandbox: E2B cloud micro-VM provider and distributed ownership protocol — bei-shan/WodeAgent0 reactions
- Oct 15, 2026sandbox: session-scoped SandboxProvider API, BoxLite warm VM pool and file operations — bei-shan/WodeAgent0 reactions
- Oct 11, 2026Add DeerFlow and its optional Parallel Search MCP example — kyrolabs/awesome-langchain0 reactions
- Oct 10, 2026fix(bot): replay Gemini tool-call thought signatures — volcengine/OpenViking0 reactions
- Oct 7, 2026fix(parse): reject colliding ZIP member paths — volcengine/OpenViking0 reactions
- Oct 5, 2026fix(parse): handle mixed-case Markdown artifacts — volcengine/OpenViking0 reactions
- Oct 4, 2026fix(config): handle localhost case-insensitively — volcengine/OpenViking0 reactions
- Oct 4, 2026claude-code-plugins.github.bytedance.deer-flow: init at 2.1.0 — sudosubin/agents.nix0 reactions
- Oct 3, 2026agent-skills.github.bytedance.deer-flow: init at 2.1.0 — sudosubin/agents.nix0 reactions
- Sep 27, 2026fix: restrict redirect schemes and discard intermediate response bodies — chenhz01/adversarial-research-audit0 reactions · 1 comment
- Sep 20, 2026Add Runtime execution budgets — GK-studio-JP/ai-os-runtime0 reactions
- Sep 20, 2026Add bounded Context Capsule budget and provenance — GK-studio-JP/ai-os-context0 reactions
- Sep 20, 2026Port DeerFlow safety to Browser Worker relay — GK-studio-JP/ai-os-runtime-browser-worker0 reactions
- Sep 10, 2026feat(discovery): 週に一度、新しく出たツールの候補を集めて PR にする — konweb/nanteyomu0 reactions · 1 comment
- Sep 8, 2026fix(subagents): tear down dispatched child before batch retry — Zsanz3/deer-flow0 reactions · 2 comments
- Sep 3, 2026feat(wizard): add aimlapi.com as an LLM provider — aimlapi/deer-flow-aimlapi0 reactions
- Aug 31, 2026fix(lark): allow Windows hosts to prepare Linux sandbox CLI runtime — Zsanz3/deer-flow0 reactions · 3 comments
- Aug 24, 2026[¥200 验收后付] DeerFlow #532 多轮 Deep Research 连续上下文实现 — snownico0722/snownico0722.github.io0 reactions
- Aug 19, 2026[Integration] bytedance/deer-flow — You.com web_search provider + setup wizard entry — youdotcom-oss/integration-tracking0 reactions · 17 comments
On Bluesky · 21
- May 11, 2025ByteDance's DeerFlow A framework for deep research, combining language models with tools like web search, crawling, and Python execution,… — @sungkim.bsky.social17 likes and reposts
- May 12, 2025🔬 DeerFlow: Deep Research Framework An open-source framework for conducting systematic deep research through coordinated LangGraph agents.… — @langchain.bsky.social8 likes and reposts
- Aug 19, 2026ByteDance выкатили deer-flow — открытый SuperAgent harness для долгосрочных задач, который сам кодит, исследует и автоматизирует рутину от… — @toolhunt.bsky.social3 likes and reposts
- May 6, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 bytedance / deer-flow ⭐ 65,357 (+328) 🗒 Python An open-source long-horizon SuperAgent harness that… — @github-trending.bsky.social3 likes and reposts · 1 reply
- Mar 31, 2026This GitHub project caught my eye: DeerFlow 2.0 is a fully extensible super agent platform for smart automation, custom workflows, and deep… — @alexiskirke.bsky.social3 likes and reposts
16 more on Bluesky
- Jun 21, 2026今日のGitHubトレンド bytedance/deer-flow DeerFlowは、サブエージェント、メモリ、サンドボックスを統合し、拡張可能なスキルによって多様なタスクを実行するオープンソースのスーパーエージェントハーネスです。… — @dailygithubtrends.bsky.social2 likes and reposts
- Feb 26, 2026ByteDance's DeerFlow is a TypeScript super-agent that orchestrates sub-agents, sandboxes, and persistent memory to tackle complex… — @arifsolmaz.bsky.social2 likes and reposts · 1 reply
- Sep 7, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 bytedance / deer-flow ⭐ 81,682 (+188) 🗒 Python An open-source long-horizon SuperAgent harness that… — @github-trending.bsky.social1 likes and repost
- Mar 27, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 bytedance / deer-flow ⭐ 47,567 (+2,388) 🗒 Python An open-source long-horizon SuperAgent harness… — @github-trending.bsky.social1 likes and repost · 1 reply
- Mar 12, 2026Repo: github.com/bytedance/de... Here's why this is different from every other agent framework: It has its own sandbox. A real isolated… — @jainamparmar.bsky.social1 likes and repost · 2 replies
- Mar 12, 2026github.com/bytedance/de... github.com/AlexsJones/s... github.com/AlexsJones/l... Sharing more repos to later crawl my own page for data… — @moe-dude.bsky.social1 likes and repost
- Mar 11, 2026DeerFlow : framework open-source d'agents IA orchestrant recherche, code et création — @news.humancoders.com1 likes and repost
- Mar 10, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 bytedance / deer-flow ⭐ 27,977 (+1,443) 🗒 Python An open-source SuperAgent harness that researches,… — @github-trending.bsky.social1 likes and repost · 1 reply
- Mar 9, 2026DeerFlow : un framework open-source qui orchestre des sous-agents, mémoire et sandboxes pour gérer des tâches complexes de recherche et… — @camilleroux.com1 likes and repost
- Mar 1, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 bytedance / deer-flow ⭐ 22,795 (+352) 🗒 Python An open-source SuperAgent harness that researches,… — @github-trending.bsky.social1 likes and repost · 1 reply
- May 23, 2025DeerFlow DeerFlow is a community-driven framework for deep research, combining language models with tools like web search, crawling, and… — @pythonhub.dev1 likes and repost
- Aug 1, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 bytedance / deer-flow ⭐ 78,536 (+204) 🗒 Python An open-source long-horizon SuperAgent harness that… — @github-trending.bsky.social0 likes and reposts · 1 reply
- Jul 11, 2026READMEで確認できたのは、DeerFlow 自体はMITのOSS。でも初期設定ではLLMプロバイダと任意のWeb検索を選び、鍵は `.env` に入れる設計です。Docker推奨で、ローカルLLMを動かすなら必要な計算資源も別。… — @mint-echosphere.bsky.social0 likes and reposts · 1 reply
- Jun 27, 2026READMEで確認できた範囲だと、2.0が全面書き直し、MIT、sub-agents / memory / sandbox、そして「minutes to hours」の長尺タスク志向は本当です。ここはちゃんと強い。… — @mint-echosphere.bsky.social0 likes and reposts · 1 reply
- Jun 21, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 bytedance / deer-flow ⭐ 72,237 (+415) 🗒 Python An open-source long-horizon SuperAgent harness that… — @github-trending.bsky.social0 likes and reposts · 1 reply
- Mar 22, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 bytedance / deer-flow ⭐ 33,811 (+1,508) 🗒 Python An open-source SuperAgent harness that researches,… — @github-trending.bsky.social0 likes and reposts · 1 reply
On Hacker News · 8
- Mar 27, 2026Has Anyone Tried Deerflow?4 points
- May 12, 2025DeerFlow, a community-driven Deep Research framework4 points
- Mar 30, 2026Deer-Flow Installing Line3 points · 1 comment
- Mar 16, 2026Deep Exploration and Efficient Research Flow2 points
- Mar 15, 2026DeerFlow 2.0: open-source SuperAgent harness that researches, codes, creates2 points
3 more on Hacker News
- May 13, 2025DeerFlow: Deep Research Framework2 points
- May 18, 2026DeerFlow 2.0 – Deep Exploration and Efficient Research Flow1 point
- Apr 18, 2026An open-source long-horizon SuperAgent harness that researches,codes and creates1 point · 1 comment
Used with
Projects with it also use changelog-generator and code-review.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
ArogyaReddySkillchangelog-generator
Automatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, customer-friendly release notes. Turns hours of manual changelog writing into minutes of automated generation.
Also in 3 projects that use this
GoogleSkillcode-review
Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.
Also in 4 projects that use this
Other versions13 projects use a version of this.
Word for word · 1
- CreamyLong/quill★ 2100% same
Edited · 0
None found.
Wrote their own version · 12
- MoizIbnYousaf/ai-agent-skills★ 1.1ksame name
- myths-labs/muse★ 35same name
- mryeminaung/documentation-assistant★ 9same name
- Jonathan0823/opencode-config★ 8same name
- gilsmt/skills★ 2same name
- gspencergoog/skills★ 2same name
- lexicalninja/my-little-scrum-team★ 2same name
- Suuunboy/code-documentation-skill★ 2same name
- velonx/agent-skills★ 1same name
- anuragsarkar97/skills★ 0same name
2 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository30 other files it gives its agents.
- AGENTS.mdAGENTS.md
- backend/AGENTS.mdAGENTS.md
- frontend/AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
- backend/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- frontend/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- academic-paper-reviewSkill
- bootstrapSkill
- chart-visualizationSkill
- claude-to-deerflowSkill
- consulting-analysisSkill
- data-analysisSkill
- deep-researchSkill
- find-skillsSkill
- frontend-designSkill
- github-deep-researchSkill
- image-generationSkill
- music-generationSkill
- newsletter-generationSkill
- podcast-generationSkill
- ppt-generationSkill
- skill-creatorSkill
- skill-reviewerSkill
- surprise-meSkill
- systematic-literature-reviewSkill
- vercel-deploySkill
- video-generationSkill
- web-design-guidelinesSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
20 rules. 0 are common, 17 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
17
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Create API reference documentation from source code analysis
- Distinctive: line 19
Write developer onboarding and contribution guides
- Distinctive: line 21
Create inline code documentation following language-specific conventions
- Distinctive: line 40
Before writing any documentation, thoroughly understand the codebase.
- Distinctive: line 58
Use sandbox tools to explore the codebase:
- Distinctive: line 89
Every project needs a README.
- Distinctive: line 336
Verify the documentation covers:
- Distinctive: line 361
All mentioned file paths exist in the project
- Distinctive: line 362
All referenced functions and classes exist in the code
- Distinctive: line 363
All code examples use the correct function signatures
- Distinctive: line 365
All links (internal and external) are valid
- Very specific: line 380
Use ATX-style headers (#, ##, ###)
- Very specific: line 381
Use fenced code blocks with language specification (
python ,bash ) - Distinctive: line 382
Use tables for structured information (parameters, options, configuration)
- Distinctive: line 383
Use admonitions for important notes, warnings, and tips
- Distinctive: line 384
Keep line length readable (wrap prose at ~80-100 characters in source)
- Very specific: line 385
Use code formatting for function names, file paths, variable names, and CLI commands
- Distinctive: line 410
Always analyze the actual code before writing documentation — never guess at API signatures or behavior
- Distinctive: line 411
When existing documentation exists, preserve its structure unless the user explicitly asks for a rewrite
- Distinctive: line 414
When generating changelogs, use the Keep a Changelog format
“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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 environment]
### Testing
[How to run tests]
### Building
[How to build the project]
## Contributing
[Contribution guidelines or link to CONTRIBUTING.md]
## License
[License information]Step 2.2: API Reference Generation
For each public API surface, document:
Function / Method Documentation:
### `functionName(param1, param2, options?)`
Brief description of what this function does.
**Parameters:**
| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `param1` | `string` | Yes | — | Description of param1 |
| `param2` | `number` | Yes | — | Description of param2 |
| `options` | `Object` | No | `{}` | Configuration options |
| `options.timeout` | `number` | No | `5000` | Timeout in milliseconds |
**Returns:** `Promise<Result>` — Description of return value
**Throws:**
- `ValidationError` — When param1 is empty
- `TimeoutError` — When the operation exceeds the timeout
**Example:**
\`\`\`javascript
const result = await functionName("hello", 42, { timeout: 10000 });
console.log(result.data);
\`\`\`Class Documentation:
### `ClassName`
Brief description of the class and its purpose.
**Constructor:**
\`\`\`javascript
new ClassName(config)
\`\`\`
| Parameter | Type | Description |
|-----------|------|-------------|
| `config.option1` | `string` | Description |
| `config.option2` | `boolean` | Description |
**Methods:**
- [`method1()`](#method1) — Brief description
- [`method2(param)`](#method2) — Brief description
**Properties:**
| Property | Type | Description |
|----------|------|-------------|
| `property1` | `string` | Description |
| `property2` | `number` | Read-only. Description |Step 2.3: Architecture Documentation
For medium-to-large projects, include architecture documentation:
# Architecture Overview
## System Diagram
[Include a Mermaid diagram showing the high-level architecture]
\`\`\`mermaid
graph TD
A[Client] --> B[API Gateway]
B --> C[Service A]
B --> D[Service B]
C --> E[(Database)]
D --> E
\`\`\`
## Component Overview
### Component Name
- **Purpose**: What this component does
- **Location**: `src/components/name/`
- **Dependencies**: What it depends on
- **Public API**: Key exports or interfaces
## Data Flow
[Describe how data flows through the system for key operations]
## Design Decisions
### Decision Title
- **Context**: What situation led to this decision
- **Decision**: What was decided
- **Rationale**: Why this approach was chosen
- **Trade-offs**: What was sacrificedStep 2.4: Inline Code Documentation
Generate language-appropriate inline documentation:
Python (Docstrings — Google style):
def process_data(input_path: str, options: dict | None = None) -> ProcessResult:
"""Process data from the given file path.
Reads the input file, applies transformations based on the provided
options, and returns a structured result object.
Args:
input_path: Absolute path to the input data file.
Supports CSV, JSON, and Parquet formats.
options: Optional configuration dictionary.
- "validate" (bool): Enable input validation. Defaults to True.
- "format" (str): Output format ("json" or "csv"). Defaults to "json".
Returns:
A ProcessResult containing the transformed data and metadata.
Raises:
FileNotFoundError: If input_path does not exist.
ValidationError: If validation is enabled and data is malformed.
Example:
>>> result = process_data("/data/input.csv", {"validate": True})
>>> print(result.row_count)
1500
"""TypeScript (JSDoc / TSDoc):
/**
* Fetches user data from the API and transforms it for display.
*
* @param userId - The unique identifier of the user
* @param options - Configuration options for the fetch operation
* @param options.includeProfile - Whether to include the full profile. Defaults to `false`.
* @param options.cache - Cache duration in seconds. Set to `0` to disable.
* @returns The transformed user data ready for rendering
* @throws {NotFoundError} When the user ID does not exist
* @throws {NetworkError} When the API is unreachable
*
* @example
* ```ts
* const user = await fetchUser("usr_123", { includeProfile: true });
* console.log(user.displayName);
* ```
*/Go (GoDoc):
// ProcessData reads the input file at the given path, applies the specified
// transformations, and returns the processed result.
//
// The input path must be an absolute path to a CSV or JSON file.
// If options is nil, default options are used.
//
// ProcessData returns an error if the file does not exist or cannot be parsed.
func ProcessData(inputPath string, options *ProcessOptions) (*Result, error) {Phase 3: Quality Assurance
Step 3.1: Documentation Completeness Check
Verify the documentation covers:
- What it is — Clear project description that a newcomer can understand
- Why it exists — Problem it solves and value proposition
- How to install — Copy-paste-ready installation commands
- How to use — At least one minimal working example
- API surface — All public functions, classes, and types documented
- Configuration — All environment variables, config files, and options
- Error handling — Common errors and how to resolve them
- Contributing — How to set up dev environment and submit changes
Step 3.2: Quality Standards
| Standard | Check |
| Accuracy | Every code example must actually work with the described API |
| Completeness | No public API surface left undocumented |
| Consistency | Same formatting and structure throughout |
| Freshness | Documentation matches the current code, not an older version |
| Accessibility | No jargon without explanation, acronyms defined on first use |
| Examples | Every complex concept has at least one practical example |
Step 3.3: Cross-reference Validation
Ensure:
- All mentioned file paths exist in the project
- All referenced functions and classes exist in the code
- All code examples use the correct function signatures
- Version numbers match the project's actual version
- All links (internal and external) are valid
Documentation Style Guide
Writing Principles
- Lead with the "why" — Before explaining how something works, explain why it exists
- Progressive disclosure — Start simple, add complexity gradually
- Show, don't tell — Prefer code examples over lengthy explanations
- Active voice — "The function returns X" not "X is returned by the function"
- Present tense — "The server starts on port 8080" not "The server will start on port 8080"
- Second person — "You can configure..." not "Users can configure..."
Formatting Rules
- Use ATX-style headers (
#,##,###) - Use fenced code blocks with language specification (
```python,```bash) - Use tables for structured information (parameters, options, configuration)
- Use admonitions for important notes, warnings, and tips
- Keep line length readable (wrap prose at ~80-100 characters in source)
- Use
code formattingfor function names, file paths, variable names, and CLI commands
Language-Specific Conventions
| Language | Doc Format | Style Guide |
| Python | Google-style docstrings | PEP 257 |
| TypeScript/JavaScript | TSDoc / JSDoc | TypeDoc conventions |
| Go | GoDoc comments | Effective Go |
| Rust | Rustdoc (///) | Rust API Guidelines |
| Java | Javadoc | Oracle Javadoc Guide |
| C/C++ | Doxygen | Doxygen manual |
Output Handling
After generation:
- Save documentation files to
/mnt/user-data/outputs/ - For multi-file documentation, maintain the project directory structure
- Present generated files to the user using the
present_filestool - Offer to iterate on specific sections or adjust the level of detail
- Suggest additional documentation that might be valuable
Notes
- Always analyze the actual code before writing documentation — never guess at API signatures or behavior
- When existing documentation exists, preserve its structure unless the user explicitly asks for a rewrite
- For large codebases, prioritize documenting the public API surface and key abstractions first
- Documentation should be written in the same language as the project's existing docs; default to English if none exist
- When generating changelogs, use the Keep a Changelog format
- This skill works well in combination with the
deep-researchskill for documenting third-party integrations or dependencies
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

