Skip to content
Skill

Constraint driven development

Turns a project's quality bar into a written, checkable contract for coding agents

Constraint driven development is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
JavaScript
Platforms
Claude Code, Codex, Cursor
GitHub stars
122K
Last commit
License
MIT
Listing updated

Similar skills

About Constraint driven development

This skill has the agent set up a CONSTRAINTS.md file at the repository root that records the project's quality thresholds with numbers, the command that checks each one, and where each check runs. It starts by detecting the language, test runner, linters, coverage, and CI setup already in the repo, then asks a short set of questions where each one comes with a default, so a user who has no numbers still gets a working configuration. Dimensions covered include types, lint, secrets, coverage of changed lines, dependency and code security, accessibility, and page performance, plus a fixed floor of rules such as no new suppression comments and no stubs.

The workflow stresses placing checks by cost: quick checks run after each edit, heavier ones when a task is finished, and the slowest in CI. Where a user has no target number, the skill records the current value and holds it, rather than picking a threshold the codebase already fails. It also describes how to review diffs for a weakened bar, such as lowered thresholds, skipped tests, or new exception entries with no owner.

The skill expects a live user for the interview and is meant for interactive sessions rather than CI runs. Its examples assume Node.js tooling such as npm scripts, tsc, Vitest or Jest, Lighthouse, and axe, with Python alternatives like mypy and pytest-cov. It includes a helper script and a reference guard file, and it asks the agent to verify each enforced command against a known violation before treating it as enforced.

When your agent uses it

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.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 3 files (35 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the agent-skills plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add chrisalehman/bionic
/plugin install agent-skills@bionic

Or copy only this skill to ~/.claude/skills/constraint-driven-development:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/addyosmani/agent-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/constraint-driven-development &&
cp -R "$tmp/skills/constraint-driven-development" ~/.claude/skills/constraint-driven-development &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/constraint-driven-development inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/constraint-driven-development to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/addyosmani/agent-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/constraint-driven-development &&
cp -R "$tmp/skills/constraint-driven-development" ~/.agents/skills/constraint-driven-development &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/constraint-driven-development inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/constraint-driven-development to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/addyosmani/agent-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/constraint-driven-development &&
cp -R "$tmp/skills/constraint-driven-development" ~/.cursor/skills/constraint-driven-development &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/constraint-driven-development inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/addyosmani/agent-skills.git --path skills/constraint-driven-development

Or copy the folder to ~/.gemini/skills/constraint-driven-development yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/constraint-driven-development:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/addyosmani/agent-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/constraint-driven-development &&
cp -R "$tmp/skills/constraint-driven-development" ~/.copilot/skills/constraint-driven-development &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/constraint-driven-development inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/addyosmani/agent-skills.git

Then copy agent-skills/skills/constraint-driven-development into your agent's skills folder as constraint-driven-development. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Written quality contract
Creates a CONSTRAINTS.md file that records the project's thresholds, the commands that check them, and where each check runs.
Guided intake with defaults
Asks a few questions about which dimensions matter, with default values so that unsure answers still produce a usable setup.
Tooling detection
Reads existing manifests, linter configs, test runners and CI files before asking the user anything.
Diff-based bar guard
Reviews changes for weakened standards, such as raised suppressions, skipped tests, stubs, and lowered thresholds.
Ratchet for unset targets
When no number is chosen, records the current metric value and blocks regressions from it.
Lifecycle check placement
Assigns fast checks to the edit loop, task-end checks to verification, and heavier scans to CI.

Good for

  • Set up quality gates for a new TypeScript project before an agent starts writing features
  • Stop an agent from adding eslint-disable comments or skipping tests to get a build green
  • Decide a coverage threshold for a codebase that currently sits at 62 percent
  • Enforce Lighthouse LCP and CLS budgets against a preview deployment
  • Record accessibility and dependency security rules that CI must check

Constraint driven development FAQ

Does Constraint driven development run without a user present?

No. The interview needs a live user, so in non-interactive contexts such as CI or autonomous loops the skill applies only the floor rules and flags the rest for a human.

What does Constraint driven development change in the repository?

It creates a CONSTRAINTS.md at the repo root, adds a line to AGENTS.md and CLAUDE.md pointing to it, and can add npm check scripts and a quality-gate helper script. It also suggests installing tools such as Lighthouse, axe-core or gitleaks, depending on the dimensions chosen.

Which tools does Constraint driven development expect?

Its examples use Node-based tools like tsc, Vitest or Jest, eslint or biome, Lighthouse and axe, along with Semgrep, gitleaks and osv-scanner. Python projects can use mypy and pytest-cov instead.

Are the default thresholds fixed?

They are suggested defaults, such as 80 percent coverage on changed lines, LCP at or below 2500 ms, and CLS at or below 0.1. The skill asks the user to state a reason for any number it sets.

How do I install Constraint driven development in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/constraint-driven-development to use it in all your projects, or to .claude/skills/constraint-driven-development in one project. Or install the agent-skills plugin, which includes it: /plugin marketplace add chrisalehman/bionic, then /plugin install agent-skills@bionic.

Does Constraint driven development run scripts?

Yes. It runs JavaScript scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Constraint driven development?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Constraint driven development?

The closest alternatives to Constraint driven development are Speclock guardrails, Code review, Session hardening, Ci cd and Quality gate.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from addyosmani/agent-skills

  1. Audits interfaces against WCAG 2.2 AA and guides fixing the violations found

    • Open source
    • 122K GitHub stars
    • Developer tools
  2. Guides designing stable, hard-to-misuse APIs, REST endpoints and module contracts

    • Open source
    • 122K GitHub stars
    • Design and media
  3. Lets your coding agent inspect and test live browser pages through Chrome DevTools

    • Open source
    • 122K GitHub stars
    • Browser automation
  4. Sets up CI/CD quality gates, deployment strategies and rollback plans for agents

    • Open source
    • 122K GitHub stars
    • Developer tools
  5. Guides an agent through multi-axis code review before changes are merged

    • Open source
    • 122K GitHub stars
    • Developer tools
  6. Guides an agent to simplify working code for clarity without changing behavior

    • Open source
    • 122K GitHub stars
    • Developer tools