Community研究与数据分析github.com

Jamie-BitFlight/kaizen-improvement

将转录分析结果转化为可执行的改进方案。触发词包括“generate hooks from findings”、“improve agent”、“fix anti-pattern”、“kaizen improvement”、“generate hook proposals”或“create improvement plan”。提供钩子生成、代理提示词优化、技能补丁、CLAUDE.md 更新以及基于分析数据的脚本自动化模板。

kaizen-improvement 是什么?

该技能旨在将 `.planning/kaizen/` 目录中的分析结果(由转录分析技能生成)转化为具体的改进措施。它支持五种改进类型:钩子生成(用于工具滥用拦截/重定向)、代理提示词优化、技能补丁、项目级行为规则更新(CLAUDE.md)以及重复工作流的脚本自动化。工作流程包括从分析结果中提取反模式、按频率和影响评分、选择优先项、生成对应的改进提案,并可选择性地通过 `--install` 标志自动安装钩子。核心设计原则是生成面向专业代理的指令集而非直接编辑代码,通过问题描述、期望结果和授权代理执行来实现高效改进。该技能适用于 Claude Code、Cursor 等支持钩子和代理系统的平台,能够显著提升开发者的工作效率和系统稳定性。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Jamie-BitFlight/claude_skills/tree/main/plugins/agentskill-kaizen/skills/kaizen-improvement

Installed? Explore more 研究与数据分析 skills: affaan-m/uspto-database, affaan-m/scholar-evaluation, affaan-m/literature-review · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Kaizen 改进

将 .planning/kaizen/ 中的分析结果转化为可执行的改进措施——钩子、代理补丁、技能优化、CLAUDE.md 更新和自动化脚本。

前置条件: 分析结果必须存在于 .planning/kaizen/ 中(由转录分析技能生成)。

改进类型

每种输出类别都包含一个委派模板:

  1. 钩子生成 — PreToolUse 拒绝/重定向、SubagentStart 上下文注入、Stop 质量门禁
  2. 代理提示词优化 — 通过 @subagent-refactorer 对代理系统提示词进行精准修复
  3. 技能补丁 — 通过 /plugin-creator:skill-creator 向技能添加缺失知识
  4. CLAUDE.md 更新 — 项目级行为规则
  5. 脚本自动化 — 用脚本或技能替代重复的手动工作流

详细模板和示例请参阅改进模板。

关于自主改进循环 (ARL) 知识库——第 3 层实现细节、前置条件和研究综合——请参阅 ARL 知识。

工作流

flowchart TD
    Start([读取分析结果]) --> Parse[提取反模式及其频率和证据]
    Parse --> Score[按频率 × 影响评分]
    Score --> Top[选择最高分的发现]
    Top --> Type{改进类型?}
    Type -->|重复的工具滥用| Hook[生成钩子 — 拒绝/重定向]
    Type -->|代理行为问题| Agent[生成代理补丁指令集]
    Type -->|知识缺口| Skill[生成技能补丁指令集]
    Type -->|项目级问题| Claude[生成 CLAUDE.md 添加项]
    Type -->|手动工作流| Script[生成自动化提案]
    Hook --> Output[写入 .planning/kaizen/improvements/]
    Agent --> Output
    Skill --> Output
    Claude --> Output
    Script --> Output
    Output --> Install{--install 标志?}
    Install -->|是| Apply[将钩子写入设置,应用补丁]
    Install -->|否| Draft[保留为提案供审查]

钩子生成

读取分析结果 → 生成钩子配置 + 可选脚本。有关每种反模式类型的映射模式、指南和示例,请参阅钩子模式。

委派协议

改进是面向专业代理的指令集,而非直接编辑。遵循以结果为导向的委派:

  • 用证据(会话 ID、工具调用、频率)描述问题
  • 陈述期望的结果
  • 让专业代理决定实现方法
  • 不要在委派提示词中规定具体的代码更改

输出模式

草稿模式(默认)

将所有提案以 Markdown 文件形式写入 .planning/kaizen/improvements/。每个文件包含:

  • 带有证据的发现摘要
  • 建议的改进
  • 面向相应专业代理的委派提示词
  • 优先级分数

安装模式(--install 标志)

仅适用于钩子——直接写入 .claude/settings.json 或 hooks/hooks.json。其他改进类型始终生成委派提示词(从不直接编辑)。

优先级评分

按以下标准对改进进行排序:

  1. 频率 × 影响 — 跨会话的发生次数 × 每次发生的成本
  2. 自动化潜力 — 钩子 > 脚本 > 文档
  3. 影响范围 — 项目级 > 单代理 > 单会话
  4. 实施成本 — 钩子(分钟)< CLAUDE.md(分钟)< 技能(小时)< 代理(天)

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

Jamie-BitFlight/agentskill-kaizen-meta-docs

Agentskill kaizen plugin documentation index. Load when needing to read about cross-platform notes, improvement plans, or DuckDB integration.

Jamie-BitFlight/bash-51-features

Bash 5.1 release features and improvements with practical examples. Use when working with Bash 5.1 features, epoch time variables, redirection enhancements, or when user asks about Bash 5.1 changes, new features, or version-specific capabilities.

