app-entropy-fix
Installation
SKILL.md
App Entropy Fix
Target: the path in $ARGUMENTS, or the current project root. Budget: the number in $ARGUMENTS, or 10 rounds.
Adapted from Khazix, the /goal architecture-governance prompt: https://x.com/Khazix0918/status/2126324185626734795
Core idea: assume today is the product's first day, but every real requirement, business constraint and product shape is already known. Design the codebase that should exist, then converge on it through safe, incremental, verified refactors.
Lenses
Each finding sits under one:
- Single source of truth: a business rule, data definition, config value, piece of state or design token defined in more than one place.
- Canonical implementation: two implementations of one meaning or job (parallel stacks, duplicated logic, temporary patches, compatibility layers). Compatibility with a real caller or a stated contract stays.
- Deep modules (Ousterhout, A Philosophy of Software Design): shallow modules, pass-through layers, abstractions that leak their internals.
- Cohesion and coupling: unclear ownership or dependency direction, cycles, implicit coupling, cross-layer access, shared mutable state.
- Locality of change: one business concept whose change touches many unrelated files.
- Deletion over accumulation: complexity that can simply go.
- Enforceable architecture: an agreed rule with nothing stopping it from regressing (type, lint, AST rule, contract test, CI step).