universal-dev-standards 6.0.0 → 6.1.1
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/bundled/ai/options/commit-message/bilingual.ai.yaml +19 -1
- package/bundled/ai/standards/checkin-standards.ai.yaml +3 -3
- package/bundled/ai/standards/documentation-writing-standards.ai.yaml +1 -1
- package/bundled/ai/standards/frontend-design-standards.ai.yaml +33 -3
- package/bundled/ai/standards/push-standards.ai.yaml +14 -3
- package/bundled/ai/standards/requirement-engineering.ai.yaml +42 -3
- package/bundled/ai/standards/self-review-protocol.ai.yaml +15 -10
- package/bundled/ai/standards/verification-evidence.ai.yaml +88 -5
- package/bundled/core/checkin-standards.md +3 -3
- package/bundled/core/documentation-writing-standards.md +1 -1
- package/bundled/core/feature-discovery-standards.md +191 -0
- package/bundled/core/frontend-design-standards.md +93 -4
- package/bundled/core/multi-environment-e2e-testing.md +195 -0
- package/bundled/core/push-standards.md +82 -0
- package/bundled/core/requirement-engineering.md +2 -2
- package/bundled/core/self-review-protocol.md +13 -8
- package/bundled/core/verification-evidence.md +170 -10
- package/bundled/locales/COVERAGE.md +27 -21
- package/bundled/locales/zh-CN/CHANGELOG.md +38 -3
- package/bundled/locales/zh-CN/CLAUDE.md +1 -1
- package/bundled/locales/zh-CN/MAINTENANCE.md +42 -661
- package/bundled/locales/zh-CN/README.md +10 -10
- package/bundled/locales/zh-CN/SECURITY.md +2 -2
- package/bundled/locales/zh-CN/ai/options/commit-message/bilingual.ai.yaml +6 -1
- package/bundled/locales/zh-CN/core/browser-compatibility-standards.md +17 -7
- package/bundled/locales/zh-CN/core/cost-budget-test.md +1 -1
- package/bundled/locales/zh-CN/core/cross-flow-regression.md +8 -7
- package/bundled/locales/zh-CN/core/flaky-test-management.md +1 -1
- package/bundled/locales/zh-CN/core/flow-based-testing.md +8 -8
- package/bundled/locales/zh-CN/core/frontend-design-standards.md +1 -1
- package/bundled/locales/zh-CN/core/full-coverage-testing.md +74 -2
- package/bundled/locales/zh-CN/core/license-compliance.md +3 -1
- package/bundled/locales/zh-CN/core/logging-standards.md +83 -7
- package/bundled/locales/zh-CN/core/mock-boundary.md +58 -6
- package/bundled/locales/zh-CN/core/packaging-standards.md +2 -1
- package/bundled/locales/zh-CN/core/pipeline-security-gates.md +24 -4
- package/bundled/locales/zh-CN/core/prompt-regression.md +1 -1
- package/bundled/locales/zh-CN/core/replay-test.md +1 -1
- package/bundled/locales/zh-CN/core/requirement-engineering.md +1 -1
- package/bundled/locales/zh-CN/core/security-testing.md +24 -7
- package/bundled/locales/zh-CN/core/self-review-protocol.md +17 -12
- package/bundled/locales/zh-CN/core/smoke-test.md +1 -1
- package/bundled/locales/zh-CN/core/verification-evidence.md +252 -41
- package/bundled/locales/zh-CN/docs/CHEATSHEET.md +6 -2
- package/bundled/locales/zh-CN/docs/FEATURE-REFERENCE.md +16 -25
- package/bundled/locales/zh-CN/docs/user/GLOSSARY.md +1 -1
- package/bundled/locales/zh-CN/options/commit-message/bilingual.md +10 -3
- package/bundled/locales/zh-CN/skills/brainstorm-assistant/SKILL.md +21 -19
- package/bundled/locales/zh-CN/skills/brainstorm-assistant/guide.md +14 -11
- package/bundled/locales/zh-CN/skills/dev-methodology/guide.md +1 -1
- package/bundled/locales/zh-CN/skills/logging-guide/SKILL.md +29 -6
- package/bundled/locales/zh-CN/skills/spec-derivation/guide.md +1 -1
- package/bundled/locales/zh-TW/CHANGELOG.md +38 -3
- package/bundled/locales/zh-TW/CLAUDE.md +1 -1
- package/bundled/locales/zh-TW/MAINTENANCE.md +32 -8
- package/bundled/locales/zh-TW/README.md +10 -10
- package/bundled/locales/zh-TW/SECURITY.md +2 -2
- package/bundled/locales/zh-TW/ai/options/commit-message/bilingual.ai.yaml +6 -1
- package/bundled/locales/zh-TW/core/cost-budget-test.md +1 -1
- package/bundled/locales/zh-TW/core/flaky-test-management.md +1 -1
- package/bundled/locales/zh-TW/core/flow-based-testing.md +8 -8
- package/bundled/locales/zh-TW/core/frontend-design-standards.md +1 -1
- package/bundled/locales/zh-TW/core/license-compliance.md +3 -1
- package/bundled/locales/zh-TW/core/logging-standards.md +2 -2
- package/bundled/locales/zh-TW/core/mock-boundary.md +1 -1
- package/bundled/locales/zh-TW/core/packaging-standards.md +2 -1
- package/bundled/locales/zh-TW/core/pipeline-security-gates.md +24 -4
- package/bundled/locales/zh-TW/core/prompt-regression.md +1 -1
- package/bundled/locales/zh-TW/core/replay-test.md +1 -1
- package/bundled/locales/zh-TW/core/requirement-engineering.md +1 -1
- package/bundled/locales/zh-TW/core/security-testing.md +24 -7
- package/bundled/locales/zh-TW/core/self-review-protocol.md +16 -11
- package/bundled/locales/zh-TW/core/smoke-test.md +1 -1
- package/bundled/locales/zh-TW/core/verification-evidence.md +260 -31
- package/bundled/locales/zh-TW/docs/CHEATSHEET.md +6 -2
- package/bundled/locales/zh-TW/docs/FEATURE-REFERENCE.md +16 -25
- package/bundled/locales/zh-TW/docs/user/GLOSSARY.md +1 -1
- package/bundled/locales/zh-TW/options/commit-message/bilingual.md +10 -3
- package/bundled/locales/zh-TW/skills/brainstorm-assistant/SKILL.md +21 -19
- package/bundled/locales/zh-TW/skills/brainstorm-assistant/guide.md +14 -11
- package/bundled/locales/zh-TW/skills/dev-methodology/guide.md +1 -1
- package/bundled/locales/zh-TW/skills/logging-guide/SKILL.md +29 -6
- package/bundled/locales/zh-TW/skills/spec-derivation/guide.md +1 -1
- package/bundled/skills/brainstorm-assistant/SKILL.md +22 -20
- package/bundled/skills/brainstorm-assistant/guide.md +10 -7
- package/bundled/skills/spec-driven-dev/SKILL.md +11 -0
- package/package.json +3 -3
- package/src/commands/check.js +23 -13
- package/src/commands/init.js +58 -17
- package/src/i18n/messages.js +6 -6
- package/standards-registry.json +10 -10
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# UDS 功能参考手册
|
|
2
2
|
|
|
3
3
|
> Universal Development Standards - 完整功能文档
|
|
4
|
-
> Auto-generated | Last updated: 2026-
|
|
4
|
+
> Auto-generated | Last updated: 2026-07-09
|
|
5
5
|
|
|
6
6
|
**Language**: [English](../../../docs/reference/FEATURE-REFERENCE.md) | [繁體中文](../../zh-TW/docs/FEATURE-REFERENCE.md) | 简体中文
|
|
7
7
|
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
3. [技能](#skills) (55)
|
|
15
15
|
4. [代理](#agents) (5)
|
|
16
16
|
5. [工作流程](#workflows) (5)
|
|
17
|
-
6. [核心规范](#core-standards) (
|
|
18
|
-
7. [脚本](#scripts) (
|
|
17
|
+
6. [核心规范](#core-standards) (149)
|
|
18
|
+
7. [脚本](#scripts) (58)
|
|
19
19
|
|
|
20
|
-
**Total Features:
|
|
20
|
+
**Total Features: 332**
|
|
21
21
|
|
|
22
22
|
---
|
|
23
23
|
|
|
@@ -132,20 +132,6 @@
|
|
|
132
132
|
|
|
133
133
|
**说明**: Manage UDS workflows (list, install, info, execute, status)
|
|
134
134
|
|
|
135
|
-
**选项**:
|
|
136
|
-
| Option | 说明 |
|
|
137
|
-
|--------|-------------|
|
|
138
|
-
| `--installed` | Show installation status for all AI tools |
|
|
139
|
-
| `-t, --tool` | Target AI tool (default: claude-code) |
|
|
140
|
-
| `-g, --global` | Install to user level instead of project level |
|
|
141
|
-
| `-y, --yes` | Skip confirmation prompts |
|
|
142
|
-
| `-t, --tool` | Target AI tool (default: claude-code) |
|
|
143
|
-
| `--resume` | Resume from saved state |
|
|
144
|
-
| `--restart` | Restart from beginning (discard saved state) |
|
|
145
|
-
| `-v, --verbose` | Show detailed output |
|
|
146
|
-
| `--dry-run` | Show steps without executing |
|
|
147
|
-
| `-y, --yes` | Skip confirmation prompts |
|
|
148
|
-
|
|
149
135
|
### `uds ai-context`
|
|
150
136
|
|
|
151
137
|
**说明**: Manage AI context configuration (init, validate, graph)
|
|
@@ -316,7 +302,7 @@
|
|
|
316
302
|
| `alerting-standards` | 1.0.0 | |
|
|
317
303
|
| `anti-hallucination` | 1.5.1 | This standard defines strict guidelines for AI assistants to prevent hallucinati |
|
|
318
304
|
| `anti-sycophancy-prompting` | 1.0.0 | This standard defines techniques and rules for designing prompts that elicit gen |
|
|
319
|
-
| `api-design-standards` | 1.
|
|
305
|
+
| `api-design-standards` | 1.1.0 | This standard defines comprehensive guidelines for designing, building, and main |
|
|
320
306
|
| `audit-trail` | 1.0.0 | **Status**: Active | **Updated**: 2026-06-17 | |
|
|
321
307
|
| `behavior-driven-development` | 1.1.0 | |
|
|
322
308
|
| `behavior-snapshot` | - | |
|
|
@@ -344,7 +330,7 @@
|
|
|
344
330
|
| `data-pipeline` | 1.0.0 | **Status**: Active | **Updated**: 2026-06-17 | |
|
|
345
331
|
| `database-standards` | 1.0.0 | This standard defines guidelines for database design, querying, migration, and o |
|
|
346
332
|
| `deployment-standards` | 1.1.0 | This standard defines guidelines for safely deploying software to production, co |
|
|
347
|
-
| `deprecation-standards` | 1.
|
|
333
|
+
| `deprecation-standards` | 1.1.0 | |
|
|
348
334
|
| `design-document-standards` | 1.0.0 | |
|
|
349
335
|
| `developer-memory` | 1.1.1 | This standard defines a structured system for capturing, retrieving, and surfaci |
|
|
350
336
|
| `disaster-recovery-drill` | - | |
|
|
@@ -357,6 +343,7 @@
|
|
|
357
343
|
| `estimation-standards` | 1.0.0 | |
|
|
358
344
|
| `execution-history` | 1.0.0 | |
|
|
359
345
|
| `failure-source-taxonomy` | - | |
|
|
346
|
+
| `feature-discovery-standards` | 1.0.0 | **Status**: Active | **Updated**: 2026-05-13 | |
|
|
360
347
|
| `feature-flag-standards` | 1.0.0 | |
|
|
361
348
|
| `feature-manifest-standard` | - | |
|
|
362
349
|
| `flaky-test-management` | - | |
|
|
@@ -376,9 +363,10 @@
|
|
|
376
363
|
| `license-compliance` | 2.1.0 | **Status**: Active | **Updated**: 2026-05-16 | |
|
|
377
364
|
| `llm-output-validation` | - | |
|
|
378
365
|
| `logging-standards` | 1.4.0 | |
|
|
379
|
-
| `mock-boundary` | 1.
|
|
366
|
+
| `mock-boundary` | 1.1.0 | This document defines rules for what can and cannot be mocked in tests. Its goal |
|
|
380
367
|
| `model-provenance` | 1.0.0 | **Status**: Active | **Updated**: 2026-06-17 | |
|
|
381
368
|
| `model-selection` | 1.0.1 | Define a cost-effective strategy for selecting AI model tiers based on task comp |
|
|
369
|
+
| `multi-environment-e2e-testing` | 1.0.0 | **Status**: Active | **Updated**: 2026-05-13 | |
|
|
382
370
|
| `mutation-testing` | 1.0.0 | Mutation testing evaluates test suite effectiveness by injecting artificial bugs |
|
|
383
371
|
| `no-cicd-deployment` | - | |
|
|
384
372
|
| `observability-standards` | 1.0.0 | |
|
|
@@ -396,8 +384,9 @@
|
|
|
396
384
|
| `project-structure` | 1.2.0 | This standard defines conventions for project directory structure beyond documen |
|
|
397
385
|
| `prompt-regression` | - | |
|
|
398
386
|
| `property-based-testing` | - | |
|
|
387
|
+
| `push-standards` | 1.0.0 | **Status**: Active | **Updated**: 2026-04-23 | |
|
|
399
388
|
| `recovery-recipe-registry` | - | |
|
|
400
|
-
| `refactoring-standards` | 2.
|
|
389
|
+
| `refactoring-standards` | 2.2.0 | This standard defines comprehensive guidelines for code refactoring, covering ev |
|
|
401
390
|
| `release-quality-manifest` | - | |
|
|
402
391
|
| `release-readiness-gate` | 1.0.0 | This standard defines a **single, aggregated Release Readiness Gate** that unifi |
|
|
403
392
|
| `replay-test` | - | |
|
|
@@ -405,7 +394,7 @@
|
|
|
405
394
|
| `resource-cost-boundary` | 1.0.0 | **Status**: Active | **Updated**: 2026-06-17 | |
|
|
406
395
|
| `retrospective-standards` | 1.0.0 | Retrospectives are structured team reflections that identify what worked well, w |
|
|
407
396
|
| `retry-standards` | - | |
|
|
408
|
-
| `reverse-engineering-standards` | 1.
|
|
397
|
+
| `reverse-engineering-standards` | 1.2.0 | This standard defines the principles, workflows, and best practices for reverse |
|
|
409
398
|
| `rollback-standards` | - | |
|
|
410
399
|
| `runbook-standards` | 1.0.0 | |
|
|
411
400
|
| `runbook` | 1.0.0 | **Status**: Active | **Updated**: 2026-06-17 | |
|
|
@@ -416,7 +405,7 @@
|
|
|
416
405
|
| `security-decision` | - | |
|
|
417
406
|
| `security-standards` | 1.1.0 | This standard defines comprehensive security guidelines for software development |
|
|
418
407
|
| `security-testing` | 1.1.0 | This document defines the security testing methodology for software projects. It |
|
|
419
|
-
| `self-review-protocol` | 1.
|
|
408
|
+
| `self-review-protocol` | 1.1.0 | This standard mandates a **self-review pass** on large markdown edits before com |
|
|
420
409
|
| `server-ops-security` | - | |
|
|
421
410
|
| `skill-standard-alignment-check` | - | |
|
|
422
411
|
| `slo-sli` | 1.0.0 | **Status**: Active | **Updated**: 2026-06-17 | |
|
|
@@ -438,10 +427,11 @@
|
|
|
438
427
|
| `timeout-standards` | - | |
|
|
439
428
|
| `token-budget` | - | |
|
|
440
429
|
| `translation-lifecycle-standards` | 1.0.0 | Translation lifecycle standards: MISSING vs OUTDATED distinction, semver-aware s |
|
|
430
|
+
| `user-journey-testing` | - | |
|
|
441
431
|
| `user-story-mapping` | 1.0.0 | **Status**: Active | **Updated**: 2026-06-17 | |
|
|
442
432
|
| `verification-evidence` | 1.0.0 | Establish an "Iron Law" that no task can be claimed as complete without verifica |
|
|
443
433
|
| `verification-oracle` | 1.0.0 | **Status**: Active | **Updated**: 2026-06-17 | |
|
|
444
|
-
| `versioning` | 1.
|
|
434
|
+
| `versioning` | 1.5.0 | This standard defines how to version software releases using Semantic Versioning |
|
|
445
435
|
| `virtual-organization-standards` | 1.0.0 | This standard treats the AI ecosystem as a "Virtual Organization." It defines ho |
|
|
446
436
|
| `workflow-enforcement` | - | |
|
|
447
437
|
| `workflow-state-protocol` | 1.0.0 | |
|
|
@@ -493,6 +483,7 @@
|
|
|
493
483
|
| `check-version-sync.ps1` | Check Version Sync |
|
|
494
484
|
| `check-version-sync.sh` | Version Sync Checker |
|
|
495
485
|
| `check-workflow-compliance.sh` | DEPRECATED: Use 'npx tsx scripts/check-workflow-compliance.ts' instead (cross-platform). |
|
|
486
|
+
| `commitlint-bilingual-rule.mjs` | commitlint-bilingual-rule.mjs — custom commitlint rules enforcing the |
|
|
496
487
|
| `convert-md-to-yaml.mjs` | Markdown to AI-YAML Conversion Script |
|
|
497
488
|
| `fix-manifest-paths.ps1` | Fix Manifest Paths |
|
|
498
489
|
| `fix-manifest-paths.sh` | Manifest Path Fixer |
|
|
@@ -105,7 +105,7 @@ _参见:`/tdd`、`test-driven-development` 标准_
|
|
|
105
105
|
## U
|
|
106
106
|
|
|
107
107
|
**UDS(Universal Development Standards,通用开发标准)**
|
|
108
|
-
本项目。一套与语言无关、与框架无关的软件开发质量汇集,含
|
|
108
|
+
本项目。一套与语言无关、与框架无关的软件开发质量汇集,含 149 个核心标准、55 个 AI skill 与 51 个斜线命令。
|
|
109
109
|
|
|
110
110
|
**UDS Manifest(`uds-manifest.json`)**
|
|
111
111
|
所有 UDS 标准与 skill 的机器可读索引。包含统计数据、skill 对命令的对照,以及分类归属。供 UDS CLI 与文档生成器使用。
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
source: ../../../../options/commit-message/bilingual.md
|
|
3
|
-
source_version: 1.
|
|
4
|
-
translation_version: 1.
|
|
5
|
-
last_synced:
|
|
3
|
+
source_version: 1.1.0
|
|
4
|
+
translation_version: 1.1.0
|
|
5
|
+
last_synced: 2026-07-09
|
|
6
6
|
status: current
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -136,6 +136,13 @@ docs: fix typo in README / 修正 README 错字
|
|
|
136
136
|
- 「小变更」时跳过一种语言
|
|
137
137
|
- 不必要地翻译技术术语
|
|
138
138
|
|
|
139
|
+
## AI 助手执行期纪律
|
|
140
|
+
|
|
141
|
+
本选项也适用于以此双语模式撰写用户对话文字的 AI 助手,不只 commit message。长对话中,助手刚处理完大量非目标语言内容(代码、log、英文文档)后,下一段回复容易漂移到错误语言。
|
|
142
|
+
|
|
143
|
+
- **切换回复前先自检** — 处理完大量非目标语言内容后,写下一段用户对话文字前先确认会使用目标语言,不需等用户指出才发现。
|
|
144
|
+
- **立即修正,不拖延** — 若用户已指出语言跑偏,下一则回复就要修正,不要重复道歉或继续漂移。
|
|
145
|
+
|
|
139
146
|
## 技术术语
|
|
140
147
|
|
|
141
148
|
保持技术术语使用英文:
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: brainstorm-assistant
|
|
3
3
|
source: ../../../../skills/brainstorm-assistant/SKILL.md
|
|
4
|
-
source_version: 4.
|
|
5
|
-
source_hash:
|
|
6
|
-
translation_version: 4.
|
|
7
|
-
last_synced: 2026-
|
|
4
|
+
source_version: 4.1.0
|
|
5
|
+
source_hash: 0c1fa3392232
|
|
6
|
+
translation_version: 4.1.0
|
|
7
|
+
last_synced: 2026-07-09
|
|
8
8
|
status: current
|
|
9
9
|
description: |
|
|
10
10
|
在编写规格前进行结构化 AI 辅助头脑风暴。
|
|
@@ -23,7 +23,7 @@ description: |
|
|
|
23
23
|
|
|
24
24
|
**v3 的核心改动:** v3 把发散从「单一 AI 冲数量」改为 **persona 集成**(每个角色以思维链独立推理)×**多样性透镜**;把收敛从「单一 AI 评分 + 单一反驳」改为**多评审面板** + **硬角色反驳**(Devil's Advocate + Steelman)。这直接对应文献中最强的结论:多 persona 胜过单次 pass,而单一 LLM 评审既弱又易谄媚。
|
|
25
25
|
|
|
26
|
-
**v4 的核心改动:** v3 提供了强健的*机制*,却没有可判定 pass/fail 的质量闸。v4 在其上叠加一道**时序化质量契约**——**头脑风暴质量标准(BQS v1)**——且不移除任何 v3 行为。BQS 是**四层 × 时间轴**结构:第 0 层宣告 explore/exploit 配比;第 1 层(过程、leading、发散期全程可见)跑维度 **D1–D4**;第 2 层(产物、leading
|
|
26
|
+
**v4 的核心改动:** v3 提供了强健的*机制*,却没有可判定 pass/fail 的质量闸。v4 在其上叠加一道**时序化质量契约**——**头脑风暴质量标准(BQS v1)**——且不移除任何 v3 行为。BQS 是**四层 × 时间轴**结构:第 0 层宣告 explore/exploit 配比;第 1 层(过程、leading、发散期全程可见)跑维度 **D1–D4**;第 2 层(产物、leading、收敛后仅施于推荐集,即 Agg. Score ≥ 3.5、不限笔数的想法)跑 **D5–D8** 加 Seeds 栏与争议区;第 3 层是不受治理的 **Judgment Override**。第一原理:**决策用 leading 信号、校准用 lagging 信号——两者是时间前后,而非对错取舍。** 硬序列闸禁止 D5–D8 在发散期被揭示或评分。详见下方「BQS v1 — 质量契约」。
|
|
27
27
|
|
|
28
28
|
## 使用前先选模式
|
|
29
29
|
|
|
@@ -45,7 +45,7 @@ description: |
|
|
|
45
45
|
```
|
|
46
46
|
[模式选择] ─► PRE-FLIGHT ─► FRAME ─► DIVERGE ───────────► CONVERGE ──────────► OUTPUT
|
|
47
47
|
客观路由 防止锚定 定义问题 persona 集成+透镜 多评审面板+硬角色反驳 输出提案
|
|
48
|
-
▲ 第 0 层 意图 ▲ 第 1 层(D1–D4,leading) ▲ 第 2 层(D5–D8
|
|
48
|
+
▲ 第 0 层 意图 ▲ 第 1 层(D1–D4,leading) ▲ 第 2 层(D5–D8,推荐集) ▲ 第 3 层 override
|
|
49
49
|
```
|
|
50
50
|
|
|
51
51
|
---
|
|
@@ -71,9 +71,9 @@ BQS 是**四层 × 时间轴**契约。它是 v3 的**叠加**——所有 v3
|
|
|
71
71
|
|
|
72
72
|
> **硬序列闸:** D5–D8 禁止在发散期揭示或评分;CONVERGE 的 critic 不得在**最后一个 persona** 产完前被调用。
|
|
73
73
|
|
|
74
|
-
### 第 2 层 — 产物(收敛后 leading
|
|
74
|
+
### 第 2 层 — 产物(收敛后 leading,仅施于推荐集)
|
|
75
75
|
|
|
76
|
-
> 评判维度限缩在**收敛后 ×
|
|
76
|
+
> 评判维度限缩在**收敛后 × 仅推荐集**(Agg. Score ≥ 3.5 的想法,不限笔数),绝不在发散期对全部想法当硬闸(否则回溯污染发散、扼杀无证据的未来想法、制造填表剧场)。
|
|
77
77
|
|
|
78
78
|
| 维度 | Oracle |
|
|
79
79
|
|------|--------|
|
|
@@ -90,11 +90,11 @@ BQS 是**四层 × 时间轴**契约。它是 v3 的**叠加**——所有 v3
|
|
|
90
90
|
|
|
91
91
|
### 结构规则
|
|
92
92
|
|
|
93
|
-
1. **Meta 停止规则:** 该层维度全绿 **且** 再跑一轮后
|
|
93
|
+
1. **Meta 停止规则:** 该层维度全绿 **且** 再跑一轮后 **推荐集成员不变**(看集合成员、不看内部排序)→停。**硬上限 2 轮**。取代模糊的「不翻决策」。
|
|
94
94
|
2. **判官≠产生者:** D2/D4/D5/D7 判定须独立视角;单 context 自评只能 `[degraded]`,不得 pass。
|
|
95
95
|
3. **校准回路(吃 lagging):** v3 的三个工作阶段自评指标收编为此回路 **lagging** 端——**Adoption Rate=D6 滞后验证、Diversity=D2/D3 滞后观测、Cognitive Load=成本约束**;**禁两套平行评估**。
|
|
96
96
|
4. **BQS 自我演化(轻量):** 版本化 + 证据清单 last-reviewed 逾期 flag;「定期对 BQS 自身 brainstorm」列可选。
|
|
97
|
-
5. **最小充分原则:** 套用该 tier 所需的最少维度 +
|
|
97
|
+
5. **最小充分原则:** 套用该 tier 所需的最少维度 + 把第 2 层限缩在推荐集(Agg. Score ≥ 3.5),而非全部发散想法——认知经济性的守门,不另设成本维度。
|
|
98
98
|
|
|
99
99
|
### 分级(绑 v3 既有客观触发,非自评)
|
|
100
100
|
|
|
@@ -210,7 +210,7 @@ BQS 是**四层 × 时间轴**契约。它是 v3 的**叠加**——所有 v3
|
|
|
210
210
|
|
|
211
211
|
#### 步骤 3b:硬角色反驳轮
|
|
212
212
|
|
|
213
|
-
软性的「请批评一下」指令只会得到附和(谄媚)。v3
|
|
213
|
+
软性的「请批评一下」指令只会得到附和(谄媚)。v3 指派**硬角色**:对**推荐集**(Agg. Score ≥ 3.5,不限笔数)中的每一个想法各跑一个 **Devil's Advocate**(「你的任务是论证此案会失败」)与一个 **Steelman**(「说出反方最强而善意的版本」)。两者一起对韧性做压力测试,而非只是戳一下。
|
|
214
214
|
|
|
215
215
|
每个反对理由必须采用以下形式:「在 [具体情境] 下,此想法会失败,因为 [具体原因]。」模糊顾虑(「这可能有点难」)不接受。
|
|
216
216
|
|
|
@@ -226,16 +226,16 @@ BQS 是**四层 × 时间轴**契约。它是 v3 的**叠加**——所有 v3
|
|
|
226
226
|
|
|
227
227
|
> **BQS D4 — 判官≠产生者:** D4 唯有**评审/Devil's Advocate 在独立 context 执行**(`--enhanced` 隔离 agent 宿主)才可 pass。baseline 单 context 下,面板是同 context 自评,标 `[degraded]`、**不得标 pass**——诚实但非独立。不得把 baseline 跑当成 D4 pass 静默通过。
|
|
228
228
|
|
|
229
|
-
#### 步骤 3c:BQS 第 2
|
|
229
|
+
#### 步骤 3c:BQS 第 2 层——对推荐集的产物闸
|
|
230
230
|
|
|
231
|
-
|
|
231
|
+
收敛后,**仅对推荐集**(Agg. Score ≥ 3.5 的想法,不限笔数)套用 **D5–D8**(绝不对全部发散想法)。若无想法达 3.5,仍保留分数最高的 1 个,标记 `[未达门槛——仅供参考]`,避免报告空白。对推荐集中每个想法:
|
|
232
232
|
|
|
233
233
|
- **D5 接地:** 将每个主张分流为 `[现状/外部事实]`(需 file:line 或来源,否则 fail)vs `[未来/假说]`(免接地、标 `[假说]`)。**外部事实宣称为跨级地板**——creative 级也须接地。
|
|
234
|
-
- **D6 净值:**
|
|
234
|
+
- **D6 净值:** 推荐集中每个想法须答「解谁问题/我们真有吗/不做的代价」;至少一个淘汰为「不值得做」;挂 **lagging 登记栏**(事后哪个信号验证)。
|
|
235
235
|
- **D7 可证伪(二态):** 标 `[现可陈述证伪]` **或** `[需先做 X 才能定义证伪]`。后者**转 next-step 喂 D8——不算 fail**。
|
|
236
236
|
- **D8 可行动:** 每个存活想法需 next-step 裁决(含明确「暂不做」);无 → fail。
|
|
237
237
|
|
|
238
|
-
> **Meta 停止规则(BQS 结构规则 1):** 当套用的维度全绿 **且** 再跑一轮后
|
|
238
|
+
> **Meta 停止规则(BQS 结构规则 1):** 当套用的维度全绿 **且** 再跑一轮后 **推荐集成员不变**(看集合成员、非内部排序)→停。**硬上限 2 轮。**
|
|
239
239
|
|
|
240
240
|
---
|
|
241
241
|
|
|
@@ -259,12 +259,14 @@ BQS 是**四层 × 时间轴**契约。它是 v3 的**叠加**——所有 v3
|
|
|
259
259
|
|---|------|---------|------|-------------|---------------|--------------|-----------|
|
|
260
260
|
| 1 | ... | Skeptic | Reversal | 4.0 | 4.5 | 4.0 | 4.2 |
|
|
261
261
|
|
|
262
|
-
##
|
|
263
|
-
1. **[Idea]** ✓ Passed rebuttal — [Why] — Persona: [..] — [User rebuttal response]
|
|
262
|
+
## Recommendations (BQS Layer 2 applied, Agg. Score ≥ 3.5 — uncapped)
|
|
263
|
+
1. **[Idea]** (Agg. X.X) ✓ Passed rebuttal — [Why] — Persona: [..] — [User rebuttal response]
|
|
264
264
|
- D5 grounding: [current-state claims with file:line | future claims marked [hypothesis]]
|
|
265
265
|
- D6 net benefit: [whose problem / do we have it / cost of not doing] — lagging signal: [..]
|
|
266
266
|
- D7 falsifiability: [falsifiable now | need to do X first → next-step]
|
|
267
267
|
- D8 next-step: [action | defer]
|
|
268
|
+
2. **[Idea]** (Agg. X.X) ✓ Passed rebuttal — ...
|
|
269
|
+
<!-- 列出所有 Agg. Score ≥ 3.5 的想法,依分数由高到低排序——不限 3 条。若无想法达 3.5,仅列分数最高的 1 个,标「[below threshold — shown for reference]」。 -->
|
|
268
270
|
|
|
269
271
|
## Contested Zone (high critic-variance ideas)
|
|
270
272
|
[Ideas whose critic variance exceeded threshold — surfaced, NOT eliminated by mean ranking (barbell long-tail)]
|
|
@@ -286,7 +288,7 @@ BQS 是**四层 × 时间轴**契约。它是 v3 的**叠加**——所有 v3
|
|
|
286
288
|
- [ ] Proceed to `/sdd` if requirements are clear
|
|
287
289
|
```
|
|
288
290
|
|
|
289
|
-
> **BQS 输出新增(v4):** **Seeds** 区(规则:被杀 ≥1 则非空)、**争议区**(高方差想法不按 mean 淘汰)、**Judgment Override** 通道(人类裁决凌驾聚合分)为 BQS 第 2/3 层所要求。
|
|
291
|
+
> **BQS 输出新增(v4):** **Seeds** 区(规则:被杀 ≥1 则非空)、**争议区**(高方差想法不按 mean 淘汰)、**Judgment Override** 通道(人类裁决凌驾聚合分)为 BQS 第 2/3 层所要求。Recommendations 区块为推荐集(不限笔数)中每个想法逐项记录 D5–D8 状态。
|
|
290
292
|
|
|
291
293
|
## 多样性崩塌防护
|
|
292
294
|
|
|
@@ -294,7 +296,7 @@ BQS 是**四层 × 时间轴**契约。它是 v3 的**叠加**——所有 v3
|
|
|
294
296
|
|
|
295
297
|
- **绝不**用竞品或产品类比(「像 X 但给 Y」)当种子。
|
|
296
298
|
- **改变透镜**,而非只改措辞——换个说法 ≠ 多样化。
|
|
297
|
-
-
|
|
299
|
+
- 若存活的推荐集全来自同一 persona/透镜,**标示出来**并在 OUTPUT 前再跑一个透镜。
|
|
298
300
|
|
|
299
301
|
## 强化层——并行 persona
|
|
300
302
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
scope: universal
|
|
3
3
|
source: ../../../../skills/brainstorm-assistant/guide.md
|
|
4
|
-
source_version: 4.
|
|
5
|
-
source_hash:
|
|
6
|
-
translation_version: 4.
|
|
7
|
-
last_synced: 2026-
|
|
4
|
+
source_version: 4.1.0
|
|
5
|
+
source_hash: c5cd260548c2
|
|
6
|
+
translation_version: 4.1.0
|
|
7
|
+
last_synced: 2026-07-09
|
|
8
8
|
status: current
|
|
9
9
|
description: |
|
|
10
10
|
指导在编写规格前进行结构化 AI 辅助头脑风暴。
|
|
@@ -16,8 +16,8 @@ description: |
|
|
|
16
16
|
|
|
17
17
|
> **语言**: [English](../../../../skills/brainstorm-assistant/guide.md) | 简体中文
|
|
18
18
|
|
|
19
|
-
**版本**: 4.
|
|
20
|
-
**最后更新**: 2026-
|
|
19
|
+
**版本**: 4.1.0
|
|
20
|
+
**最后更新**: 2026-07-09
|
|
21
21
|
**适用范围**: 所有软件项目
|
|
22
22
|
**Scope**: universal
|
|
23
23
|
**类型**: 工具型 Skill(无对应核心标准)
|
|
@@ -55,10 +55,10 @@ v3 提供了强健的*机制*,却没有**可判定 pass/fail 的质量闸**—
|
|
|
55
55
|
|
|
56
56
|
- **第 0 层 — 意图**:宣告 explore/exploit 配比;调节维度权重。
|
|
57
57
|
- **第 1 层 — 过程(发散期 leading、可见)**:维度 **D1 框架纯度/D2 发散覆盖/D3 跨会话多样性/D4 评估去偏**,各有 oracle。**硬序列闸**禁止评判维度 D5–D8 在发散期被揭示或评分。
|
|
58
|
-
- **第 2 层 — 产物(收敛后 leading
|
|
58
|
+
- **第 2 层 — 产物(收敛后 leading、仅施于推荐集——Agg. Score ≥ 3.5,不限笔数)**:**D5 接地/D6 净值/D7 可证伪/D8 可行动**,加 Seeds 栏与高方差想法的争议区。
|
|
59
59
|
- **第 3 层 — 不可治理**:Judgment Override,人类直觉凌驾聚合分数。
|
|
60
60
|
|
|
61
|
-
第一原理被修正:**决策用 leading 信号、校准用 lagging 信号——两者是时间前后,而非对错取舍**(移除任何「只用 leading 不用 lagging」绝对说法)。核心主张:评判维度限缩在**收敛后 ×
|
|
61
|
+
第一原理被修正:**决策用 leading 信号、校准用 lagging 信号——两者是时间前后,而非对错取舍**(移除任何「只用 leading 不用 lagging」绝对说法)。核心主张:评判维度限缩在**收敛后 × 仅推荐集**(Agg. Score ≥ 3.5,不限笔数),绝不在发散期对全部想法当硬闸——否则回溯污染发散、扼杀无证据的未来想法、制造填表剧场。完整契约、oracle 与结构规则见 **SKILL.md →「BQS v1 — 质量契约」**。
|
|
62
62
|
|
|
63
63
|
---
|
|
64
64
|
|
|
@@ -313,7 +313,7 @@ HMW(默认起点)、SCAMPER(改善既有功能:Substitute、Combine、Ad
|
|
|
313
313
|
|
|
314
314
|
### Step 3b: 硬角色反驳轮
|
|
315
315
|
|
|
316
|
-
软性的「请批评这个」大多得到附和——在弱批评框架下 LLM 会阿谀奉承。v3
|
|
316
|
+
软性的「请批评这个」大多得到附和——在弱批评框架下 LLM 会阿谀奉承。v3 对**推荐集**(Agg. Score ≥ 3.5,不限笔数)中的每一个想法分配**硬角色**:
|
|
317
317
|
|
|
318
318
|
- **Devil's Advocate**:「你的任务是论证这个想法*会*失败。给出 2 个具体的失败条件。」
|
|
319
319
|
- **Steelman**:「陈述反方论点最强、最善意的版本——一个有思想的对手实际会提出的那种。」
|
|
@@ -366,10 +366,12 @@ HMW(默认起点)、SCAMPER(改善既有功能:Substitute、Combine、Ad
|
|
|
366
366
|
|---|------|---------|------|--------------|---------------|---------------|------|
|
|
367
367
|
| 1 | ... | Skeptic | Reversal | 4.0 | 4.5 | 4.0 | 4.2 |
|
|
368
368
|
|
|
369
|
-
##
|
|
369
|
+
## Recommendations (Agg. Score ≥ 3.5 — uncapped)
|
|
370
370
|
### 1. [Idea] (Agg. X.X) ✓ Passed rebuttal
|
|
371
371
|
- **Why**: [Reasoning] - **Persona/Lens**: [..] - **Rebuttal response**: [one line] - **Scope**: [S/M/L]
|
|
372
372
|
|
|
373
|
+
<!-- 列出所有 Agg. Score ≥ 3.5 的想法,依分数由高到低排序——不限 3 条。若无想法达 3.5,仅列分数最高的 1 个,标「(below threshold — shown for reference)」。 -->
|
|
374
|
+
|
|
373
375
|
## Diversity Note
|
|
374
376
|
[How many distinct personas/lenses the surviving ideas span; flag if all from one cluster]
|
|
375
377
|
|
|
@@ -391,7 +393,7 @@ HMW(默认起点)、SCAMPER(改善既有功能:Substitute、Combine、Ad
|
|
|
391
393
|
|
|
392
394
|
- **绝不**用竞品或产品类比做种子(「像 X 但用于 Y」)。
|
|
393
395
|
- **变化透镜**,而非仅变化措辞——重写一个提示并不会让输出多样化。
|
|
394
|
-
-
|
|
396
|
+
- 如果存活的推荐集全部源自一个 persona 或透镜,**标记它**并在 OUTPUT 前额外运行一个透镜。
|
|
395
397
|
- 早期优先使用**较低保真度**的想法陈述(一个粗略的方向,而非打磨过的概念)——高保真的 AI 输出会加深固着(发现 #3)。
|
|
396
398
|
|
|
397
399
|
---
|
|
@@ -606,6 +608,7 @@ BQS v1 是**叠加的质量契约**,不是推倒重来。v3 的一切都保留
|
|
|
606
608
|
|
|
607
609
|
| 版本 | 日期 | 变更 |
|
|
608
610
|
|------|------|------|
|
|
611
|
+
| 4.1.0 | 2026-07-09 | XSPEC-325:把固定 Top-3 推荐上限改为分数门槛**推荐集**(Agg. Score ≥ 3.5,不限笔数),贯穿 BQS 第 2 层——产物闸(D5–D8)、硬角色反驳轮(Devil's Advocate + Steelman)、Meta 停止规则(集合成员稳定性)、多样性坍缩护栏、OUTPUT 推荐区块,全部改以推荐集为对象,不再是固定 3 个。若无想法达 3.5,仍显示分数最高的 1 个并标示「未达门槛,仅供参考」,避免报告空白。 |
|
|
609
612
|
| 4.0.0 | 2026-06-22 | XSPEC-296:头脑风暴质量标准(BQS v1)——叠加于 v3 的四层 × 时间轴质量契约。第 0 层 explore/exploit 意图(调节 D2 权重);第 1 层过程 leading 维度 D1–D4 + 硬序列闸(发散期禁 D5–D8);第 2 层产物 leading 维度 D5–D8 仅施于 Top 3,加 Seeds 栏与高方差争议区;第 3 层 Judgment Override(凌驾聚合分)。D4 判官≠产生者(须独立 context,否则 `[degraded]`);D5 主张分流(外部事实跨级地板);D7 二态证伪(「需先做 X」→next-step、不算 fail);Meta 停止规则(Top-3 集合稳定 + 硬上限 2 轮)。工作阶段自评重新定位为校准回路 lagging 端(Adoption→D6、Diversity→D2/D3、Cognitive Load→成本;禁两套平行评估)。第一原理修正为「决策用 leading、校准用 lagging」。分级绑客观模式选择触发。新增旗标 `--intent`。所有 v3 旗标/机制保留。 |
|
|
610
613
|
| 3.0.0 | 2026-06-01 | XSPEC-247:DIVERGE 重新聚焦于 persona 集成 + 多样性透镜(类比 / 反转 / 形态学);CONVERGE 重新聚焦于多评审面板 + 硬角色反驳(Devil's Advocate + Steelman);多样性坍缩护栏;Enhanced 层级(并行 persona/评审智能体,优雅回退);Research Foundations 基于 6 项已验证的 2024–2026 出处重建;效度说明重新评级(飞行前为低、Nijstad/Nemeth 降级);新旗标 `--personas`/`--lens`/`--enhanced`;反种子护栏 |
|
|
611
614
|
| 2.1.0 | 2026-05-09 | XSPEC-196 Phase 2:模式选择客观路由;自我评估框架;A/B 实验协议;研究效度说明;渐进采用协议 |
|
|
@@ -5,10 +5,10 @@ description: |
|
|
|
5
5
|
使用时机:新增日志、调试、设置可观测性。
|
|
6
6
|
关键字:logging, log level, structured logging, observability, 日志, 记录, 结构化日志。
|
|
7
7
|
source: ../../../../skills/logging-guide/SKILL.md
|
|
8
|
-
source_version: 1.
|
|
9
|
-
translation_version: 1.
|
|
10
|
-
last_synced: 2026-
|
|
11
|
-
source_hash:
|
|
8
|
+
source_version: 1.4.0
|
|
9
|
+
translation_version: 1.4.0
|
|
10
|
+
last_synced: 2026-07-08
|
|
11
|
+
source_hash: cf114de1df86
|
|
12
12
|
status: current
|
|
13
13
|
---
|
|
14
14
|
|
|
@@ -16,8 +16,8 @@ status: current
|
|
|
16
16
|
|
|
17
17
|
> **语言**: [English](../../../../skills/logging-guide/SKILL.md) | 简体中文
|
|
18
18
|
|
|
19
|
-
**版本**: 1.
|
|
20
|
-
**最后更新**: 2026-
|
|
19
|
+
**版本**: 1.4.0
|
|
20
|
+
**最后更新**: 2026-06-19
|
|
21
21
|
**适用范围**: Claude Code Skills
|
|
22
22
|
|
|
23
23
|
---
|
|
@@ -62,6 +62,28 @@ status: current
|
|
|
62
62
|
| **ERROR** | 失败的操作、捕获的异常、集成失败 |
|
|
63
63
|
| **FATAL** | 无法恢复的错误、启动失败、失去关键资源 |
|
|
64
64
|
|
|
65
|
+
## 强制事件
|
|
66
|
+
|
|
67
|
+
把每条日志格式化得再完美,但**在真正关键的时刻却从不触发**,比什么都没有还糟——它会在事故当下给人虚假的安全感。核心标准定义了**9 个必须产生日志记录的标准事件**。若日志配置遵守级别/字段规则却遗漏这些事件,就是「规范上合格、实质上沉默」。务必全部实现这 9 项:
|
|
68
|
+
|
|
69
|
+
| 事件 id | 时机 | 级别 | 核心必要字段 | 不可记录 |
|
|
70
|
+
|----------|------|-------|----------------------|--------------|
|
|
71
|
+
| `application_startup` | 启动后、**接受请求前** | INFO | app_name, version, git_sha, environment, hostname, pid, listening_endpoints | secrets、完整连接字符串 |
|
|
72
|
+
| `request_received` | Middleware 首次看到请求时 | INFO / DEBUG | method, path, source_ip, request_id | request body、auth headers |
|
|
73
|
+
| `validation_failure` | schema / ModelState / DTO 验证拒绝时 | WARN | request_id, path, missing_fields[], payload_shape(仅 keys) | 字段**值**、PII |
|
|
74
|
+
| `authentication_failure` | 登录 / token 验证失败时 | WARN | uid(尝试值), source_ip, failure_reason | password、token 值 |
|
|
75
|
+
| `outbound_call_start` | 发起对外 HTTP/RPC 调用时 | INFO | target_url(host+path), 传递的 request_id, timeout_ms | credentials、bearer tokens |
|
|
76
|
+
| `outbound_call_complete` | 外部调用返回或失败时 | INFO / WARN / ERROR | status_code **或** failure_phase(dns/tcp/tls/http), elapsed_ms, retries | 含 PII 的 response body |
|
|
77
|
+
| `business_event` | 状态变更类业务操作完成时 | INFO | operation_name, actor, target ids, outcome | 完整 record payload、PII |
|
|
78
|
+
| `heartbeat` | 长期运行的后台服务,≥ 1 次 / 60 秒 | INFO | service_name, queue_depth, items_processed_since_last_heartbeat | — |
|
|
79
|
+
| `shutdown` | 进程退出时(正常或致命错误) | INFO / ERROR | app_name, signal/reason, uptime_seconds, pending_work_count | — |
|
|
80
|
+
|
|
81
|
+
**为何是这些事件**——每一项都补上一个真实的事故盲区:静默的 `validation_failure` 会隐藏未记录的 payload;`authentication_failure` 若缺 `uid`/`source_ip` 就无法调查;缺少 `heartbeat` 意味着 0-byte 的日志文件不会被察觉;没有 `outbound_call_*` 会让「发送失败」变成一场找不到任何调用痕迹、耗时 2 天的排查。
|
|
82
|
+
|
|
83
|
+
> 后台服务若在 60 秒内未写入任何 INFO/WARN/ERROR,**必须**发出一条 `heartbeat`;若连续 ≥ 2 倍间隔(≥ 120 秒)都没有出现,静默检测器**必须**告警。
|
|
84
|
+
|
|
85
|
+
完整目录(每个事件的 `when`/`must_log`/`must_NOT_log`/`rationale` 及合规示例),请参见核心 [Logging Standards](../../core/logging-standards.md#强制事件mandatory-events) 的 **强制事件** 章节。
|
|
86
|
+
|
|
65
87
|
## 结构化日志
|
|
66
88
|
|
|
67
89
|
### 必要字段
|
|
@@ -310,6 +332,7 @@ logger.error('处理订单失败', {
|
|
|
310
332
|
|
|
311
333
|
| 版本 | 日期 | 变更 |
|
|
312
334
|
|------|------|------|
|
|
335
|
+
| 1.4.0 | 2026-06-19 | 新增:强制事件章节(9 个标准事件),消除技能与核心标准之间的内容漂移;版本号与核心日志标准 v1.4.0 对齐(XSPEC-070 Phase 2) |
|
|
313
336
|
| 1.1.0 | 2026-05-26 | 新增:日志文件轮转章节及核心标准轮转策略交叉引用;轮转检查清单(XSPEC-232) |
|
|
314
337
|
| 1.0.0 | 2025-12-30 | 初始发布 |
|
|
315
338
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
source: ../../CHANGELOG.md
|
|
3
|
-
source_version: 6.
|
|
4
|
-
translation_version: 6.
|
|
5
|
-
last_synced: 2026-07-
|
|
3
|
+
source_version: 6.1.1
|
|
4
|
+
translation_version: 6.1.1
|
|
5
|
+
last_synced: 2026-07-18
|
|
6
6
|
status: current
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -17,6 +17,41 @@ status: current
|
|
|
17
17
|
|
|
18
18
|
## [Unreleased]
|
|
19
19
|
|
|
20
|
+
## [6.1.1] - 2026-07-18
|
|
21
|
+
|
|
22
|
+
> **`uds check` 悄悄量錯了東西。** 它的落後檢查拿你的標準去比 CLI 自己 bundled 的副本、而非 npm——CLI 一舊就吐出倒退、無意義的訊息,且結構上永遠說不出「你的標準過期了」——還把那則訊息埋在逐檔一行的「未變更」底下。
|
|
23
|
+
|
|
24
|
+
### Fixed
|
|
25
|
+
|
|
26
|
+
- **`uds check` 現在拿你安裝的標準比對 npm 上的最新版,而非 CLI 自己 bundled 的副本**(XSPEC-342)。`displayAdoptionStatus` 原本拿 `manifest.upstream.version` 去比**跑這支 CLI 內建的**標準副本。CLI 一舊,那副本就比 npm 舊——於是檢查印出倒退的 `⚠ 有可用更新:6.1.0 → 5.12.1`(叫你「更新」到*更舊*的版本),且結構上永遠無法回報你的標準落後。現在改問 npm 最新版;當你的標準落後時,訊息改為 **「你安裝的標準落後最新版」**,並給出完整兩步驟修復——`npm update -g universal-dev-standards` **然後** `uds update`——因為只更新 CLI 不會動到你專案的 `.standards/`。`--offline` 靜默略過比對,不再退回誤導的 bundled 檢查。
|
|
27
|
+
|
|
28
|
+
### Changed
|
|
29
|
+
|
|
30
|
+
- **`uds check` 不再逐檔列出未變更的檔案**(XSPEC-342)。它原本對每個追蹤檔印一行 `✓ …(未變更)`——約佔指令輸出的 70%(實測 121 → 41 行)——淹沒了真正該讀的訊息,也讓輸出大到被自動化呼叫端(pre-commit agent)截斷。逐檔「未變更」列印已移除;計數仍保留在一行的完整性摘要,已修改/遺失/未雜湊的檔案仍逐一列出。
|
|
31
|
+
|
|
32
|
+
## [6.1.0] - 2026-07-17
|
|
33
|
+
|
|
34
|
+
> **同一種形狀的兩個失敗,一個在標準裡、一個在 CLI 裡**:一道檢查跑了、回傳了、回報成功,卻什麼都沒量到。`verification-evidence` 補上了為它命名的那一層;`uds init` 則不再是它的一個實例。
|
|
35
|
+
|
|
36
|
+
### 修正
|
|
37
|
+
|
|
38
|
+
- **`uds init` 不再覆蓋既有的 `prepare` script**(XSPEC-341)。自 2026-02-04 起,`uds init` 會對任何沒有 `.husky/` 目錄的 Node 專案執行 `npx husky init`。該指令是為**全新**專案設計的一次性 bootstrap:它會無條件把 `"prepare"` 設成 `"husky"`。若你的專案原本就有 `prepare`——而對一個要發布的套件而言,`prepare` 通常就是 build 步驟——**它會被靜默取代**,而 CLI 回報成功。`uds init` 現在改為串接而非覆寫(`"tsup"` → `"tsup && husky"`),會印出它所修改的每一個 `package.json` 欄位,也不再丟棄 husky 的 stderr。
|
|
39
|
+
|
|
40
|
+
> **⚠️ 若你曾在原本就有 `prepare` script 的專案上跑過 `uds init`,請立即檢查。** 這次修正保護的是往後的執行;它無法還原一個已經被改寫的 `package.json`。症狀是:你預期看到自己的 build 指令,實際看到的卻是 `"prepare": "husky"`——而如果你的套件會發布建置產物(`files: ["dist"]`、`main` 指向 `dist/`)且沒有 `prepack`/`prepublishOnly`,那麼你下一次 `npm publish` 送出去的將是一個未建置或過期的目錄。請以串接方式復原:`"prepare": "<你原本的指令> && husky"`。
|
|
41
|
+
|
|
42
|
+
- **`uds init` 不再把 `npm test` 塞進 `.husky/pre-commit`**(XSPEC-341)。那一行來自 husky 的 init 範本,不是來自 UDS——它等於在每一次 commit 上架了一道採用者從未選擇加入的完整測試套件閘門。UDS 現在只附加自己的 `npx uds check`,而且是附加到既有 hook 之後,而不是改寫它們。
|
|
43
|
+
|
|
44
|
+
- **新建的 husky hook 改以 v9 格式寫入**(XSPEC-341)。fallback 的 hook 範本仍在輸出 v8 的 `#!/usr/bin/env sh` + `. "$(dirname -- "$0")/_/husky.sh"` 前導段,該寫法在 husky v9 已棄用、v10 已移除——而 `uds init` 安裝的正是 husky `^9`。這原本是潛伏問題(過去 hook 是由 husky init 寫出的);移除 `husky init` 後,fallback 升為主要路徑,因此一併修正。
|
|
45
|
+
|
|
46
|
+
### 變更
|
|
47
|
+
|
|
48
|
+
- **`verification-evidence` 1.1.0 → 1.2.0 —— 證據有效性**(XSPEC-340)。本標準原本把 `exit_code` 當成事實真相:`trust_rules` 寫著「`exit_code ≠ 0` → 驗證失敗」、`physical_spec.checks` 問的是「`exit_code` 是否為 0(成功)?」、VE-002 只要非零就觸發修復迴圈。**這三處現已全數加上限定條件**,因為一道驗證指令可以跑完、可以回傳,卻什麼意義都沒有:
|
|
49
|
+
- **新增 `evidence_validity` 層次與規則 VE-007 – VE-010**:只有在「成功時回傳 0」的工具上,`exit_code = 0` 才代表成功(VE-007);在證明查詢工具確實執行過之前,「空/查無/0」不等於不存在(VE-008);存在性檢查不得丟棄 stderr(VE-009);pipeline 的 exit code 不屬於其中任何單一階段(VE-010)。
|
|
50
|
+
- **新增 `non_evidence_claims`**:「已完成」/「應該可以了」/「我改了程式碼」/「測試應該會通過」/「指令回傳 0」。
|
|
51
|
+
- 有別於 `anti-hallucination`——後者的禁令全都是「不要斷言你沒查過的事」的變形。這裡是相反的失敗:**確實查了,而查詢工具靜默地沒有運作**。`core/verification-evidence.md` 收錄了八筆真實案例作為證據。
|
|
52
|
+
- **`verification-evidence` 的人類文件補上了 v1.1.0 的落差。** v1.1.0 的 `environment_layer` 工作(XSPEC-204)已落地於全部三份 `.ai.yaml`,卻**一份 `.md` 都沒有更新**(共四份)——人類文件自 2026-05-13 起就一直在錯誤地描述這個標準。`core/*.md` 現已載明 `environment_layer`、Environment Layers 章節,以及 VE-005 / VE-006。
|
|
53
|
+
- **`verification-evidence` 新增三個先前只存在於 zh-TW 譯文的章節**:非證據的聲明(Non-Evidence Claims)、證據類型(Evidence Types)、相關標準(Related Standards)。譯文比它的來源更完整;這些章節現已上溯至英文來源,並同時存在於兩個語系。
|
|
54
|
+
|
|
20
55
|
## [6.0.0] - 2026-07-06
|
|
21
56
|
|
|
22
57
|
> ⚠️ **重大版本(Major release)。** 包含一項 breaking 更名,並移除 8 個已棄用的機器可讀標準與 4 個已棄用的 CLI 命令(皆自 5.4.0 起帶有「將於 6.0.0 移除」告示)。**請參閱 [v6 遷移指南](docs/MIGRATION-v6.md)**([English](../../docs/MIGRATION-v6.md) | [简体中文](../zh-CN/docs/MIGRATION-v6.md))。
|
|
@@ -14,7 +14,7 @@ status: current
|
|
|
14
14
|
|
|
15
15
|
Universal Development Standards 是一個語言無關、框架無關的文件化標準框架。它提供:
|
|
16
16
|
|
|
17
|
-
- **核心規範** (`core/`):
|
|
17
|
+
- **核心規範** (`core/`):149 個基礎開發標準
|
|
18
18
|
- **AI 技能** (`skills/`):用於 AI 輔助開發的 Claude Code 技能
|
|
19
19
|
- **CLI 工具** (`cli/`):用於採用標準的 Node.js CLI
|
|
20
20
|
- **整合** (`integrations/`):各種 AI 工具的配置
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
source: ../../MAINTENANCE.md
|
|
3
|
-
source_version: 1.
|
|
4
|
-
translation_version: 1.
|
|
5
|
-
last_synced: 2026-
|
|
6
|
-
source_hash:
|
|
3
|
+
source_version: 1.1.0
|
|
4
|
+
translation_version: 1.1.0
|
|
5
|
+
last_synced: 2026-07-08
|
|
6
|
+
source_hash: 5d0adbbf7d63
|
|
7
7
|
status: current
|
|
8
8
|
---
|
|
9
9
|
|
|
@@ -25,7 +25,13 @@ status: current
|
|
|
25
25
|
|
|
26
26
|
## Bundle-Source 一致性(XSPEC-072 / DEC-045)
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
npm bundle 標準(`cli/bundled/`,由 `ai/` 產生)必須是真實來源 `.standards/`
|
|
29
|
+
的**子集**。布局契約定義於 DEC-045 §6.2。
|
|
30
|
+
|
|
31
|
+
### 發版時強制(自動 — XSPEC-072 Phase 4.2)
|
|
32
|
+
|
|
33
|
+
`scripts/bump-version.mjs`(及舊版 `bump-version.sh`)會在改動任何版本檔
|
|
34
|
+
**之前**先跑 pre-flight 一致性閘門,一致性漂移即**中止發版**。等效手動指令:
|
|
29
35
|
|
|
30
36
|
```bash
|
|
31
37
|
cd cli
|
|
@@ -33,13 +39,31 @@ npm run prepack # 從 ai/ 重新產生 cli/bundled/
|
|
|
33
39
|
npm run check:bundle-parity # 必須以 exit 0 結束(source == bundled,扣除排除項)
|
|
34
40
|
```
|
|
35
41
|
|
|
36
|
-
|
|
42
|
+
Break-glass:`SKIP_BUNDLE_PARITY=1 node scripts/bump-version.mjs <version>`
|
|
43
|
+
可跳過閘門(會大聲警告)——僅在工具鏈壞損**且**你已用其他方式確認一致性時使用。
|
|
44
|
+
|
|
45
|
+
GHA 工作流程 `bundle-parity.yml` 會在 PR 和推送至 `main` 時,對任何不符獨立
|
|
46
|
+
強制失敗。這兩點(發版閘門 + CI)即強制面;本地 pre-commit/pre-push hook
|
|
47
|
+
(XSPEC-072 Phase 3.2)**刻意不加**——它會在每次 push 重跑 `prepack`,相較上述
|
|
48
|
+
兩道閘門邊際效益太低。
|
|
49
|
+
|
|
50
|
+
### 新增標準時的 bundle 決策流程(DEC-045 §6.2)
|
|
51
|
+
|
|
52
|
+
在 `.standards/` 新增 `.ai.yaml` 時,決定其 bundle 範圍:
|
|
53
|
+
|
|
54
|
+
1. **Bundle ⊂ Source** — 每個 bundle 檔案都須在 `.standards/` 有對應;不允許 bundle-only。
|
|
55
|
+
2. **預設啟發式(規則 5):** **level ≤ 2** 的 core 標準也進 bundle → 加入 `ai/standards/<name>.ai.yaml`(供採用者使用)。**level ≥ 3** 或治理/AI 協作類標準維持 source-only → 將其路徑加入 `cli/scripts/bundle-exclude.json`,格式 `{ "path", "reason" }`(可推翻)。
|
|
56
|
+
3. **選項檔** → 一律採巢狀布局 `options/<category>/<choice>.ai.yaml`;禁止平坦路徑。
|
|
57
|
+
4. **禁止歧義重複** — 兩個同 basename 但不同路徑的檔案必須歸一,不能並存。
|
|
58
|
+
|
|
59
|
+
之後執行 `cd cli && npm run prepack && npm run check:bundle-parity`,確認 exit 0。
|
|
60
|
+
|
|
61
|
+
### 若一致性檢查失敗
|
|
62
|
+
|
|
37
63
|
1. **`.standards/` 中的新檔案不在 `ai/`** → 複製至 `ai/standards/`(若供採用者使用),或加入 `cli/scripts/bundle-exclude.json`(若僅供 UDS 內部使用)
|
|
38
64
|
2. **`ai/` 中的新檔案不在 `.standards/`** → 複製至 `.standards/`
|
|
39
65
|
3. **新選項檔案** → 確保同時存在於 `ai/options/<cat>/` 與 `.standards/options/<cat>/`
|
|
40
66
|
|
|
41
|
-
`scripts/bump-version.sh` 目前**不會**自動執行一致性檢查 — 請在標記版本前手動執行。GHA 工作流程 `bundle-parity.yml` 會在 PR 和推送至 `main` 時發生任何不符時強制失敗。
|
|
42
|
-
|
|
43
67
|
## 翻譯版本
|
|
44
68
|
|
|
45
69
|
- [繁體中文](./MAINTENANCE.md)
|