spec-enforcelisted
Install: claude install-skill nikolanovoselec/codeflare
# Spec Enforcement (orchestrator)
This skill is the spine for SDD spec enforcement. It runs the 24-row execution manifest against `sdd/` and orchestrates the conditional detail skills (`spec-enforce-ac`, `spec-enforce-truth`). It is one canonical contract: every agent runtime executes the same rules, severities, mandated commands, and finding vocabulary, so a repo gets identical findings regardless of which agent reviews it.
## Inputs
- `purpose`: `review` | `clean`. `review` is report-only — never edit the spec, queue, or audit files; return findings and evidence. `clean` applies fixes under the mode rules and records them in the `/sdd clean` audit.
- `diff`: the review window the caller hands you — an incremental `<base>..<head>` range on a re-review, the base...HEAD diff on a first PR-boundary review, or the full-tree view on `scope=all`. Enforce exactly the window provided; never widen a provided incremental window back out to the full PR diff. The "Git diff syntax" section below is only the **default** used when no window is provided.
- `scope`: `all` | `diff` (default `diff`)
- `mode`: `interactive` | `auto` | `unleashed` (read from `sdd/spec/config.yml` when nested layout exists, else `sdd/config.yml` on flat layout)
- `layout`: `nested` | `flat` (auto-detected via `test -d sdd/spec`)
**Layout-awareness.** All file globs in this skill respect the detected layout:
- Spec files: `sdd/spec/**/*.md` (nested) OR `sdd/*.md` excluding `README.md` (flat)
- Config: `sdd/spe