universal-dev-standards 6.8.0 → 6.9.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 +12 -2
- package/bundled/ai/standards/acceptance-criteria-traceability.ai.yaml +14 -2
- package/bundled/ai/standards/adr-standards.ai.yaml +14 -2
- package/bundled/ai/standards/code-review.ai.yaml +13 -3
- package/bundled/ai/standards/commit-message.ai.yaml +8 -4
- package/bundled/ai/standards/deferred-item-exit.ai.yaml +225 -0
- package/bundled/ai/standards/feature-discovery-standards.ai.yaml +14 -2
- package/bundled/ai/standards/governance-layer.ai.yaml +128 -2
- package/bundled/ai/standards/logging.ai.yaml +2 -2
- package/bundled/ai/standards/retrospective-standards.ai.yaml +14 -2
- package/bundled/ai/standards/reverse-engineering-standards.ai.yaml +73 -2
- package/bundled/ai/standards/security-standards.ai.yaml +2 -2
- package/bundled/ai/standards/spec-driven-development.ai.yaml +14 -2
- package/bundled/ai/standards/tech-debt-standards.ai.yaml +87 -3
- package/bundled/ai/standards/turn-completion-integrity.ai.yaml +131 -0
- package/bundled/core/acceptance-criteria-traceability.md +5 -2
- package/bundled/core/adr-standards.md +26 -2
- package/bundled/core/code-review-checklist.md +5 -2
- package/bundled/core/context-aware-loading.md +1 -1
- package/bundled/core/deferred-item-exit.md +254 -0
- package/bundled/core/feature-discovery-standards.md +5 -1
- package/bundled/core/governance-layer.md +114 -2
- package/bundled/core/retrospective-standards.md +4 -2
- package/bundled/core/reverse-engineering-standards.md +81 -2
- package/bundled/core/spec-driven-development.md +8 -2
- package/bundled/core/tech-debt-standards.md +67 -8
- package/bundled/core/turn-completion-integrity.md +196 -0
- package/bundled/hooks/check-dangerous-cmd.mjs +60 -0
- package/bundled/hooks/check-logging-standard.mjs +59 -0
- package/bundled/hooks/check-turn-completion.mjs +233 -0
- package/bundled/hooks/inject-standards.mjs +183 -0
- package/bundled/hooks/telemetry-wrapper.mjs +77 -0
- package/bundled/hooks/turn-completion/detect.mjs +99 -0
- package/bundled/hooks/turn-completion/locales/en.mjs +159 -0
- package/bundled/hooks/turn-completion/locales/zh-TW.mjs +166 -0
- package/bundled/hooks/validate-commit-msg.mjs +104 -0
- package/bundled/locales/zh-CN/CHANGELOG.md +47 -3
- package/bundled/locales/zh-CN/CLAUDE.md +1 -1
- package/bundled/locales/zh-CN/README.md +2 -2
- package/bundled/locales/zh-CN/SECURITY.md +1 -1
- package/bundled/locales/zh-CN/core/adr-standards.md +1 -1
- package/bundled/locales/zh-CN/core/governance-layer.md +118 -6
- package/bundled/locales/zh-CN/core/retrospective-standards.md +1 -1
- package/bundled/locales/zh-CN/core/tech-debt-standards.md +71 -4
- package/bundled/locales/zh-CN/core/turn-completion-integrity.md +190 -0
- package/bundled/locales/zh-CN/docs/CHEATSHEET.md +8 -1
- package/bundled/locales/zh-CN/docs/CLI-INIT-OPTIONS.md +29 -68
- package/bundled/locales/zh-CN/docs/FEATURE-REFERENCE.md +25 -15
- package/bundled/locales/zh-CN/docs/USAGE-MODES-COMPARISON.md +1 -2
- package/bundled/locales/zh-CN/integrations/google-antigravity/{INSTRUCTIONS.md → AGENTS.md} +1 -1
- package/bundled/locales/zh-CN/integrations/google-antigravity/README.md +3 -3
- package/bundled/locales/zh-CN/skills/atdd-assistant/SKILL.md +2 -0
- package/bundled/locales/zh-CN/skills/bdd-assistant/SKILL.md +2 -0
- package/bundled/locales/zh-CN/skills/brainstorm-assistant/SKILL.md +22 -12
- package/bundled/locales/zh-CN/skills/brainstorm-assistant/guide.md +12 -9
- package/bundled/locales/zh-CN/skills/code-review-assistant/SKILL.md +1 -0
- package/bundled/locales/zh-CN/skills/commands/brainstorm.md +17 -13
- package/bundled/locales/zh-CN/skills/commands/config.md +0 -1
- package/bundled/locales/zh-CN/skills/commands/init.md +1 -2
- package/bundled/locales/zh-CN/skills/commit-standards/SKILL.md +2 -0
- package/bundled/locales/zh-CN/skills/contract-test-assistant/SKILL.md +1 -0
- package/bundled/locales/zh-CN/skills/dev-methodology/SKILL.md +2 -0
- package/bundled/locales/zh-CN/skills/observability-assistant/SKILL.md +1 -0
- package/bundled/locales/zh-CN/skills/project-structure-guide/SKILL.md +1 -0
- package/bundled/locales/zh-CN/skills/release-standards/SKILL.md +3 -0
- package/bundled/locales/zh-CN/skills/requirement-assistant/SKILL.md +2 -0
- package/bundled/locales/zh-CN/skills/reverse-engineer/SKILL.md +3 -0
- package/bundled/locales/zh-CN/skills/runbook-assistant/SKILL.md +1 -0
- package/bundled/locales/zh-CN/skills/slo-assistant/SKILL.md +1 -0
- package/bundled/locales/zh-CN/skills/tdd-assistant/SKILL.md +2 -0
- package/bundled/locales/zh-TW/CHANGELOG.md +47 -3
- package/bundled/locales/zh-TW/CLAUDE.md +1 -1
- package/bundled/locales/zh-TW/README.md +2 -2
- package/bundled/locales/zh-TW/SECURITY.md +1 -1
- package/bundled/locales/zh-TW/core/acceptance-criteria-traceability.md +2 -0
- package/bundled/locales/zh-TW/core/adr-standards.md +26 -5
- package/bundled/locales/zh-TW/core/code-review-checklist.md +2 -0
- package/bundled/locales/zh-TW/core/container-image-standards.md +2 -2
- package/bundled/locales/zh-TW/core/contract-testing-standards.md +2 -2
- package/bundled/locales/zh-TW/core/cross-flow-regression.md +8 -7
- package/bundled/locales/zh-TW/core/data-contract.md +2 -2
- package/bundled/locales/zh-TW/core/data-migration-testing.md +2 -2
- package/bundled/locales/zh-TW/core/data-pipeline.md +2 -2
- package/bundled/locales/zh-TW/core/deferred-item-exit.md +251 -0
- package/bundled/locales/zh-TW/core/documentation-writing-standards.md +228 -3
- package/bundled/locales/zh-TW/core/full-coverage-testing.md +15 -2
- package/bundled/locales/zh-TW/core/governance-layer.md +118 -5
- package/bundled/locales/zh-TW/core/iac-design-principles.md +2 -2
- package/bundled/locales/zh-TW/core/incident-response.md +2 -2
- package/bundled/locales/zh-TW/core/model-provenance.md +4 -2
- package/bundled/locales/zh-TW/core/pii-classification.md +42 -6
- package/bundled/locales/zh-TW/core/prd-standards.md +4 -2
- package/bundled/locales/zh-TW/core/product-metrics-standards.md +4 -2
- package/bundled/locales/zh-TW/core/release-readiness-gate.md +2 -2
- package/bundled/locales/zh-TW/core/resource-cost-boundary.md +2 -2
- package/bundled/locales/zh-TW/core/retrospective-standards.md +5 -3
- package/bundled/locales/zh-TW/core/reverse-engineering-standards.md +83 -5
- package/bundled/locales/zh-TW/core/runbook.md +2 -2
- package/bundled/locales/zh-TW/core/schema-evolution.md +2 -2
- package/bundled/locales/zh-TW/core/secret-management-standards.md +2 -2
- package/bundled/locales/zh-TW/core/slo-sli.md +2 -2
- package/bundled/locales/zh-TW/core/spec-driven-development.md +2 -0
- package/bundled/locales/zh-TW/core/tech-debt-standards.md +71 -4
- package/bundled/locales/zh-TW/core/turn-completion-integrity.md +190 -0
- package/bundled/locales/zh-TW/core/user-journey-testing.md +2 -2
- package/bundled/locales/zh-TW/core/user-story-mapping.md +2 -2
- package/bundled/locales/zh-TW/core/verification-oracle.md +2 -2
- package/bundled/locales/zh-TW/docs/CHEATSHEET.md +8 -1
- package/bundled/locales/zh-TW/docs/CLI-INIT-OPTIONS.md +29 -68
- package/bundled/locales/zh-TW/docs/FEATURE-REFERENCE.md +25 -15
- package/bundled/locales/zh-TW/docs/USAGE-MODES-COMPARISON.md +1 -2
- package/bundled/locales/zh-TW/integrations/google-antigravity/{INSTRUCTIONS.md → AGENTS.md} +1 -1
- package/bundled/locales/zh-TW/integrations/google-antigravity/README.md +3 -3
- package/bundled/locales/zh-TW/skills/adr-assistant/SKILL.md +1 -1
- package/bundled/locales/zh-TW/skills/atdd-assistant/SKILL.md +2 -0
- package/bundled/locales/zh-TW/skills/bdd-assistant/SKILL.md +2 -0
- package/bundled/locales/zh-TW/skills/brainstorm-assistant/SKILL.md +22 -12
- package/bundled/locales/zh-TW/skills/brainstorm-assistant/guide.md +12 -9
- package/bundled/locales/zh-TW/skills/code-review-assistant/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/commands/brainstorm.md +17 -13
- package/bundled/locales/zh-TW/skills/commands/config.md +0 -1
- package/bundled/locales/zh-TW/skills/commands/init.md +1 -2
- package/bundled/locales/zh-TW/skills/commit-standards/SKILL.md +2 -0
- package/bundled/locales/zh-TW/skills/contract-test-assistant/SKILL.md +2 -1
- package/bundled/locales/zh-TW/skills/dev-methodology/SKILL.md +2 -0
- package/bundled/locales/zh-TW/skills/dev-workflow-guide/SKILL.md +1 -1
- package/bundled/locales/zh-TW/skills/knowledge-graph/guide.md +2 -2
- package/bundled/locales/zh-TW/skills/migration-assistant/SKILL.md +1 -1
- package/bundled/locales/zh-TW/skills/observability-assistant/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/project-discovery/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/project-structure-guide/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/release-standards/SKILL.md +3 -0
- package/bundled/locales/zh-TW/skills/requirement-assistant/SKILL.md +2 -0
- package/bundled/locales/zh-TW/skills/reverse-engineer/SKILL.md +3 -0
- package/bundled/locales/zh-TW/skills/runbook-assistant/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/slo-assistant/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/tdd-assistant/SKILL.md +2 -0
- package/bundled/skills/atdd-assistant/SKILL.md +2 -0
- package/bundled/skills/bdd-assistant/SKILL.md +2 -0
- package/bundled/skills/brainstorm-assistant/SKILL.md +31 -13
- package/bundled/skills/brainstorm-assistant/guide.md +9 -6
- package/bundled/skills/code-review-assistant/SKILL.md +1 -0
- package/bundled/skills/commands/brainstorm.md +12 -9
- package/bundled/skills/commands/config.md +0 -1
- package/bundled/skills/commands/init.md +2 -3
- package/bundled/skills/commit-standards/SKILL.md +2 -0
- package/bundled/skills/contract-test-assistant/SKILL.md +1 -0
- package/bundled/skills/dev-methodology/SKILL.md +4 -0
- package/bundled/skills/observability-assistant/SKILL.md +1 -0
- package/bundled/skills/project-discovery/SKILL.md +1 -0
- package/bundled/skills/project-structure-guide/SKILL.md +1 -0
- package/bundled/skills/release-standards/SKILL.md +3 -0
- package/bundled/skills/requirement-assistant/SKILL.md +2 -0
- package/bundled/skills/reverse-engineer/SKILL.md +3 -0
- package/bundled/skills/runbook-assistant/SKILL.md +1 -0
- package/bundled/skills/slo-assistant/SKILL.md +1 -0
- package/bundled/skills/tdd-assistant/SKILL.md +2 -0
- package/bundled/templates/.ai-context.yaml.template +194 -0
- package/bundled/templates/CLAUDE.md.template +145 -0
- package/bundled/templates/DESIGN.md +237 -0
- package/bundled/templates/SKILL-BRIEF-TEMPLATE.md +57 -0
- package/bundled/templates/SKILL-CANDIDATES.md +39 -0
- package/bundled/templates/gates/check-error-exit.mjs +309 -0
- package/bundled/templates/mcp-config.json +10 -0
- package/bundled/templates/methodology-template.yaml +209 -0
- package/bundled/templates/migration-template.md +408 -0
- package/bundled/templates/requirement-checklist.md +410 -0
- package/bundled/templates/requirement-document-template.md +591 -0
- package/bundled/templates/requirement-template.md +881 -0
- package/bundled/templates/reverse-spec-template.md +409 -0
- package/bundled/templates/test-case-template.md +74 -0
- package/bundled/templates/test-plan-template.md +74 -0
- package/package.json +7 -5
- package/src/commands/audit.js +82 -0
- package/src/commands/check.js +66 -10
- package/src/commands/init.js +161 -16
- package/src/commands/update.js +286 -14
- package/src/compilers/claude-code-compiler.js +4 -1
- package/src/config/ai-agent-paths.js +62 -17
- package/src/core/constants.js +42 -11
- package/src/core/manifest.js +201 -3
- package/src/core/paths.js +2 -2
- package/src/i18n/messages.js +6 -29
- package/src/installers/hooks-installer.js +167 -75
- package/src/installers/integration-installer.js +9 -5
- package/src/prompts/init.js +14 -14
- package/src/utils/detector.js +21 -1
- package/src/utils/effect-boundary.js +1093 -0
- package/src/utils/hasher.js +166 -1
- package/src/utils/hook-stats.js +1 -1
- package/src/utils/integration-generator.js +79 -1
- package/src/utils/reference-sync.js +4 -1
- package/src/utils/yaml-generator.js +51 -9
- package/standards-registry.json +31 -8
|
@@ -45,7 +45,7 @@ status: current
|
|
|
45
45
|
◯ Windsurf (.windsurfrules)
|
|
46
46
|
◯ Cline (.clinerules)
|
|
47
47
|
◯ GitHub Copilot (.github/copilot-instructions.md)
|
|
48
|
-
◯ Google Antigravity (
|
|
48
|
+
◯ Google Antigravity (.agents/AGENTS.md) - Gemini Agent
|
|
49
49
|
── AGENTS.md Tools ──
|
|
50
50
|
◯ OpenAI Codex (AGENTS.md) - OpenAI Codex CLI
|
|
51
51
|
◯ OpenCode (AGENTS.md) - Open-source AI coding agent
|
|
@@ -68,7 +68,7 @@ status: current
|
|
|
68
68
|
| **Windsurf** | `.windsurfrules` | Plaintext | Windsurf IDE 規則檔 |
|
|
69
69
|
| **Cline** | `.clinerules` | Plaintext | Cline 擴展規則檔 |
|
|
70
70
|
| **GitHub Copilot** | `.github/copilot-instructions.md` | Markdown | Copilot 自訂指示 |
|
|
71
|
-
| **Google Antigravity** |
|
|
71
|
+
| **Google Antigravity** | `.agents/AGENTS.md` | Markdown | Gemini Agent 系統指令 |
|
|
72
72
|
| **OpenAI Codex** | `AGENTS.md` | Markdown | OpenAI Codex CLI |
|
|
73
73
|
| **OpenCode** | `AGENTS.md` | Markdown | 開源 AI 編碼 Agent(與 Codex 共用檔案) |
|
|
74
74
|
| **Gemini CLI** | `GEMINI.md` | Markdown | Google Gemini CLI |
|
|
@@ -626,21 +626,26 @@ uds init
|
|
|
626
626
|
```
|
|
627
627
|
? Select content level:
|
|
628
628
|
❯ Standard (推薦) - Summary + links to full docs
|
|
629
|
-
Full Embed - All rules in one file (larger)
|
|
630
629
|
Minimal - Core rules only (smallest)
|
|
631
630
|
```
|
|
632
631
|
|
|
633
632
|
### 說明
|
|
634
633
|
|
|
635
|
-
決定 AI
|
|
634
|
+
決定 AI 工具整合檔案中嵌入多少標準內容。
|
|
635
|
+
|
|
636
|
+
> **第三個模式 `full`(Full Embed)已於 UDS 6.9.0 移除。**
|
|
637
|
+
> 它從來沒有產生過與 `index` 不同的檔案——產生器只在 `minimal` 上分支,
|
|
638
|
+
> 因此兩者在實測的 24 組(工具 × 語言)組合中輸出逐位元相同。
|
|
639
|
+
> `--content-mode full` 仍然接受,並解析為 `index`;manifest 中記錄的 `full`
|
|
640
|
+
> 會在下一次執行時改寫為 `index`。**任何專案拿到的檔案都不會改變**,
|
|
641
|
+
> 因為兩個模式本來就產生相同的位元組。詳見 XSPEC-357 R7。
|
|
636
642
|
|
|
637
643
|
### 選項
|
|
638
644
|
|
|
639
|
-
| 模式 |
|
|
640
|
-
|
|
641
|
-
| **Standard
|
|
642
|
-
| **
|
|
643
|
-
| **Minimal** | 最小 | 低 | 舊專案遷移 |
|
|
645
|
+
| 模式 | 內容 | 適用情境 |
|
|
646
|
+
|------|------|----------|
|
|
647
|
+
| **Standard**(`index`,推薦) | 標準索引 + MUST/SHOULD 任務對照表 | 大多數專案 |
|
|
648
|
+
| **Minimal**(`minimal`) | 僅檔案參考 | 由 Skills 提供任務指引的專案 |
|
|
644
649
|
|
|
645
650
|
### 詳細說明
|
|
646
651
|
|
|
@@ -714,47 +719,17 @@ uds init
|
|
|
714
719
|
- ✅ 希望 AI 遵守規範但不想檔案太大
|
|
715
720
|
- ✅ AI 工具會讀取專案檔案
|
|
716
721
|
|
|
717
|
-
#### Full Embed
|
|
718
|
-
|
|
719
|
-
**生成內容**:完整嵌入所有規則
|
|
720
|
-
|
|
721
|
-
```markdown
|
|
722
|
-
## Anti-Hallucination Protocol
|
|
723
|
-
Reference: .standards/anti-hallucination.md
|
|
724
|
-
|
|
725
|
-
### Core Principle
|
|
726
|
-
You are an AI assistant that prioritizes accuracy over confidence...
|
|
727
|
-
|
|
728
|
-
### Evidence-Based Analysis
|
|
729
|
-
1. **File Reading Requirement**
|
|
730
|
-
- You MUST read files before analyzing them
|
|
731
|
-
- Do not guess APIs, class names, or library versions
|
|
732
|
-
...
|
|
733
|
-
|
|
734
|
-
---
|
|
735
|
-
|
|
736
|
-
## Commit Message Standards
|
|
737
|
-
Reference: .standards/commit-message.ai.yaml
|
|
722
|
+
#### Full Embed 模式(已移除)
|
|
738
723
|
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
### Commit Types
|
|
743
|
-
| Type | Description | Example |
|
|
744
|
-
| feat | New feature | feat(auth): add OAuth2 login |
|
|
745
|
-
...
|
|
746
|
-
```
|
|
724
|
+
這一節原本描述一個把完整規則內文嵌進整合檔案的模式,宣稱能「**保證**」AI
|
|
725
|
+
看到所有標準,並產生「比 Index 大 3-5 倍」的檔案。
|
|
747
726
|
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
-
|
|
751
|
-
- 檔案大小可能是 Index 的 3-5 倍
|
|
727
|
+
**這些從來都沒有被實作。** `full` 與 `index` 走同一條程式路徑、寫出相同的位元組。
|
|
728
|
+
它也不可能照描述運作:`.standards/` 約 248k token,遠超過任何整合檔案裝得下的量。
|
|
729
|
+
該模式已於 UDS 6.9.0 移除(XSPEC-357 R7),現在解析為 `index`。
|
|
752
730
|
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
- ✅ AI 可能不讀取外部檔案
|
|
756
|
-
- ✅ 不能容許 AI 遺漏任何規則
|
|
757
|
-
- ✅ 新團隊導入,確保完全了解規範
|
|
731
|
+
若你當初是為了合規理由選擇它,你拿到的一直都是 `index` 的輸出,
|
|
732
|
+
因此產生的檔案不會有任何改變。
|
|
758
733
|
|
|
759
734
|
### 決策流程
|
|
760
735
|
|
|
@@ -763,19 +738,8 @@ Reference: .standards/commit-message.ai.yaml
|
|
|
763
738
|
│
|
|
764
739
|
▼
|
|
765
740
|
┌─────────────────────────────┐
|
|
766
|
-
│
|
|
767
|
-
|
|
768
|
-
│
|
|
769
|
-
┌───┴───┐
|
|
770
|
-
│ │
|
|
771
|
-
是 否
|
|
772
|
-
│ │
|
|
773
|
-
▼ ▼
|
|
774
|
-
Index Full
|
|
775
|
-
│
|
|
776
|
-
▼
|
|
777
|
-
┌─────────────────────────────┐
|
|
778
|
-
│ 是否有嚴格合規要求? │
|
|
741
|
+
│ 是否已安裝 Skills 並由它 │
|
|
742
|
+
│ 提供任務指引? │
|
|
779
743
|
└─────────────────────────────┘
|
|
780
744
|
│
|
|
781
745
|
┌───┴───┐
|
|
@@ -783,10 +747,7 @@ Index Full
|
|
|
783
747
|
是 否
|
|
784
748
|
│ │
|
|
785
749
|
▼ ▼
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
舊專案遷移 / 想要最小改動? → Minimal
|
|
750
|
+
Minimal Index
|
|
790
751
|
```
|
|
791
752
|
|
|
792
753
|
### 使用案例
|
|
@@ -794,11 +755,11 @@ Index Full
|
|
|
794
755
|
| 案例 | 推薦模式 | 理由 |
|
|
795
756
|
|------|----------|------|
|
|
796
757
|
| 新創團隊的 SaaS 專案 | **Index** | 平衡效率與規範 |
|
|
797
|
-
| 銀行核心系統 | **
|
|
758
|
+
| 銀行核心系統 | **Index** | 索引會列出每一條適用標準與適用時機 |
|
|
798
759
|
| 個人 side project | **Minimal** | 輕量就好 |
|
|
799
760
|
| 開源專案 | **Index** | 讓貢獻者 AI 知道規範 |
|
|
800
761
|
| 從舊設定遷移 | **Minimal** | 保留現有設定 |
|
|
801
|
-
| 新導入 AI 的傳統企業 | **
|
|
762
|
+
| 新導入 AI 的傳統企業 | **Index** | 與已移除的 `full` 模式產出相同 |
|
|
802
763
|
|
|
803
764
|
---
|
|
804
765
|
|
|
@@ -895,8 +856,8 @@ uds init -y \
|
|
|
895
856
|
--test-levels unit,integration \
|
|
896
857
|
--content-mode index
|
|
897
858
|
|
|
898
|
-
#
|
|
899
|
-
uds init -y --content-mode
|
|
859
|
+
# 最小化整合檔案(由 Skills 提供任務指引)
|
|
860
|
+
uds init -y --content-mode minimal
|
|
900
861
|
|
|
901
862
|
# 生成 AGENTS.md 通用摘要(--yes 模式預設生成)
|
|
902
863
|
uds init -y --agents-md
|
|
@@ -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-09-14
|
|
5
5
|
|
|
6
6
|
**Language**: [English](../../../docs/reference/FEATURE-REFERENCE.md) | 繁體中文 | [简体中文](../../zh-CN/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) (152)
|
|
18
|
+
7. [腳本](#scripts) (59)
|
|
19
19
|
|
|
20
|
-
**Total Features:
|
|
20
|
+
**Total Features: 350**
|
|
21
21
|
|
|
22
22
|
---
|
|
23
23
|
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
| `--framework` | Framework extension (fat-free) |
|
|
50
50
|
| `--locale` | Locale extension (zh-tw) |
|
|
51
51
|
| `--skills-location` | Skills location (marketplace, user, project, none) [default: marketplace] |
|
|
52
|
-
| `--content-mode` | Content mode for integration files (minimal, index
|
|
52
|
+
| `--content-mode` | Content mode for integration files (minimal, index) [default: index]; full is retired and resolves to index |
|
|
53
53
|
| `--agents-md` | Generate AGENTS.md universal summary |
|
|
54
54
|
| `--no-agents-md` | Skip AGENTS.md generation |
|
|
55
|
-
| `--with-hooks` | Install enforcement hooks
|
|
55
|
+
| `--with-hooks` | Install enforcement hooks declared by the installed standards |
|
|
56
56
|
| `--content-layout` | Content layout (flat, layered) [default: flat] |
|
|
57
57
|
| `-y, --yes` | Use defaults, skip interactive prompts |
|
|
58
58
|
| `-E, --experimental` | Enable experimental features (methodology) |
|
|
@@ -153,6 +153,7 @@
|
|
|
153
153
|
| `--plan` | Show reconciliation plan without executing (like terraform plan); combines with --skills/--commands to plan just that scope, still writing nothing |
|
|
154
154
|
| `--apply` | Apply exactly the plan --plan prints (plain `uds update` does not); with --skills/--commands it does the reconciliation AND that scope, not only the scope |
|
|
155
155
|
| `--force` | Force update all files, ignoring hash comparison |
|
|
156
|
+
| `--prune` | Delete .standards/ files UDS wrote but no longer ships (listed without this flag; never touches files UDS did not write) |
|
|
156
157
|
| `--rollback` | Rollback to the most recent backup |
|
|
157
158
|
| `--locale` | Override locale for skills install (zh-tw, zh-cn, en); also reads .uds/install.yaml + UDS_LOCALE env |
|
|
158
159
|
|
|
@@ -182,6 +183,8 @@
|
|
|
182
183
|
| `--trend` | Show historical score trend (use with --score) |
|
|
183
184
|
| `--ci` | CI mode: output score only, exit 1 if below threshold (use with --score) |
|
|
184
185
|
| `--threshold` | Score threshold for CI mode (default: 75) |
|
|
186
|
+
| `--effects` | Static effect boundary gate: do the implementations of each declared effect interface reach anything outside this process |
|
|
187
|
+
| `--effects-config` | Path to the effect-family config (default: .uds/effect-boundary.json) |
|
|
185
188
|
|
|
186
189
|
### `uds deps`
|
|
187
190
|
|
|
@@ -425,10 +428,10 @@
|
|
|
425
428
|
|
|
426
429
|
| Standard | 版本 | 說明 |
|
|
427
430
|
|----------|---------|-------------|
|
|
428
|
-
| `acceptance-criteria-traceability` | 1.
|
|
431
|
+
| `acceptance-criteria-traceability` | 1.2.0 | |
|
|
429
432
|
| `acceptance-test-driven-development` | 1.1.0 | |
|
|
430
433
|
| `accessibility-standards` | 1.1.0 | This standard defines comprehensive guidelines for creating accessible software |
|
|
431
|
-
| `adr-standards` | 1.
|
|
434
|
+
| `adr-standards` | 1.1.0 | Architecture Decision Records capture the context, options, and rationale behind |
|
|
432
435
|
| `adversarial-test` | - | |
|
|
433
436
|
| `agent-behavior-discipline` | 1.0.0 | This standard defines four behavioral disciplines for AI agents that elevate per |
|
|
434
437
|
| `agent-communication-protocol` | 1.0.0 | Define a unified communication protocol for AI agents across the AsiaOstrich pro |
|
|
@@ -456,7 +459,7 @@
|
|
|
456
459
|
| `checkin-standards` | 1.8.0 | This standard defines quality gates that MUST be passed before committing code t |
|
|
457
460
|
| `circuit-breaker` | - | |
|
|
458
461
|
| `class-level-fix` | 1.1.0 | A defect is almost never alone. It is one member of a set — one flag in a dispat |
|
|
459
|
-
| `code-review-checklist` | 1.
|
|
462
|
+
| `code-review-checklist` | 1.5.0 | This standard provides a comprehensive checklist for reviewing code changes, ens |
|
|
460
463
|
| `commit-message-guide` | 1.3.0 | Standardized commit messages improve code review efficiency, facilitate automate |
|
|
461
464
|
| `container-image-standards` | 1.0.0 | **Status**: Active | **Updated**: 2026-06-17 | |
|
|
462
465
|
| `container-security` | - | |
|
|
@@ -469,6 +472,7 @@
|
|
|
469
472
|
| `data-migration-testing` | - | |
|
|
470
473
|
| `data-pipeline` | 1.0.0 | **Status**: Active | **Updated**: 2026-06-17 | |
|
|
471
474
|
| `database-standards` | 1.0.0 | This standard defines guidelines for database design, querying, migration, and o |
|
|
475
|
+
| `deferred-item-exit` | 1.0.0 | Several standards require documents that **produce deferred items** — an ADR's a |
|
|
472
476
|
| `deployment-standards` | 1.1.0 | This standard defines guidelines for safely deploying software to production, co |
|
|
473
477
|
| `deprecation-standards` | 1.1.0 | |
|
|
474
478
|
| `design-document-standards` | 1.0.0 | |
|
|
@@ -483,7 +487,7 @@
|
|
|
483
487
|
| `estimation-standards` | 1.0.0 | |
|
|
484
488
|
| `execution-history` | 1.0.0 | |
|
|
485
489
|
| `failure-source-taxonomy` | - | |
|
|
486
|
-
| `feature-discovery-standards` | 1.
|
|
490
|
+
| `feature-discovery-standards` | 1.1.0 | **Status**: Active | **Updated**: 2026-08-24 | |
|
|
487
491
|
| `feature-flag-standards` | 1.0.0 | |
|
|
488
492
|
| `feature-manifest-standard` | - | |
|
|
489
493
|
| `flaky-test-management` | - | |
|
|
@@ -493,7 +497,7 @@
|
|
|
493
497
|
| `full-coverage-testing` | - | |
|
|
494
498
|
| `git-workflow` | 1.4.0 | This standard defines Git branching strategies and workflows to ensure consisten |
|
|
495
499
|
| `git-worktree` | 1.1.0 | Define a lifecycle for using Git worktrees to isolate development work, ensuring |
|
|
496
|
-
| `governance-layer` | 1.
|
|
500
|
+
| `governance-layer` | 1.1.0 | A governance layer provides a shared anchor for all agents and roles in a projec |
|
|
497
501
|
| `health-check-standards` | - | |
|
|
498
502
|
| `iac-design-principles` | 1.0.0 | **Status**: Active | **Updated**: 2026-06-17 | |
|
|
499
503
|
| `immutability-first` | - | |
|
|
@@ -532,9 +536,9 @@
|
|
|
532
536
|
| `replay-test` | - | |
|
|
533
537
|
| `requirement-engineering` | 1.1.0 | |
|
|
534
538
|
| `resource-cost-boundary` | 1.0.0 | **Status**: Active | **Updated**: 2026-06-17 | |
|
|
535
|
-
| `retrospective-standards` | 1.
|
|
539
|
+
| `retrospective-standards` | 1.1.0 | Retrospectives are structured team reflections that identify what worked well, w |
|
|
536
540
|
| `retry-standards` | - | |
|
|
537
|
-
| `reverse-engineering-standards` | 1.
|
|
541
|
+
| `reverse-engineering-standards` | 1.3.0 | This standard defines the principles, workflows, and best practices for reverse |
|
|
538
542
|
| `rollback-standards` | - | |
|
|
539
543
|
| `runbook-standards` | 1.0.0 | |
|
|
540
544
|
| `runbook` | 1.0.0 | **Status**: Active | **Updated**: 2026-06-17 | |
|
|
@@ -551,14 +555,14 @@
|
|
|
551
555
|
| `slo-sli` | 1.0.0 | **Status**: Active | **Updated**: 2026-06-17 | |
|
|
552
556
|
| `slo-standards` | 1.0.0 | |
|
|
553
557
|
| `smoke-test` | - | |
|
|
554
|
-
| `spec-driven-development` | 2.
|
|
558
|
+
| `spec-driven-development` | 2.5.0 | |
|
|
555
559
|
| `standard-admission-criteria` | - | |
|
|
556
560
|
| `standard-lifecycle-management` | - | |
|
|
557
561
|
| `structured-task-definition` | 1.0.0 | |
|
|
558
562
|
| `supply-chain-attestation` | - | |
|
|
559
563
|
| `supply-chain-security-standards` | 1.1.0 | |
|
|
560
564
|
| `systematic-debugging` | 1.0.0 | Define a structured, four-phase debugging workflow that prevents the common anti |
|
|
561
|
-
| `tech-debt-standards` | 1.
|
|
565
|
+
| `tech-debt-standards` | 1.1.0 | |
|
|
562
566
|
| `test-completeness-dimensions` | 1.1.0 | This document defines a systematic framework for evaluating test completeness. I |
|
|
563
567
|
| `test-data-standards` | 1.0.0 | |
|
|
564
568
|
| `test-driven-development` | 1.2.0 | |
|
|
@@ -567,6 +571,7 @@
|
|
|
567
571
|
| `timeout-standards` | - | |
|
|
568
572
|
| `token-budget` | - | |
|
|
569
573
|
| `translation-lifecycle-standards` | 1.0.1 | Translation lifecycle standards: MISSING vs OUTDATED distinction, semver-aware s |
|
|
574
|
+
| `turn-completion-integrity` | 1.3.0 | An agent writes *"I'll do X next"* and then ends the turn without doing X. |
|
|
570
575
|
| `user-journey-testing` | - | |
|
|
571
576
|
| `user-story-mapping` | 1.0.0 | **Status**: Active | **Updated**: 2026-06-17 | |
|
|
572
577
|
| `verification-evidence` | 1.3.0 | Establish an "Iron Law" that no task can be claimed as complete without verifica |
|
|
@@ -590,6 +595,7 @@
|
|
|
590
595
|
| `check-ai-agent-sync.ps1` | Check Ai Agent Sync |
|
|
591
596
|
| `check-ai-agent-sync.sh` | AI Agent Sync Checker |
|
|
592
597
|
| `check-ai-yaml-parses.mjs` | Every shipped .ai.yaml must parse, and must parse into what it says. |
|
|
598
|
+
| `check-bump-sync-roundtrip.mjs` | check-bump-sync-roundtrip — 測「跑完 bump 之後 check 必須通過」這個不變量。 |
|
|
593
599
|
| `check-cli-docs-sync.ps1` | Check Cli Docs Sync |
|
|
594
600
|
| `check-cli-docs-sync.sh` | CLI-to-Documentation Sync Checker |
|
|
595
601
|
| `check-commands-sync.ps1` | Check Commands Sync |
|
|
@@ -599,6 +605,7 @@
|
|
|
599
605
|
| `check-docs-integrity.sh` | Documentation Integrity Checker |
|
|
600
606
|
| `check-docs-sync.ps1` | Check Docs Sync |
|
|
601
607
|
| `check-docs-sync.sh` | Documentation Sync Checker |
|
|
608
|
+
| `check-error-exit.mjs` | 🔴 沒填就是沒設定,而沒設定會 exit 2, |
|
|
602
609
|
| `check-external-references.mjs` | External Reference Checker (SPEC-SELFDIAG-001 REQ-5, AC-7) |
|
|
603
610
|
| `check-orphan-specs.ps1` | Check Orphan Specs |
|
|
604
611
|
| `check-orphan-specs.sh` | Orphan Spec Detection Script |
|
|
@@ -612,6 +619,7 @@
|
|
|
612
619
|
| `check-standards-reference-sync.sh` | check-standards-reference-sync.sh |
|
|
613
620
|
| `check-standards-sync.ps1` | Check Standards Sync |
|
|
614
621
|
| `check-standards-sync.sh` | Standards Consistency Checker |
|
|
622
|
+
| `check-translation-hash-ratchet.sh` | XSPEC-392 R6 棘輪:新的翻譯必須帶 source_hash,既有的欠債冷凍為基線。 |
|
|
615
623
|
| `check-translation-sync.ps1` | Check Translation Sync |
|
|
616
624
|
| `check-translation-sync.sh` | Translation Sync Checker |
|
|
617
625
|
| `check-usage-docs-sync.ps1` | Check if usage documentation needs to be regenerated |
|
|
@@ -623,7 +631,9 @@
|
|
|
623
631
|
| `convert-md-to-yaml.mjs` | Markdown to AI-YAML Conversion Script |
|
|
624
632
|
| `fix-manifest-paths.ps1` | Fix Manifest Paths |
|
|
625
633
|
| `fix-manifest-paths.sh` | Manifest Path Fixer |
|
|
634
|
+
| `generate-adoption-skills.mjs` | Self-Adoption Skill Copy Generator and Drift Gate — XSPEC-385 |
|
|
626
635
|
| `generate-docs.mjs` | Look up the release date for `version` from CHANGELOG.md's own |
|
|
636
|
+
| `generate-llms-txt.mjs` | llms.txt Generator and Drift Gate — XSPEC-385 |
|
|
627
637
|
| `generate-locale-coverage.mjs` | Locale Coverage Generator |
|
|
628
638
|
| `generate-version-manifest.mjs` | Generate Version Manifest (SPEC-SELFDIAG-001 REQ-9, AC-14) |
|
|
629
639
|
| `install-hooks.mjs` | Install Hooks |
|
|
@@ -58,7 +58,6 @@ status: current
|
|
|
58
58
|
|
|
59
59
|
**配置方式**:
|
|
60
60
|
- 安裝時選擇 `standardsScope: full` + Skills 安裝
|
|
61
|
-
- 或透過 `contentMode: full` 獲得完整規範
|
|
62
61
|
|
|
63
62
|
**包含內容**:
|
|
64
63
|
- 16 個 Claude Code Skills
|
|
@@ -212,7 +211,7 @@ uds init -y --skills-location marketplace --content-mode index
|
|
|
212
211
|
|
|
213
212
|
**配置方式**:
|
|
214
213
|
```bash
|
|
215
|
-
uds init -y --skills-location none --content-mode
|
|
214
|
+
uds init -y --skills-location none --content-mode index
|
|
216
215
|
```
|
|
217
216
|
|
|
218
217
|
### 場景 4:學習 UDS 標準體系
|
|
@@ -19,7 +19,7 @@ Google Antigravity 是一個先進的代理程式碼開發助理。此整合協
|
|
|
19
19
|
- **[.antigravity/rules.md](../../../../integrations/google-antigravity/.antigravity/rules.md)**(推薦):
|
|
20
20
|
專案級規則檔,Antigravity 會自動載入。
|
|
21
21
|
|
|
22
|
-
- **[
|
|
22
|
+
- **[AGENTS.md](./AGENTS.md)**:
|
|
23
23
|
用於手動配置的系統提示詞片段。
|
|
24
24
|
|
|
25
25
|
## 規則配置
|
|
@@ -53,7 +53,7 @@ curl -o .antigravity/rules.md https://raw.githubusercontent.com/AsiaOstrich/univ
|
|
|
53
53
|
確保 `core/` 規範已複製到您的專案(例如 `.standards/`)。
|
|
54
54
|
|
|
55
55
|
2. **配置代理**:
|
|
56
|
-
將 `
|
|
56
|
+
將 `AGENTS.md` 的內容複製到您的 Antigravity「使用者規則」或特定任務指令中。
|
|
57
57
|
|
|
58
58
|
### 驗證合規性
|
|
59
59
|
|
|
@@ -65,7 +65,7 @@ curl -o .antigravity/rules.md https://raw.githubusercontent.com/AsiaOstrich/univ
|
|
|
65
65
|
|
|
66
66
|
- [防幻覺標準](../../core/anti-hallucination.md)
|
|
67
67
|
- [Commit 訊息指南](../../core/commit-message-guide.md)
|
|
68
|
-
- [
|
|
68
|
+
- [AGENTS.md](./AGENTS.md)
|
|
69
69
|
|
|
70
70
|
---
|
|
71
71
|
|
|
@@ -80,5 +80,7 @@ So that [benefit].
|
|
|
80
80
|
|
|
81
81
|
## 參考
|
|
82
82
|
|
|
83
|
+
- [驗收標準撰寫指南](./acceptance-criteria-guide.md) — 要撰寫或審查驗收標準時讀它。
|
|
84
|
+
- [ATDD 工作流程指南](./atdd-workflow.md) — 要完整跑一輪 ATDD 循環時讀它。
|
|
83
85
|
- 詳細指南:[guide.md](./guide.md)
|
|
84
86
|
- 核心規範:[acceptance-test-driven-development.md](../../../../core/acceptance-test-driven-development.md)
|
|
@@ -77,5 +77,7 @@ Feature: User Login
|
|
|
77
77
|
|
|
78
78
|
## 參考
|
|
79
79
|
|
|
80
|
+
- [BDD 工作流程指南](./bdd-workflow.md) — 要把探索、制定、自動化當一個循環跑時讀它。
|
|
81
|
+
- [Gherkin 快速參考指南](./gherkin-guide.md) — 要寫 Given/When/Then 而需要確切語法時讀它。
|
|
80
82
|
- 詳細指南:[guide.md](./guide.md)
|
|
81
83
|
- 核心規範:[behavior-driven-development.md](../../../../core/behavior-driven-development.md)
|
|
@@ -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-08-
|
|
4
|
+
source_version: 4.2.0
|
|
5
|
+
source_hash: 02e63146c84e
|
|
6
|
+
translation_version: 4.3.0
|
|
7
|
+
last_synced: 2026-08-24
|
|
8
8
|
status: current
|
|
9
9
|
description: |
|
|
10
10
|
[UDS] 在規格出現之前執行的結構化多角色腦力激盪,並附帶評分品質關卡。
|
|
@@ -26,6 +26,10 @@ description: |
|
|
|
26
26
|
|
|
27
27
|
**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 — 品質契約」。
|
|
28
28
|
|
|
29
|
+
**v4.2 的核心改動(XSPEC-388):** D4 原本只釘住判官坐在哪裡,一個字都沒說它得想得動。一個獨立 context 跑字面遵循型模型會逐字滿足舊條文,然後照 D5–D8 逐條打勾放行——與一場真的有人反對過的評審在報告上無從分辨。v4.2 給 D4 加上**第二個軸**:評審還必須宣告其**模型層級**要求(見下方術語說明)。CONVERGE 的提示改為**目標+約束**形狀——D5–D8 是判斷必須滿足的判準,不是按順序執行的步驟;既有固定句型與逐準則分數指南保留為參考格式。發散側引用 [core/model-selection.md](../../../../core/model-selection.md)(Standard 或更高)而不另立規則。不移除任何 v3 機制。
|
|
30
|
+
|
|
31
|
+
> **術語——「模型層級」,不用「tier」:** 在本 skill 內,`tier` 已被佔用兩次——BQS 分級表(套用哪些維度)與 Enhanced Tier。[core/model-selection.md](../../../../core/model-selection.md) 定義的模型能力軸(該標準稱 *model tier*)在本 skill 一律寫作**模型層級(model level)**。模型層級是該標準的**廠商中立標籤**;本 skill 絕不指名具體廠商模型(見 D4)。
|
|
32
|
+
|
|
29
33
|
## 使用前先選模式
|
|
30
34
|
|
|
31
35
|
使用前套用以下**客觀觸發條件**。預設為完整 v3,路由規則是跳過階段的快捷鍵,而非額外障礙。
|
|
@@ -68,7 +72,7 @@ BQS 是**四層 × 時間軸**契約。它是 v3 的**疊加**——所有 v3
|
|
|
68
72
|
| **D1 框架純度** | 問題內嵌特定方案或「像 X 給 Y」→fail;須 5-Whys 到根因 |
|
|
69
73
|
| **D2 發散覆蓋** | 存活想法跨 <3 獨立 persona/透鏡→fail(受第 0 層權重調節);連一輪零新增才算飽和 |
|
|
70
74
|
| **D3 跨會話多樣性** | 種子是競品類比→fail;Top 全來自單一 lens→fail |
|
|
71
|
-
| **D4 評估去偏** | 須 ≥3 評審 + 硬角色 Devil's Advocate + Steelman;**pass
|
|
75
|
+
| **D4 評估去偏** | 須 ≥3 評審 + 硬角色 Devil's Advocate + Steelman;**pass 須同時滿足兩軸**:(1) 獨立 context,**且** (2) 以 [model-selection](../../../../core/model-selection.md) 的廠商中立標籤宣告**模型層級**要求——指名具體廠商模型即違規。缺任一軸→標 `[degraded]` 不得標 pass |
|
|
72
76
|
|
|
73
77
|
> **硬序列閘:** D5–D8 禁止在發散期揭示或評分;CONVERGE 的 critic 不得在**最後一個 persona** 產完前被呼叫。
|
|
74
78
|
|
|
@@ -92,7 +96,7 @@ BQS 是**四層 × 時間軸**契約。它是 v3 的**疊加**——所有 v3
|
|
|
92
96
|
### 結構規則
|
|
93
97
|
|
|
94
98
|
1. **Meta 停止規則:** 該層維度全綠 **且** 再跑一輪後 **推薦集成員不變**(看集合成員、不看內部排序)→停。**硬上限 2 輪**。取代模糊的「不翻決策」。
|
|
95
|
-
2. **判官≠產生者:** D2/D4/D5/D7 判定須獨立視角;單 context 自評只能 `[degraded]`,不得 pass。
|
|
99
|
+
2. **判官≠產生者:** D2/D4/D5/D7 判定須獨立視角;單 context 自評只能 `[degraded]`,不得 pass。D4 另需宣告模型層級——獨立性只是它兩軸之一(見 D4)。
|
|
96
100
|
3. **校準回路(吃 lagging):** v3 的三個工作階段自評指標收編為此回路 **lagging** 端——**Adoption Rate=D6 滯後驗證、Diversity=D2/D3 滯後觀測、Cognitive Load=成本約束**;**禁兩套平行評估**。
|
|
97
101
|
4. **BQS 自我演化(輕量):** 版本化 + 證據清單 last-reviewed 逾期 flag;「定期對 BQS 自身 brainstorm」列可選。
|
|
98
102
|
5. **最小充分原則:** 套用該 tier 所需的最少維度 + 把第 2 層限縮在推薦集(Agg. Score ≥ 3.5),而非全部發散想法——認知經濟性的守門,不另設成本維度。
|
|
@@ -149,6 +153,8 @@ BQS 是**四層 × 時間軸**契約。它是 v3 的**疊加**——所有 v3
|
|
|
149
153
|
|
|
150
154
|
> **v3 核心機制:** **persona 集成**——每個 persona 以**思維鏈**在**隔離**狀態下推理——再乘上**多樣性透鏡**。Meincke、Mollick、Terwiesch(2024)發現「思維鏈 + persona」的想法多樣性高於所有受測提示策略,接近人類團體。光衝數量是弱代理;結構性逼出不同視角才是真正槓桿。
|
|
151
155
|
|
|
156
|
+
> **模型層級(發散側):** 發散提示只給目標與約束——正是 core/model-selection.md 的 [MS-004](../../../../core/model-selection.md#rules)/[Criterion 2](../../../../core/model-selection.md#criterion-2--specification-definiteness規格明確度) 的觸發條件:發散以 **Standard 或更高**層級執行。不是「最高層級」——那會同時超出 MS-004 所說的與我們的證據。lagging 登記:此選擇由校準回路既有的 **Diversity(D2/D3 滯後觀測)** 欄驗證,不另開第二套登記。
|
|
157
|
+
|
|
152
158
|
#### Step 2a — persona 集成
|
|
153
159
|
|
|
154
160
|
透過預設 persona 組生成想法。每個 persona **逐步推理(思維鏈)**,**只從自己的視角**產出 2–4 個想法。使用者可用 `--personas` 增減或改名。
|
|
@@ -195,9 +201,11 @@ BQS 是**四層 × 時間軸**契約。它是 v3 的**疊加**——所有 v3
|
|
|
195
201
|
|
|
196
202
|
> **v3 核心機制:** **多評審面板**取代單一加權評分者。單一 LLM 是弱且有偏的評估者(Li 等,2025:LLM 強於生成/精煉、弱於評估——人類保留最終裁決權)。三個獨立評審透鏡各自評分後聚合。
|
|
197
203
|
|
|
204
|
+
> **評審提示形狀——目標+約束(v4.2):** 對面板、Devil's Advocate、Steelman 派工時——尤其派入獨立 context(`--enhanced`)——提示**必須**以**目標+其判斷必須滿足的約束**表達,不得寫成按順序執行的步驟清單。D5–D8 與下方的具體性要求是**判準**(「你的判斷必須滿足這些」),不是**步驟**(「照這個順序做這些事」)。既有固定句型、逐準則 1–5 指南與評審權重公式**保留為參考格式**,皆非必經步驟。理由:core/model-selection.md 的 [MS-009](../../../../core/model-selection.md#rules)。
|
|
205
|
+
|
|
198
206
|
#### Step 3a: 多評審面板
|
|
199
207
|
|
|
200
|
-
跑**三個獨立評審**,各自以自己的透鏡對每個想法打 1–5
|
|
208
|
+
跑**三個獨立評審**,各自以自己的透鏡對每個想法打 1–5 分;取平均聚合以降低單評審偏誤。下方加權準則定義預設透鏡——是參考格式,不是評審必須逐步照走的腳本。
|
|
201
209
|
|
|
202
210
|
| 評審透鏡 | 它所負責的加權準則 |
|
|
203
211
|
|---------|-------------------|
|
|
@@ -205,7 +213,7 @@ BQS 是**四層 × 時間軸**契約。它是 v3 的**疊加**——所有 v3
|
|
|
205
213
|
| **User impact(使用者影響)** | Impact 70% · Alignment 30% |
|
|
206
214
|
| **Strategic alignment(策略一致性)** | Alignment 60% · Impact 40% |
|
|
207
215
|
|
|
208
|
-
各準則評分指南(1–5
|
|
216
|
+
各準則評分指南(1–5,參考格式):Feasibility(5=輕而易舉 … 1=幾乎不可能);Impact(5=變革性 … 1=可忽略);Effort(5=數小時 … 1=數季,反向計分,工作量越低分越高);Alignment(5=核心使命 … 1=偏離使命)。
|
|
209
217
|
|
|
210
218
|
> **可選——RICE / ICE(產品功能):** 排序可出貨功能時用 `RICE =(Reach × Impact × Confidence)/ Effort` 或較輕的 `ICE = Impact × Confidence × Ease`。Effort 交由工程師估、不要讓 LLM 估(它無程式庫知識)。RICE 偏好漸進式勝利,別單獨用於策略性押注。
|
|
211
219
|
|
|
@@ -213,7 +221,7 @@ BQS 是**四層 × 時間軸**契約。它是 v3 的**疊加**——所有 v3
|
|
|
213
221
|
|
|
214
222
|
軟性「請批評一下」只會得到附和(諂媚)。v3 指派**硬角色**:對**推薦集**(Agg. Score ≥ 3.5,不限筆數)中的每一個想法各跑一個 **Devil's Advocate**(「你的任務是論證此案會失敗」)與一個 **Steelman**(「說出反方最強而善意的版本」)。兩者一起壓力測試韌性,而非只是戳。
|
|
215
223
|
|
|
216
|
-
|
|
224
|
+
約束:每個反對理由須指出**具體情境**與**具體原因**——模糊顧慮(「這可能有點難」)不接受。句型「在 [具體情境] 下,此想法會失敗,因為 [具體原因]」是參考格式,不是必用句式。
|
|
217
225
|
|
|
218
226
|
使用者**必須**對每個給出回應才能繼續:
|
|
219
227
|
|
|
@@ -225,16 +233,17 @@ BQS 是**四層 × 時間軸**契約。它是 v3 的**疊加**——所有 v3
|
|
|
225
233
|
|
|
226
234
|
**旗標:** `--no-rebuttal` 跳過此步驟;報告段落標注「Rebuttal: skipped」。
|
|
227
235
|
|
|
228
|
-
> **BQS D4 —
|
|
236
|
+
> **BQS D4 — 判官≠產生者,兩軸:** D4 唯有**兩軸同時成立**才可 pass。**(1) 座位——獨立性**:評審/Devil's Advocate 在獨立 context 執行(`--enhanced` 隔離 agent 宿主)。**(2) 心智——宣告模型層級**:評審宣告其**模型層級**要求,以 [core/model-selection.md](../../../../core/model-selection.md) 的廠商中立標籤表達;選層依據為該標準的判準(引用,不複述)。指名具體廠商模型即違規——層級標籤是唯一合法的表達方式。缺任一軸→面板標 `[degraded]`、**不得標 pass**:獨立 context 跑字面遵循型模型會逐字滿足座位軸,成為一枚完全合規的橡皮圖章——認出「不同名字下的同一件事」是打勾做不到的判斷工作。baseline 單 context 下,面板是同 context 自評,標 `[degraded]`、不得 pass——誠實但非獨立。不得把 baseline 跑當成 D4 pass 靜默通過。
|
|
229
237
|
|
|
230
238
|
#### Step 3c: BQS 第 2 層——對推薦集的產物閘
|
|
231
239
|
|
|
232
|
-
收斂後,**僅對推薦集**(Agg. Score ≥ 3.5 的想法,不限筆數)套用 **D5–D8**(絕不對全部發散想法)。若無想法達 3.5,仍保留分數最高的 1 個,標記 `[未達門檻——僅供參考]
|
|
240
|
+
收斂後,**僅對推薦集**(Agg. Score ≥ 3.5 的想法,不限筆數)套用 **D5–D8**(絕不對全部發散想法)。若無想法達 3.5,仍保留分數最高的 1 個,標記 `[未達門檻——僅供參考]`,避免報告空白。D5–D8 是**判斷必須滿足的判準**——不限順序,不是程序。對推薦集中每個想法,判斷必須滿足:
|
|
233
241
|
|
|
234
242
|
- **D5 接地:** 將每個主張分流為 `[現狀/外部事實]`(需 file:line 或來源,否則 fail)vs `[未來/假說]`(免接地、標 `[假說]`)。**外部事實宣稱為跨級地板**——creative 級也須接地。
|
|
235
243
|
- **D6 淨值:** 推薦集中每個想法須答「解誰問題/我們真有嗎/不做的代價」;至少一個淘汰為「不值得做」;掛 **lagging 登記欄**(事後哪個訊號驗證)。
|
|
236
244
|
- **D7 可證偽(二態):** 標 `[現可陳述證偽]` **或** `[需先做 X 才能定義證偽]`。後者**轉 next-step 餵 D8——不算 fail**。
|
|
237
245
|
- **D8 可行動:** 每個存活想法需 next-step 裁決(含明確「暫不做」);無 → fail。
|
|
246
|
+
- 裁決為「暫不做」者,以及 **Seeds(來自被淘汰的想法)** 中每個被擱置的想法,皆為 [deferred-item-exit](../../../../core/deferred-item-exit.md) 所指的延後項目。
|
|
238
247
|
|
|
239
248
|
> **Meta 停止規則(BQS 結構規則 1):** 當套用的維度全綠 **且** 再跑一輪後 **推薦集成員不變**(看集合成員、非內部排序)→停。**硬上限 2 輪。**
|
|
240
249
|
|
|
@@ -289,7 +298,7 @@ BQS 是**四層 × 時間軸**契約。它是 v3 的**疊加**——所有 v3
|
|
|
289
298
|
- [ ] Proceed to `/sdd` if requirements are clear
|
|
290
299
|
```
|
|
291
300
|
|
|
292
|
-
> **BQS 輸出新增(v4):** **Seeds** 區(規則:被殺 ≥1 則非空)、**爭議區**(高方差想法不按 mean 淘汰)、**Judgment Override** 通道(人類裁決凌駕聚合分)為 BQS 第 2/3 層所要求。Recommendations 區塊為推薦集(不限筆數)中每個想法逐項記錄 D5–D8
|
|
301
|
+
> **BQS 輸出新增(v4):** **Seeds** 區(規則:被殺 ≥1 則非空)、**爭議區**(高方差想法不按 mean 淘汰)、**Judgment Override** 通道(人類裁決凌駕聚合分)為 BQS 第 2/3 層所要求。Recommendations 區塊為推薦集(不限筆數)中每個想法逐項記錄 D5–D8 狀態。自 v4.2 起,報告表頭並記錄評審宣告的**模型層級**(廠商中立標籤)——沒有它,D4 為 `[degraded]`,且宣告無處可驗。
|
|
293
302
|
|
|
294
303
|
## 多樣性崩塌防護
|
|
295
304
|
|
|
@@ -366,6 +375,7 @@ BQS 是**四層 × 時間軸**契約。它是 v3 的**疊加**——所有 v3
|
|
|
366
375
|
## 參考
|
|
367
376
|
|
|
368
377
|
- 詳細指南:[guide.md](./guide.md)
|
|
378
|
+
- 模型層級依據:[core/model-selection.md](../../../../core/model-selection.md)——D4 心智軸與發散側層級皆以該標準的判準為準。**引用、不複述**——摘要會隨來源被更正而腐壞,指標不會。
|
|
369
379
|
|
|
370
380
|
## AI 代理行為
|
|
371
381
|
|
|
@@ -5,10 +5,10 @@ description: |
|
|
|
5
5
|
使用時機:模糊想法、功能探索、問題再框架、創意發想。
|
|
6
6
|
關鍵字:brainstorm, ideation, persona ensemble, multi-critic, HMW, SCAMPER, 腦力激盪, 發想, 創意。
|
|
7
7
|
source: ../../../../skills/brainstorm-assistant/guide.md
|
|
8
|
-
source_version: 4.
|
|
9
|
-
source_hash:
|
|
10
|
-
translation_version: 4.
|
|
11
|
-
last_synced: 2026-
|
|
8
|
+
source_version: 4.2.0
|
|
9
|
+
source_hash: f789b3bbc31a
|
|
10
|
+
translation_version: 4.2.0
|
|
11
|
+
last_synced: 2026-08-21
|
|
12
12
|
status: current
|
|
13
13
|
---
|
|
14
14
|
|
|
@@ -16,8 +16,8 @@ status: current
|
|
|
16
16
|
|
|
17
17
|
> **語言**: [English](../../../../skills/brainstorm-assistant/guide.md) | 繁體中文
|
|
18
18
|
|
|
19
|
-
**版本**: 4.
|
|
20
|
-
**最後更新**: 2026-
|
|
19
|
+
**版本**: 4.2.0
|
|
20
|
+
**最後更新**: 2026-08-21
|
|
21
21
|
**適用範圍**: 所有軟體專案
|
|
22
22
|
**Scope**: universal
|
|
23
23
|
**類型**: 工具型 Skill(無對應核心標準)
|
|
@@ -280,7 +280,7 @@ HMW(預設起點)、SCAMPER(改善既有功能:Substitute 取代、Combi
|
|
|
280
280
|
| **使用者衝擊** | 衝擊 70% · 對齊 30% |
|
|
281
281
|
| **策略對齊** | 對齊 60% · 衝擊 40% |
|
|
282
282
|
|
|
283
|
-
**各準則指引(1–5
|
|
283
|
+
**各準則指引(1–5,參考格式——不是評審必須逐步照走的腳本):**
|
|
284
284
|
|
|
285
285
|
| 準則 | 5 | 3 | 1 |
|
|
286
286
|
|------|---|---|---|
|
|
@@ -306,7 +306,7 @@ HMW(預設起點)、SCAMPER(改善既有功能:Substitute 取代、Combi
|
|
|
306
306
|
- **Devil's Advocate(魔鬼代言人)**:「你的任務是論證這個想法*會*失敗。提出 2 個具體的失敗條件。」
|
|
307
307
|
- **Steelman(強論立場)**:「陳述最強、最善意版本的反論點——一個有思考力的對手真的會提出的那種。」
|
|
308
308
|
|
|
309
|
-
|
|
309
|
+
約束:每個反論點都必須指出**特定脈絡**與**特定理由**。句型**「這個想法會在 [特定脈絡] 失敗,因為 [特定理由]」**是參考格式,不是必用句式(v4.2——評審提示為目標+約束,見 SKILL.md「評審提示形狀」)。
|
|
310
310
|
|
|
311
311
|
**不可接受**(太空泛):「這可能很難。」/「可能會有 edge case。」
|
|
312
312
|
|
|
@@ -342,6 +342,7 @@ HMW(預設起點)、SCAMPER(改善既有功能:Substitute 取代、Combi
|
|
|
342
342
|
**Personas Used**: [領域專家, 懷疑者, 類比者, ...]
|
|
343
343
|
**Lenses Used**: [類比, 反轉, ...]
|
|
344
344
|
**Pre-flight**: [Completed / Skipped] **Rebuttal**: [Completed / Skipped] **Tier**: [Baseline / Enhanced]
|
|
345
|
+
**評審模型層級(D4 心智軸)**: [core/model-selection.md 的廠商中立層級標籤——指名廠商模型即違規;未宣告 → D4 [degraded]]
|
|
345
346
|
|
|
346
347
|
## Problem Statement
|
|
347
348
|
[精煉後的問題 + 5 Whys 的根本原因]
|
|
@@ -549,7 +550,7 @@ BQS v1 是**疊加的品質契約**,不是打掉重練。v3 的一切都保留
|
|
|
549
550
|
|
|
550
551
|
- **所有旗標**:`--personas`、`--lens`、`--enhanced`、`--skip-preflight`、`--no-rebuttal`、`--quick`、`--technique` 行為與 v3 完全相同。v4 僅新增一個可選旗標 `--intent`,供第 0 層宣告。
|
|
551
552
|
- **所有機制**:PRE-FLIGHT 防錨定、FRAME 5-Whys/HMW、persona 集成、多樣性透鏡、多評審面板、硬角色反駁(Devil's Advocate + Steelman)、多樣性崩塌護欄、Enhanced 層,皆不變。
|
|
552
|
-
- **`--enhanced` 隔離 agent
|
|
553
|
+
- **`--enhanced` 隔離 agent 宿主**滿足的是 BQS **D4 的座位軸**(判官≠產生者);自 v4.2(XSPEC-388)起,D4 pass 另需評審宣告**模型層級**(心智軸——依 core/model-selection.md 的廠商中立標籤)。baseline 單 context 標 `[degraded]`、不靜默通過。
|
|
553
554
|
|
|
554
555
|
---
|
|
555
556
|
|
|
@@ -584,6 +585,7 @@ BQS v1 是**疊加的品質契約**,不是打掉重練。v3 的一切都保留
|
|
|
584
585
|
| [Requirement Engineering](../../core/requirement-engineering.md) | 腦力激盪輸出餵入需求撰寫 |
|
|
585
586
|
| [Spec-Driven Development](../../core/spec-driven-development.md) | 腦力激盪輸出餵入 SDD 提案 |
|
|
586
587
|
| [Anti-Hallucination](../../core/anti-hallucination.md) | 評審的可行性宣稱必須以證據為基礎,不可空口斷言 |
|
|
588
|
+
| [Model Selection](../../core/model-selection.md) | D4 心智軸(宣告模型層級)與發散側層級(Standard 或更高)皆以此標準的判準為準——引用、絕不複述 |
|
|
587
589
|
|
|
588
590
|
---
|
|
589
591
|
|
|
@@ -591,6 +593,7 @@ BQS v1 是**疊加的品質契約**,不是打掉重練。v3 的一切都保留
|
|
|
591
593
|
|
|
592
594
|
| 版本 | 日期 | 變更 |
|
|
593
595
|
|------|------|------|
|
|
596
|
+
| 4.2.0 | 2026-08-21 | XSPEC-388:D4 的 pass 條件加上第二個軸——座位(獨立 context,不變)加上心智(評審必須宣告其**模型層級**要求,且只能以 core/model-selection.md 的廠商中立標籤表達;指名具體廠商模型即違規;未宣告 → `[degraded]`、不得 pass)。CONVERGE 評審提示依 MS-009 改為目標+約束形狀:D5–D8 以「判斷必須滿足的判準」呈現、不得以按順序執行的程序呈現;固定反駁句型、逐準則 1–5 指南與評審權重公式保留為參考格式、非必經步驟。發散側引用 MS-004/Criterion 2(Standard 或更高——刻意不是「最高」),由校準回路既有的 Diversity(D2/D3)lagging 欄驗證。術語:模型能力軸全文寫作「模型層級」,因為「tier」已被 BQS 分級與 Enhanced Tier 佔用。所有 v3 旗標與機制保留。 |
|
|
594
597
|
| 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 個並標示「未達門檻,僅供參考」,避免報告空白。 |
|
|
595
598
|
| 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 旗標/機制保留。 |
|
|
596
599
|
| 3.0.0 | 2026-06-01 | XSPEC-247:DIVERGE 重新對齊到 persona 集成 + 多樣性透鏡(類比/反轉/形態學);CONVERGE 重新對齊到多評審面板 + 硬角色反駁(Devil's Advocate + Steelman);多樣性崩塌護欄;Enhanced 層級(平行 persona/評審代理、優雅退回);認知科學依據以 6 項已驗證的 2024–2026 出處重建;效度說明重新評等(pre-flight 為低、Nijstad/Nemeth 降級);新增旗標 `--personas`/`--lens`/`--enhanced`;反種子護欄 |
|