universal-dev-standards 3.5.1-beta.18 → 3.5.1-beta.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  description: Verify standards adoption status
3
3
  allowed-tools: Read, Bash(uds check:*), Bash(npx:*), Bash(ls:*)
4
- argument-hint: "[--offline | --restore]"
4
+ argument-hint: "[--offline | --restore | --summary]"
5
5
  ---
6
6
 
7
7
  # Check Standards | 檢查標準
@@ -13,9 +13,12 @@ Verify the adoption status of Universal Development Standards in the current pro
13
13
  ## Quick Start | 快速開始
14
14
 
15
15
  ```bash
16
- # Basic check
16
+ # Basic check (with interactive mode for issues)
17
17
  uds check
18
18
 
19
+ # Compact summary for quick status
20
+ uds check --summary
21
+
19
22
  # Check without network access
20
23
  uds check --offline
21
24
 
@@ -23,29 +26,18 @@ uds check --offline
23
26
  uds check --restore
24
27
  ```
25
28
 
26
- ## Options | 選項
27
-
28
- | Option | Description | 說明 |
29
- |--------|-------------|------|
30
- | `--summary` | Show compact status summary | 顯示精簡狀態摘要 |
31
- | `--offline` | Skip npm registry check | 跳過 npm registry 檢查 |
32
- | `--diff` | Show diff for modified files | 顯示修改檔案的差異 |
33
- | `--restore` | Restore all modified and missing files | 還原所有修改和遺失的檔案 |
34
- | `--restore-missing` | Restore only missing files | 僅還原遺失的檔案 |
35
- | `--migrate` | Migrate legacy manifest to hash-based tracking | 遷移舊版 manifest |
36
-
37
- ## Output Sections | 輸出區段
29
+ ## Output Modes | 輸出模式
38
30
 
39
31
  ### Summary Mode (--summary) | 摘要模式
40
32
 
41
- When using `--summary`, shows compact status for use by other commands:
33
+ Shows compact status for quick overview:
42
34
 
43
- 使用 `--summary` 時,顯示供其他命令使用的精簡狀態:
35
+ 顯示精簡狀態供快速瀏覽:
44
36
 
45
37
  ```
46
38
  UDS Status Summary
47
39
  ──────────────────────────────────────────────────
48
- Version: 3.5.1-beta.16
40
+ Version: 3.5.1-beta.16 → 3.5.1-beta.18 ⚠
49
41
  Level: 2 - Recommended (推薦)
50
42
  Files: 12 ✓
51
43
  Skills: Claude Code ✓ | OpenCode ○
@@ -53,57 +45,127 @@ UDS Status Summary
53
45
  ──────────────────────────────────────────────────
54
46
  ```
55
47
 
48
+ ### Full Mode (Default) | 完整模式
49
+
50
+ Shows detailed information including:
51
+ - Adoption status (level, version, install date)
52
+ - File integrity (unchanged/modified/missing counts)
53
+ - Skills integrity (if tracked in manifest)
54
+ - Commands integrity (if tracked in manifest)
55
+ - Integration blocks integrity
56
+ - Reference sync status
57
+ - AI tool integration files coverage
58
+ - Coverage report
59
+
60
+ ## Interactive Mode | 互動模式
61
+
62
+ When issues are detected (modified/missing files), CLI automatically enters interactive mode:
63
+
64
+ 當偵測到問題時,CLI 自動進入互動模式:
65
+
66
+ ```
67
+ ──────────────────────────────────────────────────
68
+ ⚠ Modified: .standards/commit-message-guide.md
69
+
70
+ ? What would you like to do?
71
+ ❯ View diff
72
+ Restore original
73
+ Keep current (update hash)
74
+ Skip
75
+ ```
76
+
77
+ **Available actions:**
78
+
79
+ | Action | Description |
80
+ |--------|-------------|
81
+ | **View diff** | Show differences between current and original |
82
+ | **Restore original** | Replace with upstream version |
83
+ | **Keep current** | Accept modifications and update hash |
84
+ | **Skip** | Do nothing for this file |
85
+
86
+ For missing files:
87
+
88
+ | Action | Description |
89
+ |--------|-------------|
90
+ | **Restore** | Download and restore from upstream |
91
+ | **Remove from tracking** | Remove from manifest |
92
+ | **Skip** | Do nothing for this file |
93
+
94
+ ## Options | 選項
95
+
96
+ | Option | Description | 說明 |
97
+ |--------|-------------|------|
98
+ | `--summary` | Show compact status summary | 顯示精簡狀態摘要 |
99
+ | `--offline` | Skip npm registry check | 跳過 npm registry 檢查 |
100
+ | `--diff` | Show diff for modified files | 顯示修改檔案的差異 |
101
+ | `--restore` | Restore all modified and missing files | 還原所有修改和遺失的檔案 |
102
+ | `--restore-missing` | Restore only missing files | 僅還原遺失的檔案 |
103
+ | `--migrate` | Migrate legacy manifest to hash-based tracking | 遷移舊版 manifest |
104
+
105
+ ## Output Sections | 輸出區段
106
+
56
107
  ### Adoption Status | 採用狀態
108
+
57
109
  - Adoption level (1-3)
58
110
  - Installation date
