/ai-literacy-habitat:harness-constrainfrom ai-literacy-habitat
Adds or modifies a constraint in HARNESS.md with interactive guidance on enforcement type, scope, and test run. Supports promoting constraints from unverified to agent or deterministic.
Ships in ai-literacy-habitat. Installing the plugin adds it to Claude Code.
Add or modify a single constraint interactively.
Read the constraint-design and verification-slots skills from this
plugin before proceeding. They provide the design framework and
technical reference for constraints.
If no HARNESS.md exists, tell the user to run /harness-init first.
Ask the user what rule they want to add or modify. If they describe
something vague, help them refine it using the enforceability test
from the constraint-design skill.
Read HARNESS.md's Constraints section. If a similar constraint already exists, offer to modify it (e.g., promote from unverified to enforced) instead of adding a duplicate.
Dispatch the harness-discoverer agent to check whether a deterministic
tool exists in the project that could enforce this constraint. Also
check common tools for the project's stack that could be installed.
Present options:
Ask when the check should run:
commit — advisory warning during editing (fast checks only)pr — strict CI gate (most constraints)weekly — periodic sweep (slow or expensive checks)manual — on-demand via /harness-auditDispatch the harness-enforcer agent to run a test verification of
the new constraint against the current codebase. Show the user what
would pass or fail.
Add the new constraint (or update the existing one) in HARNESS.md's Constraints section. Follow the standard format:
### [Constraint name]
- **Rule**: [precise, enforceable rule text]
- **Enforcement**: [deterministic | agent | unverified]
- **Tool**: [tool command or "harness-enforcer" or "none yet"]
- **Scope**: [commit | pr | weekly | manual]
This step is mandatory. After adding or updating the constraint
in HARNESS.md, read the constraint block you just wrote and verify
its structure against the constraint template in
templates/HARNESS.md.
Structural checks:
deterministic, agent,
unverifiedcommit, pr, weekly, manualGovernance requirement field is present, all governance
fields must also be present: Operational meaning, Verification
method, Evidence, Failure action, Frame checkIf any check fails, fix the constraint block in place:
Do not restart the constraint conversation. Fix the output directly.
If the constraint is deterministic and PR-scoped, add the tool step to the CI workflow file.
Commit the updated HARNESS.md (and CI file if changed).
What the command file sets; muted values are Claude Code's defaults
constraint-management, harness, enforcement, code-quality, automation
7-day visitors to each command page
npx claudepluginhub joshedwards237/ai-literacy-habitat --plugin ai-literacy-habitat29 commands in this plugin
/assessRun an AI literacy assessment — scan the repo for evidence, ask clarifying questions, produce a timestamped assessment document, apply immediate habitat fixes, recommend workflow changes, capture a reflection, and add a literacy level badge to the README/carpaccioRun the carpaccio agent (cadence governor) on a task description — produces a slicing record at docs/superpowers/slices/<task-slug>.md; use at orchestrator step 0 or before spec-writer when running manually/choice-cartographRun the Choice Cartographer (decision-archaeology agent) on a spec — produces the choice-story record at docs/superpowers/stories/<slug>.md; use after spec-mode /diaboli dispositions are resolved, before plan approval2 plugins ship this exact command · first indexed May 10, 2026
Other plugins' commands for the same job