Agent skill

Constraint-Driven Development

by addyosmani in addyosmani/agent-skills

Records a project's quality bar in CONSTRAINTS.md and watches diffs for signs an agent quietly weakened it, such as suppressions, skipped tests or lowered thresholds.

MITAuto-check passedDevelopment

Install Constraint-Driven Development

skills CLI
$ npx skills add addyosmani/agent-skills --skill constraint-driven-development -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install addyosmani/agent-skills constraint-driven-development --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/addyosmani/agent-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/constraint-driven-development .claude/skills/constraint-driven-development && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
constraint-driven-development
GitHub stars
102k
Used in
2 other repos
Token cost
~5.2k tokens
SKILL.md length
2,570 words
Files
2 (incl. references)
Skills in repo
12
Repo updated
First seen
Licence
MIT

At a glance

Records a project's quality bar in CONSTRAINTS.md and watches diffs for signs an agent quietly weakened it, such as suppressions, skipped tests or lowered thresholds.

  • Works in 7 steps: Detect before you ask → Four questions, each with a default → Write CONSTRAINTS.md → …
  • Starting a project or large feature with no written quality bar
  • SKILL.md covers Overview, When to Use, Loading Constraints and The Process, plus 6 more sections
  • Calls npm, pip and brew

What it does

The skill produces a written record of this project's quality bar, with numbers, that outlives the conversation and can be checked mechanically. The agent detects what already exists, interviews you about which dimensions matter (accessibility, web performance and coverage are examples), offers sensible default thresholds when you have no number in mind and writes everything into CONSTRAINTS.md. Because the interview needs a live person, it is not run in CI, loops or autonomous runs. There the agent applies a minimum floor, notes that it did and flags the rest for a human.

Afterwards it watches the diff for a weakened bar: new @ts-ignore or eslint-disable suppressions, skipped or deleted tests, assertions stripped out, unimplemented stubs and thresholds edited downward. The skill frames itself against its neighbors: spec-driven development says what to build, test-driven development proves it works, and constraint-driven development defines what good enough to ship means before it is argued in a pull request. It is not for one-off scripts or spikes, or for a project whose existing CONSTRAINTS.md is not changing. A floor-guard reference file is included.

When your agent uses it

  • Starting a project or large feature with no written quality bar
  • Choosing coverage or performance thresholds when you do not know what number to pick
  • An agent keeps silencing checks or skipping tests to get a green build
  • Preparing for an autonomous run where only agent-written tests guard the main branch

Example prompts

  • “Set up constraints for this project and interview me about what matters.”
  • “Pick a sensible coverage threshold for our API and write it into CONSTRAINTS.md.”
  • “Check this diff for suppressions, skipped tests or lowered thresholds.”
  • “The agent keeps adding eslint-disable comments to get green, so guard against that.”

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. Detect before you ask
  2. Four questions, each with a default
  3. Write CONSTRAINTS.md
  4. Install what each dimension needs
  5. Wire it to the lifecycle
  6. Guard the bar itself
  7. Ratchets, when you don't have a number

What it can do on your machine

Read from SKILL.md and the folder at commit 1401c8b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm
    • pip
    • brew
    • git
    • tsc
    • mypy
    • eslint
    • ruff
    • vitest
    • jest
    • pytest
    • pipx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npm, pip, git and pipx, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Constraint-Driven Development loads about 5.2k tokens when it runs, and up to ~7.9k if it reads all its reference files. Until then it costs about 228 tokens; SKILL.md has 2,570 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~228
When it runs · the whole SKILL.md, loaded when a task matches
~5.2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~7.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from addyosmani/agent-skills at commit 1401c8b, republished under its MIT licence (© addyosmani). 2,570 words, ~5,239 tokens.

Download SKILL.mdSave it as .claude/skills/constraint-driven-development/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
constraint-driven-development
description
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.

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 auto or 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.md and 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:

WhatWhere to look
Language and stackpackage.json, pyproject.toml, go.mod, Cargo.toml
Test runnerdev dependencies, test script, existing test files
Existing linterseslint.config.*, biome.json, .ruff.toml
Coverage todaycoverage/ 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.

markdown
# 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.

DimensionToolInstallRunGate on
Types (TS)tscalready theretsc --noEmitany error
Types (Python)mypypip install mypymypy .any error
Lintyour existing configalready thereeslint . / biome check / ruff checkany error
Coverage (JS)your test runneralready therevitest run --coverage (or jest --coverage)coverage of changed lines
Coverage (Python)pytest-covpip install pytest-covpytest --cov --cov-report=lcovsame
Security: codeSemgreppipx install semgrepsemgrep scan --config p/default --config p/owasp-top-tenany high finding
Security: secretsgitleaksbrew install gitleaksgitleaks detect --redact --no-bannerany finding
Security: dependenciesosv-scannerbrew install osv-scannerosv-scanner scan source -r .high or above
Performance: pageLighthousenpm i -D lighthouselighthouse $URL --output=json --quietLCP, CLS, performance score
Performance: bundlesize-limitnpm i -D size-limitsize-limit --jsonper-entry byte budget
Accessibilityaxe-corenpm i -D @axe-core/cliaxe $URL --tags wcag2a,wcag2aa,wcag21aazero critical or serious
Architecturedependency-cruisernpm i -D dependency-cruiserdepcruise --validate srcany violation
Assertion qualityStrykernpm i -D @stryker-mutator/corestryker run --mutate <changed files>mutation score

