agentleFS
c-b-g-mc-b-g-m/claude-code-quickstart/skills/kaizen/SKILL.md

kaizen

Skill1 starsChanged 10 months agoMITView on GitHub

Use during /closeout or between development iterations to apply continuous improvement (Kaizen) analysis to the codebase and process.

10 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 10 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Muda (Waste): Remove dead code, redundant comments, or unused dependencies.

    line 17
  2. Distinctive:

    What's the smallest codebase that solves this?: Not the smallest change, but the smallest result.

    line 43
  3. Distinctive:

    What can we delete?: Every change is an opportunity to remove obsolete code.

    line 45
  4. Very specific:

    Structure: Create a file hierarchy (Root + linked files in .agent/instructions/).

    line 68

“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Kaizen: Continuous Improvement

Overview

Based on Japanese Lean methodology, Kaizen is the practice of continuous, incremental improvement. This skill ensures that every session doesn't just "finish" but also makes the system better, cleaner, and more efficient.

The Kaizen Loop

USAGE: Trigger this during /closeout to identify one small improvement to make before finalizing.

Focus Areas

  1. The 3Ms of Waste:
    • Muda (Waste): Remove dead code, redundant comments, or unused dependencies.
    • Mura (Inconsistency): Standardize naming conventions or UI styles across related files.
    • Muri (Overburden): Simplify over-complex functions or logic that "smells."
  2. Process Refinement:
    • Did a tool call fail repeatedly? Update the skill or project context to prevent it.
    • Was a manual step tedious? Automate it or create a workflow.

Implementing Improvements

Small, atomic changes are better than a single massive refactor.

  • "Refactor auth.ts to use helper" is a better Kaizen than "Rewrite auth system."

Reducing Entropy

More code begets more code. Entropy accumulates. This section biases toward the smallest possible codebase.

Core question: "What does the codebase look like after?"

The Goal

The goal is less total code in the final codebase - not less code to write right now.

  • Writing 50 lines that delete 200 lines = net win.
  • Keeping 14 functions to avoid writing 2 = net loss.

Three Questions

  1. What's the smallest codebase that solves this? Not the smallest change, but the smallest result.
  2. Does the proposed change result in less total code? Count lines before and after. If after > before, reconsider.
  3. What can we delete? Every change is an opportunity to remove obsolete code.

Red Flags

  • "Keep what exists" (Status quo bias).
  • "This adds flexibility" (YAGNI).
  • "Better separation of concerns" (separation isn't free, it costs lines).

Artifact Management

Refactor bloated agent instruction files (CLAUDE.md, etc.) to follow progressive disclosure principles - keeping essentials at root and organizing the rest into linked, categorized files.

Triggers

Use this when:

  • Instruction files (like CLAUDE.md) exceed 500 lines.
  • There are contradictions in the instructions.
  • The root file is difficult to navigate.

Process

  1. Analyze: Find contradictions and redundant instructions.
  2. Extract: Identify core instructions that must stay in the root file.
  3. Categorize: Group remaining instructions into logical categories.
  4. Structure: Create a file hierarchy (Root + linked files in .agent/instructions/).
  5. Prune: Flag vague or obsolete instructions for deletion.

Quick Reference

PhaseActionOutput
1. AnalyzeFind contradictionsList of conflicts to resolve
2. ExtractIdentify essentialsCore instructions for root file
3. CategorizeGroup remaining instructionsLogical categories
4. StructureCreate file hierarchyRoot + linked files
5. PruneFlag for deletionRedundant/vague instructions

Verification Checklist

  • Codebase is cleaner than it was at the start of the session.
  • At least one instance of "Muda" (waste) identified and addressed.
  • Process friction documented and mitigation proposed (or implemented).
  • Improvements are atomic and TDD-verified.
  • Net lines of code reduced (entropy check).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.