universal-dev-standards 5.1.0 → 5.2.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/bundled/ai/options/push/single-owner-mode.ai.yaml +60 -0
- package/bundled/ai/options/push/team-mode.ai.yaml +64 -0
- package/bundled/ai/standards/agent-behavior-discipline.ai.yaml +142 -0
- package/bundled/ai/standards/checkin-standards.ai.yaml +18 -0
- package/bundled/ai/standards/test-governance.ai.yaml +12 -0
- package/bundled/ai/standards/testing.ai.yaml +14 -0
- package/bundled/core/agent-behavior-discipline.md +178 -0
- package/bundled/core/checkin-standards.md +21 -2
- package/bundled/core/test-governance.md +3 -0
- package/bundled/core/testing-standards.md +25 -2
- package/bundled/core/versioning.md +1 -1
- package/bundled/locales/zh-CN/CHANGELOG.md +41 -3
- package/bundled/locales/zh-CN/README.md +9 -1
- package/bundled/locales/zh-CN/SECURITY.md +8 -0
- package/bundled/locales/zh-CN/core/ai-friendly-architecture.md +8 -0
- package/bundled/locales/zh-CN/core/checkin-standards.md +22 -3
- package/bundled/locales/zh-CN/core/test-governance.md +14 -3
- package/bundled/locales/zh-CN/core/testing-standards.md +26 -3
- package/bundled/locales/zh-CN/core/workflow-enforcement.md +8 -0
- package/bundled/locales/zh-CN/docs/CHEATSHEET.md +8 -0
- package/bundled/locales/zh-CN/docs/CLI-FLOW.md +8 -0
- package/bundled/locales/zh-CN/docs/FEATURE-REFERENCE.md +8 -0
- package/bundled/locales/zh-CN/docs/STANDARDS-REFERENCE.md +8 -0
- package/bundled/locales/zh-CN/skills/commands/requirement.md +8 -0
- package/bundled/locales/zh-CN/skills/commands/reverse-bdd.md +8 -0
- package/bundled/locales/zh-CN/skills/commands/reverse-sdd.md +8 -0
- package/bundled/locales/zh-CN/skills/commands/reverse-tdd.md +8 -0
- package/bundled/locales/zh-CN/skills/commands/reverse.md +8 -0
- package/bundled/locales/zh-CN/skills/commands/review.md +8 -0
- package/bundled/locales/zh-CN/skills/commands/sdd-retro.md +8 -0
- package/bundled/locales/zh-CN/skills/commands/sdd.md +8 -0
- package/bundled/locales/zh-CN/skills/commands/tdd.md +8 -0
- package/bundled/locales/zh-CN/skills/commands/update.md +8 -0
- package/bundled/locales/zh-TW/CHANGELOG.md +41 -3
- package/bundled/locales/zh-TW/MAINTENANCE.md +17 -6
- package/bundled/locales/zh-TW/README.md +9 -1
- package/bundled/locales/zh-TW/SECURITY.md +8 -0
- package/bundled/locales/zh-TW/adoption/STATIC-DYNAMIC-GUIDE.md +1 -1
- package/bundled/locales/zh-TW/core/ai-friendly-architecture.md +8 -0
- package/bundled/locales/zh-TW/core/anti-hallucination.md +8 -0
- package/bundled/locales/zh-TW/core/checkin-standards.md +24 -3
- package/bundled/locales/zh-TW/core/git-workflow.md +8 -0
- package/bundled/locales/zh-TW/core/refactoring-standards.md +8 -0
- package/bundled/locales/zh-TW/core/spec-driven-development.md +8 -0
- package/bundled/locales/zh-TW/core/structured-task-definition.md +8 -0
- package/bundled/locales/zh-TW/core/test-driven-development.md +8 -0
- package/bundled/locales/zh-TW/core/test-governance.md +14 -3
- package/bundled/locales/zh-TW/core/testing-standards.md +31 -0
- package/bundled/locales/zh-TW/core/versioning.md +1 -1
- package/bundled/locales/zh-TW/core/workflow-enforcement.md +8 -0
- package/bundled/locales/zh-TW/core/workflow-state-protocol.md +8 -0
- package/bundled/locales/zh-TW/docs/CHEATSHEET.md +8 -0
- package/bundled/locales/zh-TW/docs/CLI-FLOW.md +8 -0
- package/bundled/locales/zh-TW/docs/FEATURE-REFERENCE.md +8 -0
- package/bundled/locales/zh-TW/docs/MIGRATION-V5.md +8 -0
- package/bundled/locales/zh-TW/docs/STANDARDS-REFERENCE.md +8 -0
- package/bundled/locales/zh-TW/integrations/claude-code/README.md +8 -0
- package/bundled/locales/zh-TW/skills/ac-coverage-assistant/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/adr-assistant/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/ai-collaboration-standards/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/ai-friendly-architecture/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/ai-instruction-standards/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/api-design-assistant/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/atdd-assistant/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/audit-assistant/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/bdd-assistant/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/brainstorm-assistant/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/changelog-guide/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/checkin-assistant/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/ci-cd-assistant/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/code-review-assistant/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/commit-standards/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/contract-test-assistant/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/database-assistant/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/dev-workflow-guide/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/docs-generator/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/documentation-guide/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/durable-execution-assistant/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/e2e-assistant/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/forward-derivation/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/incident-response-assistant/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/methodology-system/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/metrics-dashboard-assistant/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/migration-assistant/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/observability-assistant/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/pr-automation-assistant/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/process-automation/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/refactoring-assistant/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/release-standards/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/requirement-assistant/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/retrospective-assistant/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/reverse-engineer/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/runbook-assistant/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/security-assistant/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/security-scan-assistant/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/slo-assistant/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/spec-driven-dev/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/tdd-assistant/SKILL.md +1 -0
- package/bundled/locales/zh-TW/skills/test-coverage-assistant/SKILL.md +1 -0
- package/bundled/skills/ai-collaboration-standards/SKILL.md +1 -0
- package/bundled/skills/ai-friendly-architecture/SKILL.md +1 -0
- package/bundled/skills/ai-instruction-standards/SKILL.md +1 -0
- package/bundled/skills/documentation-guide/SKILL.md +1 -0
- package/bundled/skills/error-code-guide/SKILL.md +1 -0
- package/bundled/skills/git-workflow-guide/SKILL.md +1 -0
- package/bundled/skills/logging-guide/SKILL.md +1 -0
- package/bundled/skills/project-structure-guide/SKILL.md +1 -0
- package/bundled/skills/push/SKILL.md +203 -0
- package/bundled/skills/testing-guide/SKILL.md +1 -0
- package/package.json +4 -4
- package/src/config/ai-agent-paths.js +0 -1
- package/src/utils/directory-mapper.js +2 -2
- package/standards-registry.json +15 -4
- package/bundled/locales/zh-CN/docs/AI-AGENT-ROADMAP.md +0 -410
- package/bundled/locales/zh-CN/docs/OPERATION-WORKFLOW.md +0 -1074
- package/bundled/locales/zh-TW/docs/AI-AGENT-ROADMAP.md +0 -410
- package/bundled/locales/zh-TW/docs/OPERATION-WORKFLOW.md +0 -1074
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../core/testing-standards.md
|
|
3
|
+
source_version: 3.2.0
|
|
4
|
+
translation_version: 3.2.0
|
|
5
|
+
last_synced: 2026-04-20
|
|
6
|
+
status: current
|
|
7
|
+
---
|
|
8
|
+
|
|
1
9
|
# 測試標準
|
|
2
10
|
|
|
3
11
|
> **Language**: [English](../../../core/testing-standards.md) | 繁體中文
|
|
@@ -231,6 +239,29 @@
|
|
|
231
239
|
e2e/[feature]/[scenario].[ext]
|
|
232
240
|
```
|
|
233
241
|
|
|
242
|
+
#### E2E 前置條件範圍(e2e-precondition-scope)
|
|
243
|
+
|
|
244
|
+
E2E 環境前置檢查(`globalSetup`、`beforeAll`)必須驗證**所有受測頁面與端點**的健康狀態,而非僅驗證認證入口點。
|
|
245
|
+
|
|
246
|
+
**反模式** — 只驗 login:
|
|
247
|
+
```ts
|
|
248
|
+
// ❌ 即使功能頁回傳 500 也會通過
|
|
249
|
+
await page.goto('/login');
|
|
250
|
+
expect(response.status()).toBe(200);
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
**正確模式** — 明確的覆蓋清單:
|
|
254
|
+
```ts
|
|
255
|
+
// ✅ 驗證套件涵蓋的所有頁面
|
|
256
|
+
const PAGES_UNDER_TEST = ['/login', '/dashboard', '/feature-x'];
|
|
257
|
+
for (const path of PAGES_UNDER_TEST) {
|
|
258
|
+
const res = await fetch(`${BASE_URL}${path}`);
|
|
259
|
+
expect(res.status).toBeLessThan(500); // 遇到 5xx 立即失敗
|
|
260
|
+
}
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
> **證據**:真實事故 — E2E `globalSetup` 只驗了 `Login.aspx`;功能頁靜默回傳 HTTP 500。整個 E2E 套件通過,提供假信心,直到正式環境崩潰才被發現。
|
|
264
|
+
|
|
234
265
|
---
|
|
235
266
|
|
|
236
267
|
## 測試替身
|
|
@@ -242,7 +242,7 @@ CHANGELOG **不應**記錄以下類型的變更:
|
|
|
242
242
|
| 類別 | 常見目錄/檔案 | 原因 |
|
|
243
243
|
|------|--------------|------|
|
|
244
244
|
| AI 協作輔助 | `.claude/`, `.cursor/`, `.ai/` | 本地開發輔助,不納入版控 |
|
|
245
|
-
| 開發規範 | `.standards
|
|
245
|
+
| 開發規範 | `.standards/` | 本地規範文件,不納入版控 |
|
|
246
246
|
| 建置輸出 | `dist/`, `build/`, `out/` | 建置產物,不納入版控 |
|
|
247
247
|
| 大型資料 | `data/`, `datasets/` | 資料檔案,不納入版控 |
|
|
248
248
|
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../docs/CLI-FLOW.md
|
|
3
|
+
source_version: 1.0.0
|
|
4
|
+
translation_version: 1.0.0
|
|
5
|
+
last_synced: 2026-04-22
|
|
6
|
+
status: current
|
|
7
|
+
---
|
|
8
|
+
|
|
1
9
|
# CLI 指令流程
|
|
2
10
|
|
|
3
11
|
> **Language**: [English](../../../docs/CLI-FLOW.md) | 繁體中文 | [简体中文](../../zh-CN/docs/CLI-FLOW.md)
|