Five things that will bite you if you skip them:

  1. --redact on 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.
  2. 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.
  3. Scope the expensive ones to the diff. stryker run --mutate on 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.
  4. 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.
  5. Semgrep's registry rules are free to run; check the licence before redistributing them. opengrep is 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:

json
{
  "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.

PhaseCommandWhat runsBudget
BUILD/buildTypes, lint, secrets, the floorunder 5s, changed file only
VERIFY/testRelated tests, coverage on changed linesunder 90s
REVIEW/reviewEverything, plus the guards belowminutes
SHIP/shipDirection checks, no regressionsCI

Two rules that keep this tolerable:

  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.
  2. 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:

  1. The threshold moved. A budget lowered, a severity dropped, a check removed from the fast stage. Compare CONSTRAINTS.md against its state at the branch point.
  2. A test got easier. .skip added, a test file deleted, assertions pulled out of tests that stayed.
  3. A checker got silenced. New @ts-ignore or eslint-disable. Four suppressions deserve special attention because they switch off a check you're relying on: istanbul ignore drops code from coverage instead of testing it, Stryker disable hides a surviving mutant, nosemgrep and gitleaks:allow do it for security findings.
  4. Work is unfinished. A stub that throws, an empty catch turning a failure into silence, a TODO standing where the implementation should be.
  5. 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-scanner reads 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.

Show full SKILL.md (901 more words)Show less
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.

ConstraintDefaultWhy this number
Coverage of changed lines≥ 80%High enough to force a test, low enough to allow a config line
Project coveragetoday's value, must not fallNo argument needed to adopt
Mutation score (if used)≥ 60% to startTypical for a suite never mutated before; 80% is mature
Dependency vulnerabilitiesnothing at high or aboveBelow that is mostly noise
LCP≤ 2500 msCore Web Vitals "good" threshold
CLS≤ 0.1Same
Accessibilityzero critical or serious axe violationsModerate and minor are often debatable
Exception lifetime90 daysLong enough to plan the fix, short enough to remember
Ratchet tolerance0.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.

  1. Written only. CONSTRAINTS.md exists and agents read it. Costs nothing, catches the honest mistakes, relies on the agent complying.
  2. Scripted. An npm run check (or make check) that runs the fast checks, wired into your agent's post-edit hook and your CI. Deterministic, no new dependency.
  3. 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

ExcuseReality
"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.md changed 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.md since it was written

Verification

The skill was applied correctly when:

  • CONSTRAINTS.md exists, 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.md or CLAUDE.md points 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 borrows
  • code-review-and-quality — how to review; this skill decides what the review enforces
  • ci-cd-and-automation — building the pipeline these constraints run in
  • test-driven-development — the suite that coverage and mutation constraints measure
  • security-and-hardening — what the security dimension should contain
  • performance-optimization — where the performance numbers come from

© addyosmani, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in skills/constraint-driven-development of addyosmani/agent-skills.

  • SKILL.md
  • references/floor-guard.md

Open the folder on GitHubat commit 1401c8b

Used in 2 other repositories

We found 2 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 2 other GitHub owners. This page covers the copy in addyosmani/agent-skills, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Constraint-Driven Development next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Constraint-Driven Development compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Constraint-Driven Development this skilladdyosmani/agent-skills102k2 repos~5.2kAutomated safety check: PassMIT
Dev ReviewFHIR/fhir-codegen154—~5kAutomated safety check: PassMIT
Quality CImanagedcode/dotnet-skills486—~2.1kAutomated safety check: PassMIT
Code Quality Crapmacalbert/envilder138—~468Automated safety check: PassMIT
Django Verification Loopaffaan-m/ECC274k7 repos~2.9kAutomated safety check: PassMIT
Sonarclaudeagentculture/culture113—~764Automated safety check: PassApache-2.0

Similar skills

  • Dev Review

    FHIR/fhir-codegen

    Performs a two-track code-quality and QA review in the roles of a staff-level Engineering Lead and QA Lead, then synthesizes both critiques into a single analysis.md.

    154 GitHub stars~5k tokensUpdated 1 mo ago
    Testing & QAAuto-check passed
  • Quality CI

    managedcode/dotnet-skills

    Set up or refine open-source .NET code-quality gates for CI: formatting, .editorconfig, SDK analyzers, third-party analyzers, coverage, mutation testing, architecture tests, and security scanning.

    486 GitHub stars~2.1k tokensUpdated today
    Testing & QAAuto-check passed
  • Code Quality Crap

    macalbert/envilder

    CRAP score quality gate for code complexity and test coverage.

    138 GitHub stars~468 tokensUpdated 2 days ago
    Testing & QAAuto-check passed
  • Runs a phased pre-PR and pre-deploy check on a Django project: environment, linting, migrations, tests with coverage, security scans and settings review.

    274k GitHub starsUsed in 7 repos~2.9k tokens
    DevelopmentAuto-check passed
  • Sonarclaude

    agentculture/culture

    Query SonarCloud API for code quality data. An agent skill from agentculture/culture.

    113 GitHub stars~764 tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Health Check

    codewithmukesh/dotnet-claude-kit

    Multi-dimensional health assessment for .NET projects with letter grades (A-F) using Roslyn MCP tools.

    751 GitHub starsUsed in 1 repo~1.6k tokens
    DevelopmentAuto-check passed

More from addyosmani/agent-skills

All 12 skills in this repo
  • Idea Refinement

    addyosmani/agent-skills

    Guides a conversation that takes a vague idea through divergent and convergent thinking and ends in a markdown one-pager covering scope and assumptions.

    102k GitHub starsUsed in 6 repos~2k tokens
    Auto-check passed
  • Interview Me

    addyosmani/agent-skills

    Asks one question at a time, each with a best guess attached, until the agent is about 95 percent sure what you really want, before any plan, spec or code.

    102k GitHub starsUsed in 6 repos~3.8k tokens
    Auto-check passed
  • Using Agent Skills

    addyosmani/agent-skills

    Meta-skill for choosing which workflow skill fits the task at hand, plus always-on habits: surface assumptions, stop on confusion, push back, keep it simple and stay in scope.

    102k GitHub starsUsed in 4 repos~2.4k tokens
    Auto-check passed
  • Connects an agent to a real Chrome instance through the Chrome DevTools MCP server, so it can inspect the DOM, read console errors and profile performance directly.

    102k GitHub starsUsed in 4 repos~3.5k tokens
    Auto-check: warnings
  • Git Workflow and Versioning

    addyosmani/agent-skills

    Sets git habits for every change: short-lived branches, atomic commits with descriptive messages, clean pull requests, plus versioning, tagging and changelogs for releases.

    102k GitHub starsUsed in 2 repos~3.5k tokens
    Auto-check: notes
  • Debugging and Error Recovery

    addyosmani/agent-skills

    Applies a stop-the-line rule and a step-by-step triage when tests fail, builds break or something stops working, aiming at the root cause instead of guesses.

    102k GitHub starsUsed in 1 repo~2.6k tokens
    Auto-check passed

Works with

Questions about Constraint-Driven Development

What does Constraint-Driven Development do?

Records a project's quality bar in CONSTRAINTS.md and watches diffs for signs an agent quietly weakened it, such as suppressions, skipped tests or lowered thresholds. The skill produces a written record of this project's quality bar, with numbers, that outlives the conversation and can be checked mechanically.md.

When should I use Constraint-Driven Development?

Constraint-Driven Development fits situations like: starting a project or large feature with no written quality bar; choosing coverage or performance thresholds when you do not know what number to pick; an agent keeps silencing checks or skipping tests to get a green build; preparing for an autonomous run where only agent-written tests guard the main branch.

How do I install Constraint-Driven Development in Claude Code?

Run `npx skills add addyosmani/agent-skills --skill constraint-driven-development -a claude-code`. Or copy the skill folder (skills/constraint-driven-development in addyosmani/agent-skills) into .claude/skills/constraint-driven-development in your project. Claude Code loads it when a task matches its description.

How do I install Constraint-Driven Development in Codex?

Run `npx skills add addyosmani/agent-skills --skill constraint-driven-development -a codex`. Or copy the skill folder (skills/constraint-driven-development in addyosmani/agent-skills) into .agents/skills/constraint-driven-development in your project. Codex loads it when a task matches its description.

Can I use Constraint-Driven Development in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add addyosmani/agent-skills --skill constraint-driven-development -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/constraint-driven-development, .gemini/skills/constraint-driven-development, .github/skills/constraint-driven-development and .opencode/skills/constraint-driven-development in your project.

What does Constraint-Driven Development need to run?

Going by SKILL.md and its folder, Constraint-Driven Development needs the command-line tools its instructions call (npm, pip, brew, git, tsc and mypy).

Does Constraint-Driven Development access the network?

SKILL.md contains no URLs. Its commands use npm, pip and git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Constraint-Driven Development safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Constraint-Driven Development use?

Constraint-Driven Development is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Constraint-Driven Development use?

About 5.2k tokens (SKILL.md is roughly 21k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.7k tokens, read only when the agent opens those files.

What are the alternatives to Constraint-Driven Development?

Skills that share tags, products or a category with Constraint-Driven Development: Dev Review (FHIR/fhir-codegen, 154 stars), Quality CI (managedcode/dotnet-skills, 486 stars), Code Quality Crap (macalbert/envilder, 138 stars) and Django Verification Loop (affaan-m/ECC, 274k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Constraint-Driven Development?

addyosmani (a GitHub user) maintains it in addyosmani/agent-skills, which has 102,135 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on October 3, 2026.

Source: addyosmani/agent-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.