一键导入
document
Generate feature documentation by analyzing code changes and specifications — creates markdown docs in docs/core/ with conditional context
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate feature documentation by analyzing code changes and specifications — creates markdown docs in docs/core/ with conditional context
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Create GitHub pull requests — picks the most token-efficient available method (gh CLI, GitHub MCP, or git push), and sources the PR body from an existing spec/plan instead of re-analyzing the diff
Prime — load project context by reading docs, the docs_context layer, core docs, and TODO before starting any task
Feature planning — research codebase, design options, write a structured spec/implementation plan to the project specs directory
Bootstrap any project's AI workspace — detect the current tool, extract hardcoded paths from skill/command/agent files, write a central workspace.md, update all files to use config keys
Build or refresh the codebase graph indexes (codebase-memory-mcp structural index + graphify semantic graph) that other skills read from. The single writer — idempotent, incremental, safe to call repeatedly.
Group git changes by logical concern and generate a commit message for each group — follows Conventional Commits 1.0.0 and commitlint rules
| name | document |
| description | Generate feature documentation by analyzing code changes and specifications — creates markdown docs in docs/core/ with conditional context |
| metadata | {"phase":"document","input":"[adw_id] [spec_path] [screenshots_dir] — all optional; generates docs based on git diff analysis","output":"path to created documentation file; updates doc_dictionary.md registry","dependencies":"the tool's workspace file, if configured via central-workspace — informational only, not directly loaded or searched by this skill"} |
Generate concise markdown documentation for implemented features by analyzing code changes and specifications.
Use this skill when the user:
docs/core/ or the context dictionary after finishing a featureadw_id: Identifier like adw-42 (optional)spec_path: Path to specification file (optional)screenshots_dir: Directory containing screenshot files (optional)Parse arguments in order: if first arg looks like adw-*, treat as adw_id; next arg is spec_path; next is screenshots_dir.
The dictionary at docs_dictionary_file (default: .docs/doc_dictionary.md) has two sections
with two writers. This skill owns ## Features only. central-workspace owns
## Core Context — never write, reorder, or delete that section.
Check if docs_dictionary_file exists:
## Features only.central-workspace
to populate ## Core Context (this skill does not know the project's configured paths).# Context Dictionary
The map of this project's documentation. Read this file first, then load only what the task
needs — see `# WORKSPACE` → Context Loading for tiers, reader roles, and rules.
## Core Context
<!-- Owned by `central-workspace`. Run it to populate. -->
## Features
<!-- Auto-generated by `document` — one entry per feature. Do not hand-edit. -->
git diff origin/main --stat to see files changed and lines modifiedgit diff origin/main --name-only to get the list of changed filesgit diff origin/main <file> on specific files to understand implementation detailsIf spec_path is provided:
If screenshots_dir is provided:
docs/assets/ subdirectory if it doesn't exist*.png files from screenshots_dir to docs/assets/assets/screenshot-name.png)Create a new documentation file in docs/core/ following this format:
feature-{descriptive-name}.md
feature-{adw_id}-{descriptive-name}.md (if adw_id provided)
# <Feature Title>
**ADW ID:** <adw_id or omit>
**Date:** <current date>
**Specification:** <spec_path or "N/A">
## Overview
<2-3 sentence summary of what was built and why>
## Screenshots
<If screenshots provided>

## What Was Built
- <Component/feature 1>
- <Component/feature 2>
## Technical Implementation
- <Brief description of how the feature was implemented, key classes, methods, and workflows>
- <Any important design decisions or trade-offs>
- <Any relevant diagrams in Mermaid format if applicable>
- <Any relevant code patterns, algorithms, or data structures used>
### Files Modified
- `<file_path>`: <what was changed/added>
### Key Changes
<Describe the most important technical changes in 3-5 bullet points>
## How to Use
1. <Step 1>
2. <Step 2>
## Configuration
<Any configuration options, environment variables, or settings>
## Testing
<Brief description of how to test the feature>
## Notes
<Any additional context, limitations, or future considerations>
Check docs_context (default: docs/CONTEXT.md).
architecture skill's full codebase scan is for.architecture's full-scan runs, or a human edit.docs_dictionary_file## Features — never under ## Core Context### <Feature Name>
**File:** `core_docs_dir/feature-{name}.md`
**When to load:** <condition description>
**Keywords:** <comma-separated keywords for matching>
**Files:** <comma-separated paths or globs this feature touches, from Step 2's changed-file list>
Every agent's Tier 1 matching depends entirely on entry quality, so all three match fields are required and must be specific:
Keywords — the terms someone would actually use to describe this task. Not generic
("service", "handler"); distinctive ("checkout retry", "webhook signing").Files — real paths or globs from Step 2's changed-file list. This lets file-path-driven
skills (e.g. analyzing a specific file) match without keyword overlap.When to load — a condition, not a restatement of the title.A vague entry is worse than none: it drags irrelevant docs into context on every loosely-related task. If a feature is too small or generic to yield distinctive keywords, don't register it.
docs/TODO.md exists, check if any tasks reference this feature and mark them completeREADME.md should mention it — a new top-level capability or user-visible behavior, not an internal refactor or implementation detail. If so, note a suggested one-line addition in the Output below. Never edit README.md directly — it's human-voiced prose; only README.md's author should decide wording, ordering, and whether it's worth mentioning at all.Return exclusively the path to the documentation file created.
If documentation includes diagrams, represent them in Mermaid format.
If Step 8.2 found something README-worthy, append it after the path:
Suggested README.md addition: <one-line summary of the new capability>
Example output:
docs/core/feature-adw-42-cover-photo-improvements.md