plugins/agentskill-kaizen/skills/kaizen-improvement/SKILL.md
Transform transcript analysis findings into actionable improvements. Triggers on "generate hooks from findings", "improve agent", "fix anti-pattern", "kaizen improvement", "generate hook proposals", or "create improvement plan". Provides templates for hook generation, agent prompt refinement, skill patches, CLAUDE.md updates, and script automation from analysis data.
npx skillsauth add jamie-bitflight/claude_skills kaizen-improvementInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Transform analysis findings from .planning/kaizen/ into actionable improvements — hooks, agent patches, skill refinements, CLAUDE.md updates, and automation scripts.
Prerequisite: Analysis findings must exist in .planning/kaizen/ (generated by the transcript-analysis skill).
Five categories of output, each with a delegation template:
For detailed templates and examples, see Improvement Templates.
For the Autonomous Refinement Loop (ARL) knowledge base — Layer 3 implementation details, prerequisites, and research synthesis — see ARL Knowledge.
flowchart TD
Start([Read analysis findings]) --> Parse[Extract anti-patterns with frequency and evidence]
Parse --> Score[Score by frequency × impact]
Score --> Top[Select top findings]
Top --> Type{Improvement type?}
Type -->|Repeated tool misuse| Hook[Generate hook — deny/redirect]
Type -->|Agent behavior issue| Agent[Generate agent patch instruction set]
Type -->|Knowledge gap| Skill[Generate skill patch instruction set]
Type -->|Project-wide issue| Claude[Generate CLAUDE.md addition]
Type -->|Manual workflow| Script[Generate automation proposal]
Hook --> Output[Write to .planning/kaizen/improvements/]
Agent --> Output
Skill --> Output
Claude --> Output
Script --> Output
Output --> Install{--install flag?}
Install -->|Yes| Apply[Write hooks to settings, apply patches]
Install -->|No| Draft[Leave as proposals for review]
Read findings → generate hook configuration + optional script. For patterns mapped to each anti-pattern type, guidelines, and examples, see Hook Patterns.
Improvements are instruction sets for specialist agents, not direct edits. Follow outcome-focused delegation:
Write all proposals to .planning/kaizen/improvements/ as markdown files. Each file contains:
For hooks only — write directly to .claude/settings.json or hooks/hooks.json. Other improvement types always produce delegation prompts (never direct edits).
Rank improvements by:
development
When an application needs to store config, data, cache, or state files. When designing where user-specific files should live. When code writes to ~/.appname or hardcoded home paths. When implementing cross-platform file storage with platformdirs.
testing
Enforce mandatory pre-action verification checkpoints to prevent pattern-matching from overriding explicit reasoning. Use this skill when about to execute implementation actions (Bash, Write, Edit) to verify hypothesis-action alignment. Blocks execution when hypothesis unverified or action targets different system than hypothesis identified. Critical for preventing cognitive dissonance where correct diagnosis leads to wrong implementation.
tools
Reference guide for the Twelve-Factor App methodology — 15 principles (12 original + 3 modern extensions) for building portable, resilient, cloud-native applications. Use when evaluating application architecture, designing cloud-native services, reviewing codebases for methodology compliance, advising on configuration, scaling, observability, security, and deployment patterns. Incorporates the 2025 open-source community evolution and cloud-native reinterpretations of each factor.
tools
Converts user-facing documentation (how-to guides, tutorials, API references, examples) in any format — Markdown, PDF, DOCX, PPTX, XLSX, AsciiDoc, RST, HTML, Jupyter notebooks, man pages, TOML/YAML/JSON configs, and plain text — into Claude Code skill directories with SKILL.md plus thematically grouped references/*.md files. Use when given a docs directory or mixed-format documentation to transform into an AI skill. Uses MCP file-reader server for binary formats.