Jamie-BitFlight/bash-52-features

Bash 5.2 release features and improvements with practical examples. Use when working with Bash 5.2 features, variable handling enhancements, readline improvements, or when user asks about Bash 5.2 changes, new features, or version-specific capabilities.

Jamie-BitFlight/bash-53-features

Bash 5.3 release features and improvements with practical examples. Use when working with Bash 5.3 features, new command substitution, GLOBSORT, loadable builtins, or when user asks about Bash 5.3 changes, new features, or version-specific capabilities.

Jamie-BitFlight/bash-development

This skill should be used when the user asks to "write a bash script", "create a shell script", "implement bash function", "parse arguments in bash", "handle errors in bash", or mentions bash development, shell scripting, script templates, or modern bash patterns.

Jamie-BitFlight/bash-lint

This skill should be used when the user asks to "lint bash script", "run shellcheck", "format shell script", "use shfmt", "fix shellcheck errors", or mentions shell script linting, formatting, code quality, or pre-commit hooks for bash.

Jamie-BitFlight/bash-logging

This skill should be used when the user asks to "add logging to bash script", "colorize output", "implement log levels", "CI/CD sections", "terminal colors in bash", or mentions logging functions, emoji output, collapsible CI sections, or shlocksmith.

Jamie-BitFlight/bash-portability

This skill should be used when the user asks about "POSIX compatibility", "portable shell scripts", "cross-shell compatibility", "bashisms", "shebang selection", or mentions writing scripts that work on different shells (bash, sh, dash, zsh) or different systems.

Jamie-BitFlight/bash-testing

This skill should be used when the user asks to "test bash script", "write shell tests", "use shunit2", "use shellspec", "create test suite for bash", or mentions unit testing, test frameworks, mocking, or test-driven development for shell scripts.

Jamie-BitFlight/brainstorming-skill

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or when users request help with ideation, marketing, and strategic planning. Explores user intent, requirements, and design before implementation using research-validated prompt patterns.

Jamie-BitFlight/clang-format

Configure clang-format code formatting. Use when: user mentions clang-format or .clang-format, analyzing code style/patterns, creating/modifying formatting config, troubleshooting formatting, brace styles/indentation/spacing/alignment/pointer alignment, or codifying conventions.

Jamie-BitFlight/commitlint

When setting up commit message validation for a project. When project has commitlint.config.js or .commitlintrc files. When configuring CI/CD to enforce commit format. When extracting commit rules for LLM prompt generation. When debugging commit message rejection errors.

Jamie-BitFlight/conventional-commits

When writing a git commit message. When task completes and changes need committing. When project uses semantic-release, commitizen, git-cliff. When choosing between feat/fix/chore/docs types. When indicating breaking changes. When generating changelogs from commit history.

Jamie-BitFlight/dasel-reference

Use when querying, modifying, or converting JSON, YAML, TOML, XML, CSV, HCL, or INI with dasel v3. Complete reference for selectors, functions, conditionals, variables, spread operator, type casting, and format-specific patterns.

Jamie-BitFlight/data-exploration

Use when exploring unknown structured data files with dasel v3 — discover schema, list keys, find nested values, sample arrays, identify data types across JSON, YAML, TOML, XML, CSV, HCL, INI formats

Jamie-BitFlight/data-transformation

Use when modifying, converting, or transforming structured data with dasel v3 — in-place mutations, format conversion, batch operations, array manipulation, object construction, and merge patterns across JSON, YAML, TOML, XML, CSV, HCL, INI

Jamie-BitFlight/delegate

Decompose substantive work into phases, dispatch each phase to a sub-agent, and adjudicate what comes back. Use whenever a request asks for implementation, investigation, a fix, a review, or any change to files — including small ones — and whenever you are about to read source or run a diagnostic yourself instead of handing it off. Also use when a report from a sub-agent needs judging, when a phase needs re-dispatching, or when a user names one instance of a pattern. Does not apply when your own prompt begins "Your ROLE_TYPE is sub-agent." — then follow references/sub-agent-contract.md instead.

Jamie-BitFlight/enterprise-hibernate-hbm

Dasel v3 query patterns for Hibernate .hbm.xml mapping files — entity-table binding, Java property-to-column extraction, one-to-many set/list/bag relationship tracing, many-to-one foreign key discovery, batch scanning across 60+ HBM files. Use when querying Hibernate ORM class mappings, extracting schema metadata from Java persistence layer, or auditing entity-column relationships in enterprise legacy codebases.

Jamie-BitFlight/enterprise-installanywhere

Dasel v3 query patterns for InstallAnywhere .iap_xml installer definitions — use when querying action sequences, discovering variables, resolving platform conditions, navigating panels, or comparing installer variants. Files are 2.5+ MB, 65,000+ lines — too large for context reads, requires structural dasel queries.

Jamie-BitFlight/enterprise-maven-pom

Dasel v3 selector patterns for Maven POM XML files — use when querying dependency versions, filtering by groupId or scope, extracting module hierarchy from parent POMs, or detecting version conflicts across enterprise multi-module Java projects. Load this skill when working with pom.xml files using dasel.

相关技能