59
111
  - Installed version
112
+ - Update availability
60
113
 
61
114
  ### File Integrity | 檔案完整性
62
- - Checks all expected files exist
63
- - Reports missing or modified files
64
- - Shows count of present vs missing
65
115
 
66
- ### Skills Status | Skills 狀態
67
- - Installation location (Marketplace, User, Project)
68
- - Version information
69
- - Migration suggestions if applicable
116
+ Shows status for each tracked file:
70
117
 
71
- ### Skills Verification | Skills 驗證
118
+ | Symbol | Meaning | 意義 |
119
+ |--------|---------|------|
120
+ | ✓ (green) | Unchanged | 未變更 |
121
+ | ⚠ (yellow) | Modified | 已修改 |
122
+ | ✗ (red) | Missing | 遺失 |
123
+ | ? (gray) | Exists but no hash | 存在但無 hash |
72
124
 
73
- After displaying `uds check` results, verify Skills installation by checking actual paths.
125
+ Summary format: `{unchanged} unchanged, {modified} modified, {missing} missing`
74
126
 
75
- 顯示 `uds check` 結果後,透過檢查實際路徑來驗證 Skills 安裝。
127
+ ### Skills Integrity (v3.3.0+) | Skills 完整性
76
128
 
77
- **For each AI tool showing "✓ installed", run diagnostic commands:**
129
+ If `skillHashes` exist in manifest, checks:
130
+ - File existence at expected paths
131
+ - Hash comparison for modifications
78
132
 
79
- 針對每個顯示「✓ 已安裝」的 AI 工具,執行診斷命令:
133
+ ### Commands Integrity (v3.3.0+) | Commands 完整性
80
134
 
81
- | AI Tool | Skills Path | Diagnostic Command |
82
- |---------|-------------|-------------------|
83
- | Claude Code | `.claude/skills/` | `ls -la .claude/skills/ 2>/dev/null \|\| echo "Not found"` |
84
- | OpenCode | `.opencode/skill/` | `ls -la .opencode/skill/ 2>/dev/null \|\| echo "Not found"` |
85
- | GitHub Copilot | `.github/skills/` | `ls -la .github/skills/ 2>/dev/null \|\| echo "Not found"` |
86
- | Cursor | `.cursor/skills/` | `ls -la .cursor/skills/ 2>/dev/null \|\| echo "Not found"` |
135
+ If `commandHashes` exist in manifest, checks:
136
+ - File existence at expected paths
137
+ - Hash comparison for modifications
87
138
 
88
- **Expected output for valid installation:**
89
- - Should see skill directories (e.g., `commit-standards/`, `testing-guide/`)
90
- - Each skill directory should contain `SKILL.md`
139
+ ### Integration Blocks Integrity (v3.3.0+) | 整合區塊完整性
91
140
 
92
- **有效安裝的預期輸出:**
93
- - 應看到 skill 目錄(如 `commit-standards/`、`testing-guide/`)
94
- - 每個 skill 目錄應包含 `SKILL.md`
141
+ If `integrationBlockHashes` exist in manifest, checks:
142
+ - UDS marker block presence
143
+ - Block content hash (user customizations outside blocks are preserved)
95
144
 
96
- **If directory is empty or not found:**
97
- - Skills are NOT actually installed
98
- - Run `/update` and select "Install All" to install
145
+ ### Skills Status | Skills 狀態
99
146
 
100
- **如果目錄為空或不存在:**
101
- - Skills 實際上未安裝
102
- - 執行 `/update` 並選擇「全部安裝」
147
+ Shows installation status for each configured AI tool:
148
+
149
+ ```
150
+ Skills Status
151
+ Claude Code:
152
+ ✓ Skills installed:
153
+ - User level: ~/.claude/skills/
154
+ Version: 3.5.1
155
+ ✓ Commands: 7 installed
156
+ Path: .opencode/commands/
157
+ ```
158
+
159
+ Status indicators:
160
+ - ✓ installed (green) - Skills/Commands are installed
161
+ - ○ not installed (gray) - Not installed
103
162
 
104
163
  ### Coverage Summary | 覆蓋率摘要
105
- - Required standards count for current level
106
- - Skills vs reference document coverage
164
+
165
+ Shows standards coverage:
166
+ - Required standards for current level
167
+ - Standards covered by Skills
168
+ - Standards covered by reference documents
107
169
 
108
170
  ## Status Indicators | 狀態指示
109
171
 
@@ -112,6 +174,7 @@ After displaying `uds check` results, verify Skills installation by checking act
112
174
  | ✓ (green) | All good | 一切正常 |
113
175
  | ⚠ (yellow) | Warning, action recommended | 警告,建議採取行動 |
114
176
  | ✗ (red) | Error, action required | 錯誤,需要採取行動 |
177
+ | ○ (gray) | Not installed/configured | 未安裝/配置 |
115
178
 
116
179
  ## Common Issues | 常見問題
117
180
 
@@ -127,16 +190,29 @@ After displaying `uds check` results, verify Skills installation by checking act
127
190
  **"Modified files detected"**
128
191
  - Run `/check --diff` to see changes
129
192
  - Run `/check --restore` to reset to original
