brainstorming
Structured design dialogue that validates ideas before implementation begins.
docgen
從專案來源產生使用說明文件。 使用時機:「產生文件」、「建立速查表」、「使用指南」、「功能參考」、「列出所有功能」 關鍵字:documentation, usage, reference, cheatsheet, features, 功能文件, 速查表, 使用說明
Full skill instructions
Language: English | 繁體中文
版本: 1.0.0 最後更新: 2026-01-26 適用範圍: Claude Code Skills
自動從專案來源檔案產生完整的使用說明文件。此技能會建立:
支援多語言(英文、繁體中文、簡體中文),並掃描各種來源:
node scripts/generate-usage-docs.mjs
node scripts/generate-usage-docs.mjs --lang=en # 僅英文
node scripts/generate-usage-docs.mjs --lang=zh-TW # 繁體中文
node scripts/generate-usage-docs.mjs --lang=zh-CN # 簡體中文
node scripts/generate-usage-docs.mjs --cheatsheet # 僅速查表
node scripts/generate-usage-docs.mjs --reference # 僅參考手冊
# 檢查文件是否需要更新
node scripts/generate-usage-docs.mjs --check
# 或使用同步檢查腳本
./scripts/check-usage-docs-sync.sh # 檢查
./scripts/check-usage-docs-sync.sh --fix # 需要時修復
產生器使用專案根目錄的 .usage-docs.yaml 來定義:
# .usage-docs.yaml - 完整 UDS 配置
version: "1.0"
output:
directory: "docs/"
formats: [reference, cheatsheet]
languages: [en, zh-TW, zh-CN]
paths:
en: "docs/"
zh-TW: "locales/zh-TW/docs/"
zh-CN: "locales/zh-CN/docs/"
sources:
cli:
enabled: true
entry: "cli/bin/uds.js"
skills:
enabled: true
directory: "skills/"
pattern: "**/SKILL.md"
僅需要英文文件的專案:
# .usage-docs.yaml - 僅英文
version: "1.0"
output:
directory: "docs/"
formats: [reference, cheatsheet]
languages:
- en
paths:
en: "docs/"
sources:
cli:
enabled: true
entry: "src/cli.js"
不同語言需求的專案(例如:英文 + 日文):
# .usage-docs.yaml - 英文 + 日文
version: "1.0"
output:
directory: "docs/"
formats: [reference, cheatsheet]
languages:
- en
- ja
paths:
en: "docs/"
ja: "docs/ja/"
templates:
reference:
title:
en: "My Project Reference"
ja: "プロジェクトリファレンス"
cheatsheet:
title:
en: "My Project Cheatsheet"
ja: "チートシート"
產生器實作智慧 fallback 機制處理標題和路徑:
| 優先順序 | 來源 | 說明 |
|---|---|---|
| 1 | config[lang] | 特定語言的配置值 |
| 2 | config.en | 配置中的英文 fallback |
| 3 | 內建預設值 | 支援語言的硬編碼預設值 |
內建支援的語言:en、zh-TW、zh-CN
對於不支援的語言,您必須在 templates 區塊中提供自訂標題。
| 語言 | FEATURE-REFERENCE | CHEATSHEET |
|---|---|---|
| English | docs/FEATURE-REFERENCE.md | docs/CHEATSHEET.md |
| 繁體中文 | locales/zh-TW/docs/FEATURE-REFERENCE.md | locales/zh-TW/docs/CHEATSHEET.md |
| 简体中文 | locales/zh-CN/docs/FEATURE-REFERENCE.md | locales/zh-CN/docs/CHEATSHEET.md |
將使用說明文件同步檢查加入 pre-release-check.sh:
# 檢查使用說明文件同步
echo "Checking usage documentation sync..."
./scripts/check-usage-docs-sync.sh
┌─────────────────────────────────────────────────────────┐
│ 文件產生器 │
├─────────────────────────────────────────────────────────┤
│ │
│ 1. 載入配置 (.usage-docs.yaml) │
│ │ │
│ ▼ │
│ 2. 掃描來源 │
│ ├─ CLI 指令 (uds.js) │
│ ├─ 技能 (SKILL.md 檔案) │
│ ├─ 命令 (斜線命令) │
│ ├─ 代理 (代理定義) │
│ ├─ 工作流程 (工作流程檔案) │
│ ├─ 核心規範 (core/*.md) │
│ └─ 腳本 (scripts/*.sh) │
│ │ │
│ ▼ │
│ 3. 產生文件 │
│ ├─ FEATURE-REFERENCE.md(詳細版) │
│ └─ CHEATSHEET.md(速查表) │
│ │ │
│ ▼ │
│ 4. 輸出各語言版本 │
│ ├─ 英文 (docs/) │
│ ├─ 繁體中文 (locales/zh-TW/docs/) │
│ └─ 簡體中文 (locales/zh-CN/docs/) │
│ │
└─────────────────────────────────────────────────────────┘
此技能設計為可重用。在你的專案中使用:
複製配置範本:
cp .usage-docs.yaml your-project/.usage-docs.yaml
修改為你的專案結構:
複製產生器腳本:
cp scripts/generate-usage-docs.mjs your-project/scripts/
執行產生器:
node scripts/generate-usage-docs.mjs
| 版本 | 日期 | 變更 |
|---|---|---|
| 1.0.0 | 2026-01-26 | 初始發布,支援多語言 |
此技能以 CC BY 4.0 授權釋出。
Structured design dialogue that validates ideas before implementation begins.
Comprehensive design intelligence for web and mobile UI/UX across 10 technology stacks.
Comprehensive implementation plans for multi-step tasks, breaking down specs into bite-sized, testable steps.
Introduction to the obra skills system with mandatory skill invocation rules and best practices.
Execute a written implementation plan with critical review and task checkpoints.
Delegate independent tasks to specialized agents working concurrently with isolated context.
Isolated git worktrees with smart directory selection and safety verification.
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
Plan searchable and shareable content that drives traffic, builds authority, and generates leads.
README-first repository scanner that extracts commands and classifies reproduction candidates without executing them.
Brainstorm and prioritize marketing strategies tailored to your SaaS stage, budget, and goals.
Plan and optimize your website's page hierarchy, navigation, URL structure, and internal linking.
The world's fastest calendar for remote work
Capture, organize, and utilize your knowledge effortlessly.
Instant Summaries of Audio & Video Interviews with AnySummary
Transform PDFs into engaging mind maps.
Chat with any PDF instantly
Create an optimal daily plan using your voice
A productivity platform to centralize organizational knowledge and workflows with contextual AI assistance.
AskYourPDF Pricing Plans: Tailored to Your Needs