universal-dev-standards 5.10.0 → 5.12.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.
Files changed (90) hide show
  1. package/bundled/ai/standards/acceptance-criteria-traceability.ai.yaml +10 -4
  2. package/bundled/ai/standards/full-coverage-testing.ai.yaml +8 -1
  3. package/bundled/ai/standards/license-compliance.ai.yaml +379 -10
  4. package/bundled/ai/standards/test-governance.ai.yaml +19 -0
  5. package/bundled/core/adversarial-test.md +3 -0
  6. package/bundled/core/behavior-snapshot.md +1 -1
  7. package/bundled/core/capability-declaration.md +3 -0
  8. package/bundled/core/cd-deployment-strategies.md +3 -0
  9. package/bundled/core/chaos-injection-tests.md +3 -0
  10. package/bundled/core/circuit-breaker.md +3 -0
  11. package/bundled/core/container-security.md +3 -0
  12. package/bundled/core/cost-budget-test.md +3 -0
  13. package/bundled/core/data-migration-testing.md +3 -0
  14. package/bundled/core/disaster-recovery-drill.md +3 -0
  15. package/bundled/core/dual-phase-output.md +3 -0
  16. package/bundled/core/failure-source-taxonomy.md +3 -0
  17. package/bundled/core/feature-manifest-standard.md +1 -1
  18. package/bundled/core/flaky-test-management.md +3 -0
  19. package/bundled/core/full-coverage-testing.md +3 -0
  20. package/bundled/core/health-check-standards.md +3 -0
  21. package/bundled/core/immutability-first.md +3 -0
  22. package/bundled/core/license-compliance.md +118 -0
  23. package/bundled/core/llm-output-validation.md +3 -0
  24. package/bundled/core/no-cicd-deployment.md +3 -0
  25. package/bundled/core/pipeline-security-gates.md +3 -0
  26. package/bundled/core/policy-as-code-testing.md +3 -0
  27. package/bundled/core/prompt-regression.md +3 -0
  28. package/bundled/core/property-based-testing.md +3 -0
  29. package/bundled/core/recovery-recipe-registry.md +3 -0
  30. package/bundled/core/release-quality-manifest.md +3 -0
  31. package/bundled/core/replay-test.md +3 -0
  32. package/bundled/core/retry-standards.md +3 -0
  33. package/bundled/core/rollback-standards.md +3 -0
  34. package/bundled/core/sast-advanced.md +1 -1
  35. package/bundled/core/secure-op.md +3 -0
  36. package/bundled/core/security-decision.md +3 -0
  37. package/bundled/core/server-ops-security.md +3 -0
  38. package/bundled/core/skill-standard-alignment-check.md +3 -0
  39. package/bundled/core/smoke-test.md +3 -0
  40. package/bundled/core/standard-admission-criteria.md +3 -0
  41. package/bundled/core/standard-lifecycle-management.md +3 -0
  42. package/bundled/core/supply-chain-attestation.md +3 -0
  43. package/bundled/core/timeout-standards.md +3 -0
  44. package/bundled/core/token-budget.md +3 -0
  45. package/bundled/locales/zh-CN/CHANGELOG.md +42 -3
  46. package/bundled/locales/zh-CN/CLAUDE.md +1 -1
  47. package/bundled/locales/zh-CN/README.md +3 -3
  48. package/bundled/locales/zh-CN/SECURITY.md +1 -2
  49. package/bundled/locales/zh-CN/docs/CHEATSHEET.md +127 -15
  50. package/bundled/locales/zh-CN/docs/FEATURE-REFERENCE.md +141 -25
  51. package/bundled/locales/zh-CN/skills/adr-assistant/SKILL.md +43 -0
  52. package/bundled/locales/zh-CN/skills/ai-collaboration-standards/SKILL.md +35 -0
  53. package/bundled/locales/zh-CN/skills/ai-friendly-architecture/SKILL.md +35 -0
  54. package/bundled/locales/zh-CN/skills/ai-instruction-standards/SKILL.md +35 -0
  55. package/bundled/locales/zh-CN/skills/contract-test-assistant/SKILL.md +24 -0
  56. package/bundled/locales/zh-CN/skills/documentation-guide/SKILL.md +37 -0
  57. package/bundled/locales/zh-CN/skills/error-code-guide/SKILL.md +33 -0
  58. package/bundled/locales/zh-CN/skills/git-workflow-guide/SKILL.md +34 -0
  59. package/bundled/locales/zh-CN/skills/logging-guide/SKILL.md +33 -0
  60. package/bundled/locales/zh-CN/skills/project-structure-guide/SKILL.md +19 -0
  61. package/bundled/locales/zh-CN/skills/retrospective-assistant/SKILL.md +38 -0
  62. package/bundled/locales/zh-CN/skills/testing-guide/SKILL.md +36 -0
  63. package/bundled/locales/zh-TW/CHANGELOG.md +49 -3
  64. package/bundled/locales/zh-TW/CLAUDE.md +1 -1
  65. package/bundled/locales/zh-TW/README.md +3 -3
  66. package/bundled/locales/zh-TW/SECURITY.md +1 -2
  67. package/bundled/locales/zh-TW/docs/CHEATSHEET.md +127 -15
  68. package/bundled/locales/zh-TW/docs/FEATURE-REFERENCE.md +141 -25
  69. package/bundled/locales/zh-TW/skills/adr-assistant/SKILL.md +43 -0
  70. package/bundled/locales/zh-TW/skills/ai-collaboration-standards/SKILL.md +35 -0
  71. package/bundled/locales/zh-TW/skills/ai-friendly-architecture/SKILL.md +35 -0
  72. package/bundled/locales/zh-TW/skills/ai-instruction-standards/SKILL.md +35 -0
  73. package/bundled/locales/zh-TW/skills/brainstorm-assistant/guide.md +661 -267
  74. package/bundled/locales/zh-TW/skills/contract-test-assistant/SKILL.md +24 -0
  75. package/bundled/locales/zh-TW/skills/documentation-guide/SKILL.md +37 -0
  76. package/bundled/locales/zh-TW/skills/error-code-guide/SKILL.md +33 -0
  77. package/bundled/locales/zh-TW/skills/git-workflow-guide/SKILL.md +34 -0
  78. package/bundled/locales/zh-TW/skills/logging-guide/SKILL.md +33 -0
  79. package/bundled/locales/zh-TW/skills/project-structure-guide/SKILL.md +19 -0
  80. package/bundled/locales/zh-TW/skills/retrospective-assistant/SKILL.md +38 -0
  81. package/bundled/locales/zh-TW/skills/testing-guide/SKILL.md +36 -0
  82. package/bundled/skills/README.md +4 -1
  83. package/bundled/skills/spec-driven-dev/SKILL.md +41 -0
  84. package/package.json +1 -1
  85. package/src/commands/update.js +35 -0
  86. package/src/config/ai-agent-paths.js +8 -0
  87. package/src/i18n/messages.js +3 -0
  88. package/src/utils/integration-generator.js +18 -2
  89. package/standards-registry.json +5 -4
  90. package/bundled/locales/zh-TW/docs/MIGRATION-V5.md +0 -79