193
+ - Or use interactive mode to handle each file
194
+
195
+ **"Skills not installed"**
196
+ - Run `/update` to install missing Skills
197
+ - Or run `/config skills` to manage Skills
198
+
199
+ **"Legacy manifest detected"**
200
+ - Run `uds check --migrate` to upgrade to hash-based tracking
130
201
 
131
202
  ## Usage | 使用方式
132
203
 
133
- - `/check` - Check current adoption status
134
- - `/check --offline` - Check without network access
135
- - `/check --restore` - Restore modified/missing files
136
- - `/check --diff` - Show file differences
204
+ ```bash
205
+ /check # Full check with interactive mode
206
+ /check --summary # Quick status overview
207
+ /check --offline # Check without network access
208
+ /check --restore # Restore modified/missing files
209
+ /check --diff # Show file differences
210
+ /check --migrate # Upgrade manifest format
211
+ ```
137
212
 
138
213
  ## Reference | 參考
139
214
 
140
215
  - CLI documentation: `uds check --help`
141
216
  - Init command: [/init](./init.md)
142
217
  - Update command: [/update](./update.md)
218
+ - Config command: [/config](./config.md)
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  description: Configure project development standards
3
- allowed-tools: Read, Bash(uds config:*), Bash(uds configure:*)
4
- argument-hint: "[type]"
3
+ allowed-tools: Read, Bash(uds config:*), Bash(uds configure:*), Bash(uds check:*)
4
+ argument-hint: "[type] [--ai-tool <tool>]"
5
5
  ---
6
6
 
7
7
  # Config Standards | 設定標準
@@ -34,50 +34,75 @@ This helps users understand what's currently configured before making changes.
34
34
 
35
35
  Use AskUserQuestion with these options:
36
36
 
37
- | Option | Description |
38
- |--------|-------------|
37
+ | Category | Options |
38
+ |----------|---------|
39
+ | **Basic Options** | Format, Git Workflow, Merge Strategy, Commit Language, Test Levels |
39
40
  | **AI Tools** | Add or remove AI tool integrations |
40
- | **Adoption Level** | Change adoption level (1/2/3) |
41
- | **Content Mode** | Change how much content is embedded |
42
- | **Other Options** | Format, workflow, merge strategy, etc. |
41
+ | **Skills** | Manage Skills installations (install/update/reinstall declined) |
42
+ | **Commands** | Manage Commands installations |
43
+ | **Advanced** | Adoption Level, Content Mode |
44
+ | **All** | Configure all options |
43
45
 
44
46
  ### Step 2: Execute Based on Selection | 步驟 2:根據選擇執行
45
47
 
46
48
  **If AI Tools selected:**
47
49
  ```bash
48
- uds config --type ai_tools
50
+ uds configure --type ai_tools
51
+ ```
52
+
53
+ **If Skills selected:**
54
+ ```bash
55
+ uds configure --type skills
56
+ ```
57
+
58
+ **If Commands selected:**
59
+ ```bash
60
+ uds configure --type commands
49
61
  ```
50
62
 
51
63
  **If Adoption Level selected:**
52
- Ask which level (1/2/3), then:
53
64
  ```bash
54
- uds config --type level
65
+ uds configure --type level
55
66
  ```
56
67
 
57
68
  **If Content Mode selected:**
58
- Ask which mode (full/index/minimal), then:
59
69
  ```bash
60
- uds config --type content_mode
70
+ uds configure --type content_mode
61
71
  ```
62
72
 
63
- **If Other Options selected:**
64
- Ask which specific option, then execute accordingly.
65
-
66
73
  ## Quick Mode | 快速模式
67
74
 
68
75
  When invoked with a specific type, skip interactive questions:
69
76
 
70
77
  ```bash
71
78
  /config ai_tools # Directly configure AI tools
79
+ /config skills # Directly manage Skills
80
+ /config commands # Directly manage Commands
72
81
  /config level # Directly configure adoption level
73
82
  /config content_mode # Directly configure content mode
74
83
  ```
75
84
 
85
+ ### Non-Interactive Installation | 非互動式安裝
86
+
87
+ Use `--ai-tool` option to install Skills/Commands for a specific tool without prompts:
88
+
89
+ 使用 `--ai-tool` 選項為特定工具安裝 Skills/Commands,無需提示:
90
+
91
+ ```bash
92
+ # Install Skills for specific tool
93
+ uds configure --type skills --ai-tool opencode
94
+
95
+ # Install Commands for specific tool
96
+ uds configure --type commands --ai-tool copilot
97
+ ```
98
+
76
99
  ## Configuration Types | 設定類型
77
100
 
78
101
  | Type | Description | 說明 |
79
102
  |------|-------------|------|
80
103
  | `ai_tools` | AI tool integrations | AI 工具整合 |
104
+ | `skills` | Skills installations | Skills 安裝管理 |
105
+ | `commands` | Commands installations | Commands 安裝管理 |
81
106
  | `level` | Adoption level (1/2/3) | 採用等級 |
82
107
  | `content_mode` | Integration file content mode | 整合檔案內容模式 |
83
108
  | `format` | AI/Human documentation format | AI/人類文件格式 |
@@ -85,8 +110,48 @@ When invoked with a specific type, skip interactive questions:
85
110
  | `merge_strategy` | Merge strategy | 合併策略 |
