decompose
Installation
SKILL.md
Decompose Component
Split a component into focused units. Keep behavior unchanged.
Goal
Improve readability and ownership. Do not create needless abstractions.
Rules
- Preserve behavior unless user approves behavior change.
- Prefer smallest correct split.
- Extract only when readability, reuse, or locality improves.
- Keep state near the code that owns it.
- Keep side effects explicit.
- Avoid moving code only to reduce file length.
- Do not create generic helpers for one unclear use.