Sign in
Explore
Prompts · PromptTesting & SecurityReviewed

constraints

Define and enforce this project's quality bar — interview, sane defaults, CONSTRAINTS.md

Kind
Prompt
Works with
Claude Code
Source
addyosmani/agent-skills @ 2686b620fc1f
Path
.claude/commands/constraints.md
License
MIT
Jobs
Requirements interviews, Guardrails
InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
Invoke the agent-skills:constraint-driven-development skill.

$ARGUMENTS

Default behaviour with no arguments: set up constraints for this repository.

1. **Detect first.** Read package.json / pyproject.toml / go.mod, the test runner, existing lint configs, current coverage output, CI workflows, and the agent harness in use. Report what you found in two lines. Never ask for anything you can read.

2. **Interview, at most four questions.** One at a time, each with your best guess and a usable default so "I don't know" still produces a working config:
   - Which dimensions beyond the floor (coverage, security, performance, accessibility, architecture)
   - Block or warn when a check fails mid-task
   - Target numbers, or measure today's values and hold them
   - Slowest check tolerated before handing work back

3. **Write CONSTRAINTS.md** at the repo root with a Floor section, enforced numbers, measured-only metrics with today's values, and an exceptions table with owners and expiry dates. Every number needs a stated reason.
…