@@ -0,0 +1,118 @@
1
+ # License Compliance Standards
2
+
3
+ > **Version**: 2.1.0 | **Status**: Active | **Updated**: 2026-05-16
4
+ > **AI-optimized version**: `ai/standards/license-compliance.ai.yaml`
5
+ > **Agent Spec**: ASPEC-001 (cross-project/aspec/ASPEC-001-license-compliance-agent.md)
6
+
7
+ ## Overview
8
+
9
+ Comprehensive license compliance for AI-augmented development, covering both general OSS practice (Tier 1) and AI-specific rules for AI-generated code (Tier 2).
10
+
11
+ ## Tier 1 — General OSS Compliance Practices
12
+
13
+ Applies to every project regardless of AI use.
14
+
15
+ | ID | Rule | Level |
16
+ |----|------|-------|
17
+ | REQ-001 | License classification and allowlist | MUST |
18
+ | REQ-002 | Automated license scanning in CI | MUST |
19
+ | REQ-003 | SBOM generation (CycloneDX 1.5 or SPDX 2.3) | MUST |
20
+ | REQ-004 | License attribution and NOTICES file | MUST |
21
+ | REQ-005 | License violation remediation (5 business days) | MUST |
22
+ | REQ-006 | License review for new technology adoption | SHOULD |
23
+
24
+ ### License Tiers
25
+
26
+ | Tier | Licenses | Action |
27
+ |------|----------|--------|
28
+ | APPROVED | MIT, Apache 2.0, BSD-2/3-Clause, ISC, CC0 | Auto-approve |
29
+ | REVIEW-REQUIRED | LGPL-2.1/3.0, MPL-2.0, CDDL | Legal review before adoption |
30
+ | PROHIBITED | GPL-2.0/3.0, AGPL-3.0, SSPL-1.0, BUSL-1.1 | Block PR immediately |
31
+
32
+ ## Tier 2 — AI-Specific Rules
33
+
34
+ Binding on AI Agents that produce code (VibeOps Generator Agent and equivalents).
35
+
36
+ | ID | Rule | Severity |
37
+ |----|------|----------|
38
+ | LC-001 | SPDX ID lookup required | Blocking |
39
+ | LC-002 | Blocklist auto-block | Blocking |
40
+ | LC-003 | Allowlist auto-approve | Informational |
41
+ | LC-004 | Greylist human review | Review required |
42
+ | LC-005 | SBOM mandatory generation | Blocking |
43
+ | LC-006 | Copyright similarity threshold (≥0.85 block) | Blocking |
44
+ | LC-007 | PII pattern detection | Review required |
45
+ | LC-008 | EU AI Act transparency marker | Blocking |
46
+ | LC-009 | Customer policy ceiling | Informational |
47
+
48
+ ## v2.1.0 Enhancements (XSPEC-193 Phase 2)
49
+
50
+ ### ClearlyDefined API (LC-001)
51
+
52
+ - Primary license lookup source: `https://api.clearlydefined.io/definitions/{type}/{provider}/{namespace}/{name}/{revision}`
53
+ - Confidence ≥ 0.95 for well-known packages (score.total ≥ 80)
54
+ - 24h TTL LRU cache (cap=500) + negative cache for 404
55
+ - Token bucket: 10 req/s, burst 20
56
+ - Retry strategy: 5xx → exponential backoff × 3 (200ms/1s/3s); 429 → batch fallback
57
+ - DEC-064 cache key isolation: `sha256(client_salt + ':' + purl)`
58
+
59
+ ### AST PII Analysis (LC-007)
60
+
61
+ - Tree-sitter support: TypeScript, JavaScript, Python
62
+ - Context classification:
63
+ - `hardcoded_value` → severity upgraded to `critical`
64
+ - `comment` → severity downgraded to `info`
65
+ - `schema_field` → annotated, no severity change
66
+ - `// pii:ignore` pragma: suppresses findings on same line
67
+ - Optional fields: `PIIPattern.confidence`, `PIIPattern.ast_context`
68
+ - Graceful fallback to regex when tree-sitter unavailable
69
+
70
+ ### EmbeddingProvider Strategy (LC-006)
71
+
72
+ - `provider='onnx-minilm'`: ONNX local inference (all-MiniLM-L6-v2)
73
+ - `provider='ollama-bge-m3'`: Ollama local API (localhost:11434)
74
+ - `provider='jaccard'`: Jaccard token similarity (Phase 1 baseline, default)
75
+ - In-memory snippet index (`buildSnippetIndex()`) per-customer (DEC-064 salt)
76
+ - External search: opt-in via `enableExternalSearch=true` (default=false)
77
+
78
+ ## Principles
79
+
80
+ | ID | Principle |
81
+ |----|-----------|
82
+ | P-1 | SPDX First — all license IDs must be SPDX standard |
83
+ | P-2 | Independent Evaluator — different model class from Generator |
84
+ | P-3 | Evidence-Based Decision — every block carries traceable evidence |
85
+ | P-4 | Transparency by Default — EU AI Act Article 50 markers required |
86
+ | P-5 | Customer Sovereignty — policy customizable within EULA §9 limits |
87
+
88
+ ## Tool Sequence (XSPEC-193 §2)
89
+
90
+ ```
91
+ 1. dependency_reader
92
+ 2. license_lookup ← ClearlyDefined API (v2.1.0)
93
+ 3. license_blocklist_check
94
+ 4. sbom_generator
95
+ 5. pii_pattern_detector ← AST-enhanced (v2.1.0)
96
+ 6. copyright_similarity_check ← EmbeddingProvider (v2.1.0)
97
+ 7. eu_ai_act_classifier
98
+ 8. transparency_marker
99
+ 9. block_pr
100
+ 10. suggest_alternative
101
+ 11. escalate_to_human
102
+ ```
103
+
104
+ ## Related Specs
105
+
106
+ - XSPEC-193 — License Compliance Agent complete spec
107
+ - XSPEC-066 — Wave 3 Compliance Pack (v1.0.0 baseline)
108
+ - DEC-063 — VibeOps legal & compliance strategy
109
+ - DEC-064 — Customer IP isolation (cache salt)
110
+ - ASPEC-001 — License Compliance Agent SPEC (XSPEC-205 §REQ-2 format)
111
+
112
+ ## Changelog
113
+
114
+ | Version | Date | Changes |
115
+ |---------|------|---------|
116
+ | v1.0.0 | 2026-04-30 | Initial — REQ-001~006 general OSS practices |
117
+ | v2.0.0 | 2026-05-14 | Added Tier 2 LC-001~009 AI-specific rules |
118
+ | v2.1.0 | 2026-05-16 | ClearlyDefined API + AST PII + EmbeddingProvider + ASPEC-001 ref |
@@ -176,3 +176,6 @@ npx vitest run agents/__tests__/contract.test.ts
176
176
  - ISO/IEC 42001:2023 — AI 管理系統
