Principle model the domain

From xinhi6716/axiom-atropos · View interactive version

Principle model the domain is an AI agent skill from the GitHub repository xinhi6716/axiom-atropos. Apply when writing stateful logic, or when code branches a lot or repeats a shape assumption across files.

How to use this skill

Skill file

Host integration: first read HOSTS.md; it maps the upstream workflow to the current agent host.

Model the Domain

Encode the real domain in a data structure instead of scattering it across conditionals. A structure that matches the domain makes invalid states unrepresentable and deletes branches. Choosing it at write time is cheap. Recovering it later reads as a refactor and gets deferred.

Reach for:

Do not force an abstraction. Prefer boring code if the current shape is already clear, local, and unlikely to grow. Be skeptical of an abstraction that adds indirection without removing branches, duplicated rules, invalid states, or lifecycle risk.

The sign that you skipped this is a new feature that grows an existing if/else chain by one more branch, or a second boolean that must stay in sync with the first. Temporal decomposition is another sign. Phase-named modules repeat the same domain rules across steps.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.