项目质量约束与验收规则
原名:constraint-driven-development
把项目质量要求写成可检查约束,记录阈值、例外与验收证据。
中文 Skills 技能说明
项目有检查却总被临时跳过时,可以先把质量底线写清楚。提供现有测试、性能、可访问性、CI 和业务要求,技能整理质量维度、可执行阈值、尚待测量项目及例外流程,交付 CONSTRAINTS.md 草稿与接入计划。需要项目自己的检查工具,默认数字只能作为讨论起点,不能冒充实际达标。不得为了通过而关闭规则、删断言或下调门槛;新增依赖和 CI 修改先确认范围,真实运行结果与规划分开记录,保留现有团队规范。
上游能力依据
上游原始适用说明:Establishes a project's quality bar as a written contract and stops agents quietly lowering it. Interviews the user on which dimensions matter, supplies sane default thresholds when they have no number in mind, records everything in CONSTRAINTS.md, and watches the diff for a weakened bar — new @ts-ignore or eslint-disable suppressions, skipped or deleted tests, assertions stripped out, unimplemented stubs, thresholds edited down. Use when no quality bar is written down, when the user says "set up constraints" or "define our standards", when the user wants dimensions they care about — accessibility, web performance, coverage — set up as enforced constraints, when an agent keeps silencing checks or skipping tests to get to green, when you need a coverage or performance threshold and don't know what number to pick, or when an agent writes more code than anyone will read.
上游 SKILL.md 主要章节(保留原文标题):
- Overview
- When to Use
- Loading Constraints
- The Process
- Step 1: Detect before you ask
- Step 2: Four questions, each with a default
- Step 3: Write CONSTRAINTS.md
- Floor (always enforced, no setup required)
- Enforced with numbers
- Measured, not yet enforced
使用边界
先复现问题并固定测试范围,再生成或执行测试。测试通过只能证明已覆盖的场景,不能代替生产环境验收。
作者、翻译与许可证
- 原作者
- Addy Osmani 与 agent-skills contributors
- 中文翻译
- CEOFans翻译
- 许可证
- MIT
- 上游来源
- https://github.com/addyosmani/agent-skills/tree/aeac41d4d005999432bb7312f7ff06383a91d59d/skills/constraint-driven-development
适用范围
平台:linux、macos、windows;标签:测试与质量、项目质量约束与验收规则、开源技能
安全提示
基础静态扫描不等于绝对安全。技能可能调用命令、浏览器、云服务或本地文件,请在最小权限环境中使用,高风险操作必须人工确认。
如发现侵权、许可证或安全问题,可在本页前台提交投诉,管理员复核后可立即下架。