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
|
@@ -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-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) (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
|
|
|
@@ -77,5 +77,7 @@ So that [benefit].
|
|
|
77
77
|
|
|
78
78
|
## 参考
|
|
79
79
|
|
|
80
|
+
- [验收标准撰写指南](./acceptance-criteria-guide.md) — 要撰写或审查验收标准时读它。
|
|
81
|
+
- [ATDD 工作流程指南](./atdd-workflow.md) — 要完整跑一轮 ATDD 循环时读它。
|
|
80
82
|
- 详细指南:[guide.md](./guide.md)
|
|
81
83
|
- 核心规范:[acceptance-test-driven-development.md](../../../../core/acceptance-test-driven-development.md)
|
|
@@ -74,5 +74,7 @@ Feature: User Login
|
|
|
74
74
|
|
|
75
75
|
## 参考
|
|
76
76
|
|
|
77
|
+
- [BDD 工作流程指南](./bdd-workflow.md) — 要把探索、制定、自动化当一个循环跑时读它。
|
|
78
|
+
- [Gherkin 快速参考指南](./gherkin-guide.md) — 要写 Given/When/Then 而需要确切语法时读它。
|
|
77
79
|
- 详细指南:[guide.md](./guide.md)
|
|
78
80
|
- 核心规范:[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
|
#### 步骤 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
|
#### 步骤 3a:多评审面板
|
|
199
207
|
|
|
200
|
-
运行**三个独立评审**,各自以自己的透镜对每个想法打 1–5
|
|
208
|
+
运行**三个独立评审**,各自以自己的透镜对每个想法打 1–5 分。取平均聚合以降低单评审偏误。下方加权准则定义默认透镜——是参考格式,不是评审必须逐步照走的脚本。
|
|
201
209
|
|
|
202
210
|
| 评审透镜 | 它负责的加权标准 |
|
|
203
211
|
|----------|------------------|
|
|
@@ -205,7 +213,7 @@ BQS 是**四层 × 时间轴**契约。它是 v3 的**叠加**——所有 v3
|
|
|
205
213
|
| **用户影响** | 影响 70% · 一致性 30% |
|
|
206
214
|
| **战略一致性** | 一致性 60% · 影响 40% |
|
|
207
215
|
|
|
208
|
-
各标准指引(1–5
|
|
216
|
+
各标准指引(1–5,参考格式):可行性(5=轻而易举 … 1=几乎不可能);影响(5=变革性 … 1=可忽略);工作量(5=数小时 … 1=数个季度,反向计分,工作量越低分数越高);一致性(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
|
#### 步骤 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
|
|
|
@@ -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.2.0
|
|
5
|
+
source_hash: f789b3bbc31a
|
|
6
|
+
translation_version: 4.2.0
|
|
7
|
+
last_synced: 2026-08-21
|
|
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.2.0
|
|
20
|
+
**最后更新**: 2026-08-21
|
|
21
21
|
**适用范围**: 所有软件项目
|
|
22
22
|
**Scope**: universal
|
|
23
23
|
**类型**: 工具型 Skill(无对应核心标准)
|
|
@@ -292,7 +292,7 @@ HMW(默认起点)、SCAMPER(改善既有功能:Substitute、Combine、Ad
|
|
|
292
292
|
| **用户影响** | 影响 70% · 对齐 30% |
|
|
293
293
|
| **战略对齐** | 对齐 60% · 影响 40% |
|
|
294
294
|
|
|
295
|
-
**逐准则指引(1–5
|
|
295
|
+
**逐准则指引(1–5,参考格式——不是评审必须逐步照走的脚本):**
|
|
296
296
|
|
|
297
297
|
| 准则 | 5 | 3 | 1 |
|
|
298
298
|
|------|---|---|---|
|
|
@@ -318,7 +318,7 @@ HMW(默认起点)、SCAMPER(改善既有功能:Substitute、Combine、Ad
|
|
|
318
318
|
- **Devil's Advocate**:「你的任务是论证这个想法*会*失败。给出 2 个具体的失败条件。」
|
|
319
319
|
- **Steelman**:「陈述反方论点最强、最善意的版本——一个有思想的对手实际会提出的那种。」
|
|
320
320
|
|
|
321
|
-
|
|
321
|
+
约束:每个反方论点必须指出**特定上下文**与**特定理由**。句型**「这个想法会在 [特定上下文] 失败,因为 [特定理由]」**是参考格式,不是必用句式(v4.2——评审提示为目标+约束,见 SKILL.md「评审提示形状」)。
|
|
322
322
|
|
|
323
323
|
**不可接受**(太空泛):「这可能很难。」/「可能会有 edge case。」
|
|
324
324
|
|
|
@@ -354,6 +354,7 @@ HMW(默认起点)、SCAMPER(改善既有功能:Substitute、Combine、Ad
|
|
|
354
354
|
**Personas Used**: [domain expert, skeptic, analogist, ...]
|
|
355
355
|
**Lenses Used**: [analogical, reversal, ...]
|
|
356
356
|
**Pre-flight**: [Completed / Skipped] **Rebuttal**: [Completed / Skipped] **Tier**: [Baseline / Enhanced]
|
|
357
|
+
**评审模型层级(D4 心智轴)**: [core/model-selection.md 的厂商中立层级标签——指名厂商模型即违规;未宣告 → D4 [degraded]]
|
|
357
358
|
|
|
358
359
|
## Problem Statement
|
|
359
360
|
[Refined problem + root cause from 5 Whys]
|
|
@@ -566,7 +567,7 @@ BQS v1 是**叠加的质量契约**,不是推倒重来。v3 的一切都保留
|
|
|
566
567
|
|
|
567
568
|
- **所有旗标**:`--personas`、`--lens`、`--enhanced`、`--skip-preflight`、`--no-rebuttal`、`--quick`、`--technique` 行为与 v3 完全相同。v4 仅新增一个可选旗标 `--intent`,供第 0 层宣告。
|
|
568
569
|
- **所有机制**:PRE-FLIGHT 防锚定、FRAME 5-Whys/HMW、persona 集成、多样性透镜、多评审面板、硬角色反驳(Devil's Advocate + Steelman)、多样性坍缩护栏、Enhanced 层,皆不变。
|
|
569
|
-
- **`--enhanced` 隔离 agent
|
|
570
|
+
- **`--enhanced` 隔离 agent 宿主**满足的是 BQS **D4 的座位轴**(判官≠产生者);自 v4.2(XSPEC-388)起,D4 pass 另需评审宣告**模型层级**(心智轴——依 core/model-selection.md 的厂商中立标签)。baseline 单 context 标 `[degraded]`、不静默通过。
|
|
570
571
|
|
|
571
572
|
---
|
|
572
573
|
|
|
@@ -601,6 +602,7 @@ BQS v1 是**叠加的质量契约**,不是推倒重来。v3 的一切都保留
|
|
|
601
602
|
| [Requirement Engineering](../../core/requirement-engineering.md) | 头脑风暴输出馈入需求编写 |
|
|
602
603
|
| [Spec-Driven Development](../../core/spec-driven-development.md) | 头脑风暴输出馈入 SDD 提案 |
|
|
603
604
|
| [Anti-Hallucination](../../core/anti-hallucination.md) | 评审的可行性主张必须基于证据,而非断言 |
|
|
605
|
+
| [Model Selection](../../core/model-selection.md) | D4 心智轴(宣告模型层级)与发散侧层级(Standard 或更高)皆以此标准的判准为准——引用、绝不复述 |
|
|
604
606
|
|
|
605
607
|
---
|
|
606
608
|
|
|
@@ -608,6 +610,7 @@ BQS v1 是**叠加的质量契约**,不是推倒重来。v3 的一切都保留
|
|
|
608
610
|
|
|
609
611
|
| 版本 | 日期 | 变更 |
|
|
610
612
|
|------|------|------|
|
|
613
|
+
| 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 旗标与机制保留。 |
|
|
611
614
|
| 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 个并标示「未达门槛,仅供参考」,避免报告空白。 |
|
|
612
615
|
| 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 旗标/机制保留。 |
|
|
613
616
|
| 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`;反种子护栏 |
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
source: ../../../../skills/commands/brainstorm.md
|
|
3
|
-
source_version: 4.
|
|
4
|
-
source_hash:
|
|
5
|
-
translation_version: 4.
|
|
6
|
-
last_synced: 2026-
|
|
3
|
+
source_version: 4.2.0
|
|
4
|
+
source_hash: 319f8ad4f02f
|
|
5
|
+
translation_version: 4.2.0
|
|
6
|
+
last_synced: 2026-08-21
|
|
7
|
+
status: current
|
|
7
8
|
---
|
|
8
9
|
|
|
9
10
|
---
|
|
@@ -34,7 +35,7 @@ PRE-FLIGHT ──► FRAME ──► DIVERGE ──────────► C
|
|
|
34
35
|
| **PRE-FLIGHT** | 防止 AI 锚定 | 用户先写 3 个想法;不用类比种子;**BQS 第 0 层意图(explore/exploit)** |
|
|
35
36
|
| **FRAME** | 清楚定义问题 | 5 Whys, HMW, Stakeholder Map;**D1 框架纯度** |
|
|
36
37
|
| **DIVERGE** | 逼出视角多样性 | persona 集成 + 多样性透镜;**BQS 第 1 层 D1–D4,硬闸隐藏 D5–D8** |
|
|
37
|
-
| **CONVERGE** | 经偏误检查的选择 | 多评审面板 + Devil's Advocate/Steelman;**BQS 第 2 层 D5–D8
|
|
38
|
+
| **CONVERGE** | 经偏误检查的选择 | 多评审面板 + Devil's Advocate/Steelman;**BQS 第 2 层 D5–D8 施于推荐集(Agg. ≥ 3.5),D4 判官≠产生者(两轴:独立 context+宣告模型层级)** |
|
|
38
39
|
| **OUTPUT** | 可执行的报告 | Brainstorm Report + Seeds + 争议区 + **第 3 层 Judgment Override** |
|
|
39
40
|
|
|
40
41
|
> **BQS v1(XSPEC-296):** v4 在 v3 上叠加四层 × 时间轴质量契约。完整 oracle 与结构规则见 skill:[Brainstorm Assistant Skill](../brainstorm-assistant/SKILL.md#bqs-v1--质量契约)。
|
|
@@ -68,7 +69,7 @@ PRE-FLIGHT ──► FRAME ──► DIVERGE ──────────► C
|
|
|
68
69
|
## Problem Statement
|
|
69
70
|
[Refined problem from FRAME phase]
|
|
70
71
|
|
|
71
|
-
##
|
|
72
|
+
## Recommendations (Agg. Score ≥ 3.5 — uncapped)
|
|
72
73
|
1. **[Idea]** — Agg. X.X ✓ Passed rebuttal — Persona: [..] — [Why recommended]
|
|
73
74
|
|
|
74
75
|
## Diversity Note
|
|
@@ -100,7 +101,7 @@ PRE-FLIGHT ──► FRAME ──► DIVERGE ──────────► C
|
|
|
100
101
|
| `/brainstorm "topic"` | 以指定主题启动 PRE-FLIGHT,再进入 FRAME |
|
|
101
102
|
| `/brainstorm --personas "a,b,c"` | 以自定义 persona 组进入 DIVERGE |
|
|
102
103
|
| `/brainstorm --lens <name>` | 以指定多样性透镜为主进入 DIVERGE |
|
|
103
|
-
| `/brainstorm --enhanced` | 若宿主支持子代理则并行跑 persona/评审,否则静默退回 baseline
|
|
104
|
+
| `/brainstorm --enhanced` | 若宿主支持子代理则并行跑 persona/评审,否则静默退回 baseline;此模式满足 BQS D4 的座位轴(独立 context),pass 另需宣告模型层级(心智轴,见 skill D4) |
|
|
104
105
|
| `/brainstorm --intent exploit` | 以 exploit 意图启动(BQS 第 0 层),D2 低覆盖不扣分 |
|
|
105
106
|
|
|
106
107
|
### 交互脚本
|
|
@@ -125,12 +126,13 @@ PRE-FLIGHT ──► FRAME ──► DIVERGE ──────────► C
|
|
|
125
126
|
3. 至少套用一个多样性透镜(类比/假设反转/形态矩阵)
|
|
126
127
|
4. 以多样性(覆盖的 persona/透镜数,D2/D3)而非数量为继续门槛
|
|
127
128
|
5. **硬序列闸**:D5–D8 在最后一个 persona 产完前**不得揭示或评分**;CONVERGE critic 不得提前调用
|
|
129
|
+
6. **模型层级(发散侧)**:以 **Standard 或更高**层级执行——依 core/model-selection.md 的 MS-004/Criterion 2(引用,不复述;不是「最高层级」)
|
|
128
130
|
|
|
129
|
-
#### CONVERGE 阶段(BQS 第 2 层 — D5–D8
|
|
130
|
-
1. 以 3
|
|
131
|
-
2.
|
|
132
|
-
3.
|
|
133
|
-
4. **Meta
|
|
131
|
+
#### CONVERGE 阶段(BQS 第 2 层 — D5–D8 仅施于推荐集)
|
|
132
|
+
1. 以 3 个独立评审(工程可行性/用户影响/战略一致)各自评分后聚合;**评审提示以「目标+约束」表达**(判准,不是步骤清单——理由见 skill 引用的 core/model-selection.md MS-009),加权公式与逐准则指引为参考格式
|
|
133
|
+
2. 对**推荐集**(Agg. Score ≥ 3.5,不限笔数)跑硬角色 Devil's Advocate(论证会失败)+ Steelman;用户以 (a)修改/(b)反驳/(c)移除 回应。**D4 判官≠产生者,两轴**:(1) 评审在独立 context(`--enhanced`)执行,且 (2) 宣告模型层级(core/model-selection.md 的厂商中立标签;指名具体厂商模型即违规)——缺任一轴标 `[degraded]` 不得 pass
|
|
134
|
+
3. **仅对推荐集**套用 D5 接地(外部事实需 file:line/来源、跨级地板;假说免接地)、D6 净值(解谁问题/真有吗/不做代价+挂 lagging 栏)、D7 二态证伪(「需先做 X」转 next-step、不算 fail)、D8 next-step 裁决——四者为判准、不限顺序
|
|
135
|
+
4. **Meta 停止规则**:维度全绿且再跑一轮推荐集集合成员不变→停;硬上限 2 轮
|
|
134
136
|
|
|
135
137
|
🛑 **STOP**: 展示 Brainstorm Report(含 Seeds/争议区/Judgment Override)后等待用户决定下一步
|
|
136
138
|
|
|
@@ -151,13 +153,15 @@ PRE-FLIGHT ──► FRAME ──► DIVERGE ──────────► C
|
|
|
151
153
|
| 使用「像 X 但给 Y」种子 | 改写为底层问题再继续(反种子 guardrail) |
|
|
152
154
|
| 指定的 persona/透镜不存在 | 列出可用选项供选择 |
|
|
153
155
|
| `--enhanced` 但宿主不支持子代理 | 静默退回 baseline,照常进行 |
|
|
154
|
-
|
|
|
156
|
+
| 推荐集全来自同一 persona/透镜 | 标示并在输出前再跑一个透镜 |
|
|
155
157
|
| baseline 单 context 跑评审(无独立 context) | BQS D4 标 `[degraded]`,不得标 pass |
|
|
158
|
+
| 评审未宣告模型层级(或以具体厂商模型名宣告) | BQS D4 标 `[degraded]` 不得 pass;模型名改为 core/model-selection.md 的层级标签 |
|
|
156
159
|
| 外部事实宣称无 file:line/来源 | D5 接地 fail,要求补来源或改标 `[假说]` |
|
|
157
160
|
|
|
158
161
|
## 参考
|
|
159
162
|
|
|
160
163
|
* [Brainstorm Assistant Skill](../brainstorm-assistant/SKILL.md)
|
|
161
164
|
* [Brainstorm Assistant Guide](../brainstorm-assistant/guide.md)
|
|
165
|
+
* [Model Selection](../../core/model-selection.md) — BQS D4 与发散侧的模型层级标签(引用,不复述)
|
|
162
166
|
* [Requirement Assistant](../requirement-assistant/SKILL.md)
|
|
163
167
|
* [Spec-Driven Development](../spec-driven-dev/SKILL.md)
|
|
@@ -41,7 +41,7 @@ argument-hint: "[--level N | --yes]"
|
|
|
41
41
|
| **OpenCode** | `AGENTS.md` | ✅ | ✅ |
|
|
42
42
|
| **Gemini CLI** | `GEMINI.md` | ✅ | ✅ |
|
|
43
43
|
| **Codex** | `AGENTS.md` | ✅ | ❌ |
|
|
44
|
-
| **Antigravity** |
|
|
44
|
+
| **Antigravity** | `.agents/AGENTS.md` | ✅ | ❌ |
|
|
45
45
|
|
|
46
46
|
预选环境中检测到的工具。注意:Codex 和 OpenCode 共用 `AGENTS.md`。
|
|
47
47
|
|
|
@@ -210,7 +210,6 @@ Options:
|
|
|
210
210
|
| 选项 | 说明 |
|
|
211
211
|
|------|------|
|
|
212
212
|
| **标准(建议)** | 摘要 + 任务映射,AI 知道何时读取哪个标准 |
|
|
213
|
-
| **完整嵌入** | 嵌入所有规则,AI 可立即使用但文件较大 |
|
|
214
213
|
| **最简** | 仅文件引用,搭配 Skills 使用最佳 |
|
|
215
214
|
|
|
216
215
|
### 步骤 13:确认并执行
|
|
@@ -125,6 +125,8 @@ Closes #123
|
|
|
125
125
|
|
|
126
126
|
## 参考
|
|
127
127
|
|
|
128
|
+
- [Conventional Commits 指南](./conventional-commits.md) — 需要确切的 type、scope 与格式规则时读它。
|
|
129
|
+
- [Commit Message 语言选项](./language-options.md) — 要决定 commit message 用哪一种语言时读它。
|
|
128
130
|
- 详细指南:[guide.md](./guide.md)
|
|
129
131
|
- 核心规范:[commit-message-guide.md](../../../../core/commit-message-guide.md)
|
|
130
132
|
|
|
@@ -102,6 +102,7 @@ ASSESS ──► CHOOSE ──► DEFINE ──► IMPLEMENT ──► VERIFY
|
|
|
102
102
|
|
|
103
103
|
## 参考
|
|
104
104
|
|
|
105
|
+
- 详细指南:[guide.md](./guide.md) — 契约测试的策略与实现。要配置 Pact/OpenAPI,或把契约测试接入 CI 时读它。
|
|
105
106
|
- 详细指南:[contract-testing.md](../../options/testing/contract-testing.md)
|
|
106
107
|
- 相关:[api-design-assistant](../api-design-assistant/SKILL.md)
|
|
107
108
|
|
|
@@ -46,6 +46,7 @@ description: |
|
|
|
46
46
|
|
|
47
47
|
## 参考
|
|
48
48
|
|
|
49
|
+
- 详细指南:[guide.md](./guide.md) — 日志、指标、追踪三大支柱的完整说明。要搭建监控、选择指标类型、引入追踪或评估成熟度时读它。
|
|
49
50
|
- 核心规范:[observability-standards.md](../../../../core/observability-standards.md)
|
|
50
51
|
- 核心规范:[alerting-standards.md](../../../../core/alerting-standards.md)
|
|
51
52
|
- 核心规范:[slo-standards.md](../../../../core/slo-standards.md)
|
|
@@ -150,6 +150,7 @@ project/
|
|
|
150
150
|
|
|
151
151
|
## 相关标准
|
|
152
152
|
|
|
153
|
+
- [各语言的项目结构](./language-patterns.md) — 按语言列出的实际目录布局(Node.js/TypeScript、Python、Go 等)。要为某个特定语言安排项目结构时读它。
|
|
153
154
|
- [核心:项目结构](../../core/project-structure.md)
|
|
154
155
|
- [核心:文档结构](../../core/documentation-structure.md)
|
|
155
156
|
- [指南:文件归档决策指南](../../core/guides/file-placement-guide.md)
|
|
@@ -70,5 +70,8 @@ description: |
|
|
|
70
70
|
|
|
71
71
|
## 参考
|
|
72
72
|
|
|
73
|
+
- [变更日誌格式指南](./changelog-format.md) — 要撰写或审查变更日志时读它。
|
|
74
|
+
- [發布流程指南](./release-workflow.md) — 真的要发一版、需要逐步流程时读它。
|
|
75
|
+
- [語意化版本指南](./semantic-versioning.md) — 要判断一个变更算 major、minor 还是 patch 时读它。
|
|
73
76
|
- 详细指南:[guide.md](./guide.md)
|
|
74
77
|
- 核心规范:[versioning.md](../../../../core/versioning.md)
|
|
@@ -73,5 +73,7 @@ So that [benefit].
|
|
|
73
73
|
|
|
74
74
|
## 参考
|
|
75
75
|
|
|
76
|
+
- [需求完整性检查清单](./requirement-checklist.md) — 要在需求被接受之前检查它完不完整时读它。
|
|
77
|
+
- [需求撰写指南](./requirement-writing.md) — 要从零开始写一份需求时读它。
|
|
76
78
|
- 详细指南:[guide.md](./guide.md)
|
|
77
79
|
- 核心规范:[requirement-engineering.md](../../../../core/requirement-engineering.md)
|