86
111
  | `commit_language` | Commit message language | 提交訊息語言 |
87
112
  | `test_levels` | Test levels to include | 測試層級 |
113
+ | `methodology` | Development methodology (experimental, requires -E) | 開發方法論(實驗性) |
88
114
  | `all` | Configure all options | 設定所有選項 |
89
115
 
116
+ ## Skills Configuration | Skills 配置
117
+
118
+ When selecting `skills` type, CLI shows:
119
+
120
+ 1. **Current Status** - Shows installed Skills for each AI tool
121
+ 2. **Declined Status** - Shows tools where user previously declined Skills
122
+ 3. **Action Menu**:
123
+ - Install/Update Skills
124
+ - Reinstall declined Skills
125
+ - View status only
126
+
127
+ ```
128
+ Current Skills status:
129
+ ✓ Claude Code:
130
+ - User: v3.5.1
131
+ ○ OpenCode: Not installed
132
+ ⊘ Copilot: Previously declined
133
+
134
+ ? What would you like to do?
135
+ ❯ Install/Update Skills
136
+ Reinstall declined Skills
137
+ View status only
138
+ Cancel
139
+ ```
140
+
141
+ ## Commands Configuration | Commands 配置
142
+
143
+ When selecting `commands` type, CLI shows:
144
+
145
+ 1. **Current Status** - Shows installed Commands for each supported tool
146
+ 2. **Declined Status** - Shows tools where user previously declined Commands
147
+ 3. **Action Menu** similar to Skills
148
+
149
+ Supported tools for Commands:
150
+ - OpenCode (`.opencode/commands/`)
151
+ - GitHub Copilot (`.github/commands/`)
152
+ - Gemini CLI (`.gemini/commands/`)
153
+ - Roo Code (`.roo-code/commands/`)
154
+
90
155
  ## Content Mode Options | 內容模式選項
91
156
 
92
157
  | Mode | Description | 說明 |
@@ -101,11 +166,35 @@ When invoked with a specific type, skip interactive questions:
101
166
  |---------------|--------|------|
102
167
  | AI Tools (add) | Generates new integration files | 產生新的整合檔案 |
103
168
  | AI Tools (remove) | Deletes integration files | 刪除整合檔案 |
169
+ | Skills | Installs/updates Skills to configured paths | 安裝/更新 Skills |
170
+ | Commands | Installs/updates Commands to configured paths | 安裝/更新 Commands |
104
171
  | Level | Updates standards, regenerates integrations | 更新標準,重新產生整合 |
105
172
  | Content Mode | Regenerates all integration files | 重新產生所有整合檔案 |
106
173
 
174
+ ## Declined Features | 拒絕的功能
175
+
176
+ The CLI tracks declined Skills/Commands in `manifest.declinedFeatures`:
177
+
178
+ CLI 在 `manifest.declinedFeatures` 中追蹤拒絕的 Skills/Commands:
179
+
180
+ - Previously declined tools won't appear in `/update` prompts
181
+ - Use `/config skills` or `/config commands` to reinstall declined features
182
+ - Select "Reinstall declined Skills/Commands" from the menu
183
+
184
+ 之前拒絕的工具不會在 `/update` 提示中出現。使用 `/config skills` 或 `/config commands` 重新安裝。
185
+
186
+ ## Options Reference | 選項參考
187
+
188
+ | Option | Description | 說明 |
189
+ |--------|-------------|------|
190
+ | `--type <type>` | Configuration type | 配置類型 |
191
+ | `--ai-tool <tool>` | Specific AI tool (non-interactive) | 特定 AI 工具(非互動式)|
192
+ | `--yes`, `-y` | Skip confirmation prompt | 跳過確認提示 |
193
+ | `-E`, `--experimental` | Enable experimental features | 啟用實驗性功能 |
194
+
107
195
  ## Reference | 參考
108
196
 
109
- - CLI documentation: `uds config --help`
197
+ - CLI documentation: `uds configure --help`
110
198
  - Init command: [/init](./init.md)
111
199
  - Check command: [/check](./check.md)
200
+ - Update command: [/update](./update.md)
@@ -16,70 +16,154 @@ When invoked without `--yes`, use AskUserQuestion to gather user preferences bef
16
16
 
17
17
  當不帶 `--yes` 執行時,使用 AskUserQuestion 詢問用戶偏好後再執行。
18
18
 
19
- ### Step 1: Ask Adoption Level | 步驟 1:詢問採用層級
19
+ ### Step 1: Detect Project | 步驟 1:偵測專案
20
20
 
