AGENT SKILL

enforce

Inspects design quality without a contract or enforces a frozen contract through measurable gates and native pivots. Use when the user wants an audit, conformity check, lint wiring, accessibility evidence, or fidelity verification.

License 许可
MIT
最近更新
2026-11-11
Stars
★ 1
Forks
0

01 前言 Front Matter

name
enforce
tags
[ "lint", "design-system", "gates", "ui", "contract", "validation" ]
author
François-Xavier Guillois
version
2.16.0
description
Inspects design quality without a contract or enforces a frozen contract through measurable gates and native pivots. Use when the user wants an audit, conformity check, lint wiring, accessibility evidence, or fidelity verification.
permissions
[ "files", "bash" ]
vibe_version
>=1.0.0

02 资源文件 154

03 SKILL.md 正文

Enforce

flowchart LR
  audit([target without contract]) --> inspect --> diagnostic([diagnostic only])
  contract([frozen contract]) --> build-linter --> wire-gates --> lint-instances --> pivot
  pivot -->|reference exists| fidelity-gate --> verdict([gate verdict])
  pivot -->|no reference| verdict

Read only the next action in the selected path.

Action Does
inspect inspect a target without claiming conformity
build-linter install the portable contract-derived linter
wire-gates wire contract checks into selected lifecycle points
lint-instances check and reconcile existing instances
pivot route native enforcement to an installed language provider
fidelity-gate measure rendered fidelity against a reference

Routing

  • "audit this design target without a contract" → inspect
  • "install the contract-derived linter" → build-linter
  • "wire the design gates" → wire-gates
  • "lint or reconcile these instances" → lint-instances
  • "create native enforcement for this language" → pivot
  • "measure fidelity against this reference" → fidelity-gate

Transversal rules

  • Resolve the plugin root and persistent host surface using host-portability.md.
  • A request to audit one page, component, or codebase without a contract runs inspect alone.
  • inspect is read-only and may report risks and missing evidence; it never emits green, maturity, or conformity.
  • Contract enforcement requires release.json; do not silently create or infer a contract.
  • Classify evidence using control-priorities.md: P0 and P1 block, while P2 only warns.
  • Preserve public exit codes 0 clean, 1 blocking violation, 2 invalid invocation or contract, 3 legacy contract, and 4 maturity below threshold.

04 同仓库更多 Skills