Skip to content
Skills Library
AI & agents · Testing

constraint-enforce

/constraint-enforce

Use when the user asks to "/constraint-enforce", "enforce constraints", "run constraint tests", "跑 constraint 驗證", or "run constraint enforcement". Runs the 4-layer deterministic enforcement pipeline on generated constraint artifacts.

Author
caasi ↗
Repository
dong3 ↗
Licence
MIT
Last repository change
19.10.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
4
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 19.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Use when the user asks to "/constraint-enforce", "enforce constraints", "run constraint tests", "跑 constraint 驗證", or "run constraint enforcement". Runs the 4-layer deterministic enforcement pipeline on generated constraint artifacts.

Triggers from the description

enforce constraintsrun constraint tests跑 constraint 驗證run constraint enforcement
Original author description

Use when the user asks to "/constraint-enforce", "enforce constraints", "run constraint tests", "跑 constraint 驗證", or "run constraint enforcement". Runs the 4-layer deterministic enforcement pipeline on generated constraint artifacts.

How it works

  1. Workflow
  2. Final Report
Original SKILL.md headings · 24 lines, 152 words
SKILL.md preview
---
name: constraint-enforce
description: >-
  Use when the user asks to "/constraint-enforce", "enforce constraints",
  "run constraint tests", "跑 constraint 驗證", or "run constraint
  enforcement". Runs the 4-layer deterministic enforcement pipeline on
  generated constraint artifacts.
---

# Constraint Enforce

You run the deterministic enforcement pipeline on generated constraint artifacts and report results.

## Workflow

1. **Detect language** — check the repo's build files (`package.json`, `dune-project`, `Cargo.toml`, `pyproject.toml`, etc.) to determine the language. Use the toolchain matrix in `constraint-generate/references/toolchain-matrix.md` for the correct commands per layer per language.
2. Read `references/enforcement-layers.md` for the layer execution order and semantics
3. Run layers in order: Lint → Validation → PBT → Mutation Testing, using the detected language's tools
4. Fail fast: fix issues at each layer before proceeding to the next
5. For Layer 3+4 feedback loop: read `references/mutation-feedback-guide.md`
6. Default mutation score target: 80%
7. Max 3 feedback rounds
8. Escalation: after 3 rounds or on unresolvable mutants, report to user with mutant summary table

## Final Report

For each layer:
- **Status:** pass / fail
- **Mutation score** (Layer 4)
- **Surviving mutants** (if any)
- **Recommendations** for next steps
Files in this package (4)
  • README.md 1 KB
  • SKILL.md 1 KB
  • references/enforcement-layers.md 6 KB
  • references/mutation-feedback-guide.md 4 KB

Versions

The database has no other skills named constraint-enforce.

Database snapshot: 13.11.2026 · package version fdb531208dcc (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100constraint-generate
    Use when the user asks to "/constraint-generate", "generate constraint tests", "generate constraint artifact", "產生 constraint 的 test", or "generate test from constraint". Reads constraints/*.md and produces deterministic test artifacts.
  • 100constraint-design
    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.
  • 100negative-prompting-constraint-enforcement
    Use this skill when enforce strict negative constraints and forbidden output behaviors in LLM generation.
  • 85enforce-workflow-constraints
    Use when any bounded workflow starts or reaches an action, path, proposal, or merge boundary. Refuses rather than default-allow on an unreadable constraint set.
  • 90enforce-workflow-constraints
    Use when any bounded workflow starts or reaches an action, path, proposal, or merge boundary. Refuses rather than default-allow on an unreadable constraint set.
  • 100dos-enforce-tune
    Tune DOS enforcement policy knobs (`[intervention_policy]`, `[intervention]`, `[improve]`) from false-deny versus held-catch evidence. Use when running `dos enforce-tune` to keep only measured net_task_delta gains and escalate repeated non-keeps.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.