This skill should be used when the user asks to "add a constraint", "design a constraint", "write a harness rule", "choose enforcement type", "promote a constraint", "configure a verification slot", or needs guidance on the Constraints section of HARNESS.md.
From ai-literacy-superpowersnpx claudepluginhub russmiles/ai-literacy-superpowers --plugin ai-literacy-superpowersThis skill uses the workspace's default tool permissions.
references/promotion-ladder.mdSearches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Provides demand forecasting, safety stock optimization, replenishment planning, and promotional lift estimation for multi-location retailers managing 300-800 SKUs.
A constraint is a rule that must be enforced — not a suggestion, but a hard boundary. In the harness framework, each constraint occupies a verification slot that can be filled by either a deterministic tool or an agent-based review. The system does not care which backs the slot; only whether the constraint passed.
Every constraint in HARNESS.md has four fields:
deterministic, agent, or unverifiedcommit, pr, weekly, manualThe rule field is the most important. Apply the same enforceability test used for conventions:
Consult the context-engineering skill's convention patterns for
detailed examples.
| Question | If yes | If no |
|---|---|---|
| Does a deterministic tool exist for this? | Use deterministic | Continue |
| Is the rule precise enough for consistent LLM review? | Use agent | Use unverified |
| Is the team ready to set up tooling? | Use deterministic | Start with agent |
Start with unverified if unsure. Promote when ready.
For the full promotion lifecycle (unverified to agent to deterministic),
consult references/promotion-ladder.md.
| Scope | When it runs | Use for |
|---|---|---|
commit | PreToolUse hook (advisory) | Fast checks — formatting, naming |
pr | CI pipeline (strict) | Thorough checks — tests pass, no secrets |
weekly | Scheduled run | Slow checks — dependency audit, structural tests |
manual | /harness-audit only | Exploratory — new rules being calibrated |
Start with pr scope for most constraints. Move to commit only for
fast checks that benefit from immediate feedback. Use weekly for
checks that are too slow or expensive for every PR.
The harness-enforcer agent uses a uniform contract:
Input: constraint definition + scope + file set Output: pass/fail + findings list (file:line references)
This means the enforcer does not care whether it shells out to eslint
or reads code against a prose rule — the interface is the same. Promote
a constraint from agent to deterministic by changing the enforcement
field in HARNESS.md; no other changes needed.
For technical details on integrating custom tools into verification
slots, consult the verification-slots skill.
references/promotion-ladder.md — Complete lifecycle of a
constraint from unverified through agent to deterministic, including
partial promotion, demotion, and decision signals