<< All versions

Skill v1.0.1

currentAutomated scan100/100
fullerzz/agent-skills/principle-model-the-domain

+5 new

──Details
PublishedNovember 26, 2026 at 10:56 PM
Content Hashsha256:2f936a4787e2ca1f...
Git SHA7acb92b9f412
Bump Typepatch
Compare with v1.0.0
──Files
Files (1 file, 1.1 KB)
SKILL.md1.1 KBactive
SKILL.md · 18 lines · 1.1 KB

name: principle-model-the-domain description: "Apply when writing stateful logic, or when code branches a lot or repeats a shape assumption across files. Encode the domain in a structure instead of scattered conditionals." disable-model-invocation: true metadata: version: "1.0.1"


Model the Domain

Encode the domain in a data structure instead of scattering it across conditionals. The right structure makes invalid states unrepresentable and deletes branches.

Reach for a state machine instead of scattered booleans or phase checks, a typed model instead of loose parameters, a map, registry, or discriminated union instead of branching spread across files, a reducer instead of ad hoc mutations, and an index, queue, or normalized collection where the access pattern calls for it.

Do not force it. Keep boring code when the shape is clear, local, and unlikely to grow, and distrust an abstraction that adds indirection without removing branches or invalid states.

The sign that you skipped this: a feature that grows an if/else chain by one more branch, or a second boolean that must stay in sync with the first.

← v1.0.0All versions