21
- Use AskUserQuestion with these options:
21
+ First, CLI automatically detects project characteristics:
22
+ - Languages (JavaScript, TypeScript, Python, Go, etc.)
23
+ - Frameworks (React, Vue, Express, etc.)
24
+ - AI Tools (Claude Code, Cursor, Copilot, etc.)
25
+
26
+ 首先,CLI 會自動偵測專案特性。
27
+
28
+ ### Step 2: Ask AI Tools Selection | 步驟 2:詢問 AI 工具選擇
29
+
30
+ Use AskUserQuestion with multiSelect to ask which AI tools to configure:
31
+
32
+ 使用 AskUserQuestion(多選)詢問要配置哪些 AI 工具:
33
+
34
+ | AI Tool | Integration File | Skills Support | Commands Support |
35
+ |---------|-----------------|----------------|------------------|
36
+ | **Claude Code** | `CLAUDE.md` | ✅ | ❌ |
37
+ | **Cursor** | `.cursorrules` | ✅ | ❌ |
38
+ | **Windsurf** | `.windsurfrules` | ✅ | ❌ |
39
+ | **Cline** | `.clinerules` | ✅ | ❌ |
40
+ | **GitHub Copilot** | `.github/copilot-instructions.md` | ✅ | ✅ |
41
+ | **OpenCode** | `AGENTS.md` | ✅ | ✅ |
42
+ | **Gemini CLI** | `GEMINI.md` | ✅ | ✅ |
43
+ | **Codex** | `AGENTS.md` | ✅ | ❌ |
44
+ | **Antigravity** | `INSTRUCTIONS.md` | ✅ | ❌ |
45
+
46
+ Pre-select tools detected in the environment. Note: Codex and OpenCode share `AGENTS.md`.
47
+
48
+ 預選環境中偵測到的工具。注意:Codex 和 OpenCode 共用 `AGENTS.md`。
49
+
50
+ ### Step 3: Ask Skills Installation | 步驟 3:詢問 Skills 安裝
51
+
52
+ For tools that support Skills, use AskUserQuestion:
53
+
54
+ 對於支援 Skills 的工具,使用 AskUserQuestion:
55
+
56
+ | Option | Description |
57
+ |--------|-------------|
58
+ | **Plugin Marketplace** | Auto-updates, recommended for Claude Code |
59
+ | **Project Level** | Install to `.claude/skills/`, `.opencode/skill/`, etc. |
60
+ | **User Level** | Install to `~/.claude/skills/`, `~/.opencode/skill/`, etc. |
61
+ | **Skip** | Don't install Skills |
62
+
63
+ ### Step 4: Ask Commands Installation | 步驟 4:詢問 Commands 安裝
64
+
65
+ For tools that support Commands (OpenCode, Copilot, Gemini CLI, Roo Code), use AskUserQuestion with multiSelect:
66
+
67
+ 對於支援 Commands 的工具,使用多選介面:
68
+
69
+ ```
70
+ ? Select AI tools to install slash commands for:
71
+ ❯ ◉ OpenCode (.opencode/commands/)
72
+ ◉ GitHub Copilot (.github/commands/)
73
+ ◉ Gemini CLI (.gemini/commands/)
74
+ ──────────────
75
+ ◯ Skip Commands installation
76
+ ```
77
+
78
+ ### Step 5: Ask Standards Scope | 步驟 5:詢問標準範圍
79
+
80
+ Use AskUserQuestion:
81
+
82
+ | Option | Description |
83
+ |--------|-------------|
84
+ | **Minimal (Recommended with Skills)** | Reference-only standards; Skills handle the rest |
85
+ | **Full** | Include all standards as local files |
86
+
87
+ ### Step 6: Ask Adoption Level | 步驟 6:詢問採用層級
88
+
89
+ Use AskUserQuestion:
22
90
 
23
91
  | Option | Description |
24
92
  |--------|-------------|
25
- | **Recommended (Level 2)** | Professional quality for teams (Recommended) |
26
93
  | **Essential (Level 1)** | Minimum viable standards for small projects |
94
+ | **Recommended (Level 2)** | Professional quality for teams (Recommended) |
27
95
  | **Enterprise (Level 3)** | Comprehensive for regulated/enterprise projects |
28
96
 
29
- ### Step 2: Ask Skills Location | 步驟 2:詢問 Skills 安裝位置
97
+ ### Step 7: Ask Standards Format | 步驟 7:詢問標準格式
30
98
 
31
- Use AskUserQuestion with these options:
99
+ Use AskUserQuestion:
32
100
 
33
101
  | Option | Description |
34
102
  |--------|-------------|
35
- | **Plugin Marketplace** | Auto-updates, recommended for most users |
36
- | **User Level** | Install at ~/.claude/skills/ |
37
- | **Project Level** | Install at .claude/skills/ |
38
- | **Skip** | Don't install Skills |
103
+ | **AI (Compact)** | Optimized for AI consumption (Recommended) |
104
+ | **Human (Detailed)** | Readable format for humans |
105
+ | **Both** | Generate both formats |
106
+
107
+ ### Step 8: Ask Standard Options | 步驟 8:詢問標準選項
108
+
109
+ Based on adoption level, ask for:
110
+ - **Git Workflow**: github-flow, gitflow, trunk-based
111
+ - **Merge Strategy**: squash, merge, rebase
112
+ - **Commit Language**: english, traditional-chinese, bilingual
113
+ - **Test Levels**: unit-testing, integration-testing, e2e-testing
39
114
 
40
- ### Step 3: Ask AI Tools Selection | 步驟 3:詢問 AI 工具選擇
115
+ ### Step 9: Ask Language Extensions | 步驟 9:詢問語言擴展
41
116
 
