/constraint-driven-development
把專案的品質標準寫成一份書面約定,避免 agent 悄悄把標準降低。會先訪問你在意哪些面向,你沒有具體數字時提供合理的預設門檻,並把一切記在 CONSTRAINTS.md⋯⋯
- 安裝次數
- 3.8 萬
- 專案星數
- 11.3 萬 ★
- 授權
- MIT
- 專案更新
- 2026-11-01
怎麼裝
npx skills add https://github.com/addyosmani/agent-skills --skill constraint-driven-development安裝前請先看過原文內容。中文說明是 AI 翻譯,不保證安全。
原文
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.