constraint-driven-development
Write a project's quality bar into CONSTRAINTS.md and flag changes that quietly lower it (new suppressions, skipped tests, stripped assertions, thresholds…
Skill by kashman001
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/kashman001-constraint-driven-development
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/constraint-driven-development
What's inside
- Skill name
constraint-driven-development- Description
- Write a project's quality bar into CONSTRAINTS.md and flag changes that quietly lower it (new suppressions, skipped tests, stripped assertions, thresholds edited down). Use when the user asks to set up constraints or define standards, when a threshold is needed and no number exists, or when checks keep being silenced to get to green.
- License
- MIT
- Instructions
- 316 lines in SKILL.md · view on GitHub
Files (3)
- SKILL.md
- floor-guard.md · references/
- workspace.patch
SKILL.md (first lines)
<!--
Vendored from github.com/addyosmani/agent-skills — skills/constraint-driven-development/
at commit 1be8e34 (2026-10-10). Upstream content (MIT — see
skills/vendored-skills.md) plus skills/constraint-driven-development/workspace.patch, which
scripts/sync-vendored-skills.sh re-applies at every refresh. Change the
patch, not this file.
-->
# 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.
```
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 |From kashman001/ai-workspace-template, MIT.
More from kashman001/ai-workspace-template
- 0.565score
create-work-item
kashman001
Scaffold a new developer-scoped project directory under work/ that follows the work-directory conventions (README + launcher next-session.md + ledger…
SkillAFreshness: AClaude Code +9 - 0.565score
doubt-driven-development
kashman001
Subject each non-trivial decision to a fresh-context adversarial review before it stands.
SkillAFreshness: AClaude Code +9 - 0.561score
doc-review
kashman001
Multi-perspective review of a technical document: audience gate first, six independent reviewer subagents, findings synthesized into prioritized…
SkillAFreshness: AClaude Code +9 - 0.560score
decision-log
kashman001
Capture the why behind a decision (choice, rejected alternative, constraint) as a commit trailer, a Tier-2 note in work/<project>/decisions.md, or a promoted…
SkillAFreshness: AClaude Code +9 - 0.557score
checkpoint
kashman001
Wrap up a finished chunk of work: reconcile the backlog, memory and docs, write the hand-off, confirm a clean branch, and emit a catch-up prompt for the next…
SkillAFreshness: AClaude Code +9 - 0.557score
design-for-testability
kashman001
Advisory six-question interrogation of a design: how will we test it, how does it fail, what is observable, and what is the cheapest check that proves it works.
SkillAFreshness: AClaude Code +9 - 0.544score
git-guardrails-claude-code
kashman001
Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute.
SkillAFreshness: AClaude Code +9 - 0.544score
diagnosing-bugs
kashman001
Diagnosis loop for hard bugs and performance regressions.
SkillAFreshness: AClaude Code +9 - 0.541score
create-verification-skill
kashman001
Generate a project-local verification skill that drives your app the way a user does — any language, framework, or platform.
SkillAFreshness: AClaude Code +9 - 0.539score
benchmark-checklist
kashman001
Vet a perf measurement (limiter, tuning, limits, errors, repeatability, relevance, and whether the work happened) before you report or act on it.
SkillAFreshness: AClaude Code +9 - 0.539score
codebase-design
kashman001
Shared vocabulary for designing deep modules.
SkillAFreshness: AClaude Code +9 - 0.539score
domain-modeling
kashman001
Build and sharpen a project's domain model.
SkillAFreshness: AClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Oct 12, 2026 (17 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from kashman001
- 0.565score
doubt-driven-development
kashman001
Subject each non-trivial decision to a fresh-context adversarial review before it stands.
SkillAFreshness: AClaude Code +9 - 0.565score
create-work-item
kashman001
Scaffold a new developer-scoped project directory under work/ that follows the work-directory conventions (README + launcher next-session.md + ledger…
SkillAFreshness: AClaude Code +9 - 0.561score
doc-review
kashman001
Multi-perspective review of a technical document: audience gate first, six independent reviewer subagents, findings synthesized into prioritized…
SkillAFreshness: AClaude Code +9 - 0.560score
decision-log
kashman001
Capture the why behind a decision (choice, rejected alternative, constraint) as a commit trailer, a Tier-2 note in work/<project>/decisions.md, or a promoted…
SkillAFreshness: AClaude Code +9 - 0.557score
checkpoint
kashman001
Wrap up a finished chunk of work: reconcile the backlog, memory and docs, write the hand-off, confirm a clean branch, and emit a catch-up prompt for the next…
SkillAFreshness: AClaude Code +9 - 0.557score
design-for-testability
kashman001
Advisory six-question interrogation of a design: how will we test it, how does it fail, what is observable, and what is the cheapest check that proves it works.
SkillAFreshness: AClaude Code +9
Cite this page
constraint-driven-development skill. Agent Mart. https://agentmart.dev/skills/kashman001-constraint-driven-development (last updated 2026-10-24)