42
- Use AskUserQuestion with multiSelect to ask which AI tools to install Skills/Commands for:
117
+ If languages detected, ask whether to include language-specific standards:
118
+ - C# Style Guide
119
+ - PHP Style Guide
120
+ - etc.
43
121
 
44
- 使用 AskUserQuestion(多選)詢問要為哪些 AI 工具安裝 Skills/Commands:
122
+ ### Step 10: Ask Framework Extensions | 步驟 10:詢問框架擴展
123
+
124
+ If frameworks detected, ask whether to include framework-specific patterns:
125
+ - Fat-Free Patterns
126
+ - etc.
127
+
128
+ ### Step 11: Ask Locale | 步驟 11:詢問地區設定
129
+
130
+ Use AskUserQuestion:
45
131
 
46
132
  | Option | Description |
47
133
  |--------|-------------|
48
- | **Claude Code** | Install Skills for Claude Code |
49
- | **OpenCode** | Install Skills + Commands for OpenCode |
50
- | **GitHub Copilot** | Install Skills + Commands for Copilot |
51
- | **Gemini CLI** | Install Skills + Commands for Gemini CLI |
52
- | **Skip** | Don't install for any tool |
134
+ | **English (Default)** | English documentation |
135
+ | **Traditional Chinese** | 繁體中文文件 |
53
136
 
54
- Note: Only show options for tools that are detected in the environment or commonly used.
137
+ ### Step 12: Ask Content Mode | 步驟 12:詢問內容模式
55
138
 
56
- ### Step 4: Execute | 步驟 4:執行
139
+ Use AskUserQuestion for integration file content:
57
140
 
58
- After collecting answers, execute initialization and tool-specific installations:
59
-
60
- 收集答案後,執行初始化和工具特定的安裝:
141
+ | Option | Description |
142
+ |--------|-------------|
143
+ | **Index (Recommended)** | Standards index with compliance instructions |
144
+ | **Full** | Embed all standards in integration files |
145
+ | **Minimal** | Only core rules embedded |
61
146
 
62
- **Initialize standards:**
63
- ```bash
64
- uds init --level <level> --skills-location <location> --yes
65
- ```
147
+ ### Step 13: Confirm and Execute | 步驟 13:確認並執行
66
148
 
67
- **Install for selected AI tools:**
68
- ```bash
69
- # For each selected tool
70
- uds configure --type skills --ai-tool <tool>
71
- uds configure --type commands --ai-tool <tool> # if tool supports commands
72
- ```
149
+ Show configuration summary and confirm before executing.
73
150
 
74
- Explain the results and next steps to the user.
151
+ After confirmation, CLI executes all installations in one operation:
152
+ - Copies standards to `.standards/`
153
+ - Generates integration files
154
+ - Installs Skills (if selected)
155
+ - Installs Commands (if selected)
156
+ - Creates `manifest.json`
75
157
 
76
158
  ## Quick Mode | 快速模式
77
159
 
78
160
  When invoked with `--yes` or specific options, skip interactive questions:
79
161
 
80
162
  ```bash
81
- /init --yes # Use defaults
82
- /init --level 2 --yes # Specific level with defaults
163
+ /init --yes # Use all defaults
164
+ /init --level 2 --yes # Specific level with defaults
165
+ /init --skills-location none # No Skills installation
166
+ /init --content-mode index # Specific content mode
83
167
  ```
84
168
 
85
169
  ## Options Reference | 選項參考
@@ -89,26 +173,31 @@ When invoked with `--yes` or specific options, skip interactive questions:
89
173
  | `--yes`, `-y` | Non-interactive mode | 非互動模式 |
90
174
  | `--level N` | Adoption level (1, 2, or 3) | 採用層級 |
91
175
  | `--skills-location` | marketplace, user, project, or none | Skills 位置 |
176
+ | `--content-mode` | full, index, or minimal | 內容模式 |
92
177
  | `--format` | ai, human, or both | 格式 |
178
+ | `-E`, `--experimental` | Enable experimental features (methodology) | 啟用實驗性功能 |
93
179
 
94
180
  See `uds init --help` for all options.
95
181
 
96
182
  ## Adoption Levels | 採用層級
97
183
 
98
- | Level | Name | Description | 說明 |
99
- |-------|------|-------------|------|
100
- | 1 | Essential | Minimum viable standards | 最基本的標準 |
101
- | 2 | Recommended | Professional quality for teams | 團隊專業品質標準 |
102
- | 3 | Enterprise | Comprehensive for regulated projects | 企業級完整標準 |
184
+ | Level | Name | Standards Count | Description | 說明 |
185
+ |-------|------|-----------------|-------------|------|
186
+ | 1 | Essential | 8 | Minimum viable standards | 最基本的標準 |
187
+ | 2 | Recommended | 12 | Professional quality for teams | 團隊專業品質標準 |
188
+ | 3 | Enterprise | 16 | Comprehensive for regulated projects | 企業級完整標準 |
103
189
 
104
190
  ## What Gets Installed | 安裝內容
105
191
 
106
192
  - `.standards/` directory with core standards
107
- - Integration files (`.cursorrules`, `CLAUDE.md`, etc.)
193
+ - Integration files (`CLAUDE.md`, `.cursorrules`, etc.)
108
194
  - Skills (via Plugin Marketplace or local installation)
