From mk
Performs a behavior-preserving simplification pass on the current diff, removing dead code, unnecessary abstractions, and reducing complexity before review.
How this skill is triggered — by the user, by Claude, or both
Slash command
/mk:simplify [file_or_directory]When to use
Use for behavior-preserving simplification passes on existing code. NOT for authoring-time quality enforcement (see mk:clean-code).
[file_or_directory]This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Runs after implementation, before review. Reduces complexity while preserving behavior.
Runs after implementation, before review. Reduces complexity while preserving behavior.
For ad-hoc quality review outside the current implementation diff, use
mk:clean-code.mk:simplifyis behavior-preserving and scoped to the current diff only.
Behavior must not change. Every simplification must pass the exact same tests as before. If tests fail after simplification, the simplification was wrong — revert it.
if (a && !b || (c && d)) → extract to named boolean or functionPhase 2 (Test — RED if `--tdd`) → Phase 3 (Build) → [mk:simplify] → Phase 4 (Review)
Simplification happens AFTER tests pass but BEFORE review. Reviewer sees the simplified code.
npx claudepluginhub ngocsangyem/meowkit --plugin mkSimplifies working code without changing behavior — reduces complexity, removes dead abstractions, and favors clarity over cleverness. Use when code is harder to read or maintain than it should be.
Reviews changed code for reuse, simplification, efficiency, and altitude cleanups, then applies behavior-preserving fixes after implementation approval.
Simplifies code for clarity and maintainability without changing behavior. Useful after features work, during code review, or when refactoring complex logic.