constraint-driven-development
Skill101k starsChanged 58 days agoMITView on GitHub
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.
- Installs packages
3 other projects use a version of this, 3 of them edited; 1 of 2 edited versions we compared changed its rules.
How people change it
1 of 2 edited versions changed its rules.
Of the 2 edited versions we compared: 1 keep every rule, 1 made changes of their own.
Rules people drop
- Stop at four. A twelve-question intake produces a config nobody understands and a user who regrets starting.dropped by 1 of 1
- Coverage needs no second test run. Read the lcov your suite already writes and intersect it with
git diff. Running the suite twice to get a number is the fastest way to make people hate this.dropped by 1 of 1 - Add each one to the project's own script so it's reproducible without an agent:dropped by 1 of 1
- Scope to the diff. Check the lines this change touched, not the whole repo. Coverage of changed lines is a number the agent can move; project coverage is one it inherited.dropped by 1 of 1
- When the user has no opinion, use these. They're chosen to be met by most codebases on day one.dropped by 1 of 1
- Stop and reconsider if you notice:dropped by 1 of 1
- Every constraint is checked by the project's own test suite, with no external opiniondropped by 1 of 1
We split this file and each edited version into the rules they give an agent and match them by wording. A version that adds no rule of its own and has not changed since this file last did reads as an older text, so what it lacks is not counted as dropped. We keep no past texts of a file, so that is inferred, and an edited version that started from an older text still counts its gaps as drops.
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Most recently taken up by
- GuillemRoca/agent-skills-androidedited, first seen Oct 3, 2026
- weisser-dev/agentic-skillsedited, first seen Oct 3, 2026
- vinvcn/addyosmani-agent-skills-zhedited, first seen Sep 15, 2026
Who's talking about addyosmani/agent-skills
- @sylonzero.bsky.social“Well-written and immediately effective - and he's got guides to put it into Cursor, Claude Code etc. …”Bluesky · Apr 18, 2026 · 39 likes
- @midu.dev“¡Esta colección de skills tiene más de 100 mil estrellas! Son 25 skills de Ingeniería de Addy Osmani. ✓ …”Bluesky · Oct 6, 2026 · 7 likes
- @trek.bsky.social“Well, I *was* getting some good output from Claude + github.com/addyosmani/a.... The very locked down, …”Bluesky · Aug 5, 2026 · 4 likes
- @github-trending.bsky.social“💎 Hidden Gem! 💎 (1000+ new stars) 📦 addyosmani / agent-skills ⭐ 70,282 (+1,114) 🗒 Shell …”Bluesky · Jul 6, 2026 · 4 likes
- @github-trending-js.bsky.social“🚀 Skyrocketing! 🚀 (200+ new stars) 📦 addyosmani / agent-skills ⭐ 81,766 (+203) 🗒 JavaScript …”Bluesky · Aug 6, 2026 · 3 likes
The biggest 5 of 101 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 101
Talked about on GitHub, Bluesky and Hacker News (101 times).
On GitHub · 50
- Nov 24, 2026IPI-1502 · OPENBOT-SKILLS-005 — Developers Can Audit Accessibility and Enforce Quality Gates — amoai-tech/ipix-open2 reactions · 12 comments
- Nov 24, 2026IPI-1501 · OPENBOT-SKILLS-004 — Developers Can Trace Failures and Prove Changes Are Safe — amoai-tech/ipix-open2 reactions · 11 comments
- Nov 24, 2026IPI-1500 · OPENBOT-SKILLS-003 — Developers Can Catch Cross-Brand Bugs with Failing Tests — amoai-tech/ipix-open2 reactions · 11 comments
- Nov 24, 2026IPI-1499 · OPENBOT-SKILLS-002 — Developers Can Reproduce Browser Failures and Prove Fixes — amoai-tech/ipix-open2 reactions · 10 comments
- Oct 30, 2026feat(skills): add decision-records skill — yokesh-ks/ingenious-forge2 reactions · 1 comment
45 more on GitHub
- Jul 20, 2026Curation improvements 2026-07-20 — RyanAlberts/best-of-Agent-Harnesses1 reaction
- Jun 5, 2026docs(repo): introduce accessibility skill — alma-oss/spirit-design-system1 reaction · 6 comments
- Apr 10, 2026feat: audit addyosmani/agent-skills and identify improvements for our agent skill files — oviney/blog1 reaction · 2 comments
- Nov 26, 2026fix(controller): stop caching unrelated cluster resources — Kuadrant/mcp-gateway0 reactions · 1 comment
- Nov 26, 2026fix(build): always use pinned lint tools and reinstall them on bumps — Kuadrant/mcp-gateway0 reactions · 5 comments
- Nov 25, 2026fix(router): keep SSE framing on 2026 guardrails replacements — Kuadrant/mcp-gateway0 reactions · 2 comments
- Nov 24, 2026fix(router): reject JSON-RPC bodies with case-variant duplicate members — Kuadrant/mcp-gateway0 reactions · 1 comment
- Nov 24, 2026Add agent-skills (addyosmani): 26 skills, 10 commands, 5 agents — salaaless-max/Mano0 reactions
- Nov 24, 2026claude-code-marketplaces.github.addyosmani.agent-skills: 0.6.17 → 0.6.18 — sudosubin/agents.nix0 reactions
- Nov 24, 2026codex-marketplaces.github.addyosmani.agent-skills: 0.6.17 → 0.6.18 — sudosubin/agents.nix0 reactions
- Nov 24, 2026codex-plugins.github.addyosmani.agent-skills: 0.6.17 → 0.6.18 — sudosubin/agents.nix0 reactions
- Nov 24, 2026agent-plugins.github.addyosmani.agent-skills: 0.6.17 → 0.6.18 — sudosubin/agents.nix0 reactions
- Nov 24, 2026fix(broker): serve 2025 clients the outputSchema the upstream advertises on 2025 — Kuadrant/mcp-gateway0 reactions · 1 comment
- Nov 24, 2026agent-skills.github.addyosmani.agent-skills: 0.6.17 → 0.6.18 — sudosubin/agents.nix0 reactions
- Nov 23, 2026agent-skills: 301b02b12bff98e4688e6984af6556802322bbde → main — coco-research/coco0 reactions
- Nov 23, 2026build(deps): bump upstream/addyosmani-agent-skills from `aeac41d` to `8c99fa3` — oydodo/skills0 reactions
- Nov 22, 2026docs(upstream): re-audit addyosmani agent-skills at 8c99fa3 — melodic-software/claude-code-plugins0 reactions · 7 comments
- Nov 21, 2026have the software factory flow follow https://github.com/addyosmani/agent-skills DEFINE PLAN BUILD — rosstheboss94/armoury0 reactions
- Nov 20, 2026fix(broker): normalize legacy JSON Schema dialects — Kuadrant/mcp-gateway0 reactions · 3 comments
- Nov 18, 2026agent-skills.github.addyosmani.agent-skills: 0.6.16 → 0.6.17 — sudosubin/agents.nix0 reactions
- Nov 17, 2026Second opinion before irreversible choices; trim skill descriptions — neilellis/ndev0 reactions
- Nov 17, 2026Interview against hollow agreement; Ask first boundaries in the spec — neilellis/ndev0 reactions
- Nov 17, 2026Review: simplicity question; no refactors in feature commits — neilellis/ndev0 reactions
- Nov 17, 2026Database skill: migration safety — neilellis/ndev0 reactions
- Nov 17, 2026Rules: confusion, pushback, and outside text as data — neilellis/ndev0 reactions
- Nov 17, 2026Review: check the diff for a lowered bar — neilellis/ndev0 reactions
- Nov 16, 2026Add addyosmani/agent-skills engineering skills — Al3xRodr77/Alexandre-0 reactions
- Nov 12, 2026Integrate Codex Security into the development workflow — nfloser/urbanium0 reactions
- Nov 12, 2026investigation: evaluate addyosmani/agent-skills — gordonpn/dotfiles0 reactions
- Nov 12, 2026Thin reviewer personas that preload one shared review skill — Joaovsales/jplugin-agentic-development0 reactions
- Nov 12, 2026Github trending [addyosmani/agent-skills] 11.59万⭐ Addy Osmani 的工程技能库:9 条斜杠命令串起 spec→plan→build→test→review→ship — web1992/github-trending0 reactions
- Nov 10, 2026Skill methodology: adopt distilled agent-skill practices — dcolley/tourbillon0 reactions · 1 comment
- Nov 9, 2026Evaluate external agent-skill packs for ADE fit (Pocock, Osmani, Cloudflare audit, Obsidian, Elephant/Goldfish) — djbclark/djbclark-ade0 reactions · 1 comment
- Nov 9, 2026build(deps): bump upstream/addyosmani-agent-skills from `aeac41d` to `8bfcc1f` — oydodo/skills0 reactions · 1 comment
- Nov 7, 2026Ajouter deux Skills Codex : tests navigateur et optimisation des performances — Nac333/Projet-Logiciel-Estimation0 reactions
- Nov 6, 2026fix(controller): keep HTTPRoute status.parents under the Gateway API limit — Kuadrant/mcp-gateway0 reactions · 2 comments
- Nov 3, 2026refactor: replace MCPRequest.Params map[string]any with typed struct — Kuadrant/mcp-gateway0 reactions · 3 comments
- Nov 3, 2026docs(design): MCP Gateway on Praxis — Kuadrant/mcp-gateway0 reactions · 1 comment
- Nov 3, 2026feat(list): add Quinnod345/ponder — vincentkoc/awesome-openclaw0 reactions
- Nov 2, 2026build(deps): bump upstream/addyosmani-agent-skills from `aeac41d` to `eb07f19` — oydodo/skills0 reactions · 1 comment
- Nov 1, 2026chore(claude): bump vendor/agent-skills from `1401c8b` to `eb07f19` — clarriu97/dotfiles0 reactions · 1 comment
- Oct 31, 2026add agent skills — didtheyghostme/jobdatelens0 reactions
- Oct 31, 2026Aggiungi le agent skills di addyosmani come skill e comandi di progetto — Grafica1939/Prova0 reactions
- Oct 26, 2026docs: assess aggregated config Secret size — Kuadrant/mcp-gateway0 reactions · 1 comment
- Oct 26, 2026[Epic] External skill providers and capability recommendations — coferlandia/coferlandia-skills0 reactions · 2 comments
On Bluesky · 49
- Apr 18, 2026Well-written and immediately effective - and he's got guides to put it into Cursor, Claude Code etc. github.com/addyosmani/a... #ai #agents… — @sylonzero.bsky.social39 likes and reposts · 1 reply
- Oct 6, 2026¡Esta colección de skills tiene más de 100 mil estrellas! Son 25 skills de Ingeniería de Addy Osmani. ✓ TDD, seguridad, review y Web… — @midu.dev7 likes and reposts
- Aug 5, 2026Well, I *was* getting some good output from Claude + github.com/addyosmani/a.... The very locked down, human-in-the-loop workflow was… — @trek.bsky.social4 likes and reposts · 3 replies
- Jul 6, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 addyosmani / agent-skills ⭐ 70,282 (+1,114) 🗒 Shell Production-grade engineering skills for AI… — @github-trending.bsky.social4 likes and reposts · 2 replies
- Aug 6, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 addyosmani / agent-skills ⭐ 81,766 (+203) 🗒 JavaScript Production-grade engineering skills for AI… — @github-trending-js.bsky.social3 likes and reposts · 2 replies
44 more on Bluesky
- Jun 10, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 addyosmani / agent-skills ⭐ 49,501 (+348) 🗒 Shell Production-grade engineering skills for AI… — @github-trending.bsky.social3 likes and reposts · 3 replies
- Apr 10, 2026github.com/addyosmani/agen... GitHub - addyosmani/agent-skills: Production-grade engineering skills for AI coding agents. — @technews4869.bsky.social3 likes and reposts · 1 reply
- Oct 7, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 addyosmani / agent-skills ⭐ 102,360 (+453) 🗒 JavaScript Production-grade engineering skills for AI… — @github-trending.bsky.social2 likes and reposts
- Oct 5, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 addyosmani / agent-skills ⭐ 101,376 (+422) 🗒 JavaScript Production-grade engineering skills for AI… — @github-trending-js.bsky.social2 likes and reposts
- Oct 1, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 addyosmani / agent-skills ⭐ 100,246 (+229) 🗒 JavaScript Production-grade engineering skills for AI… — @github-trending-js.bsky.social2 likes and reposts
- Sep 14, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 addyosmani / agent-skills ⭐ 94,211 (+394) 🗒 JavaScript Production-grade engineering skills for AI… — @github-trending-js.bsky.social2 likes and reposts · 1 reply
- Aug 29, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 addyosmani / agent-skills ⭐ 90,620 (+239) 🗒 JavaScript Production-grade engineering skills for AI… — @github-trending-js.bsky.social2 likes and reposts · 1 reply
- Aug 10, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 addyosmani / agent-skills ⭐ 84,860 (+779) 🗒 JavaScript Production-grade engineering skills for AI… — @github-trending-js.bsky.social2 likes and reposts · 1 reply
- Aug 6, 2026Es de código abierto: github.com/addyosmani/a... Addy es un crack, ex-ingeniero en Google y con años de experiencia en el mundo del… — @midu.dev2 likes and reposts
- Aug 1, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 addyosmani / agent-skills ⭐ 81,206 (+119) 🗒 JavaScript Production-grade engineering skills for AI… — @github-trending-js.bsky.social2 likes and reposts
- Jul 11, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 addyosmani / agent-skills ⭐ 76,525 (+1,114) 🗒 JavaScript Production-grade engineering skills for AI… — @github-trending.bsky.social2 likes and reposts · 1 reply
- Jul 8, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 addyosmani / agent-skills ⭐ 72,846 (+1,317) 🗒 JavaScript Production-grade engineering skills for AI… — @github-trending-js.bsky.social2 likes and reposts · 1 reply
- May 6, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 addyosmani / agent-skills ⭐ 29,167 (+629) 🗒 Shell Production-grade engineering skills for AI coding… — @github-trending.bsky.social2 likes and reposts · 1 reply
- Apr 6, 2026google engineer open sourced 19 production-grade skills for AI coding agents spec-driven development, test-driven development, code… — @sabrinaramonov.bsky.social2 likes and reposts · 2 replies
- Nov 14, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 addyosmani / agent-skills ⭐ 117,351 (+591) 🗒 JavaScript Production-grade engineering skills for AI… — @github-trending-js.bsky.social1 likes and repost · 1 reply
- Oct 26, 20266 free developer resources worth bookmarking: usagerank.com - Share your Claude and Codex usage github.com/addyosmani/... - AI coding… — @csaba.bsky.social1 likes and repost · 1 reply
- Oct 18, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 addyosmani / agent-skills ⭐ 108,013 (+430) 🗒 JavaScript Production-grade engineering skills for AI… — @github-trending-js.bsky.social1 likes and repost · 1 reply
- Oct 4, 20261,354 stars in 24 hours—9x its daily average. addyosmani/agent-skills is surging. The repository provides concrete, production-grade… — @latreon.bsky.social1 likes and repost
- Oct 3, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 addyosmani / agent-skills ⭐ 100,667 (+189) 🗒 JavaScript Production-grade engineering skills for AI… — @github-trending.bsky.social1 likes and repost
- Sep 19, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 addyosmani / agent-skills ⭐ 96,752 (+547) 🗒 JavaScript Production-grade engineering skills for AI… — @github-trending.bsky.social1 likes and repost · 1 reply
- Sep 17, 2026今日のGitHubトレンド addyosmani/agent-skills AIコーディングエージェントにシニアエンジニアのワークフローやベストプラクティスを適用し、一貫した開発を実現するためのリポジトリです。… — @dailygithubtrends.bsky.social1 likes and repost
- Sep 15, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 addyosmani / agent-skills ⭐ 94,504 (+354) 🗒 JavaScript Production-grade engineering skills for AI… — @github-trending.bsky.social1 likes and repost · 1 reply
- Sep 3, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 addyosmani / agent-skills ⭐ 91,849 (+280) 🗒 JavaScript Production-grade engineering skills for AI… — @github-trending.bsky.social1 likes and repost · 1 reply
- Aug 10, 2026今日のGitHubトレンド addyosmani/agent-skills AIコーディングエージェントにシニアエンジニアのワークフローやベストプラクティスを適用するためのリポジトリです。… — @dailygithubtrends.bsky.social1 likes and repost
- Aug 9, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 addyosmani / agent-skills ⭐ 84,860 (+779) 🗒 JavaScript Production-grade engineering skills for AI… — @github-trending.bsky.social1 likes and repost · 1 reply
- Aug 8, 2026今日のGitHubトレンド addyosmani/agent-skills AIコーディングエージェントにシニアエンジニアのワークフローやベストプラクティスを適用させるためのリポジトリです。… — @dailygithubtrends.bsky.social1 likes and repost
- Aug 6, 2026📈 Today's GitHub Trending: 1. https://github.com/TencentCloud/TencentDB-Agent-Memory - TypeScript, 1053 stars today 2.… — @ghtrend.newsmast.social.ap.brid.gy1 likes and repost
- Aug 6, 2026今日のGitHubトレンド addyosmani/agent-skills AIコーディングエージェントにシニアエンジニアの開発ワークフローやベストプラクティスを適用させるためのリポジトリです。… — @dailygithubtrends.bsky.social1 likes and repost
- Jul 15, 2026ただ、「品質ゲート」はテスト・ビルド・マージを外から機械的に止める装置ではなく、エージェントが守るべき手順の層にあります。READMEの `/build auto` も失敗や危険な手順で止まる設計ですが、実際の検証コマンドやCIはプロジェクト側で接続して初めて効く。… — @mint-echosphere.bsky.social1 likes and repost
- Jun 13, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 addyosmani / agent-skills ⭐ 57,767 (+1,507) 🗒 Shell Production-grade engineering skills for AI… — @github-trending.bsky.social1 likes and repost · 1 reply
- Jun 11, 2026公式READMEと導入手順を読むと、正体は24個のSKILL.mdと7コマンドを載せた新しい“実行エンジン”というより、spec・test・reviewを飛ばさせない作業規律パックでした。 https://github.com/addyosmani/agent-skills — @mint-echosphere.bsky.social1 likes and repost · 1 reply
- May 15, 2026get better output by getting your agents to be consistent on engineering tasks https://github.com/addyosmani/agent-skills — @laurenlol.com1 likes and repost
- May 10, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 addyosmani / agent-skills ⭐ 37,995 (+1,092) 🗒 Shell Production-grade engineering skills for AI… — @github-trending.bsky.social1 likes and repost · 1 reply
- May 10, 2026今日のGitHubトレンド addyosmani/agent-skills AIコーディングエージェントにシニアエンジニアのワークフローやベストプラクティスを適用するためのスキルセットです。… — @dailygithubtrends.bsky.social1 likes and repost
- May 6, 2026今日のGitHubトレンド addyosmani/agent-skills AIコーディングエージェントがシニアエンジニアと同等の品質で開発を行えるよう、ワークフローやベストプラクティスを定義したリポジトリです。… — @dailygithubtrends.bsky.social1 likes and repost
- Apr 18, 2026También veremos cómo utilizar SKILLs para mantener una buena calidad en nuestro producto y evitar regresiones en el rendimiento… — @nucliweb.net1 likes and repost · 1 reply
- Apr 9, 2026LLMに特定のタスクをこなすための便利なスキルを追加できるライブラリっぽい 自律型エージェント開発の効率アップに期待 yug1224 starred addyosmani/agent-skills… — @yug1224.com1 likes and repost
- Apr 7, 2026Production-grade engineering skills for AI coding agents. — @geshan.com.np1 likes and repost
- Nov 10, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 addyosmani / agent-skills ⭐ 114,792 (+465) 🗒 JavaScript Production-grade engineering skills for AI… — @github-trending-js.bsky.social0 likes and reposts · 1 reply
- Nov 10, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 addyosmani / agent-skills ⭐ 114,792 (+465) 🗒 JavaScript Production-grade engineering skills for AI… — @github-trending.bsky.social0 likes and reposts · 1 reply
- Oct 30, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 addyosmani / agent-skills ⭐ 111,896 (+305) 🗒 JavaScript Production-grade engineering skills for AI… — @github-trending-js.bsky.social0 likes and reposts · 1 reply
- Oct 26, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 addyosmani / agent-skills ⭐ 110,645 (+336) 🗒 JavaScript Production-grade engineering skills for AI… — @github-trending-js.bsky.social0 likes and reposts · 1 reply
- Sep 19, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 addyosmani / agent-skills ⭐ 96,181 (+677) 🗒 JavaScript Production-grade engineering skills for AI… — @github-trending-js.bsky.social0 likes and reposts · 1 reply
- Sep 17, 2026📈 Today's GitHub Trending: 1. https://github.com/alibaba/open-code-review - Go, 3290 stars today 2.… — @ghtrend.newsmast.social.ap.brid.gy0 likes and reposts · 1 reply
On Hacker News · 2
- Apr 7, 2026Addyosmani/agent-skills: Prod-grade skills for AI coding agents2 points
- Aug 6, 2026Agent Skills1 point
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 3
- vinvcn/addyosmani-agent-skills-zh★ 3835% same
- GuillemRoca/agent-skills-android★ 230% same
- weisser-dev/agentic-skills★ 094% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository27 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- api-and-interface-designSkill
- browser-testing-with-devtoolsSkill
- ci-cd-and-automationSkill
- code-review-and-qualitySkill
- code-simplificationSkill
- context-engineeringSkill
- debugging-and-error-recoverySkill
- deprecation-and-migrationSkill
- documentation-and-adrsSkill
- doubt-driven-developmentSkill
- frontend-ui-engineeringSkill
- git-workflow-and-versioningSkill
- idea-refineSkill
- incremental-implementationSkill
- interview-meSkill
- observability-and-instrumentationSkill
- performance-optimizationSkill
- planning-and-task-breakdownSkill
- security-and-hardeningSkill
- shipping-and-launchSkill
- source-driven-developmentSkill
- spec-driven-developmentSkill
- test-driven-developmentSkill
- using-agent-skillsSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 8 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 44
Never ask what you can read.
- Very specific: line 59
Follow the one-question-at-a-time discipline from interview-me, with one change: every question here has a default, so "I don't know" is a …
- Distinctive: line 91
Stop at four. A twelve-question intake produces a config nobody understands and a user who regrets starting.
- Distinctive: line 167
Coverage needs no second test run: Read the lcov your suite already writes and intersect it with git diff.
- Distinctive: line 170
Add each one to the project's own script so it's reproducible without an agent:
- Distinctive: line 199
Scope to the diff: Check the lines this change touched, not the whole repo.
- Distinctive: line 236
When the user has no opinion, use these.
- Distinctive: line 277
Stop and reconsider if you notice:
- Distinctive: line 283
Every constraint is checked by the project's own test suite, with no external opinion
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Constraint-Driven Development
Overview
Other skills in this pack describe what good looks like. code-review-and-quality gives you five axes. test-driven-development gives you a cycle. security-and-hardening gives you a threat list. All of that lives in prose the agent reads and may or may not follow, and none of it survives the end of the session.
This skill produces something different: a written record of this project's bar, with numbers, that outlives the conversation and can be checked mechanically.
The reason matters. When you wrote the code, reading it told you whether it was any good. An agent writes more in an afternoon than you will read that week, so the judgement moves out of your head and into checks that run around the loop. Those checks need to exist, they need numbers you actually chose, and they need to fire close enough to the work that the agent fixes its own output.
Spec-driven development says what to build. Test-driven development proves it works. Constraint-driven development defines what "good enough to ship" means, before anyone argues about it in a pull request.
When to Use
Apply this skill when:
- Starting a project or a significant feature and no quality bar is written down
- The user asks to "set up constraints", "add quality gates", "define our standards", or "stop the agent shipping junk"
- An agent is producing volume nobody is reading line by line
- CI has checks but nobody can say which ones block a merge and which ones are decoration
- Coverage, performance, or accessibility numbers get argued about per-PR instead of decided once
- You're about to run
/build autoor any autonomous loop, and the only thing standing between it and main is a test suite the agent also wrote
When NOT to use:
- The project already has a
CONSTRAINTS.mdand the user isn't changing it — read it and follow it instead - One-off scripts, spikes, throwaway prototypes
- The user wants a code review right now (
code-review-and-quality) or a CI pipeline built (ci-cd-and-automation) - Pre-product-market-fit code with a two-week expected lifetime — the floor below is still worth it, the rest isn't
Loading Constraints
The interview needs a live user. Don't run it in non-interactive contexts (CI, /loop, autonomous runs). If constraints are missing and you're in one of those, apply the Floor below, note that you did, and flag the rest for a human.
The Process
Step 1: Detect before you ask
Never ask what you can read. Before the first question, gather:
| What | Where to look |
| Language and stack | package.json, pyproject.toml, go.mod, Cargo.toml |
| Test runner | dev dependencies, test script, existing test files |
| Existing linters | eslint.config.*, biome.json, .ruff.toml |
| Coverage today | coverage/ output, or run the suite once |
| CI | .github/workflows/, .gitlab-ci.yml |
| Agent harness | .claude/, .codex/, AGENTS.md |
Report what you found in two lines, then ask only what's left.
Step 2: Four questions, each with a default
Follow the one-question-at-a-time discipline from interview-me, with one change: every question here has a default, so "I don't know" is a complete answer that still produces a working config.
Q1: Beyond the floor, which of these do you want enforced?
(a) Test coverage on new code
(b) Security scanning
(c) Performance budgets
(d) Accessibility
(e) Architecture boundaries
GUESS: (a) and (b) — you have a test runner already and you're handling user input.
DEFAULT if unsure: (a) and (b).
Say what each pick costs: (c) and (d) need a running URL, (e) needs a rules file written.Q2: When a check fails while the agent is mid-task, should it block or warn?
GUESS: Block. You're running agents unattended and a warning nobody reads is a warning.
DEFAULT if unsure: Block on the floor, warn on everything else for the first two weeks.Q3: Do you have target numbers in mind, or should I measure where you are today and hold that line?
GUESS: Measure. Most teams don't have a number, and an invented one gets ignored.
DEFAULT if unsure: Measure and hold. See "Ratchets" below.Q4: What's the slowest check you'll tolerate before the agent hands work back?
GUESS: About 90 seconds. Longer and you'll stop running it.
DEFAULT if unsure: 90 seconds at task end, unlimited in CI.Stop at four. A twelve-question intake produces a config nobody understands and a user who regrets starting.
Step 3: Write CONSTRAINTS.md
One file at the repo root. Any agent on any harness can read it, and a change to it shows up in review where it belongs.
# Constraints
Last reviewed: 2026-08-08 by @addy
## Floor (always enforced, no setup required)
- No new suppression comments: `@ts-ignore`, `eslint-disable`, `# noqa`, `# type: ignore`
- No unimplemented stubs: `throw new Error("Not implemented")`, empty `catch {}`
- No skipped or deleted tests without a reason in the commit message
- No secrets in source
- This file does not get weakened to make a change pass
## Enforced with numbers
| Dimension | Rule | Checked by | Runs at |
|-----------|------|-----------|---------|
| Types | Zero type errors | `tsc --noEmit` | every edit |
| Lint | Zero errors from our config | `biome check` | every edit |
| Secrets | No secrets in source | `gitleaks detect --redact` | every edit |
| Coverage | Changed lines ≥ 80% covered | `vitest run --coverage` + git diff | task end, CI |
| Security: code | No high findings | `semgrep scan --config p/default` | CI |
| Security: deps | Nothing at high or above | `osv-scanner scan source -r .` | CI |
| Accessibility | Zero critical or serious | `axe $PREVIEW_URL --tags wcag2a,wcag2aa,wcag21aa` | preview deploy |
| Performance | LCP ≤ 2500ms, CLS ≤ 0.1 | `lighthouse $PREVIEW_URL --output=json` | preview deploy |
Every row names the command that produces the verdict. A dimension with a
number and no command in this column is an aspiration, not a constraint.
## Measured, not yet enforced
| Metric | Today | Direction |
|--------|-------|-----------|
| Project coverage | 62.4% | must not fall |
| Bundle size (main) | 184 kB | must not grow |
## Exceptions
| ID | Rule | Path | Reason | Owner | Expires |
|----|------|------|--------|-------|---------|
| W1 | `no-explicit-any` | `src/legacy/**` | Rewrite tracked in ENG-441 | @addy | 2026-11-01 |Then add one line to AGENTS.md and CLAUDE.md: Read CONSTRAINTS.md before writing code. Do not weaken it to make a change pass.
Step 4: Install what each dimension needs
Picking a dimension means installing something. Don't leave the user with a number and no mechanism, and don't invent your own checker when a de facto one exists — these tools are listed because their rule formats and thresholds are what everything else in the ecosystem targets, so the team's existing config keeps working.
| Dimension | Tool | Install | Run | Gate on |
| Types (TS) | tsc | already there | tsc --noEmit | any error |
| Types (Python) | mypy | pip install mypy | mypy . | any error |
| Lint | your existing config | already there | eslint . / biome check / ruff check | any error |
| Coverage (JS) | your test runner | already there | vitest run --coverage (or jest --coverage) | coverage of changed lines |
| Coverage (Python) | pytest-cov | pip install pytest-cov | pytest --cov --cov-report=lcov | same |
| Security: code | Semgrep | pipx install semgrep | semgrep scan --config p/default --config p/owasp-top-ten | any high finding |
| Security: secrets | gitleaks | brew install gitleaks | gitleaks detect --redact --no-banner | any finding |
| Security: dependencies | osv-scanner | brew install osv-scanner | osv-scanner scan source -r . | high or above |
| Performance: page | Lighthouse | npm i -D lighthouse | lighthouse $URL --output=json --quiet | LCP, CLS, performance score |
| Performance: bundle | size-limit | npm i -D size-limit | size-limit --json | per-entry byte budget |
| Accessibility | axe-core | npm i -D @axe-core/cli | axe $URL --tags wcag2a,wcag2aa,wcag21aa | zero critical or serious |
| Architecture | dependency-cruiser | npm i -D dependency-cruiser | depcruise --validate src | any violation |
| Assertion quality | Stryker | npm i -D @stryker-mutator/core | stryker run --mutate <changed files> | mutation score |
Five things that will bite you if you skip them:
--redacton gitleaks is not optional. Without it the matched secret lands in the agent's transcript, which is how a leaked key ends up in a log, a summary, or a commit message. Report the rule and the location, never the value.- Lighthouse and axe need a URL. They only work against a running app, so they belong in the runtime stage against a preview deploy or a local server you start first. If the project has no URL to hit — a CLI, a library, a desktop app — say so and drop the dimension rather than inventing a check that can't run.
- Scope the expensive ones to the diff.
stryker run --mutateon the whole repo takes hours and gets turned off; on the files a change touched it takes under a minute. Same for Semgrep, which takes a path list. - Coverage needs no second test run. Read the lcov your suite already writes and intersect it with
git diff. Running the suite twice to get a number is the fastest way to make people hate this. - Semgrep's registry rules are free to run; check the licence before redistributing them.
opengrepis a drop-in fork with the same rule format and JSON output if that matters to your legal team.
Add each one to the project's own script so it's reproducible without an agent:
{
"scripts": {
"check:fast": "tsc --noEmit && eslint . && gitleaks detect --redact --no-banner",
"check:task": "npm run check:fast && vitest run --coverage",
"check:full": "npm run check:task && semgrep scan --config p/default && osv-scanner scan source -r ."
}
}That mapping matters more than the tools. check:fast is what runs after an edit, check:task when the agent thinks it's done, check:full in CI.
The commands now live in two places — the Checked by column in CONSTRAINTS.md and these scripts. CONSTRAINTS.md is the canonical source: it carries the reason alongside each command and it shows up in review. The scripts are convenience wrappers that must mirror it, not a second source of truth; if they drift, the file wins.
Step 5: Wire it to the lifecycle
The single biggest mistake is running everything everywhere. A check that stalls the agent gets switched off, and a gate people switched off is worse than no gate, because the bar still looks like it exists.
| Phase | Command | What runs | Budget |
| BUILD | /build | Types, lint, secrets, the floor | under 5s, changed file only |
| VERIFY | /test | Related tests, coverage on changed lines | under 90s |
| REVIEW | /review | Everything, plus the guards below | minutes |
| SHIP | /ship | Direction checks, no regressions | CI |
Two rules that keep this tolerable:
- Scope to the diff. Check the lines this change touched, not the whole repo. Coverage of changed lines is a number the agent can move; project coverage is one it inherited.
- Cost decides placement. Anything over a few seconds moves out of the edit loop. Mutation testing on a whole repo takes hours; on the files a change touched it takes under a minute, which is the difference between a check people run and one they don't.
Step 6: Guard the bar itself
Someone will point out that if the agent writes the code and the checks, the checks prove nothing. Half right, and worth engineering around.
Agents don't craft clever loopholes. They hit a red check and take the cheapest road to green. Watch for these five moves in the diff, at review time:
- The threshold moved. A budget lowered, a severity dropped, a check removed from the fast stage. Compare
CONSTRAINTS.mdagainst its state at the branch point. - A test got easier.
.skipadded, a test file deleted, assertions pulled out of tests that stayed. - A checker got silenced. New
@ts-ignoreoreslint-disable. Four suppressions deserve special attention because they switch off a check you're relying on:istanbul ignoredrops code from coverage instead of testing it,Stryker disablehides a surviving mutant,nosemgrepandgitleaks:allowdo it for security findings. - Work is unfinished. A stub that throws, an empty
catchturning a failure into silence, aTODOstanding where the implementation should be. - An exception appeared. A new row in the Exceptions table nobody discussed.
None of this needs tooling beyond git diff. Tightening the bar should be silent; loosening it should be loud.
Unlike the numbered dimensions, the floor has no de facto tool of its own, so an agent asked to enforce it tends to write a checker from scratch, and two agents write two different ones. A reference implementation of these five checks ships with this skill in references/floor-guard.md (diff-scoped, exit 0/1/2, patterns adaptable per ecosystem). Adapt that rather than reinventing it, for the same reason every dimension names a de facto tool: so the mechanism is the same across runs and stacks.
Not all checks are equally circular. Rank them by one question: can the agent make this pass by writing code that doesn't work?
- External — axe-core encodes WCAG,
osv-scannerreads a vulnerability database, Lighthouse measures a real browser. The agent can't argue with these. - Project — your lint rules, your layer boundaries. A human owns the file.
- Suite — your own tests. Most useful, and the only genuinely circular one.
A bar made entirely of the third kind is worth less than one with an outside opinion in it. Check that at least one external constraint is present.
Step 7: Ratchets, when you don't have a number
Set 80% coverage on a codebase at 62% and you get a red build forever, then a team that learns to ignore red builds.
The alternative asks for no decision: record where you are, then refuse to get worse. Put it in the "Measured, not yet enforced" table with today's number and a direction. Every check compares against the recorded value, not an aspiration. When a number improves, update it; when it drops, that's the finding.
This also answers a fair objection to training. Models are rewarded for passing tests, which you can evaluate in seconds. Architectural rot shows up over months and never reaches the weights. A ratchet is the missing penalty, written down where the build can see it.
Sane Defaults
When the user has no opinion, use these. They're chosen to be met by most codebases on day one.
| Constraint | Default | Why this number |
| Coverage of changed lines | ≥ 80% | High enough to force a test, low enough to allow a config line |
| Project coverage | today's value, must not fall | No argument needed to adopt |
| Mutation score (if used) | ≥ 60% to start | Typical for a suite never mutated before; 80% is mature |
| Dependency vulnerabilities | nothing at high or above | Below that is mostly noise |
| LCP | ≤ 2500 ms | Core Web Vitals "good" threshold |
| CLS | ≤ 0.1 | Same |
| Accessibility | zero critical or serious axe violations | Moderate and minor are often debatable |
| Exception lifetime | 90 days | Long enough to plan the fix, short enough to remember |
| Ratchet tolerance | 0.5% | Absorbs drift when an unrelated file moves the number |
State the number and the reason together. A threshold without a rationale gets deleted by the next person who hits it.
Escalation Path
Constraints work at three levels of teeth. Start at the first.
- Written only.
CONSTRAINTS.mdexists and agents read it. Costs nothing, catches the honest mistakes, relies on the agent complying. - Scripted. An
npm run check(ormake check) that runs the fast checks, wired into your agent's post-edit hook and your CI. Deterministic, no new dependency. - Tool-backed. A dedicated runner that handles diff scoping, budgets, ratchets, and the guard checks. Use when the config outgrows a shell script. The floor-guard reference in references/floor-guard.md is the starting point for the guard-checks half of this.
Most projects should stop at 2. Move to 3 when you're maintaining more than about thirty lines of check-running shell.
A first run can be floor-only. The floor guard is diff-only and needs no installs, so you can enforce the floor on day one and add numbered dimensions as you install each tool, rather than standing up every checker before the first commit is protected. Security tools that install machine-wide (gitleaks, osv-scanner) can also run CI-only if you'd rather keep laptops clean; declare where each dimension runs in the Runs at column.
Common Rationalizations
| Excuse | Reality |
| "We'll add constraints once the code settles" | Code settles around whatever was allowed while it was moving |
| "The tests are the constraints" | Tests you wrote prove you agree with yourself; they say nothing about coverage of new code, dependency risk, or bundle growth |
| "We can't hit 80% coverage" | Then don't set 80%. Set today's number and hold it |
| "This will slow the agent down" | Only if you put slow checks in the fast loop. That's a placement error, not an argument against constraints |
| "I'll remember what our standards are" | The agent won't, and it's writing most of the code |
| "Constraints will block us shipping" | An exception with an owner and a date unblocks you. Deleting the constraint unblocks everyone forever |
Red Flags
Stop and reconsider if you notice:
- The interview ran past four questions, or produced a config the user can't explain
- A budget was set that the codebase fails today, with no plan to reach it
- A dimension was written into CONSTRAINTS.md with a number but no tool behind it
- A checker was hand-rolled when a de facto one exists, so the team's existing config is ignored
- Every constraint is checked by the project's own test suite, with no external opinion
CONSTRAINTS.mdchanged in the same commit as the feature that was failing- An exception has no owner, or an expiry more than a year out
- The agent proposed relaxing a threshold instead of fixing the code
- Slow checks landed in the edit loop and someone has started passing
--no-verify - Nobody has opened
CONSTRAINTS.mdsince it was written
Verification
The skill was applied correctly when:
CONSTRAINTS.mdexists, and every number in it has a stated reason- The floor is enforced and passes on the current codebase without changes
- Every dimension the user picked has a tool installed and a command that runs today
- Each constraint says where it runs, and the fast stage stays under a few seconds
- At least one constraint is external (not judged by this project's own tests)
- Measured-only metrics record today's value and a direction
- Exceptions have an owner and an expiry date
AGENTS.mdorCLAUDE.mdpoints at the file- A trial run on the current branch produces no failures the user disagrees with
See Also
interview-me— the one-question-at-a-time discipline this skill's intake borrowscode-review-and-quality— how to review; this skill decides what the review enforcesci-cd-and-automation— building the pipeline these constraints run intest-driven-development— the suite that coverage and mutation constraints measuresecurity-and-hardening— what the security dimension should containperformance-optimization— where the performance numbers come from
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