177
177
  - [UDS `security-testing.ai.yaml`](./security-testing.md) — SAST + DAST 整合
178
178
  - [UDS `adversarial-test.ai.yaml`](./adversarial-test.md) — Prompt injection 紅隊標準
179
+
180
+
181
+ **Scope**: universal
@@ -203,3 +203,6 @@ status:
203
203
  - `deployment-standards.ai.yaml` — 有 CI/CD 平台的部署策略(本文件的補充前提)
204
204
  - `health-check-standards.ai.yaml` — /health 端點設計規範
205
205
  - `circuit-breaker.ai.yaml` — 斷路器整合(進階場景)
206
+
207
+
208
+ **Scope**: universal
@@ -107,3 +107,6 @@
107
107
  - [pipeline-integration-standards.md](pipeline-integration-standards.md) — CI 管線整合標準
108
108
  - [deployment-standards.md](deployment-standards.md) — 部署基礎原則
109
109
  - AI 格式:[../ai/standards/pipeline-security-gates.ai.yaml](../ai/standards/pipeline-security-gates.ai.yaml)
110
+
111
+
112
+ **Scope**: universal
@@ -186,3 +186,6 @@ policies/
186
186
  - [UDS `secure-op.ai.yaml`](./secure-op.md) — AI Agent 安全操作六大支柱
