Identifies waste (muda), unevenness (mura), and overburden (muri) in codebases, producing small actionable incremental improvements across seven dimensions. Use for code health checks and tech debt sweeps.
How this skill is triggered — by the user, by Claude, or both
Slash command
/craftwork-professional:kaizenThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Smallest changes compounding into significant quality. Every file you touch leaves better than found.
Smallest changes compounding into significant quality. Every file you touch leaves better than found.
/kaizenRun all seven dimensions across the codebase. Full improvement map.
/kaizen "focus description"All dimensions, weighted and prioritized through user's lens.
Examples:
/kaizen "file sizes — nothing should exceed 500 LOC"/kaizen "naming consistency across the API layer"/kaizen "dead code and unused imports"/kaizen "error handling patterns"When focused:
[ALSO NOTED] — keep briefEvery finding maps to one. Classification taxonomy.
Code consuming effort without adding value.
| Type | Code manifestation |
|---|---|
| Defects | Bugs, broken tests, swallowed errors |
| Overproduction | Dead code, unused exports, premature abstractions |
| Waiting | Slow builds, blocking I/O without async |
| Transportation | Unnecessary data transformations, excessive layer mapping |
| Inventory | Stale TODOs (>6mo), commented-out code, stale branches |
| Motion | Excessive indirection, 5+ layer call chains for simple ops |
| Over-processing | Over-engineered abstractions, config for hypothetical flexibility |
Inconsistency forcing context-switching and guessing.
| Signal | Example |
|---|---|
| Naming | getUserData() vs fetchUserInfo() vs loadUserProfile() for same pattern |
| Mixed paradigms | Callbacks + promises + async/await in same codebase |
| Structure | Different folder layouts across features |
| Error handling | Some throw, some return null, some use Result types |
| Test style | Mixed assertion libs, inconsistent AAA |
Code units carrying too much.
| Signal | Default threshold |
|---|---|
| God files | > 400 LOC |
| God functions | > 40 LOC or cyclomatic complexity > 10 |
| Too many params | > 5 parameters |
| God modules | > 15 exports/public methods |
| Coupling | Imported by > 60% of codebase |
| Deep nesting | > 3 levels |
Findings in D2–D4:
[MUDA|MURA|MURI] [subtype]
📍 [file:line or pattern]
Finding: [one sentence]
Kaizen: [specific small change]
Effort: [trivial | small | medium]
Observe the real state, not the idealized version.
GEMBA SNAPSHOT
Languages: [detected]
Framework: [detected]
Total files: [N] | Total LOC: [N]
Largest file: [path] ([N] lines)
Deepest nest: [path] ([N] levels)
Most imported: [module] (by [N] files)
Test coverage: [detected or unknown]
Context files: [list found]
Scan each waste type. Prioritize:
For each inconsistency, identify the dominant pattern (most common variant) — standardize on it.
Additional fields:
Variants found: [list observed]
Dominant pattern: [most common — standardize on this]
Scan against Muri thresholds. Honor user-specified thresholds. Adjust upward where longer files are conventional (Java).
Additional fields:
Metric: [what] = [measured] (threshold: [N])
Impact: [why this hurts — "hard to test", "merge conflict magnet"]
| 5S | Code equivalent | Check |
|---|---|---|
| Sort (整理) | Remove unneeded | Dead files, unused deps, orphaned configs |
| Set in Order (整頓) | Everything in its place | Correct directories, logical boundaries, organized imports |
| Shine (清掃) | Clean regularly | Lint errors, formatting, stale comments, debug artifacts |
| Standardize (清潔) | Consistent practices | Documented patterns, enforced conventions |
| Sustain (躾) | Maintain discipline | CI checks, pre-commit hooks, quality gates |
Score each 🟢 Good | 🟡 Partial | 🔴 Needs work with one-line evidence.
Primary deliverable. Synthesize D2–D5, prioritized:
改善 IMPROVEMENT BACKLOG
# Type Score Effort Description Location
1 MUDA 3.0 trivial Remove 12 unused imports src/utils/*.ts
2 MURI 1.5 small Extract validation from handler src/api/orders.ts:45-120
3 MURA 1.5 small Standardize error returns src/services/*
...
Cap at 15 items. If more, note "N additional — run /kaizen with a focus to drill in."
PLAN: [Top 3 improvements to tackle first and why]
DO: [Concrete next steps — "In your next PR, ..."]
CHECK: [How to verify improvements landed]
ACT: [Systemic prevention — linter rules, CI, conventions to document]
Close with: "改善の精神: 今日の最善は、明日の出発点。"
Provides a checklist for code reviews covering functionality, security, performance, maintainability, tests, and quality. Use for pull requests, audits, team standards, and developer training.
npx claudepluginhub andurilcode/craftwork --plugin craftwork-professional