From mk
Enforces KISS/DRY/YAGNI/SRP principles during authoring and ad-hoc quality reviews. Not for PR review or simplification passes.
How this skill is triggered — by the user, by Claude, or both
Slash command
/mk:clean-codeWhen to use
Use during authoring or ad-hoc quality reviews — KISS/DRY/YAGNI enforcement. NOT for post-hoc diff/PR review (see mk:review) or behavior-preserving simplification (see mk:simplify).
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
> Be **concise, direct, and solution-focused**.
Be concise, direct, and solution-focused.
For post-implementation complexity reduction within the current diff (Phase 3.5 workflow), use
mk:simplify.mk:clean-codeis for broader quality-standards enforcement at any phase.
| Principle | Rule |
|---|---|
| SRP | Single Responsibility — each function/class does ONE thing |
| DRY | Don't Repeat Yourself — extract duplicates, reuse |
| KISS | Keep It Simple — simplest solution that works |
| YAGNI | You Aren't Gonna Need It — don't build unused features |
| Boy Scout | Leave code cleaner than you found it |
references/coding-standards.md for detailed rules| Reference | When to load | Content |
|---|---|---|
| coding-standards.md | Step 3 — applying standards | Naming, functions, structure, anti-patterns, verification scripts |
| Do | Don't |
|---|---|
| Write code directly | Write tutorials |
| Let code self-document | Add obvious comments |
| Fix bugs immediately | Explain the fix first |
| Inline small things | Create unnecessary files |
| Name things clearly | Use abbreviations |
| Keep functions small | Write 100+ line functions |
The user wants working code, not a programming lesson.
npx claudepluginhub ngocsangyem/meowkit --plugin mkEnforces universal code quality rules — KISS, DRY, clean code, code review. Use when writing or reviewing any code.
Applies clean code principles (single responsibility, small functions, clear naming, complexity limits) to generated or refactored code. Triggered by 'clean code', 'refactor this', etc.
Applies SRP, DRY, YAGNI, naming, error handling, dependency direction, and Kent Beck's four rules of simple design when writing, reviewing, or refactoring code.