187
187
  - [UDS `adversarial-test.ai.yaml`](./adversarial-test.md) — 對抗性測試(OWASP LLM01)
188
188
  - [UDS `container-security.ai.yaml`](./container-security.md) — 容器安全(OPA Sidecar 部署)
189
+
190
+
191
+ **Scope**: universal
@@ -70,3 +70,6 @@ The comment is mandatory. PRs that update checksums without explanatory comments
70
70
  - [LLM Output Validation](llm-output-validation.md) — schema-level validation
71
71
  - [Adversarial Test](adversarial-test.md) — red-team corpus
72
72
  - [Testing Standards](testing.md) — overall testing pyramid
73
+
74
+
75
+ **Scope**: universal
@@ -71,3 +71,6 @@ fc.assert(property, { seed: 1234567890 })
71
71
  - [Mutation Testing Standards](mutation-testing.md) — complement to PBT
72
72
  - [Testing Standards](testing-standards.md) — overall test pyramid
73
73
  - [Adversarial Test Standards](adversarial-test.md) — security-focused fuzzing
74
+
75
+
76
+ **Scope**: universal
@@ -67,3 +67,6 @@ escalation: # required
67
67
  - XSPEC-046: Cross-project specification
68
68
  - Depends on: Failure Source Taxonomy (XSPEC-045)
