← ClaudeAtlas

bidirectional-differentiallisted

Audit coherence across an arrow of intent by running two parallel fresh Claude sessions — one reconstructs code from a single EARS, the other reconstructs the EARS from stripped code — then classifies the drift between them. Use when the user invokes /differential-audit, asks to audit EARS-to-code drift for a feature or segment, wants a differential round-trip on a specific spec, or reaches Phase 6 code-complete in linked-intent-dev with arrow-maintenance overlay present and a touched-EARS set to consider. Surfaces intent that the code encodes but the EARS doesn't state, and requirements the EARS states but the code under-pins. Requires docs/arrows/ overlay. Heavy per-EARS cost in subprocess spawns and Anthropic API spend; scope via the opening conversation before running.
jszmajda/lid · ★ 68 · Code & Development · score 79
Install: claude install-skill jszmajda/lid
# Bidirectional Differential This skill runs a bidirectional differential audit on EARS↔code pairs. The audit is **advisory** — findings concentrate human review on specific cases, and acting on findings is always user-judged. When the audit surfaces drift, the recommended repair path walks the whole arrow: validate intent with the user, then cascade EARS → Tests → Code. ## When to act **Command mode** — user invokes `/differential-audit`: - No arguments → open the scoping conversation (see §Scoping). - One or more EARS IDs as arguments → audit them directly with configured defaults; skip the scoping conversation. **Ambient mode** — at linked-intent-dev's Phase 6 boundary (code is complete for a change) in a project where arrow-maintenance's overlay exists and ambient triggering is not disabled. Emit **one batched prompt** listing every EARS the change touched, offering `all`, `none`, a comma-separated subset, or `skip-arrow`. If ambient is disabled in the project's `CLAUDE.md` (see §Configuration), do not fire. Ambient mode is advisory: declining, skipping, or any classification outcome MUST NOT block Phase 6 completion. ## Hard precondition — arrow-maintenance overlay Before spawning any blind sessions in either mode, verify the arrow-maintenance overlay exists: - `docs/arrows/index.yaml` present, and - at least one per-arrow overlay file under `docs/arrows/`. If absent, abort with: > *Bidirectional differential audits attach to the arrow-maintenance overlay. Run