Agent Skill
2/7/2026

kaizen

Apply continuous improvement methodology to code, processes, and workflows. Use when optimizing development practices, reducing waste, or improving team efficiency.

A
allanninal
0GitHub Stars
1Views
npx skills add allanninal/claude-code-skills

SKILL.md

Namekaizen
DescriptionApply continuous improvement methodology to code, processes, and workflows. Use when optimizing development practices, reducing waste, or improving team efficiency.

name: kaizen description: Apply continuous improvement methodology to code, processes, and workflows. Use when optimizing development practices, reducing waste, or improving team efficiency.

Kaizen - Continuous Improvement

When to Use This Skill

  • Optimizing development workflows
  • Reducing technical debt incrementally
  • Improving code quality over time
  • Streamlining CI/CD pipelines
  • Enhancing team productivity
  • Post-mortem analysis and improvements

Core Principles

1. Small, Incremental Changes

❌ Big Bang Approach:
"Rewrite the entire authentication system"

✅ Kaizen Approach:
Week 1: Add logging to identify slow queries
Week 2: Optimize the 3 slowest queries
Week 3: Add caching for repeated queries
Week 4: Refactor session management
Week 5: Update tests and documentation

2. Eliminate Waste (Muda)

Waste TypeSoftware ExampleImprovement
OverproductionFeatures no one usesValidate with users first
WaitingSlow CI/CDParallelize tests
TransportManual deploymentsAutomate deployment
Over-processingPremature optimizationYAGNI principle
InventoryStale branchesRegular cleanup
MotionContext switchingBatch similar tasks
DefectsBugs in productionShift-left testing

3. Standardize, Then Improve

## Current Standard
1. Document the current process
2. Measure baseline metrics
3. Identify one improvement
4. Implement and measure
5. If better, make it the new standard
6. Repeat

Daily Kaizen Practices

Code Review Checklist

## Before Submitting PR
- [ ] Self-reviewed for obvious issues
- [ ] Tests pass locally
- [ ] No commented-out code
- [ ] No console.log/print statements
- [ ] Documentation updated if needed

## During Review
- [ ] Is this the simplest solution?
- [ ] Can any code be reused?
- [ ] Are there any edge cases missed?
- [ ] Is error handling adequate?

## After Merge
- [ ] Delete the branch
- [ ] Update related documentation
- [ ] Note any follow-up tasks

5 Whys Analysis

Problem: Production deployment failed

1. Why? → The database migration timed out
2. Why? → The migration was locking a large table
3. Why? → We added an index on a 10M row table
4. Why? → We didn't test with production-sized data
5. Why? → Our test database only has 1000 rows

Root Cause: Test environment doesn't reflect production scale
Solution: Create a production-like test dataset

Gemba Walk (Go and See)

## Developer Experience Audit

Walk through a new developer's first day:

1. Clone repository
   - How long does it take?
   - Is README clear?

2. Set up environment
   - How many steps?
   - What errors occur?

3. Run tests
   - Do they pass first time?
   - How long do they take?

4. Make first change
   - Is the code structure clear?
   - Can they find what to modify?

5. Submit PR
   - Is the process documented?
   - How long until review?

Document friction points → Prioritize → Fix one per week

Improvement Cycles

Plan-Do-Check-Act (PDCA)

## PDCA for Build Time Optimization

### PLAN
Current state: Build takes 15 minutes
Target: Reduce to under 5 minutes
Hypothesis: Caching dependencies will help most

### DO
- Implement dependency caching
- Run 10 builds with and without

### CHECK
Results:
- With cache: avg 7 min (53% improvement)
- Without: avg 15 min
- Target not met, but significant improvement

### ACT
- Make caching the standard
- Next cycle: Focus on test parallelization

A3 Problem Solving

┌─────────────────────────────────────────────────────┐
│ PROBLEM: Slow API Response Times                     │
├─────────────────────────────────────────────────────┤
│ CURRENT STATE:                                       │
│ - Average response: 2.5s                            │
│ - P99 response: 8s                                  │
│ - User complaints: 15/week                          │
├─────────────────────────────────────────────────────┤
│ TARGET STATE:                                        │
│ - Average response: <500ms                          │
│ - P99 response: <2s                                 │
│ - User complaints: <3/week                          │
├─────────────────────────────────────────────────────┤
│ ROOT CAUSE ANALYSIS:                                 │
│ 1. N+1 queries in user listing (40% of slow calls)  │
│ 2. No caching on product catalog (30%)             │
│ 3. Unoptimized images (20%)                        │
│ 4. Network latency (10%)                           │
├─────────────────────────────────────────────────────┤
│ COUNTERMEASURES:                                     │
│ 1. Add eager loading → Owner: Alice → Due: Jan 15  │
│ 2. Implement Redis cache → Owner: Bob → Due: Jan 22│
│ 3. Add image CDN → Owner: Carol → Due: Jan 29      │
├─────────────────────────────────────────────────────┤
│ VERIFICATION:                                        │
│ Weekly metrics review every Monday                  │
│ Full assessment: Feb 1                              │
└─────────────────────────────────────────────────────┘

Metrics to Track

Development Velocity

## Weekly Metrics

| Metric | This Week | Last Week | Trend |
|--------|-----------|-----------|-------|
| Lead Time | 3.2 days | 4.1 days | ✅ |
| Cycle Time | 1.5 days | 1.8 days | ✅ |
| Deployment Freq | 8 | 5 | ✅ |
| Change Fail Rate | 5% | 8% | ✅ |
| MTTR | 45 min | 2 hrs | ✅ |

Code Quality

| Metric | Target | Current | Status |
|--------|--------|---------|--------|
| Test Coverage | 80% | 75% | ⚠️ |
| Code Duplication | <5% | 3% | ✅ |
| Cyclomatic Complexity | <10 | avg 8 | ✅ |
| Tech Debt Ratio | <5% | 7% | ⚠️ |
| Bug Escape Rate | <2% | 1.5% | ✅ |

Kaizen Events

Mini Kaizen (1 hour)

Focus: One specific pain point
Participants: 2-3 people
Outcome: Immediate fix or clear action item

Example: "Fix the flaky test in CI"
1. Identify the test (10 min)
2. Root cause analysis (20 min)
3. Implement fix (20 min)
4. Verify and document (10 min)

Team Kaizen (Half day)

Focus: Process or workflow improvement
Participants: Entire team
Outcome: New standard process

Agenda:
1. Current state mapping (1 hr)
2. Identify waste/friction (30 min)
3. Brainstorm improvements (30 min)
4. Prioritize (30 min)
5. Action planning (1 hr)

Improvement Backlog

## Kaizen Backlog

### Quick Wins (< 1 day)
- [ ] Add pre-commit hooks for linting
- [ ] Create PR template
- [ ] Update outdated README sections

### Medium Effort (1-3 days)
- [ ] Set up automated dependency updates
- [ ] Implement API response caching
- [ ] Add error monitoring alerts

### Projects (1-2 weeks)
- [ ] Migrate to faster test framework
- [ ] Implement feature flags system
- [ ] Set up staging environment

Rule: Complete at least one improvement per sprint

Anti-Patterns to Avoid

Anti-PatternBetter Approach
Big rewrite projectsSmall incremental refactors
Blame individualsFix the process
Ignore small issuesFix broken windows immediately
Skip documentationDocument as you change
Measure everythingFocus on 3-5 key metrics

Checklist

  • Identify one improvement opportunity
  • Measure current state
  • Make one small change
  • Measure the result
  • Standardize if improved
  • Share learning with team
  • Schedule next improvement
Skills Info
Original Name:kaizenAuthor:allanninal