constraints
Define and enforce this project's quality bar — interview, sane defaults, CONSTRAINTS.md
Skill by Qiuyi-Hong
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/qiuyi-hong-constraints
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
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/constraints
What's inside
- Skill name
constraints- Description
- Define and enforce this project's quality bar — interview, sane defaults, CONSTRAINTS.md
- License
- MIT
- Instructions
- 33 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
<!-- Generated from upstream/agent-skills/.claude/commands/constraints.md by scripts/generate-command-skills.ts; do not edit. --> > **Pi compatibility:** Upstream `/command` references map to generated `/skill:command` skills. `agent-skills:<name>` refers to the bundled Pi skill `<name>` (`/skill:<name>`). `$ARGUMENTS` refers to arguments appended by Pi in the final `User:` line. 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. 4. **Install what each picked dimension needs.** A dimension with a number and no tool behind it is an aspiration. Use the de facto tool so existing config keeps working: Semgrep for code scanning, gitleaks (always `--redact`) for secrets, osv-scanner for dependencies, axe-core for accessibility, Lighthouse for web vitals, size-limit for bundles, dependency-cruiser for boundaries, Stryker for assertion quality. Record the exact command next to each rule in CONSTRAINTS.md. Accessibility and performance need a running URL; if the project has none, say so and drop the dimension rather than inventing a check. Add the commands to package.json as check:fast / check:task / check:full. 5. **Place each check by cost.** Types, lint and secrets in the edit loop (seconds). Related tests and changed-line coverage at task end (under 90s). Everything else at review or in CI. Scope checks to the diff, not the whole repo. 6. **Point the agent at it.** Add a line to CLAUDE.md telling agents to read CONSTRAINTS.md and never weaken it to make a change pass. 7. **Verify.** Run the constraints against the current branch. If anything fails that the user disagrees with, fix the constraint now rather than leaving a gate people will learn to ignore. Sub-commands: - `/constraints check` — run the current constraints against this branch and report - `/constraints guard` — inspect the diff for a weakened bar: lowered thresholds, skipped or deleted tests, new suppression comments, unfinished stubs, new exceptions - `/constraints ratchet` — record today's measured values as the floor that must not fall
From Qiuyi-Hong/pi-addyosmani-skills, MIT.
More from Qiuyi-Hong/pi-addyosmani-skills
- 0.558score
ship
Qiuyi-Hong
Run the pre-launch checklist via parallel fan-out to specialist personas, then synthesize a go/no-go decision
SkillAFreshness: AClaude Code +9 - 0.558score
code-simplify
Qiuyi-Hong
Simplify code for clarity and maintainability — reduce complexity without changing behavior
SkillAFreshness: AClaude Code +9 - 0.558score
build
Qiuyi-Hong
Implement tasks incrementally — build, test, verify, commit.
SkillAFreshness: AClaude Code +9 - 0.553score
spec
Qiuyi-Hong
Start spec-driven development — write a structured specification before writing code
SkillAFreshness: AClaude Code +9 - 0.553score
plan
Qiuyi-Hong
Break work into small verifiable tasks with acceptance criteria and dependency ordering
SkillAFreshness: AClaude Code +9 - 0.553score
review
Qiuyi-Hong
Conduct a five-axis code review — correctness, readability, architecture, security, performance
SkillAFreshness: AClaude Code +9 - 0.528score
test
Qiuyi-Hong
Run TDD workflow — write failing tests, implement, verify.
SkillAFreshness: AClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Sep 22, 2026 (1 month ago)
- Last release
- Sep 28, 2026 (1 month 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 Qiuyi-Hong
- 0.558score
ship
Qiuyi-Hong
Run the pre-launch checklist via parallel fan-out to specialist personas, then synthesize a go/no-go decision
SkillAFreshness: AClaude Code +9 - 0.558score
code-simplify
Qiuyi-Hong
Simplify code for clarity and maintainability — reduce complexity without changing behavior
SkillAFreshness: AClaude Code +9 - 0.558score
build
Qiuyi-Hong
Implement tasks incrementally — build, test, verify, commit.
SkillAFreshness: AClaude Code +9 - 0.553score
spec
Qiuyi-Hong
Start spec-driven development — write a structured specification before writing code
SkillAFreshness: AClaude Code +9 - 0.553score
plan
Qiuyi-Hong
Break work into small verifiable tasks with acceptance criteria and dependency ordering
SkillAFreshness: AClaude Code +9 - 0.553score
review
Qiuyi-Hong
Conduct a five-axis code review — correctness, readability, architecture, security, performance
SkillAFreshness: AClaude Code +9
Cite this page
constraints skill. Agent Mart. https://agentmart.dev/skills/qiuyi-hong-constraints (last updated 2026-10-24)