/universal-dev-standards:docgen [config file | 設定檔]from universal-dev-standards
Generates usage documentation (cheatsheets, references, guides) from project source files. Reads a config file, scans sources, and produces formatted output.
Ships in universal-dev-standards. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Generate usage documentation (cheatsheets, references, guides) from project source files.
從專案原始檔案產生使用文件(速查表、參考手冊、使用指南)。
.usage-docs.yaml (or specified config file)# .usage-docs.yaml
output_dir: docs/generated/
formats:
- cheatsheet
- reference
sources:
- path: skills/commands/
type: commands
- path: cli/src/commands/
type: cli
language: [en, zh-TW]
| Type | Description | 說明 |
|---|---|---|
| cheatsheet | Quick reference card with commands and shortcuts | 速查表,列出命令與快捷方式 |
| reference | Comprehensive feature reference with all options | 完整功能參考手冊含所有選項 |
| usage-guide | Step-by-step usage guide for new users | 新手入門的逐步使用指南 |
/docgen - Generate docs using default .usage-docs.yaml/docgen .usage-docs.yaml - Generate docs from specified config file/docgen --format cheatsheet - Generate cheatsheet onlyVerify that generated documentation is up to date with source files.
驗證產生的文件是否與原始檔案保持同步。
Usage | 使用方式:
# Check if generated docs are in sync
./scripts/check-usage-docs-sync.sh
# Auto-fix out-of-sync docs
./scripts/check-usage-docs-sync.sh --fix
--fix): Automatically regenerates out-of-date documentation files.Note | 注意: This check is integrated into
pre-release-check.shas Step 8 (Usage docs sync check).此檢查已整合至
pre-release-check.sh的步驟 8(使用文件同步檢查)。
# UDS Command Cheatsheet
| Command | Description |
|------------|---------------------------|
| /commit | Generate commit message |
| /code-review | Run code review |
| /sdd | Create SDD specification |
| /discover | Assess project health |
After /docgen completes, the AI assistant should suggest:
文件已產生。建議下一步 / Documentation generated. Suggested next steps:
- 審查產生的文件內容是否完整 — Review generated content for completeness
- 執行
/commit提交文件變更 ⭐ Recommended / 推薦 — Commit documentation changes- 執行
/code-review審查文件品質 — Review documentation quality
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
docgen, usage-docs, cheatsheet, reference, generated-documentation
asiaostrich-universal-dev-standards@cascade-code-general-misc-3 is listed by joshuarweaver/cascade-code-general-misc-3 — review the source before installing
npx claudepluginhub joshuarweaver/cascade-code-general-misc-3 --plugin asiaostrich-universal-dev-standards57 skills in this plugin
/ac-coverage[UDS] Analyze AC-to-test traceability and generate requirement-level coverage reports.
Use when: auditing which acceptance criteria have tests, building a traceability matrix from a SPEC file, finding uncovered AC before release.
Not for: code-level line/branch/function coverage — use /coverage; writing the missing tests — use /tdd or /spec-derive.
Keywords: AC coverage, traceability, acceptance criteria, SPEC, traceability matrix, 驗收條件, 需求追蹤, 覆蓋率矩陣.
/adr[UDS] Create, manage, and track Architecture Decision Records (ADR).
Use when: architecture decisions, technology choices, design trade-offs, pattern selection.
Not for: decisions that do not change architecture — record them in the spec or commit; ideas not yet formed enough to decide — use /brainstorm.
Keywords: ADR, architecture decision, decision record, trade-off.
/ai-collaboration-standardsOther plugins' skills for the same job