universal-dev-standards 6.7.5 → 6.8.0
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.
- package/bin/uds.js +7 -0
- package/bundled/ai/standards/ai-instruction-standards.ai.yaml +6 -6
- package/bundled/core/ai-instruction-standards.md +9 -7
- package/bundled/locales/zh-CN/CHANGELOG.md +21 -3
- package/bundled/locales/zh-CN/README.md +6 -6
- package/bundled/locales/zh-CN/SECURITY.md +1 -1
- package/bundled/locales/zh-CN/core/ai-instruction-standards.md +10 -8
- package/bundled/locales/zh-CN/docs/CHEATSHEET.md +20 -6
- package/bundled/locales/zh-CN/docs/FEATURE-REFERENCE.md +149 -11
- package/bundled/locales/zh-CN/skills/agents/README.md +1 -1
- package/bundled/locales/zh-CN/skills/reverse-engineer/tdd-analysis.md +13 -23
- package/bundled/locales/zh-CN/skills/workflows/README.md +2 -11
- package/bundled/locales/zh-TW/CHANGELOG.md +21 -3
- package/bundled/locales/zh-TW/README.md +6 -6
- package/bundled/locales/zh-TW/SECURITY.md +1 -1
- package/bundled/locales/zh-TW/core/ai-instruction-standards.md +10 -8
- package/bundled/locales/zh-TW/docs/CHEATSHEET.md +20 -6
- package/bundled/locales/zh-TW/docs/FEATURE-REFERENCE.md +149 -11
- package/bundled/locales/zh-TW/skills/agents/README.md +1 -1
- package/bundled/locales/zh-TW/skills/reverse-engineer/tdd-analysis.md +13 -23
- package/bundled/locales/zh-TW/skills/workflows/README.md +2 -11
- package/bundled/skills/agents/README.md +1 -1
- package/bundled/skills/reverse-engineer/tdd-analysis.md +16 -23
- package/bundled/skills/workflows/README.md +2 -11
- package/package.json +4 -2
- package/src/commands/lint.js +96 -0
- package/src/commands/quickstart.js +16 -13
- package/src/i18n/messages.js +3 -3
- package/src/reconciler/actual-state-scanner.js +14 -3
- package/src/utils/hasher.js +63 -8
- package/src/utils/integration-generator.js +21 -3
- package/src/utils/skills-installer.js +17 -3
- package/src/utils/spec-linter.js +35 -76
- package/standards-registry.json +7 -7
- package/src/commands/sync.js +0 -133
package/bin/uds.js
CHANGED
|
@@ -5,6 +5,7 @@ import { program } from 'commander';
|
|
|
5
5
|
import { listCommand } from '../src/commands/list.js';
|
|
6
6
|
import { initCommand } from '../src/commands/init.js';
|
|
7
7
|
import { checkCommand } from '../src/commands/check.js';
|
|
8
|
+
import { lintCommand } from '../src/commands/lint.js';
|
|
8
9
|
import { simulateCommand } from '../src/commands/simulate.js';
|
|
9
10
|
import { fixCommand } from '../src/commands/fix.js';
|
|
10
11
|
import { updateCommand } from '../src/commands/update.js';
|
|
@@ -186,6 +187,12 @@ program
|
|
|
186
187
|
.option('--i18n', 'Run i18n lint rules (XSPEC-239) across canonical + locale variants')
|
|
187
188
|
.action(checkCommand);
|
|
188
189
|
|
|
190
|
+
program
|
|
191
|
+
.command('lint')
|
|
192
|
+
.description('Check spec dependency validity and size against installed specs (specs/*.md)')
|
|
193
|
+
.option('--json', 'Output result in JSON format')
|
|
194
|
+
.action(lintCommand);
|
|
195
|
+
|
|
189
196
|
program
|
|
190
197
|
.command('simulate')
|
|
191
198
|
.description('Simulate a standard check with input (Predictive Validation)')
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
id: ai-instruction-standards
|
|
5
5
|
meta:
|
|
6
|
-
version: "2.1.
|
|
6
|
+
version: "2.1.1"
|
|
7
7
|
updated: "2026-08-12"
|
|
8
8
|
source: core/ai-instruction-standards.md
|
|
9
9
|
description: Best practices for creating AI instruction files (root and skill level) with universal/project-specific separation, i18n strategy, and a detailed cross-tool support matrix
|
|
@@ -309,7 +309,7 @@ rules:
|
|
|
309
309
|
|
|
310
310
|
- id: i18n-no-manual-canonical-edits-by-adopters
|
|
311
311
|
trigger: adopter wants to customize an installed instruction file
|
|
312
|
-
instruction: Use uds install --locale or overlays; do not modify canonical files in-place
|
|
312
|
+
instruction: Use uds init --locale (first install) or uds update --locale (re-sync), or overlays; do not modify canonical files in-place
|
|
313
313
|
priority: required
|
|
314
314
|
|
|
315
315
|
maintenance_checklist:
|
|
@@ -434,7 +434,7 @@ i18n:
|
|
|
434
434
|
owns:
|
|
435
435
|
- their own .claude/skills/, CLAUDE.md
|
|
436
436
|
duties:
|
|
437
|
-
- Install via uds
|
|
437
|
+
- Install via uds init --locale {lang}; re-sync with uds update --locale {lang}
|
|
438
438
|
- Never manually modify canonical files
|
|
439
439
|
- Use overlays or locale variants for customization
|
|
440
440
|
|
|
@@ -459,14 +459,14 @@ i18n:
|
|
|
459
459
|
- id: adopter-must-match-installed-locale
|
|
460
460
|
trigger: adopter file in .claude/skills/ differs from both canonical and any locale variant
|
|
461
461
|
severity: warn
|
|
462
|
-
instruction: Use uds
|
|
462
|
+
instruction: Use uds init --locale / uds update --locale or overlays instead of manual canonical edits
|
|
463
463
|
- id: translation-drift-warn
|
|
464
464
|
trigger: translation_version lag > 2 minor versions behind source_version
|
|
465
465
|
severity: warn
|
|
466
466
|
instruction: Re-sync translation from current canonical version
|
|
467
467
|
|
|
468
468
|
installation_model:
|
|
469
|
-
cli: uds
|
|
469
|
+
cli: uds init --locale {lang}
|
|
470
470
|
locale_resolution_priority:
|
|
471
471
|
- --locale CLI flag
|
|
472
472
|
- .uds/install.yaml locale field
|
|
@@ -483,7 +483,7 @@ i18n:
|
|
|
483
483
|
- id: identify
|
|
484
484
|
description: Compare adopter files against UDS canonical and locale variants
|
|
485
485
|
- id: install_proper_variants
|
|
486
|
-
description: Run uds
|
|
486
|
+
description: Run uds update --locale {lang} to replace chimera
|
|
487
487
|
- id: preserve_legitimate_customization
|
|
488
488
|
description: Extract project-specific (non-translation) customization into overlay or UDS-CUSTOMIZATION.md
|
|
489
489
|
- id: discard_pure_translations
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
> **Language**: English | [繁體中文](../locales/zh-TW/core/ai-instruction-standards.md) | [简体中文](../locales/zh-CN/core/ai-instruction-standards.md)
|
|
4
4
|
|
|
5
|
-
**Version**: 1.1.
|
|
6
|
-
**Last Updated**: 2026-
|
|
5
|
+
**Version**: 1.1.1
|
|
6
|
+
**Last Updated**: 2026-08-19
|
|
7
7
|
**Applicability**: All projects using AI coding assistants
|
|
8
8
|
**Scope**: partial
|
|
9
9
|
**Industry Standards**: None (Emerging AI tool practice)
|
|
@@ -209,7 +209,7 @@ When canonical is updated (bumping `source_version`), locale maintainers should
|
|
|
209
209
|
|------|------|---------|
|
|
210
210
|
| **Canonical owner** | `core/{name}.md`, `core/{name}.ai.yaml`, `skills/{name}/SKILL.md` | Keep L1/L2/L3/L4 in English; bump `source_version` on every breaking change |
|
|
211
211
|
| **Locale maintainer** | `locales/{lang}/...` files | Keep `translation_version` aligned with `source_version`; translate L1 (required) / L2 (optional) / L3 (required) / L4 (recommended) |
|
|
212
|
-
| **Adopter (downstream project)** | Their own `.claude/skills/`, `CLAUDE.md`, etc. | Install via `uds
|
|
212
|
+
| **Adopter (downstream project)** | Their own `.claude/skills/`, `CLAUDE.md`, etc. | Install via `uds init --locale {lang}` (first time) or `uds update --locale {lang}` (re-sync); **never** manually modify canonical files (always edit locale variants or use overlays) |
|
|
213
213
|
|
|
214
214
|
### Chimera Prevention
|
|
215
215
|
|
|
@@ -231,7 +231,8 @@ Pre-commit / CI lint should enforce error-level rules; warn-level rules surface
|
|
|
231
231
|
Adopters install instruction files via the UDS CLI:
|
|
232
232
|
|
|
233
233
|
```bash
|
|
234
|
-
uds
|
|
234
|
+
uds init --locale zh-tw # first-time install of skills + standards in Traditional Chinese
|
|
235
|
+
uds update --locale zh-tw # re-sync an existing adoption
|
|
235
236
|
```
|
|
236
237
|
|
|
237
238
|
**Locale resolution order**:
|
|
@@ -252,7 +253,7 @@ This keeps installation usable for adopters even when locale coverage is incompl
|
|
|
252
253
|
If an adopter has already manually modified canonical files in their project (e.g. translated descriptions in `.claude/skills/`):
|
|
253
254
|
|
|
254
255
|
1. **Identify the chimera**: compare adopter files against UDS canonical and canonical's locale variants.
|
|
255
|
-
2. **Install proper variants**: run `uds
|
|
256
|
+
2. **Install proper variants**: run `uds update --locale {lang}` to replace chimera files with locale variants.
|
|
256
257
|
3. **Preserve project-specific customization**: if the chimera contained legitimate project-specific customization (not just translation), extract it into an overlay or document it in the adopter's customization log (e.g. `UDS-CUSTOMIZATION.md`).
|
|
257
258
|
4. **Discard pure translations**: chimera changes that were only translations should be discarded — the proper locale variant supersedes them.
|
|
258
259
|
|
|
@@ -264,8 +265,9 @@ If an adopter has already manually modified canonical files in their project (e.
|
|
|
264
265
|
| Update canonical | Improving English source | Bump `source_version`; notify locale maintainers |
|
|
265
266
|
| Translate / sync locale | Adding or updating locale content | Bump `translation_version`; reference current `source_version` |
|
|
266
267
|
| Check coverage | Periodic review | View auto-generated `locales/COVERAGE.md` |
|
|
267
|
-
| Install with locale | Adopter setup
|
|
268
|
-
|
|
|
268
|
+
| Install with locale | Adopter setup | `uds init --locale {lang}` |
|
|
269
|
+
| Re-sync with locale | Existing adoption | `uds update --locale {lang}` |
|
|
270
|
+
| Lint i18n rules | Before commit / in CI | `uds check --i18n` |
|
|
269
271
|
|
|
270
272
|
---
|
|
271
273
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
source: ../../CHANGELOG.md
|
|
3
|
-
source_version: 6.
|
|
4
|
-
translation_version: 6.
|
|
5
|
-
last_synced: 2026-08-
|
|
3
|
+
source_version: 6.8.0
|
|
4
|
+
translation_version: 6.8.0
|
|
5
|
+
last_synced: 2026-08-19
|
|
6
6
|
status: current
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -17,6 +17,24 @@ status: current
|
|
|
17
17
|
|
|
18
18
|
## [Unreleased]
|
|
19
19
|
|
|
20
|
+
## [6.8.0] - 2026-08-20
|
|
21
|
+
|
|
22
|
+
### 新增
|
|
23
|
+
|
|
24
|
+
- **一道去问「这条 `uds <cmd>` 指示真的跑得动吗」的闸门(XSPEC-383 R4)。** 2026-08-19 查到三个顶层命令(`uds install`、`uds lint`、`uds sync`)与两个旗标(`uds check --spec-size`、`uds spec create --boost`)出现在出货的指引里而**它们都不存在**——落点包括 `quickstart.js`(它的整个工作就是「快速找到对的命令」)与 `integration-generator.js`(它把命令**写进每一个采用者的 `CLAUDE.md`/`AGENTS.md`**)。两处早已修掉(`465335e4`),而**没有任何东西在确认那个修正会维持**。`check-command-existence.mjs` 走访 `core/`、`locales/`、`ai/standards/`、`cli/src/`、`skills/`、`docs/` 与 repo 根目录的 `*.md`,抽出每一个 `uds <cmd>` 样式,用 `uds <path> --definitely-not-a-real-flag` 对本次 commit 自己的 CLI 探测——**不是 `--help`**:commander 对**未知**命令会回答通用命令表而不是报错,而那正是 `uds lint`/`uds sync` 在第一轮检查中存活的原因。
|
|
25
|
+
- **同一支探针对现况再跑一次,翻出第一次事故的修正从未碰到的漂移。** `uds workflow`(v6.0.0 移除)在 `docs/user/CHEATSHEET.md`、`docs/reference/FEATURE-REFERENCE.md`、`skills/workflows/README.md`(及 zh-TW/zh-CN 镜像)**被当成现行命令展示了五个月**,而 `docs/MIGRATION-v6.md` 自己就给了能抓到它的那条 grep。`uds config --lang`/`--mode` 从未存在(root `README.md`、两份 locale、`docs/reference/INTEGRATION-VERIFICATION.md`)。`uds agent install --all` 把位置参数写成旗标。`uds reverse-tdd` 是为了一段 GitHub Actions 范例**虚构出来的 CLI**。`uds check --interactive` 不存在,因为交互模式本来就是默认。**29 个发现,29 个修好,0 个残留。**
|
|
26
|
+
- **一道去问「有没有人到得了这段代码」的闸门(XSPEC-383 R3)。** 单元测试证明函数是对的,对「有没有使用者叫得到」一个字都没说。2026-04-07 有一次 commit 加了 `spec-linter.js`(172 行、14 个测试全过)与 `sync.js`(133 行)——**两者都从未被注册**,而同一天有下游产品把自己接上 `npx uds lint --json`,一个因此永远不会存在的命令。四个半月,两边全绿,中间没有一条通的路。`check-module-reachability.mjs` 从 package.json 的 `bin` 与 `main` 出发做 BFS,**手查找到 2 个,走访找到 24 个**,含整个九模块的 `src/flow/` 子系统。
|
|
27
|
+
- **`uds lint`(XSPEC-383 R5)。** 注册那个 linter 自 2026-04-07 起就在等的命令,带着两项禁得起真实 spec 考验的检查:依赖有效性与篇幅。
|
|
28
|
+
|
|
29
|
+
### 变更
|
|
30
|
+
|
|
31
|
+
- **哈希前先规范化行尾(#155)。** `uds check` 比对的是磁盘上的原始 bytes,于是 Windows 在 `core.autocrlf=true` 下的 checkout 把每个 LF 换成 CRLF,**每一个哈希都不再吻合**——而「N 个文件已修改」这句话,无论是有人改了 N 个文件还是平台改写了每一个换行,读起来完全一样。走访另外找到两套从不经过 `hasher.js` 的哈希实现,四处全修。新增 21 个测试,含负向对照:真实内容差异与尾随空白差异,在 CRLF checkout 上仍须检测得到。`uds check --force` 的输出前后逐字节相同,既有 manifest 不需要重新盖章。
|
|
32
|
+
- **使用说明生成器改为问 CLI,而不是背诵一份清单。** `scanCliCommands` 把 `cli/bin/uds.js` 读进一个变量然后忽略它,改用一份注记着「based on uds.js analysis」的手写数组。于是**每一次重新生成都把已移除的 `uds workflow` 写回文档**,也从来不会加入 `uds lint`。现在它解析 `uds --help`——CLI 对自己有哪些命令的权威回答,涵盖任何单文件解析看不到的注册写法(`mcp` 完全由另一个模块注册)。涵盖率从 19/24 变成 **23/23**。
|
|
33
|
+
|
|
34
|
+
### 移除
|
|
35
|
+
|
|
36
|
+
- **`uds sync` 与 AC 覆盖检查(XSPEC-383 R5,选项 E)。** `sync.js` 零消费者。AC 覆盖检查对 93 份真实 spec 测量,报告 98 条验收条件中 0 条被覆盖——**不是因为它们没有测试**,而是因为它用**位置**生成 AC 标识符(`AC-1`、`AC-2`)而不是读规格声明的那些,再用写死的 `@` 前缀去找。一个写 `AC-045-001` 并且标注不带 `@` 的项目,无论追溯做得多完整都会得到零覆盖。**它报的不是「这个项目没有追溯」,而是「我用我自己的惯例去找,找不到」,而这两句话打印出来一模一样。** 它是移除而不是留着不接:它是一个正确实现了一个唯一已知消费者并不使用的惯例的东西,躺在树上等着被人重新接上。跨 repo 的 AC 标识符惯例调解是协商,不是补丁,另案处理。
|
|
37
|
+
|
|
20
38
|
## [6.7.5] - 2026-08-18
|
|
21
39
|
|
|
22
40
|
### 变更
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
source: ../../README.md
|
|
3
3
|
source_version: 6.0.0
|
|
4
4
|
translation_version: 6.0.0
|
|
5
|
-
last_synced: 2026-
|
|
6
|
-
source_hash:
|
|
5
|
+
last_synced: 2026-08-19
|
|
6
|
+
source_hash: d978c5775a25
|
|
7
7
|
status: current
|
|
8
8
|
---
|
|
9
9
|
|
|
@@ -15,7 +15,7 @@ status: current
|
|
|
15
15
|
|
|
16
16
|
> **语言**: [English](../../README.md) | [繁體中文](../zh-TW/README.md) | 简体中文
|
|
17
17
|
|
|
18
|
-
**版本**: 6.
|
|
18
|
+
**版本**: 6.8.0 | **发布日期**: 2026-08-20 | **授权**: [双重授权](../../LICENSE) (CC BY 4.0 + MIT)
|
|
19
19
|
|
|
20
20
|
语言无关、框架无关的软件项目文档标准。通过 AI 原生工作流,确保不同技术栈之间的一致性、质量和可维护性。
|
|
21
21
|
|
|
@@ -79,7 +79,7 @@ npx universal-dev-standards init
|
|
|
79
79
|
| **核心标准** | 150 | 通用开发准则 |
|
|
80
80
|
| **AI Skills** | 55 | 互动式技能 |
|
|
81
81
|
| **斜线命令** | 51 | 快速操作 |
|
|
82
|
-
| **CLI 命令** |
|
|
82
|
+
| **CLI 命令** | 23 | 项目设置与维护 |
|
|
83
83
|
<!-- UDS_STATS_TABLE_END -->
|
|
84
84
|
|
|
85
85
|
> **5.0 新功能?** 请参阅[预发布说明](../../docs/PRE-RELEASE.md)了解新功能详情。
|
|
@@ -198,9 +198,9 @@ uds uninstall # 从项目移除标准
|
|
|
198
198
|
|
|
199
199
|
| 参数 | 命令 | 说明 |
|
|
200
200
|
| :--- | :--- | :--- |
|
|
201
|
-
| **提交语言** | `uds config
|
|
201
|
+
| **提交语言** | `uds config set output_language simplified-chinese` | 设置 AI 提交消息的偏好语言 |
|
|
202
202
|
| **标准** | `uds init` | 安装所有可用标准 |
|
|
203
|
-
| **工具模式** | `uds config --
|
|
203
|
+
| **工具模式** | `uds config --type content_mode` | 在 Skills、Standards 或两者之间切换 |
|
|
204
204
|
|
|
205
205
|
---
|
|
206
206
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
source: ../../../core/ai-instruction-standards.md
|
|
3
|
-
source_version: 1.1.
|
|
4
|
-
translation_version: 1.1.
|
|
5
|
-
last_synced: 2026-
|
|
3
|
+
source_version: 1.1.1
|
|
4
|
+
translation_version: 1.1.1
|
|
5
|
+
last_synced: 2026-08-19
|
|
6
6
|
status: current
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -213,7 +213,7 @@ translation_version: {本翻译的版本}
|
|
|
213
213
|
|------|------|--------|
|
|
214
214
|
| **Canonical 拥有者** | `core/{name}.md` 等 | 维持 L1/L2/L3/L4 为英文;breaking change 时 bump `source_version` |
|
|
215
215
|
| **Locale 维护者** | `locales/{lang}/...` | `translation_version` 对齐 `source_version`;翻译 L1(必)、L2(选)、L3(必)、L4(建议)|
|
|
216
|
-
| **采用者** | 自己的 `.claude/skills/`、`CLAUDE.md` | 用 `uds
|
|
216
|
+
| **采用者** | 自己的 `.claude/skills/`、`CLAUDE.md` | 用 `uds init --locale {lang}`(首次)或 `uds update --locale {lang}`(重新同步)安装;**绝不**手动修改 canonical |
|
|
217
217
|
|
|
218
218
|
### Chimera 防范
|
|
219
219
|
|
|
@@ -229,7 +229,8 @@ translation_version: {本翻译的版本}
|
|
|
229
229
|
### 采用者安装
|
|
230
230
|
|
|
231
231
|
```bash
|
|
232
|
-
uds
|
|
232
|
+
uds init --locale zh-cn # 首次以简体中文安装 skills 与 standards
|
|
233
|
+
uds update --locale zh-cn # 对既有采用重新同步
|
|
233
234
|
```
|
|
234
235
|
|
|
235
236
|
**Locale 解析优先顺序**:`--locale` flag > `.uds/install.yaml` > `UDS_LOCALE` env > fallback `en`
|
|
@@ -239,7 +240,7 @@ Locale 不存在时 fallback 到 canonical + WARN,**不**阻断安装。
|
|
|
239
240
|
### 迁移:已有 chimera 的采用者
|
|
240
241
|
|
|
241
242
|
1. **辨识 chimera**:比对采用者档案与 UDS canonical / locale 变体
|
|
242
|
-
2. **安装正确变体**:`uds
|
|
243
|
+
2. **安装正确变体**:`uds update --locale {lang}`
|
|
243
244
|
3. **保留专案级客制**:抽出为 overlay
|
|
244
245
|
4. **丢弃纯翻译**:locale 变体取代之
|
|
245
246
|
|
|
@@ -251,8 +252,9 @@ Locale 不存在时 fallback 到 canonical + WARN,**不**阻断安装。
|
|
|
251
252
|
| 更新 canonical | 改进英文 source | Bump `source_version` |
|
|
252
253
|
| 翻译 / 同步 locale | 新增或更新 locale 内容 | Bump `translation_version` |
|
|
253
254
|
| 检查覆盖率 | 定期 review | `locales/COVERAGE.md` |
|
|
254
|
-
| 带 locale 安装 | 采用者初设 | `uds
|
|
255
|
-
|
|
|
255
|
+
| 带 locale 安装 | 采用者初设 | `uds init --locale {lang}` |
|
|
256
|
+
| 带 locale 重新同步 | 既有采用 | `uds update --locale {lang}` |
|
|
257
|
+
| 跑 i18n lint | Commit 前 / CI | `uds check --i18n` |
|
|
256
258
|
|
|
257
259
|
---
|
|
258
260
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# UDS 速查表
|
|
2
2
|
|
|
3
|
-
> Quick reference for all UDS features | Last updated: 2026-08-
|
|
3
|
+
> Quick reference for all UDS features | Last updated: 2026-08-19
|
|
4
4
|
|
|
5
5
|
**Language**: [English](../../../docs/user/CHEATSHEET.md) | [繁體中文](../../zh-TW/docs/CHEATSHEET.md) | 简体中文
|
|
6
6
|
|
|
@@ -12,13 +12,27 @@
|
|
|
12
12
|
|---------|-------------|
|
|
13
13
|
| `uds list` | List available standards |
|
|
14
14
|
| `uds init` | Initialize standards in current project |
|
|
15
|
-
| `uds
|
|
16
|
-
| `uds
|
|
15
|
+
| `uds config` | Manage UDS configuration and project settings |
|
|
16
|
+
| `uds hitl` | Human-in-the-Loop controls |
|
|
17
|
+
| `uds configure` | Alias for "uds config" — Modify project settings |
|
|
18
|
+
| `uds check` | Check file integrity and adoption status (quick validation). For deep health diagnosis, use "uds audit" |
|
|
19
|
+
| `uds lint` | Check spec dependency validity and size against installed specs (specs/*.md) |
|
|
20
|
+
| `uds simulate` | Simulate a standard check with input (Predictive Validation) |
|
|
21
|
+
| `uds fix` | Auto-fix standard violations (Self-Healing) |
|
|
17
22
|
| `uds update` | Update standards to latest version |
|
|
18
23
|
| `uds skills` | List installed Claude Code skills |
|
|
19
|
-
| `uds
|
|
20
|
-
| `uds
|
|
21
|
-
| `uds
|
|
24
|
+
| `uds audit` | Deep health diagnosis with pattern detection and feedback (strategic). For quick file check, use "uds check" |
|
|
25
|
+
| `uds deps` | Compare the versions you test against the versions your declared ranges resolve to |
|
|
26
|
+
| `uds uninstall` | Remove UDS standards, integrations, skills, and hooks |
|
|
27
|
+
| `uds compile` | Compile enforcement standards into hook configurations |
|
|
28
|
+
| `uds report` | Analyze hook telemetry and show adoption report |
|
|
29
|
+
| `uds release` | Manage release process (promote, deploy, manifest, verify) |
|
|
30
|
+
| `uds spec` | Manage lightweight micro-specs for vibe coding. For full spec lifecycle with review, use "/sdd" |
|
|
31
|
+
| `uds quickstart` | Interactive workflow guide — find the right commands quickly |
|
|
32
|
+
| `uds agent` | Manage UDS agents for AI tools |
|
|
33
|
+
| `uds ai-context` | Manage .ai-context.yaml configuration for AI-friendly architecture |
|
|
34
|
+
| `uds mcp` | MCP server commands for AI tool integration |
|
|
35
|
+
| `uds run` | Run a project command by intent (test/lint/build/security) via uds.project.yaml |
|
|
22
36
|
|
|
23
37
|
## 💬 斜线命令
|
|
24
38
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# UDS 功能参考手册
|
|
2
2
|
|
|
3
3
|
> Universal Development Standards - 完整功能文档
|
|
4
|
-
> Auto-generated | Last updated: 2026-08-
|
|
4
|
+
> Auto-generated | Last updated: 2026-08-19
|
|
5
5
|
|
|
6
6
|
**Language**: [English](../../../docs/reference/FEATURE-REFERENCE.md) | [繁體中文](../../zh-TW/docs/FEATURE-REFERENCE.md) | 简体中文
|
|
7
7
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
## 目录
|
|
11
11
|
|
|
12
|
-
1. [CLI 指令](#cli-commands) (
|
|
12
|
+
1. [CLI 指令](#cli-commands) (23)
|
|
13
13
|
2. [斜线命令](#slash-commands) (51)
|
|
14
14
|
3. [技能](#skills) (55)
|
|
15
15
|
4. [代理](#agents) (5)
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
6. [核心规范](#core-standards) (150)
|
|
18
18
|
7. [脚本](#scripts) (54)
|
|
19
19
|
|
|
20
|
-
**Total Features:
|
|
20
|
+
**Total Features: 343**
|
|
21
21
|
|
|
22
22
|
---
|
|
23
23
|
|
|
@@ -58,9 +58,22 @@
|
|
|
58
58
|
| `-E, --experimental` | Enable experimental features (methodology) |
|
|
59
59
|
| `--force` | Bypass UDS source-repo self-adoption guard (DEC-044 / XSPEC-071) |
|
|
60
60
|
|
|
61
|
+
### `uds config`
|
|
62
|
+
|
|
63
|
+
**说明**: Manage UDS configuration and project settings
|
|
64
|
+
|
|
65
|
+
### `uds hitl`
|
|
66
|
+
|
|
67
|
+
**说明**: Human-in-the-Loop controls
|
|
68
|
+
|
|
69
|
+
**选项**:
|
|
70
|
+
| Option | 说明 |
|
|
71
|
+
|--------|-------------|
|
|
72
|
+
| `--op` | Operation description |
|
|
73
|
+
|
|
61
74
|
### `uds configure`
|
|
62
75
|
|
|
63
|
-
**说明**:
|
|
76
|
+
**说明**: Alias for "uds config" — Modify project settings
|
|
64
77
|
|
|
65
78
|
**选项**:
|
|
66
79
|
| Option | 说明 |
|
|
@@ -73,7 +86,7 @@
|
|
|
73
86
|
|
|
74
87
|
### `uds check`
|
|
75
88
|
|
|
76
|
-
**说明**: Check adoption status
|
|
89
|
+
**说明**: Check file integrity and adoption status (quick validation). For deep health diagnosis, use "uds audit"
|
|
77
90
|
|
|
78
91
|
**选项**:
|
|
79
92
|
| Option | 说明 |
|
|
@@ -91,6 +104,36 @@
|
|
|
91
104
|
| `--force` | Bypass UDS source-repo self-adoption guard (DEC-044 / XSPEC-071) |
|
|
92
105
|
| `--i18n` | Run i18n lint rules (XSPEC-239) across canonical + locale variants |
|
|
93
106
|
|
|
107
|
+
### `uds lint`
|
|
108
|
+
|
|
109
|
+
**说明**: Check spec dependency validity and size against installed specs (specs/*.md)
|
|
110
|
+
|
|
111
|
+
**选项**:
|
|
112
|
+
| Option | 说明 |
|
|
113
|
+
|--------|-------------|
|
|
114
|
+
| `--json` | Output result in JSON format |
|
|
115
|
+
|
|
116
|
+
### `uds simulate`
|
|
117
|
+
|
|
118
|
+
**说明**: Simulate a standard check with input (Predictive Validation)
|
|
119
|
+
|
|
120
|
+
**选项**:
|
|
121
|
+
| Option | 说明 |
|
|
122
|
+
|--------|-------------|
|
|
123
|
+
| `-s, --standard` | Standard to simulate against |
|
|
124
|
+
| `-i, --input` | Input string to test |
|
|
125
|
+
| `--json` | Output result in JSON format |
|
|
126
|
+
|
|
127
|
+
### `uds fix`
|
|
128
|
+
|
|
129
|
+
**说明**: Auto-fix standard violations (Self-Healing)
|
|
130
|
+
|
|
131
|
+
**选项**:
|
|
132
|
+
| Option | 说明 |
|
|
133
|
+
|--------|-------------|
|
|
134
|
+
| `-s, --standard` | Standard to fix |
|
|
135
|
+
| `--json` | Output result in JSON format |
|
|
136
|
+
|
|
94
137
|
### `uds update`
|
|
95
138
|
|
|
96
139
|
**说明**: Update standards to latest version
|
|
@@ -117,9 +160,100 @@
|
|
|
117
160
|
|
|
118
161
|
**说明**: List installed Claude Code skills
|
|
119
162
|
|
|
163
|
+
### `uds audit`
|
|
164
|
+
|
|
165
|
+
**说明**: Deep health diagnosis with pattern detection and feedback (strategic). For quick file check, use "uds check"
|
|
166
|
+
|
|
167
|
+
**选项**:
|
|
168
|
+
| Option | 说明 |
|
|
169
|
+
|--------|-------------|
|
|
170
|
+
| `--health` | Health check only |
|
|
171
|
+
| `--patterns` | Pattern detection only |
|
|
172
|
+
| `--friction` | Friction detection only |
|
|
173
|
+
| `--report` | Interactive feedback submission |
|
|
174
|
+
| `--yes` | Submit all findings without interactive selection (CI / non-TTY) |
|
|
175
|
+
| `--dry-run` | Preview report without submitting |
|
|
176
|
+
| `--gh` | Force gh CLI for submission |
|
|
177
|
+
| `--format` | Output format (json) |
|
|
178
|
+
| `--quiet` | Summary only |
|
|
179
|
+
| `--score` | Run multi-dimensional health score analysis |
|
|
180
|
+
| `--self` | Self mode: analyze UDS repo itself (use with --score) |
|
|
181
|
+
| `--save` | Save score snapshot for trend tracking (use with --score) |
|
|
182
|
+
| `--trend` | Show historical score trend (use with --score) |
|
|
183
|
+
| `--ci` | CI mode: output score only, exit 1 if below threshold (use with --score) |
|
|
184
|
+
| `--threshold` | Score threshold for CI mode (default: 75) |
|
|
185
|
+
|
|
186
|
+
### `uds deps`
|
|
187
|
+
|
|
188
|
+
**说明**: Compare the versions you test against the versions your declared ranges resolve to
|
|
189
|
+
|
|
190
|
+
**选项**:
|
|
191
|
+
| Option | 说明 |
|
|
192
|
+
|--------|-------------|
|
|
193
|
+
| `--path` | Directory containing package.json (default: cwd) |
|
|
194
|
+
| `--json` | Output raw JSON |
|
|
195
|
+
| `--concurrency` | Parallel registry lookups (default: 8) |
|
|
196
|
+
|
|
197
|
+
### `uds uninstall`
|
|
198
|
+
|
|
199
|
+
**说明**: Remove UDS standards, integrations, skills, and hooks
|
|
200
|
+
|
|
201
|
+
**选项**:
|
|
202
|
+
| Option | 说明 |
|
|
203
|
+
|--------|-------------|
|
|
204
|
+
| `--all` | Remove everything including user-level installations |
|
|
205
|
+
| `--standards-only` | Remove only .standards/ directory |
|
|
206
|
+
| `--skills-only` | Remove only skills and commands |
|
|
207
|
+
| `--integrations-only` | Remove only UDS blocks from integration files |
|
|
208
|
+
| `--dry-run` | Preview mode, no files modified |
|
|
209
|
+
| `-y, --yes` | Skip confirmation prompts |
|
|
210
|
+
|
|
211
|
+
### `uds compile`
|
|
212
|
+
|
|
213
|
+
**说明**: Compile enforcement standards into hook configurations
|
|
214
|
+
|
|
215
|
+
**选项**:
|
|
216
|
+
| Option | 说明 |
|
|
217
|
+
|--------|-------------|
|
|
218
|
+
| `--target` | Target platform (claude-code) |
|
|
219
|
+
| `--dry-run` | Preview output without writing files |
|
|
220
|
+
|
|
221
|
+
### `uds report`
|
|
222
|
+
|
|
223
|
+
**说明**: Analyze hook telemetry and show adoption report
|
|
224
|
+
|
|
225
|
+
### `uds release`
|
|
226
|
+
|
|
227
|
+
**说明**: Manage release process (promote, deploy, manifest, verify)
|
|
228
|
+
|
|
229
|
+
### `uds spec`
|
|
230
|
+
|
|
231
|
+
**说明**: Manage lightweight micro-specs for vibe coding. For full spec lifecycle with review, use "/sdd"
|
|
232
|
+
|
|
233
|
+
**选项**:
|
|
234
|
+
| Option | 说明 |
|
|
235
|
+
|--------|-------------|
|
|
236
|
+
| `-s, --scope` | Scope (frontend, backend, fullstack) |
|
|
237
|
+
| `-o, --output` | Output directory (default: specs/) |
|
|
238
|
+
| `-y, --yes` | Auto-confirm without prompting |
|
|
239
|
+
| `--status` | Filter by status (draft, confirmed, archived) |
|
|
240
|
+
| `-o, --output` | Specs directory (default: specs/) |
|
|
241
|
+
| `-o, --output` | Specs directory (default: specs/) |
|
|
242
|
+
| `-o, --output` | Specs directory (default: specs/) |
|
|
243
|
+
| `-o, --output` | Specs directory (default: specs/) |
|
|
244
|
+
| `-y, --yes` | Skip confirmation |
|
|
245
|
+
| `-o, --output` | Specs directory (default: specs/) |
|
|
246
|
+
| `--archived` | Search only archived specs |
|
|
247
|
+
| `-o, --output` | Specs directory |
|
|
248
|
+
| `-o, --output` | Specs directory |
|
|
249
|
+
|
|
250
|
+
### `uds quickstart`
|
|
251
|
+
|
|
252
|
+
**说明**: Interactive workflow guide — find the right commands quickly
|
|
253
|
+
|
|
120
254
|
### `uds agent`
|
|
121
255
|
|
|
122
|
-
**说明**: Manage UDS agents
|
|
256
|
+
**说明**: Manage UDS agents for AI tools
|
|
123
257
|
|
|
124
258
|
**选项**:
|
|
125
259
|
| Option | 说明 |
|
|
@@ -129,13 +263,17 @@
|
|
|
129
263
|
| `-g, --global` | Install to user level instead of project level |
|
|
130
264
|
| `-y, --yes` | Skip confirmation prompts |
|
|
131
265
|
|
|
132
|
-
### `uds
|
|
266
|
+
### `uds ai-context`
|
|
133
267
|
|
|
134
|
-
**说明**: Manage
|
|
268
|
+
**说明**: Manage .ai-context.yaml configuration for AI-friendly architecture
|
|
135
269
|
|
|
136
|
-
### `uds
|
|
270
|
+
### `uds mcp`
|
|
271
|
+
|
|
272
|
+
**说明**: MCP server commands for AI tool integration
|
|
273
|
+
|
|
274
|
+
### `uds run`
|
|
137
275
|
|
|
138
|
-
**说明**:
|
|
276
|
+
**说明**: Run a project command by intent (test/lint/build/security) via uds.project.yaml
|
|
139
277
|
|
|
140
278
|
---
|
|
141
279
|
|
|
@@ -298,7 +436,7 @@
|
|
|
298
436
|
| `ai-agreement-standards` | 1.0.0 | This standard formalizes the interaction between Human (Acquirer) and AI (Suppli |
|
|
299
437
|
| `ai-command-behavior` | 1.0.0 | This standard defines a structure for specifying AI Agent runtime behavior in co |
|
|
300
438
|
| `ai-friendly-architecture` | 1.0.0 | This standard defines architecture and documentation practices that maximize the |
|
|
301
|
-
| `ai-instruction-standards` | 1.1.
|
|
439
|
+
| `ai-instruction-standards` | 1.1.1 | This standard defines best practices for creating and maintaining AI instruction |
|
|
302
440
|
| `ai-response-navigation` | 1.3.0 | This standard defines navigation behavior for AI responses: every substantive AI |
|
|
303
441
|
| `alerting-standards` | 1.0.0 | |
|
|
304
442
|
| `anti-hallucination` | 1.5.1 | This standard defines strict guidelines for AI assistants to prevent hallucinati |
|
|
@@ -605,9 +605,19 @@ test.each([
|
|
|
605
605
|
|
|
606
606
|
## CI/CD 整合
|
|
607
607
|
|
|
608
|
-
### GitHub Actions
|
|
608
|
+
### GitHub Actions —— 目前无法脚本化
|
|
609
|
+
|
|
610
|
+
`uds reverse-tdd` 这个 CLI 指令不存在。覆盖率缺口分析是以 **`reverse-tdd`
|
|
611
|
+
AI agent**(`uds agent install reverse-tdd`)提供——由你的 AI 工具交互式执行,
|
|
612
|
+
不是会吐出 `coverage.json` 的确定性脚本。本文件先前版本示范了一个调用不存在
|
|
613
|
+
CLI 指令的 GitHub Actions 步骤(XSPEC-383 R4,2026-08-19)。
|
|
614
|
+
|
|
615
|
+
下方仅为**示意**——展示若未来真的做出可脚本化的分析器,CI 整合可能长什么样,
|
|
616
|
+
不是现在就能贴进 workflow 使用的东西:
|
|
609
617
|
|
|
610
618
|
```yaml
|
|
619
|
+
# 示意用途——目前没有可脚本化的等价物。
|
|
620
|
+
# 现况:改用 reverse-tdd agent 从你的 AI 工具交互式执行。
|
|
611
621
|
name: BDD Coverage Check
|
|
612
622
|
|
|
613
623
|
on: [pull_request]
|
|
@@ -618,29 +628,9 @@ jobs:
|
|
|
618
628
|
steps:
|
|
619
629
|
- uses: actions/checkout@v4
|
|
620
630
|
|
|
621
|
-
- name: Run BDD Coverage Analysis
|
|
622
|
-
run: |
|
|
623
|
-
uds reverse-tdd features/ --output coverage.json
|
|
624
|
-
|
|
625
|
-
- name: Check Coverage Threshold
|
|
631
|
+
- name: Run BDD Coverage Analysis (尚未实现)
|
|
626
632
|
run: |
|
|
627
|
-
|
|
628
|
-
if (( $(echo "$COVERAGE < 0.80" | bc -l) )); then
|
|
629
|
-
echo "Coverage $COVERAGE below 80% threshold"
|
|
630
|
-
exit 1
|
|
631
|
-
fi
|
|
632
|
-
|
|
633
|
-
- name: Comment on PR
|
|
634
|
-
uses: actions/github-script@v6
|
|
635
|
-
with:
|
|
636
|
-
script: |
|
|
637
|
-
const coverage = require('./coverage.json');
|
|
638
|
-
github.rest.issues.createComment({
|
|
639
|
-
issue_number: context.issue.number,
|
|
640
|
-
owner: context.repo.owner,
|
|
641
|
-
repo: context.repo.repo,
|
|
642
|
-
body: `## BDD 覆盖率报告\n\n覆盖率: ${(coverage.summary.effectiveCoverage * 100).toFixed(1)}%`
|
|
643
|
-
});
|
|
633
|
+
echo "目前没有 CLI 等价物——交互式用法请见 reverse-tdd agent"
|
|
644
634
|
```
|
|
645
635
|
|
|
646
636
|
---
|
|
@@ -164,18 +164,9 @@ steps:
|
|
|
164
164
|
|
|
165
165
|
## 用法
|
|
166
166
|
|
|
167
|
-
###
|
|
167
|
+
### 获取 Workflows
|
|
168
168
|
|
|
169
|
-
|
|
170
|
-
# List available workflows
|
|
171
|
-
uds workflow list
|
|
172
|
-
|
|
173
|
-
# Install specific workflow
|
|
174
|
-
uds workflow install integrated-flow
|
|
175
|
-
|
|
176
|
-
# Install all workflows
|
|
177
|
-
uds workflow install --all
|
|
178
|
-
```
|
|
169
|
+
`uds workflow` 已于 v6.0.0 移除(流程编排职责移至采用层——DEC-049;见 [MIGRATION-v6.md §3](../../../../docs/MIGRATION-v6.md#3-removed-4-deprecated-cli-commands))。没有 CLI 安装步骤:workflow 定义直接存放在本 repo 的 `skills/workflows/*.workflow.yaml`(见上方表格),请直接引用路径或复制到项目的 `.claude/workflows/`。
|
|
179
170
|
|
|
180
171
|
### 执行
|
|
181
172
|
|