Skip to content
Back to skills

Docs Generator

ASecurity

[UDS] 從專案原始檔案產生使用文件(速查表、參考手冊、使用指南)

  • 75 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 4, 2026
developmentbashcode-review

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 4, 2026

npx -y skills add AsiaOstrich/universal-dev-standards --skill docs-generator --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Docs Generator?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Docs Generator
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/asiaostrich-docs-generator-0d7def51/badge)](https://www.skillsdirectory.com/skills/asiaostrich-docs-generator-0d7def51)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
source: ../../../../skills/docs-generator/SKILL.md
source_version: 1.0.0
translation_version: 1.0.0
last_synced: 2026-02-10
status: current
description: "[UDS] 從專案原始檔案產生使用文件(速查表、參考手冊、使用指南)"
name: docgen
allowed-tools: Read, Write, Grep, Glob, Bash(*)
scope: uds-specific
argument-hint: "[config file | 設定檔]"
disable-model-invocation: true
---

# 文件產生器

> **語言**: [English](../../../../skills/docs-generator/SKILL.md) | 繁體中文

從專案原始檔案產生使用文件(速查表、參考手冊、使用指南)。

## 工作流程

1. **讀取設定** - 載入 `.usage-docs.yaml`(或指定的設定檔)
2. **掃描來源** - 讀取原始碼檔案、命令和技能定義
3. **提取內容** - 從原始碼解析描述、選項、範例
4. **產生文件** - 以設定的格式產生輸出
5. **寫入輸出** - 將產生的檔案儲存到設定的輸出目錄

## 設定檔格式

```yaml
# .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]
```

## 輸出類型

| 類型 | 說明 |
|------|------|
| **cheatsheet** | 速查表,包含命令和快捷鍵 |
| **reference** | 完整功能參考手冊,包含所有選項 |
| **usage-guide** | 新手入門使用指南 |

## 使用方式

- `/docgen` - 使用預設的 `.usage-docs.yaml` 產生文件
- `/docgen .usage-docs.yaml` - 從指定的設定檔產生文件
- `/docgen --format cheatsheet` - 僅產生速查表

## 下一步引導

`/docgen` 完成後,AI 助手應建議:

> **文件已產生。建議下一步:**
> - 審查產生的文件內容是否完整
> - 執行 `/commit` 提交文件變更
> - 執行 `/code-review` 審查文件品質

## 參考

- 詳細指南:[guide.md](./guide.md)

Files in this skill

  • SKILL.md1.9 KB
  • guide.md7.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…