Source of Truth Preflight

•
61
•

Validates domain models and architectural boundaries before implementation to prevent duplicate abstractions and illegal code states.

This skill acts as a critical architectural gate for Claude Code, ensuring that new features or system changes align with existing canonical domain models. By performing an exhaustive inventory of existing types, identifying the single source of truth, and mapping acceptance criteria to specific enforcement points, it prevents technical debt, redundant logic, and 'illegal representable states' in complex codebases. It is an essential tool for developers performing non-trivial refactoring, database migrations, or introducing new runtime providers where consistency is paramount.

Características Principales

01Surprise Gate mechanism to pause and re-evaluate plans when unexpected codebase patterns emerge.
02Illegal-state analysis to identify and eliminate impossible data configurations via types or schemas.
0361 GitHub stars
04Classification of models into canonical, legacy, or adapter roles to maintain architectural integrity.
05Automated discovery of existing domain models and types using deep repository searching.
06Acceptance-to-enforcement mapping to ensure every requirement has a specific technical guardrail.

Casos de Uso

01Refactoring legacy codebases where multiple competing abstractions exist for the same domain concept.
02Implementing complex business logic that requires strict enforcement of state transitions and lifecycle guards.
03Updating domain models or database schemas to ensure consistency across microservices or subsystems.