195
+ - Commands (for supported AI tools)
109
196
  - `manifest.json` for tracking installation
110
197
 
111
198
  ## Reference | 參考
112
199
 
113
200
  - CLI documentation: `uds init --help`
114
201
  - Adoption guide: [ADOPTION-GUIDE.md](../../../adoption/ADOPTION-GUIDE.md)
202
+ - Check command: [/check](./check.md)
203
+ - Update command: [/update](./update.md)
@@ -77,7 +77,7 @@ Always include **Skip** option: Don't update at this time.
77
77
  - Option 1: "更新至 Beta (建議)" - "更新標準至 3.5.1-beta.15 版本(🟡 功能大致完成)"
78
78
  - Option 2: "暫時跳過" - "目前不進行更新,維持現有版本"
79
79
 
80
- ### Step 3: Execute | 步驟 3:執行
80
+ ### Step 3: Execute Update | 步驟 3:執行更新
81
81
 
82
82
  **If Update Now selected:**
83
83
  ```bash
@@ -89,39 +89,93 @@ uds update --yes
89
89
  uds update --beta --yes
90
90
  ```
91
91
 
92
- ### Step 4: Install Skills/Commands | 步驟 4:安裝 Skills/Commands
92
+ ### Step 4: Check Skills/Commands Status | 步驟 4:檢查 Skills/Commands 狀態
93
93
 
94
- After update completes, check if Skills/Commands need installation.
94
+ After update completes, the CLI automatically detects missing or outdated Skills/Commands.
95
95
 
96
- 更新完成後,檢查是否需要安裝 Skills/Commands。
96
+ 更新完成後,CLI 會自動偵測缺少或過時的 Skills/Commands。
97
97
 
98
- **Check installation status:**
98
+ **Important:** The CLI uses file-based detection (`getInstalledSkillsInfoForAgent`) to check actual installation status, not just manifest records.
99
99
 
100
- 1. Read `.standards/manifest.json` to get `aiTools` list and `skills.installed` status
101
- 2. Check if Skills are installed for each configured AI tool
102
- 3. Check if Commands are installed for tools that support them (opencode, copilot, gemini-cli, roo-code)
100
+ **重要:** CLI 使用檔案實際存在檢測,而非僅讀取 manifest 記錄。
103
101
 
104
- **If missing Skills/Commands detected**, use AskUserQuestion:
102
+ #### Handling Missing Skills | 處理缺少的 Skills
103
+
104
+ If missing Skills are detected for configured AI tools, CLI shows checkbox selection:
105
+
106
+ 如果偵測到已配置 AI 工具缺少 Skills,CLI 會顯示多選介面:
107
+
108
+ ```
109
+ Skills not yet installed for these AI tools:
110
+ • Claude Code
111
+ • OpenCode
112
+
113
+ ? Select AI tools to install Skills for: (Press <space> to select)
114
+ ❯ ◯ Claude Code
115
+ ◯ OpenCode
116
+ ──────────────
117
+ ◯ Skip Skills installation
118
+ ```
119
+
120
+ **After tool selection, prompt for installation level:**
105
121
 
106
122
  | Option | Description |
107
123
  |--------|-------------|
108
- | **Install All (Recommended)** | Install Skills + Commands for all configured tools |
109
- | **Skills Only** | Install only Skills |
110
- | **Commands Only** | Install only Commands |
111
- | **Skip** | Don't install at this time |
124
+ | **Project level** | Install to `.claude/skills/`, `.opencode/skill/`, etc. |
125
+ | **User level** | Install to `~/.claude/skills/`, `~/.opencode/skill/`, etc. |
126
+
127
+ #### Handling Outdated Skills | 處理過時的 Skills
128
+
129
+ If installed Skills have older version than latest, CLI shows update prompt:
130
+
131
+ 如果已安裝的 Skills 版本比最新版本舊,CLI 會顯示更新提示:
132
+
133
+ ```
134
+ Skills updates available for these AI tools:
135
+ • Claude Code (project: .claude/skills/)
136
+ 3.4.0 → 3.5.1
137
+
138
+ ? Select AI tools to update Skills for: (Press <space> to select)
139
+ ❯ ◉ Claude Code (project) 3.4.0 → 3.5.1
140
+ ──────────────
141
+ ◯ Skip Skills update
142
+ ```
143
+
144
+ #### Handling Missing Commands | 處理缺少的 Commands
145
+
146
+ Similar checkbox selection for Commands:
147
+
148
+ ```
149
+ Slash commands not yet installed for these AI tools:
150
+ • OpenCode → .opencode/commands/
151
+ • GitHub Copilot → .github/commands/
152
+
153
+ ? Select AI tools to install Commands for: (Press <space> to select)
154
+ ❯ ◉ OpenCode (.opencode/commands/)
155
+ ◉ GitHub Copilot (.github/commands/)
156
+ ──────────────
157
+ ◯ Skip Commands installation
158
+ ```
112
159
 
113
- **Based on user selection, execute:**
160
+ #### Declined Features Handling | 拒絕功能處理
114
161
 
