← ClaudeAtlas

doc-enforce-laneslisted

SDD documentation lane-discipline enforcement — the canonical cross-agent contract. Runs Pass 3 (implementation-prose detection), Pass 4 (lane-violation signature catalogue), dual-narrative ADR detection, and Big-O jargon detection. Invoked conditionally by doc-enforce per file in diff.
nikolanovoselec/codeflare · ★ 26 · AI & Automation · score 68
Install: claude install-skill nikolanovoselec/codeflare
# Documentation Enforcement — Lane discipline This skill enforces the rules that police what content belongs in which `documentation/*` file. Invoked by `doc-enforce` (the spine) per file in diff. ## Inputs - `purpose`: `review` | `clean` (inherited from parent — `review` reports only; `clean` may move text only when content and backlinks are preserved) - `diff`: git diff against base - `scope`: `all` | `diff` - `mode`: `interactive` | `auto` | `unleashed` - `files`: list of changed doc files in diff (when scope=diff) - `layout`: `nested` | `flat` (auto-detected by parent `doc-enforce`) Operate only on the file set resolved by `doc-enforce`; `scope=all` supplies every doc file. **Layout-awareness.** Lane-violation auto-fix proposals resolve the target lane file path per the detected layout: - Nested: target lane = `documentation/lanes/{file}.md` - Flat: target lane = `documentation/{file}.md` The lane signatures (the WHAT) are layout-invariant; only the WHERE-it-goes path changes. ## Output Returns findings array + auto-fix actions. Writes evidence-count rows back to the spine's manifest: - `Pass 3 — Implementation-prose detection`: `ran (K files, M findings)` - `Pass 4 — Lane-violation detection`: `ran (K files, M findings)` ## Pass 3 — Implementation-prose detection Scan each file for paragraphs that read like AC text (`must`, `shall`, `ensures that`, `the system rejects`). These belong in `sdd/`. Flag MEDIUM with target REQ ID (or "no matching REQ": HIGH because