skill
kaizen-engineering-skill
⚡ Autonomous multi-agent engineering swarm & compounding KPT retrospective engine for AI coding assistants. Enforces DDD, Clean Architecture, and 4 quality gates.
Set up
Skills are installed by placing their folder where your agent loads skills.
The download comes from github.com/techuy06/kaizen-engineering-skill itself, not from our server, so what you get is exactly what its author published.
Install instructions come from the README
README
synced Oct 22, 2026⚡ Kaizen Engineering Skill
Autonomous Multi-Agent Swarm Orchestration & Compounding KPT Retrospective Engine for AI Software Development.
📖 Overview
Standard AI coding assistants tend to drift over long conversations: context windows get polluted by raw logs, architecture degrades, brittle mocks replace real tests, and lessons learned in one task are forgotten in the next.
Kaizen Engineering transforms single-prompt AI assistants into a disciplined 5-role autonomous engineering department. It enforces Domain-Driven Design (DDD), Clean Architecture, distributed systems resilience, and continuous self-improvement through structured KPT (Keep, Problem, Try) retrospectives.
🏛️ 1. Swarm Topology & Subagent Roles
Instead of one monolithic prompt attempting everything, the workflow dispatches focused responsibilities across specialized agent roles:
┌────────────────────────────────────────────────────────┐
│ LEAD SOFTWARE ENGINEER (ORCHESTRATOR) │
│ • Owns roadmap, RFC approvals, & KPT retrospectives │
│ • Enforces Global Engineering Standard & gates │
│ • Dispatches discrete tasks to specialist subagents │
└───────────────────────────┬────────────────────────────┘
│
┌──────────────────────────────────┬───────────────┴───────────────┬──────────────────────────────────┐
▼ ▼ ▼ ▼
┌───────────────────────┐ ┌───────────────────────┐ ┌───────────────────────┐ ┌───────────────────────┐
│ RFC ARCHITECT │ │ CORE SYSTEMS DEV │ │ RELIABILITY DEV │ │ QA & VERIFICATION │
│ • Eric Evans DDD │ │ • Clean Architecture │ │ • Kleppmann DDIA │ │ • Khorikov 4 Pillars │
│ • Schemas & Invariants│ │ • Ousterhout Deep Mod │ │ • Nygard Stability │ │ • State-based tests │
│ • Failure mode design │ │ • Pure Domain Logic │ │ • Idempotency & DLQ │ │ • Zero brittle mocks │
└───────────────────────┘ └───────────────────────┘ └───────────────────────┘ └───────────────────────┘
| Role | Core Directive & Theoretical Foundation |
|---|---|
| Lead Engineer (Orchestrator) | Maintains the high-level roadmap, manages subagent lifecycles, avoids context pollution from raw logs, and synthesizes the cycle retrospective. |
| RFC Architect | Eric Evans (DDD): Defines Ubiquitous Language, Aggregate Roots, SQL DDL, mathematical invariants, and failure modes before code is written. |
| Core Systems Dev | John Ousterhout (Deep Modules) & Clean Architecture: Implements pure domain entities and business rules with zero dependencies on frameworks, databases, or ORMs. |
| Reliability Dev | Martin Kleppmann (DDIA) & Michael Nygard (Release It!): Builds idempotency tables, distributed leases, circuit breakers, backoff with jitter, and dead-letter queues (DLQ). |
| QA & Verification Engineer | Vladimir Khorikov (Unit Testing): Writes classical, state-based tests that execute in $< 1$s. Replaces external APIs with Stateful In-Memory Fakes instead of brittle mocks. |
🔄 2. The 5-Stage Cycle Loop
Every engineering cycle moves through a deterministic pipeline:
[1. Ingest Previous KPT] ──► Read previous Keep (laws) & Try (mandatory tasks)
│
▼
[2. Spec / RFC Alignment] ─► Verify domain models, schemas, and failure budgets
│
▼
[3. Deep Implementation] ──► Build pure domain, repository, and transport layers
│
▼
[4. Quality Gate Check] ──► Khorikov Tests + Clean Architecture + Nygard Resilience
│
▼
[5. KPT Retrospective] ───► Commit Keep, Problem, Try & advance milestone
🛡️ 3. The 4 Non-Negotiable Quality Gates
Before any milestone is completed or merged, it must satisfy all 4 gates:
- Gate 1: RFC & Doctrine Compliance
- Strictly conforms to approved RFC Ubiquitous Language and schemas.
- Enforces data isolation and bounded context partitions.
- Critical Mutation Safety: Zero unilateral destructive operations (batch drops, funds movements, secret rotations) without human verification.
- Gate 2: Khorikov Testing Standard
- Pure domain unit tests run offline in $< 1$ second.
- Refactoring Resistance: Tests assert outputs and observable state transitions, never implementation details or mock invocation counts.
- Covers edge cases: zero/empty boundaries, cold-start states, race conditions, and duplicate replay payloads.
- Gate 3: Fowler / Ousterhout Clean Architecture
- Deep interfaces: simple function signatures concealing rich logic.
- Zero primitive obsession (e.g. encapsulated
Money,Email,TenantIdValue Objects). - Domain layer has zero imports from web frameworks or ORMs.
- Gate 4: Nygard Stability & Distributed Resilience
- Explicit timeouts configured on all network and external operations.
- Idempotency verified for all external webhooks, worker queues, and event callbacks.
- Zero plain-text credentials or API secrets in logs.
📈 4. The Kaizen KPT Engine (Try ➔ Keep)
Continuous improvement is codified through structured retrospectives stored in docs/retrospectives/CYCLE_<XX>_KPT.md:
CYCLE N CYCLE N+1 CYCLE N+2
┌────────────────┐ ┌────────────────┐ ┌────────────────┐
│ TRY: [T1] Add │ ─────────► │ Implement [T1] │ ──────────► │ KEEP: [K3] │
│ distributed │ │ Verify in test │ │ Distributed │
│ lease to queue │ │ │ │ lease is now │
└────────────────┘ └────────────────┘ │ standard law │
└────────────────┘
- Mandatory Input: Every
Tryfrom Cycle $N$ is required input for Cycle $N+1$. - Promotion to Law: When a
Trysuccessfully resolves a problem, it is promoted toKeepin the subsequent cycle and becomes an immutable system invariant. - No Fluff Rule: Keep/Problem/Try entries must cite concrete files, functions, error codes, or formulas (e.g.
src/core/domain/order.py,ERR_PAYLOAD_LIMIT_EXCEEDED).
🚀 Installation & Setup
For Google Antigravity
Option 1: Global Installation (Available across all workspaces)
Clone or run the install script to make kaizen-engineering available everywhere on your machine:
git clone https://github.com/techuy06/kaizen-engineering-skill.git /tmp/kaizen-skill
cd /tmp/kaizen-skill
./scripts/install.sh --global
Installs to ~/.gemini/config/skills/kaizen-engineering/.
Option 2: Project-Level Installation (Commit to your repository)
If you want to share the skill with teammates via your project's version control:
# From within your target project repository:
mkdir -p .agents/skills/kaizen-engineering
curl -sSL https://raw.githubusercontent.com/techuy06/kaizen-engineering-skill/main/SKILL.md -o .agents/skills/kaizen-engineering/SKILL.md
curl -sSL https://raw.githubusercontent.com/techuy06/kaizen-engineering-skill/main/resources/KPT_TEMPLATE.md -o .agents/skills/kaizen-engineering/resources/KPT_TEMPLATE.md
git add .agents/skills/kaizen-engineering
git commit -m "chore: install kaizen-engineering agent skill"
For Other AI Agents (Cursor, Claude Code, Windsurf, Copilot)
Because SKILL.md is standard Markdown and follows Domain-Driven Design and Clean Architecture, you can adopt it anywhere:
- Cursor: Copy
SKILL.mdinto.cursorrulesor.cursor/rules/kaizen-engineering.mdc. - Claude Code: Add
SKILL.mdto yourCLAUDE.mdor.claude/skills/. - GitHub Copilot: Link
SKILL.mdinside.github/copilot-instructions.md.
💻 How to Use
Once installed, trigger the skill in your AI assistant:
1. Slash Command
/kaizen-engineering
2. Conversational Trigger
"Run the next development cycle using the Kaizen Engineering workflow.
Check our latest KPT retrospective in docs/retrospectives/ and begin Phase 1."
3. What the Agent Will Do
- Inspect the latest KPT retrospective in
docs/retrospectives/and extractKEEPinvariants andTRYitems. - Delegate the technical specification to the RFC Architect.
- Implement clean domain models with the Core Systems Developer.
- Apply resilience and idempotency patterns with the Reliability Developer.
- Validate against the 4 Quality Gates with the QA & Verification Engineer.
- Generate and commit the new
docs/retrospectives/CYCLE_<XX>_KPT.md.
📂 Repository Structure
kaizen-engineering-skill/
├── SKILL.md # Primary agent skill specification
├── resources/
│ └── KPT_TEMPLATE.md # Standard template for cycle retrospectives
├── examples/
│ ├── RFC_EXAMPLE.md # Example Domain-Driven RFC
│ └── CYCLE_01_KPT_EXAMPLE.md # Example retrospective with Try ➔ Keep promotion
├── scripts/
│ └── install.sh # Helper script for global/project installation
├── LICENSE # MIT License
└── README.md # Documentation and guide
🤝 Contributing
Contributions, enhancements, and suggestions are welcome!
- Fork the repository
- Create your feature branch (
git checkout -b feature/new-quality-gate) - Commit your changes (
git commit -m 'feat: add database migration safety gate') - Push to the branch (
git push origin feature/new-quality-gate) - Open a Pull Request
📄 License
Distributed under the MIT License. Free for individual and commercial use.