constraint-design

Designs verifiable harness constraints with enforcement types, scopes, and promotion lifecycle guidance.

Updated May 24, 2026
One-click install
npx skills add https://github.com/MWest2020/skill-forge --skill constraint-design-mwest2020
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: constraint-design
Source: https://github.com/MWest2020/skill-forge/tree/main/skills/constraint-design
Command: npx skills add https://github.com/MWest2020/skill-forge --skill constraint-design-mwest2020

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Teams struggle to turn coding conventions and quality rules into enforceable checks. This Skill guides the design of constraints for HARNESS.md so every rule is written precisely enough to be verified by a deterministic tool or an agent-based review. ## Core Features & Use Cases - Constraint Anatomy: Defines each constraint with four fields — Rule, Enforcement (deterministic, agent, or unverified), Tool, and Scope (commit, pr, weekly, manual). - Enforcement Selection: Decision tables for choosing between deterministic tooling and agent review, including command risk classification by reversibility and blast radius. - Promotion Lifecycle: A reference guide covering the ladder from unverified to agent to deterministic enforcement, including partial promotion and demotion. - Use Case: When adding a rule like "no secrets in source files" to a project harness, use this Skill to write a verifiable rule, pick gitleaks as the deterministic tool, and set commit scope. ## Quick Start Ask the agent to design a constraint for HARNESS.md that enforces your chosen rule, specifying the enforcement type and scope.

Frequently Asked Questions about constraint-design

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write a verifiable constraint rule for HARNESS.md?

Write the rule precisely enough for objective verification: describe what compliant code looks like, describe what violating code looks like, and confirm a reviewer could check it without ambiguity. Each constraint needs Rule, Enforcement, Tool, and Scope fields.

How do I choose between deterministic and agent enforcement?

Use deterministic enforcement when a tool exists for the rule, such as a linter or formatter. Use agent enforcement when the rule is precise enough for consistent LLM review but no tool exists. Start with unverified if unsure and promote later.

What scope should I use for a harness constraint?

Use commit scope for fast checks like formatting, pr scope for thorough checks like tests and secret detection, weekly for slow checks like dependency audits, and manual for exploratory rules being calibrated. Start with pr scope for most constraints.

When should I promote a constraint from agent to deterministic?

Promote when a deterministic tool can check the rule, when you want faster and cheaper enforcement, or when the constraint wording has been stable across several audit cycles. Partial promotion is also possible, combining deterministic presence checks with agent quality review.

What are the limitations of agent-based constraint enforcement?

Agent enforcement is non-deterministic and may give different results on the same input. It is also token-intensive and slower than deterministic tools, so it suits nuanced rules that resist mechanical checking rather than high-frequency checks.