69
69
  - Borrowed from: [ultraworkers/claw-code](https://github.com/ultraworkers/claw-code) ROADMAP Phase 3 Recovery Recipes
70
+
71
+
72
+ **Scope**: universal
@@ -191,3 +191,6 @@ Generate a Markdown table alongside the YAML for inclusion in release notes:
191
191
  - `supply-chain-attestation.ai.yaml` — SBOM and provenance
192
192
  - `testing.ai.yaml` — overall test strategy
193
193
  - `deployment-standards.ai.yaml` — release gate integration
194
+
195
+
196
+ **Scope**: universal
@@ -84,3 +84,6 @@ describe("Guardian replay fixtures", () => {
84
84
  - [Adversarial Test Standards](adversarial-test.md) — red-team corpus
85
85
  - [Verification Evidence Standards](verification-evidence.md) — AC traceability
86
86
  - [Testing Standards](testing.md) — overall test pyramid
87
+
88
+
89
+ **Scope**: universal
@@ -60,3 +60,6 @@ wait_ms = min(cap_ms, base_ms * 2^attempt) * (0.5 + random() * 0.5)
60
60
  - DEC-043: UDS 覆蓋完整性路線圖(驅動來源)
61
61
  - Related: `circuit-breaker`, `failure-source-taxonomy`, `timeout-standards`, `recovery-recipe-registry`
62
62
  - Industry: Netflix Hystrix retry, Google SRE Book Ch.22, AWS Architecture Blog — exponential backoff and jitter
63
+
64
+
65
+ **Scope**: universal
@@ -102,3 +102,6 @@
102
102
  - [deployment-standards.md](deployment-standards.md) — 部署基礎策略
103
103
  - [cd-deployment-strategies.md](cd-deployment-strategies.md) — 部署策略選用矩陣
104
104
  - AI 格式:[../ai/standards/rollback-standards.ai.yaml](../ai/standards/rollback-standards.ai.yaml)
105
+
106
+
107
+ **Scope**: universal
@@ -5,7 +5,7 @@
5
5
  **Version**: 1.0.0
6
6
  **Last Updated**: 2026-05-05
7
7
  **Applicability**: TypeScript / JavaScript projects
8
- **Scope**: CI/CD security enforcement
8
+ **Scope**: universal
9
9
  **References**: [CodeQL documentation](https://codeql.github.com/), [gitleaks](https://github.com/gitleaks/gitleaks), [Biome linter](https://biomejs.dev/)
10
10
 
11
11
  ---
@@ -312,3 +312,6 @@ P0c 等級 + 外部稽核師可存取的 Audit Chain 匯出功能。
312
312
  - `security-testing`:安全測試方法論(SAST、DAST、依賴審計)
313
313
  - `audit-trail`:一般 Audit Trail 標準
314
314
  - `mock-boundary`:測試中禁止 mock 安全控制
315
+
316
+
317
+ **Scope**: universal
@@ -63,3 +63,6 @@ function arbitrate(rules: SecurityDecisionRule[]): SecurityDecision {
63
63
  - AI-optimized: [ai/standards/security-decision.ai.yaml](../ai/standards/security-decision.ai.yaml)
64
64
  - XSPEC-037: Cross-project specification
65
65
  - Borrowed from: [claude-code-book](https://github.com/lintsinghua/claude-code-book) Ch.4 four-stage permission pipeline
66
+
67
+
68
+ **Scope**: universal
@@ -491,3 +491,6 @@ Guardian OPA Sidecar(XSPEC-146/147)作為 AI Agent 的決策閘道,其所
491
491
  - `security-testing.ai.yaml` — SAST、DAST、相依套件審計
492
492
  - `secret-management-standards.ai.yaml` — 機密管理與憑證衛生
493
493
  - `container-image-standards.ai.yaml` — 容器映像安全基準
494
+
495
+
496
+ **Scope**: universal
@@ -77,3 +77,6 @@ Skill 必有 Standard 作為錨點,Standard 可無 Skill;定期識別孤兒
77
77
  - DEC-043: UDS 覆蓋完整性路線圖(XSPEC-063~069 目的之一即清空本標準識別的 orphan 清單)
78
78
  - Related: `standard-admission-criteria`, `standard-lifecycle-management`
79
79
  - Internal: AsiaOstrich DEC-043 七主題缺口分析(slo/runbook/observability 等 40+ Skill 部分無 Standard 錨點)
80
+
81
+
82
+ **Scope**: universal
@@ -63,3 +63,6 @@ echo "=== PASS ==="
63
63
  - [Testing Standards](testing.md) — overall test pyramid
64
64
  - [Deployment Standards](deployment-standards.md) — deployment pipeline
65
65
  - [Performance Standards](performance-standards.md) — latency SLOs
66
+
67
+
68
+ **Scope**: universal
@@ -82,3 +82,6 @@
82
82
  - DEC-043: UDS 覆蓋完整性路線圖(本標準是 Wave 1 前置條件)
83
83
  - Related: `standard-lifecycle-management`, `skill-standard-alignment-check`, `adr-standards`
84
84
  - Industry: IETF RFC admission criteria, Python PEP process, W3C Recommendation Track
85
+
86
+
87
+ **Scope**: universal
@@ -92,3 +92,6 @@ Deprecated ──(migration done)───→ Archived
92
92
  - DEC-043: UDS 覆蓋完整性路線圖(驅動來源)
93
93
  - Related: `standard-admission-criteria`, `skill-standard-alignment-check`, `adr-standards`
94
94
  - Industry: IETF RFC lifecycle (Proposed → Draft → Internet Standard), Python PEP states, W3C Recommendation Track
95
+
96
+
97
+ **Scope**: universal
@@ -115,3 +115,6 @@ app-commercial-v1.3.0/
115
115
  - [Supply Chain Security Standards](supply-chain-security-standards.md) — dependency audit policies
116
116
  - [Container Security Standards](container-security.md) — image hardening
117
117
  - [Advanced SAST Standards](sast-advanced.md) — static analysis
118
+
119
+
120
+ **Scope**: universal
@@ -61,3 +61,6 @@ Downstream DB timeout = 5120 ms (6400 × 0.8)
61
61
  - DEC-043: UDS 覆蓋完整性路線圖(驅動來源)
62
62
  - Related: `circuit-breaker`, `retry-standards`, `failure-source-taxonomy`
63
63
  - Industry: gRPC deadline propagation, Envoy timeout budgeting, Google SRE Book Ch.22
64
+
65
+
66
+ **Scope**: universal
@@ -56,3 +56,6 @@ Compression operations need output space to succeed. Reserve constants:
56
56
  - AI-optimized: [ai/standards/token-budget.ai.yaml](../ai/standards/token-budget.ai.yaml)
57
57
  - XSPEC-036: Cross-project specification
58
58
  - Borrowed from: [claude-code-book](https://github.com/lintsinghua/claude-code-book) Ch.7 four-zone context management
59
+
60
+
61
+ **Scope**: universal
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  source: ../../CHANGELOG.md
3
- source_version: 5.10.0
4
- translation_version: 5.10.0
5
- last_synced: 2026-05-13
3
+ source_version: 5.12.1
4
+ translation_version: 5.12.1
5
+ last_synced: 2026-05-19
6
6
  status: current
7
7
  ---
8
8
 
@@ -17,6 +17,45 @@ status: current
17
17
 
18
18
  ## [Unreleased]
19
19
 
20
+ ## [5.12.0] - 2026-05-16
21
+
22
+ ### 新增
23
+ - **`docs/user/` 用户文档体系**(XSPEC-211):新增双轨文档结构,仿照 VibeOps 惯例,包含 8 份文档:
24
+ - `docs/user/GETTING-STARTED.md` — 5 分钟端到端教程(install → `uds init` → `/sdd` → `/commit`)
25
+ - `docs/user/SKILLS-INDEX.md` — 自动生成的 54 个 skill 索引,按 Tier(DEC-061)与 Category 分类,含「触发时机速查」表
26
+ - `docs/user/COMMANDS-INDEX.md` — 自动生成的 48 个 slash command 字母序列表,含 skill 对应
27
+ - `docs/user/FAQ.md` — 14 题常见问题(安装、skill、SDD、升级、架构)
28
+ - `docs/user/GLOSSARY.md` — UDS、SDD、ATDD、BDD、TDD、XSPEC、Dual-Layer、Skill Tier、Standard、Activity、Bundle/Source、ADR、AC 等术语定义
29
+ - `docs/user/TROUBLESHOOTING.md` — 问题→解法指南,整合 `SKILL-FALLBACK-GUIDE.md` 内容
30
+ - `docs/user/README.md` — 三类受众入口(新手 / 日常用户 / 维护者)+ 文档地图
31
+ - `docs/user/CHEATSHEET.md` — 从 `docs/` 移入(内容不变)
32
+ - **`scripts/generate-skill-index.ts`** — 从 `uds-manifest.json` + `skills/*/SKILL.md` frontmatter 生成 SKILLS-INDEX.md 与 COMMANDS-INDEX.md。执行:`npm run docs:generate-index`
33
+ - **`scripts/check-skill-index.ts`** — pre-commit 守门;重生成后 diff,不同步则 exit 非零。执行:`npm run docs:check-index`
34
+ - **`scripts/setup-hooks.sh`** — 安装 `.git/hooks/pre-commit`,每次 commit 自动调用 `docs:check-index`
35
+ - **`.github/workflows/docs-check.yml`** — CI job:PR 修改 manifest/SKILL.md/registry 时验证 INDEX 文档已同步
36
+ - **`docs/reference/FEATURE-REFERENCE.md`** — FEATURE-REFERENCE.md 从 `docs/` 迁移至 `docs/reference/`(自动生成,内容不变)
37
+ - **`docs/archive/USER-MANUAL-2026-03-24.md`** — 已废弃 User Manual 的归档备份
38
+
39
+ ### 变更
40
+ - **`package.json`**:新增 `docs:generate-index` 与 `docs:check-index` npm scripts
41
+ - **`scripts/generate-usage-docs.mjs`**:更新英文输出路径(FEATURE-REFERENCE → `docs/reference/`,CHEATSHEET → `docs/user/`)
42
+ - **`skills/README.md`**:新增 banner 指向 `docs/user/SKILLS-INDEX.md` 与 `COMMANDS-INDEX.md`
43
+ - **`README.md`**:Quick Start 段落新增「📚 Documentation」表格,列出 7 份 `docs/user/` 文档直链
44
+ - **`docs/USER-MANUAL.md`**:新增 deprecation banner 指向 `docs/user/README.md`;归档备份保留于 `docs/archive/`
45
+
46
+ ### 移除
47
+ - **`docs/SKILL-FALLBACK-GUIDE.md`**:内容已整合至 `docs/user/TROUBLESHOOTING.md`。非 Claude Code 工具的 fallback 策略与 Skill→Core Standard 对应表保留于「Using UDS Without Claude Code」段落
48
+
49
+ ## [5.11.0] - 2026-05-14
50
+
51
+ ### 新增 / Added
52
+ - **`spec-driven-development`** SPEC Type Agent 变体:`acceptance-criteria-traceability.ai.yaml` 与 SDD 模板新增 `spec-type: feature | agent | infrastructure` 字段,以及 Agent SPEC 五段式模板(能力范围 / 决策边界 / 可观测性 / 失败模式 / 跨 Agent 不变量)。让 Builder/QA/Planner 风格的 SPEC 可独立于 feature SPEC 追踪,并通过新增的 `agent-id` 字段连回特定 Agent。(XSPEC-205)
53
+ - **`reverse-engineering-standards`** 移植清单双向验证:新增路由驱动的发现方法(禁止以 filesystem-glob 为起点)、target→source 双向扫描,以及对"无对应来源产物"的发现的 `[GAP]` 标记协议。搭配 `testing.ai.yaml` 新增 `migration_testing` 区段,要求以 3 步骤 schema parity pattern 并由 CI gate 强制执行。关闭 UDS Issue #96 与 #97。(XSPEC-206)
54
+
55
+ ### 修复 / Fixed
56
+ - **`uds update` 对 schema 3.x manifest 误报"CLAUDE.md.md:无法判断来源"还原失败**(`cli/src/utils/integration-generator.js`、`cli/src/commands/update.js`):schema 3.x manifest 在 `manifest.integrations` 存的是**文件名**(如 `"CLAUDE.md"`)而非工具名。`integration-generator.js:56` 的 `getToolFileName` fallback 无条件附加 `".md"`,导致 `getToolFilePath("CLAUDE.md")` 返回 `"CLAUDE.md.md"`,被当成丢失文件而无法还原(`getSourcePathFromRelative` 对该合成路径没有 mapping)。Commit `79532b3`(5.10.0)修了反向案例(工具名输入),但漏这个文件名变体。修补:从 `SUPPORTED_AI_TOOLS` 预计算 `KNOWN_TOOL_FILES`,对已知集成文件名或已含已知扩展名(`.md`/`.yaml`/`.yml`/`.json`)的输入短路返回。`integration-generator.test.js` 新增 5 个 regression test。(XSPEC-208 BUG-208-01)
57
+ - **`uds update` / `uds check` 误报"Integration UDS Block Integrity:GEMINI.md/AGENTS.md 丢失"警告**(`cli/src/commands/update.js`、`cli/src/i18n/messages.js`):`manifest.integrationBlockHashes` 每次安装都累加但从不清理。当 `manifest.aiTools` 缩减(如 `["claude-code","gemini-cli"]` → `["claude-code"]`),GEMINI.md 的 hash 仍残留,`check.js:1491 checkIntegrationBlocksIntegrity` 误报该文件丢失。修补:在 integration 重新生成步骤后,依 `manifest.aiTools`(声明的配置,而非 `results.integrations`,后者在暂时性写入失败时会 over-prune)反推预期文件名集合并移除孤儿 hash。被清理的文件名通过新增 i18n key `prunedOrphanedBlockHashes`(en / zh-TW / zh-CN)回报。`update.test.js` 新增 3 个 regression test。在 machine-setup `uds update` 5.1.0-beta.4 → 5.10.0 触发;于 5.10.0 → 5.11.0 验证修复。(XSPEC-208 BUG-208-02)
58
+
20
59
  ## [5.10.0] - 2026-05-13
21
60
 
22
61
  ### 新增
@@ -14,7 +14,7 @@ status: current
14
14
 
15
15
  Universal Development Standards 是一个语言无关、框架无关的文件化标准框架。它提供:
16
16
 
17
- - **核心规范** (`core/`):71 个基础开发标准
17
+ - **核心规范** (`core/`):125 个基础开发标准
18
18
  - **AI 技能** (`skills/`):用于 AI 辅助开发的 Claude Code 技能
19
19
  - **CLI 工具** (`cli/`):用于采用标准的 Node.js CLI
20
20
  - **整合** (`integrations/`):各种 AI 工具的配置
@@ -14,7 +14,7 @@ status: current
14
14
 
15
15
  > **语言**: [English](../../README.md) | [繁體中文](../zh-TW/README.md) | 简体中文
16
16
 
17
- **版本**: 5.10.0 | **发布日期**: 2026-04-13 | **授权**: [双重授权](../../LICENSE) (CC BY 4.0 + MIT)
17
+ **版本**: 5.12.1 | **发布日期**: 2026-05-14 | **授权**: [双重授权](../../LICENSE) (CC BY 4.0 + MIT)
18
18
 
19
19
  语言无关、框架无关的软件项目文档标准。通过 AI 原生工作流,确保不同技术栈之间的一致性、质量和可维护性。
20
20
 
@@ -63,8 +63,8 @@ npx universal-dev-standards init
63
63
  <!-- UDS_STATS_TABLE_START -->
64
64
  | 类别 | 数量 | 说明 |
65
65
  |----------|-------|-------------|
66
- | **核心标准** | 78 | 通用开发准则 |
67
- | **AI Skills** | 48 | 互动式技能 |
66
+ | **核心标准** | 125 | 通用开发准则 |
67
+ | **AI Skills** | 54 | 互动式技能 |
68
68
  | **斜线命令** | 48 | 快速操作 |
69
69
  | **CLI 命令** | 6 | list, init, configure, check, update, skills |
70
70
  <!-- UDS_STATS_TABLE_END -->
@@ -13,8 +13,7 @@ status: current
13
13
  <!-- UDS_SUPPORTED_VERSIONS_START -->
14
14
  | 版本 | 支持状态 |
15
15
  |------|--------|
16
- | 5.1.0-beta.5 | ✅ 预发布版本 |
17
- | 5.0.0 | ✅ 最新正式版 |
16
+ | 5.11.0 | ✅ 最新正式版 |
18
17
  | < 5.0.0 | ❌ 已终止支持 |
19
18
  <!-- UDS_SUPPORTED_VERSIONS_END -->
20
19