一键导入
test-governance
Defines test taxonomy, naming, and immutability policies to protect requirement and design tests and allow flexible coverage tests.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Defines test taxonomy, naming, and immutability policies to protect requirement and design tests and allow flexible coverage tests.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | Test-Governance |
| description | Defines test taxonomy, naming, and immutability policies to protect requirement and design tests and allow flexible coverage tests. |
This skill enforces strict separation of test responsibilities to prevent specification and design tests from being modified for coverage optimization. The primary goal is to protect requirement guarantees and design contracts while allowing coverage-focused tests to evolve freely.
All tests MUST be classified into one of the following categories and placed in the corresponding directory.
test/
unit/
behavior/ # Requirement / specification guarantees
design/ # Architectural and design constraints
coverage/ # Branch & exception coverage only
*.behavior.test.ts*.design.test.ts*.coverage.test.tsEvery test file MUST declare its intent in Japanese using a header comment.
/**
* @test-type behavior
* @purpose Requirement guarantee
* @policy DO NOT MODIFY
*/
/**
* @test-type coverage
* @purpose Coverage expansion
* @policy MODIFICATION ALLOWED
*/
The agent MAY:
The agent MUST NOT:
If a behavior or design test fails:
This skill is successfully applied when: