MR
Mayur Rathi
@sickn33
⭐ 47.3k GitHub stars

constraint-driven-development

constraint-driven-development is an code AI skill with a core value of Write the project quality bar as enforced CONSTRAINTS. It helps developers solve real-world problems in the code domain, boosting efficiency, automating repetitive tasks, and optimizing workflows.

Write the project quality bar as enforced CONSTRAINTS.md so agents stop quietly lowering it: coverage, performance, accessibility thresholds watched on every diff.

Last verified on: 2026-10-06

Quick Facts

Category code
Works With Claude
Source sickn33/antigravity-awesome-skills
Stars ⭐ 47.3k
Last Verified 2026-10-06
Risk Level Low
mkdir -p ./skills/constraint-driven-development && curl -sfL https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/main/skills/constraint-driven-development/SKILL.md -o ./skills/constraint-driven-development/SKILL.md

Run in terminal / PowerShell. Requires curl (Unix) or PowerShell 5+ (Windows).

Skill Content

# 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:


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


text
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.

text
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.

text
Q3: Do you have t

🎯 Best For

  • UI designers
  • Product designers
  • Claude users
  • Software engineers
  • Development teams

💡 Use Cases

  • Generating component mockups
  • Creating design system tokens
  • Code quality improvement
  • Best practice enforcement

📖 How to Use This Skill

  1. 1

    Install the Skill

    Copy the install command from the Terminal tab and run it. The SKILL.md file downloads to your local skills directory.

  2. 2

    Load into Your AI Assistant

    Open Claude and reference the skill. Paste the SKILL.md content or use the system prompt tab.

  3. 3

    Apply constraint-driven-development to Your Work

    Open your project in the AI assistant and ask it to apply the skill. Start with a small module to verify the output quality.

  4. 4

    Review and Refine

    Review AI suggestions before committing. Run tests, check for regressions, and iterate on the skill output.

❓ Frequently Asked Questions

Does this work with Figma?

Some design skills integrate with Figma plugins. Check the Works With section for supported tools.

Is constraint-driven-development compatible with Cursor and VS Code?

Yes — this skill works with any AI coding assistant including Cursor, VS Code with Copilot, and JetBrains IDEs.

Do I need specific dependencies for constraint-driven-development?

Check the install command and Works With section. Most code skills only require the AI assistant and your codebase.

How do I install constraint-driven-development?

Copy the install command from the Terminal tab and run it. The skill downloads to ./skills/constraint-driven-development/SKILL.md, ready to use.

Can I customize this skill for my team?

Absolutely. Edit the SKILL.md file to add team-specific instructions, examples, or workflows.

⚠️ Common Mistakes to Avoid

Skipping usability testing

AI-generated designs should be validated with real users before development.

Skipping validation

Always test AI-generated code changes, even for simple refactors.

Missing dependency updates

Check if the skill requires updated dependencies or new packages.

🔗 Related Skills