Principle Model the Domain skill: what it does and how to install it
Refactors stateful logic around domain-fitting data structures to reduce branching, duplicated rules and invalid states.
Summary generated from the skill's documentation.
Install
$ npx skills add backnotprop/pstack --skill principle-model-the-domainRun it in a terminal. If your agent is already running, start a new session so it picks the skill up.
About this skill
What it does. Guides code changes towards structures such as state machines, typed models, registries, reducers and normalized collections that encode domain rules directly. It looks for repeated branches, shape assumptions and lifecycle risks, while avoiding abstractions that add indirection without simplifying the code.
When to use it. For stateful logic, growing conditional chains or repeated assumptions about data shape across files. It favours clear, local code when the existing design is unlikely to grow.
History
Repo stars
2.8k
Tracking since . A chart appears once there are 7 days of data.
Stars are counted for the whole repository, which holds 20 skills.
Installs
5.2k
Tracking since . A chart appears once there are 7 days of data.
Installs via skills.sh
Similar skills
- Domain ModelingBuilds and sharpens a project's domain model through a glossary and ADRs.
- PrototypeBuilds a throwaway prototype to answer a design question about a state model, logic or UI.
- Git Workflow and VersioningStructures git work: atomic commits, branching, conflict resolution, cleaning up a messy working tree and pull requests.