115
- | Selection | Command |
116
- |-----------|---------|
117
- | Install All | `uds configure --type skills --ai-tool <tool>` for each tool, then `uds configure --type commands --ai-tool <tool>` |
118
- | Skills Only | `uds configure --type skills --ai-tool <tool>` for each tool |
119
- | Commands Only | `uds configure --type commands --ai-tool <tool>` for each tool |
120
- | Skip | No action needed |
162
+ **Important:** The CLI tracks user's declined choices in `manifest.declinedFeatures`.
121
163
 
122
- **Note**: The `--ai-tool` option allows non-interactive installation for specific tools.
164
+ **重要:** CLI 會在 `manifest.declinedFeatures` 中追蹤用戶拒絕的選項。
123
165
 
124
- Explain the results and any next steps to the user.
166
+ - Tools that user previously declined will NOT be shown in subsequent prompts
167
+ - Users can reinstall declined features via `/config skills` or `/config commands`
168
+ - Declining is remembered per-tool (e.g., declining Skills for OpenCode doesn't affect Claude Code)
169
+
170
+ 用戶之前拒絕的工具不會在後續提示中顯示。可透過 `/config skills` 或 `/config commands` 重新安裝。
171
+
172
+ ### Step 5: Explain Results | 步驟 5:說明結果
173
+
174
+ After all operations complete, explain:
175
+ 1. What was updated (standards version, file count)
176
+ 2. Skills/Commands installation results
177
+ 3. Any errors encountered
178
+ 4. Next steps (restart AI tool if Skills were installed)
125
179
 
126
180
  ## Quick Mode | 快速模式
127
181
 
@@ -131,8 +185,12 @@ When invoked with `--yes` or specific options, skip interactive questions:
131
185
  /update --yes # Update without confirmation
132
186
  /update --beta --yes # Update to beta version
133
187
  /update --offline # Skip npm registry check
188
+ /update --skills # Update Skills only
189
+ /update --commands # Update Commands only
134
190
  ```
135
191
 
192
+ **Note:** In `--yes` mode, CLI shows hints about available Skills/Commands but does NOT auto-install them (conservative behavior).
193
+
136
194
  ## Options Reference | 選項參考
137
195
 
138
196
  | Option | Description | 說明 |
@@ -140,12 +198,17 @@ When invoked with `--yes` or specific options, skip interactive questions:
140
198
  | `--yes`, `-y` | Skip confirmation prompt | 跳過確認提示 |
141
199
  | `--offline` | Skip npm registry check | 跳過 npm registry 檢查 |
142
200
  | `--beta` | Check for beta version updates | 檢查 beta 版本更新 |
201
+ | `--skills` | Update Skills only | 僅更新 Skills |
202
+ | `--commands` | Update Commands only | 僅更新 Commands |
203
+ | `--integrations-only` | Regenerate integration files only | 僅重新產生整合檔案 |
204
+ | `--sync-refs` | Sync integration file references | 同步整合檔案參考 |
205
+ | `--standards-only` | Update standards without integrations | 僅更新標準,不更新整合 |
143
206
 
144
207
  ## What Gets Updated | 更新內容
145
208
 
146
209
  - Standard files in `.standards/` directory
147
210
  - Extension files (language, framework, locale)
148
- - Integration files (`.cursorrules`, etc.)
211
+ - Integration files (`.cursorrules`, `CLAUDE.md`, etc.)
149
212
  - Version info in `manifest.json`
150
213
 
151
214
  ## Skills Update | Skills 更新
@@ -166,7 +229,11 @@ Skills are managed separately:
166
229
  **"Already up to date"**
167
230
  - No action needed; standards are current
168
231
 
232
+ **"Skills previously declined"**
233
+ - Run `/config skills` to reinstall declined Skills
234
+
169
235
  ## Reference | 參考
170
236
 
171
237
  - CLI documentation: `uds update --help`
172
238
  - Check command: [/check](./check.md)
239
+ - Config command: [/config](./config.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "universal-dev-standards",
3
- "version": "3.5.1-beta.18",
3
+ "version": "3.5.1-beta.19",
4
4
  "description": "CLI tool for adopting Universal Development Standards",
5
5
  "keywords": [
6
6
  "documentation",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "3.5.1-beta.18",
3
+ "version": "3.5.1-beta.19",
4
4
  "lastUpdated": "2026-01-19",
5
5
  "description": "Standards registry for universal-dev-standards with integrated skills and AI-optimized formats",
6
6
  "formats": {
@@ -48,14 +48,14 @@
48
48
  "standards": {
49
49
  "name": "universal-dev-standards",
50
50
  "url": "https://github.com/AsiaOstrich/universal-dev-standards",
51
- "version": "3.5.1-beta.18"
51
+ "version": "3.5.1-beta.19"
52
52
  },
53
53
  "skills": {
54
54
  "name": "universal-dev-standards",
55
55
  "url": "https://github.com/AsiaOstrich/universal-dev-standards",
56
56
  "localPath": "skills/claude-code",
57
57
  "rawUrl": "https://raw.githubusercontent.com/AsiaOstrich/universal-dev-standards/main/skills/claude-code",
58
- "version": "3.5.1-beta.18",
58
+ "version": "3.5.1-beta.19",
59
59
  "note": "Skills are now included in the main repository under skills/"
60
60
  }
61
61
  },