Codex Source-of-Truth Preflight for Domain Models and State
Find canonical types, schema, and enforcement boundaries before changing a domain concept, lifecycle state, or persistence path.
中文Install in Codex
Codex with a thoughtbox or target checkout, its current implementation, docs, and the concept to change.
- Copy the entire pinned `.codex/skills/source-of-truth-preflight/` directory to `.agents/skills/source-of-truth-preflight/` in the target checkout.
- Open Codex in that checkout and invoke `$source-of-truth-preflight` with the example task and desired output.
Example task
Give `$source-of-truth-preflight` a practice request to archive notes. Ask it to identify the existing state type and persistence constraints before edits.What to check
The brief identifies the authoritative state model, its consumers, and the smallest change that fits. Open conflicts are traceable.
Original SKILL.md on GitHub · Updated
Frequently asked question
When is this preflight useful?
Use it for lifecycle and persistence changes, new types, or a concept defined in several places.