Token导航 LogoToken导航

Agent Skill · 前端设计

kaizen(kaizen 前端)

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

kaizen 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证为 MIT,第三方扫描有未通过项,按安装量在前端设计类的 10,216 个 Skill 里排第 1,574。

总安装 4,866周安装 209GitHub Stars 26,432下载 1,705核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:kaizen(kaizen 前端)
来源仓库:https://github.com/davila7/claude-code-templates
仓库路径:skills/kaizen
安装命令:
npx skills add https://github.com/davila7/claude-code-templates --skill kaizen
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/davila7/claude-code-templates --skill kaizen

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

kaizen 倡导渐进式持续改进理念,聚焦小步优化而非一次性重构。适用于代码重构、流程简化与错误预防式设计决策支持。强调“做必要之事”与“防错优于纠错”的工程哲学指导原则。使用时需评估变更影响范围,优先修复高频问题而非追求完美架构。重大改动前应建立回归测试基线,确保增量改进不会引入新缺陷。

来源仓库内路径:skills/kaizen

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/davila7/claude-code-templates --skill kaizen;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

kaizen 怎么安装?

在终端执行 npx skills add https://github.com/davila7/claude-code-templates --skill kaizen。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

kaizen 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

kaizen 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

kaizen 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

kaizen 用的人多吗?

公开数据是累计安装 4,866 次,近一周安装 209 次,下载 1,705 次,GitHub 26,432 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

kaizen 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 来源仓库有 26,432 星,维护活跃度相对可查。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
kaizen

kaizen 前端 · 本页

4,86626,432接触敏感数据MIT未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Kaizen: Continuous Improvement

Overview

Small improvements, continuously. Error-proof by design. Follow what works. Build only what's needed.

Core principle: Many small improvements beat one big change. Prevent errors at design time, not with fixes.

When to Use

Always applied for:

  • Code implementation and refactoring
  • Architecture and design decisions
  • Process and workflow improvements
  • Error handling and validation

Philosophy: Quality through incremental progress and prevention, not perfection through massive effort.

The Four Pillars

1. Continuous Improvement (Kaizen)

Small, frequent improvements compound into major gains.

Principles

Incremental over revolutionary:

  • Make smallest viable change that improves quality
  • One improvement at a time
  • Verify each change before next
  • Build momentum through small wins

Always leave code better:

  • Fix small issues as you encounter them
  • Refactor while you work (within scope)
  • Update outdated comments
  • Remove dead code when you see it

Iterative refinement:

  • First version: make it work
  • Second pass: make it clear
  • Third pass: make it efficient
  • Don't try all three at once

// Iteration 2: Make it clear (refactor) const calculateTotal = (items: Item[]): number => {return items.reduce((total, item) => {return total + (item.price * item.quantity);}, 0);};

// Iteration 3: Make it robust (add validation) const calculateTotal = (items: Item[]): number => {if (!items?.length) return 0;

return items.reduce((total, item) => {if (item.price < 0 || item.quantity < 0) {throw new Error('Price and quantity must be non-negative');} return total + (item.price * item.quantity);}, 0);};

Each step is complete, tested, and working
</Good>

<Bad>

// Trying to do everything at once const calculateTotal = (items: Item[]): number => { // Validate, optimize, add features, handle edge cases all together if (!items?.length) return 0; const validItems = items.filter(item => { if (item.price < 0) throw new Error('Negative price'); if (item.quantity < 0) throw new Error('Negative quantity'); return item.quantity > 0; // Also filtering zero quantities }); // Plus caching, plus logging, plus currency conversion... return validItems.reduce(...); // Too many concerns at once };


Overwhelming, error-prone, hard to verify

#### In Practice

**When implementing features:**

1. Start with simplest version that works
2. Add one improvement (error handling, validation, etc.)
3. Test and verify
4. Repeat if time permits
5. Don't try to make it perfect immediately

**When refactoring:**

- Fix one smell at a time
- Commit after each improvement
- Keep tests passing throughout
- Stop when "good enough" (diminishing returns)

**When reviewing code:**

- Suggest incremental improvements (not rewrites)
- Prioritize: critical → important → nice-to-have
- Focus on highest-impact changes first
- Accept "better than before" even if not perfect

### 2. Poka-Yoke (Error Proofing)

Design systems that prevent errors at compile/design time, not runtime.

#### Principles

**Make errors impossible:**

- Type system catches mistakes
- Compiler enforces contracts
- Invalid states unrepresentable
- Errors caught early (left of production)

**Design for safety:**

- Fail fast and loudly
- Provide helpful error messages
- Make correct path obvious
- Make incorrect path difficult

**Defense in layers:**

1. Type system (compile time)
2. Validation (runtime, early)
3. Guards (preconditions)
4. Error boundaries (graceful degradation)

#### Type System Error Proofing

// Good: Only valid states possible type OrderStatus = 'pending' | 'processing' | 'shipped' | 'delivered'; type Order = {status: OrderStatus; total: number;};

// Better: States with associated data type Order = | {status: 'pending'; createdAt: Date} | {status: 'processing'; startedAt: Date; estimatedCompletion: Date} | {status: 'shipped'; trackingNumber: string; shippedAt: Date} | {status: 'delivered'; deliveredAt: Date; signature: string};

// Now impossible to have shipped without trackingNumber

Type system prevents entire classes of errors </Good>

<Good>

// Make invalid states unrepresentable
type NonEmptyArray<T> = [T, ...T[]];

const firstItem = <T>(items: NonEmptyArray<T>): T => {
  return items[0]; // Always safe, never undefined!
};

// Caller must prove array is non-empty
const items: number[] = [1, 2, 3];
if (items.length > 0) {
  firstItem(items as NonEmptyArray<number>); // Safe
}

Function signature guarantees safety

Validation Error Proofing

// Good: Validate immediately const processPayment = (amount: number) => {if (amount <= 0) {throw new Error('Payment amount must be positive');} if (amount > 10000) {throw new Error('Payment exceeds maximum allowed');}

const fee = amount * 0.03; //... now safe to use};

// Better: Validation at boundary with branded type type PositiveNumber = number & {readonly __brand: 'PositiveNumber'};

const validatePositive = (n: number): PositiveNumber => {if (n <= 0) throw new Error('Must be positive'); return n as PositiveNumber;};

const processPayment = (amount: PositiveNumber) => {// amount is guaranteed positive, no need to check const fee = amount * 0.03;};

// Validate at system boundary const handlePaymentRequest = (req: Request) => {const amount = validatePositive(req.body.amount); // Validate once processPayment(amount); // Use everywhere safely};

Validate once at boundary, safe everywhere else
</Good>

#### Guards and Preconditions

<Good>

// Early returns prevent deeply nested code const processUser = (user: User | null) => { if (!user) { logger.error('User not found'); return; }

if (!user.email) { logger.error('User email missing'); return; }

if (!user.isActive) { logger.info('User inactive, skipping'); return; }

// Main logic here, guaranteed user is valid and active sendEmail(user.email, 'Welcome!'); };


Guards make assumptions explicit and enforced

#### Configuration Error Proofing

const client = new APIClient({timeout: 5000}); // apiKey missing!

// Good: Required config, fails early type Config = {apiKey: string; timeout: number;};

const loadConfig = (): Config => {const apiKey = process.env.API_KEY; if (!apiKey) {throw new Error('API_KEY environment variable required');}

return {apiKey, timeout: 5000,};};

// App fails at startup if config invalid, not during request const config = loadConfig(); const client = new APIClient(config);

Fail at startup, not in production </Good>

In Practice

When designing APIs:

  • Use types to constrain inputs
  • Make invalid states unrepresentable
  • Return Result<T, E> instead of throwing
  • Document preconditions in types

When handling errors:

  • Validate at system boundaries
  • Use guards for preconditions
  • Fail fast with clear messages
  • Log context for debugging

When configuring:

  • Required over optional with defaults
  • Validate all config at startup
  • Fail deployment if config invalid
  • Don't allow partial configurations

3. Standardized Work

Follow established patterns. Document what works. Make good practices easy to follow.

Principles

Consistency over cleverness:

  • Follow existing codebase patterns
  • Don't reinvent solved problems
  • New pattern only if significantly better
  • Team agreement on new patterns

Documentation lives with code:

  • README for setup and architecture
  • CLAUDE.md for AI coding conventions
  • Comments for "why", not "what"
  • Examples for complex patterns

Automate standards:

  • Linters enforce style
  • Type checks enforce contracts
  • Tests verify behavior
  • CI/CD enforces quality gates
Following Patterns

<Good>

// Existing codebase pattern for API clients
class UserAPIClient {
  async getUser(id: string): Promise<User> {
    return this.fetch(`/users/${id}`);
  }
}

// New code follows the same pattern
class OrderAPIClient {
  async getOrder(id: string): Promise<Order> {
    return this.fetch(`/orders/${id}`);
  }
}

Consistency makes codebase predictable

// New code introduces different pattern without discussion const getOrder = async (id: string): Promise => {// Breaking consistency "because I prefer functions"};

Inconsistency creates confusion
</Bad>

#### Error Handling Patterns

<Good>

// Project standard: Result type for recoverable errors type Result<T, E> = { ok: true; value: T } | { ok: false; error: E };

// All services follow this pattern const fetchUser = async (id: string): Promise<Result<User, Error>> => { try { const user = await db.users.findById(id); if (!user) { return { ok: false, error: new Error('User not found') }; } return { ok: true, value: user }; } catch (err) { return { ok: false, error: err as Error }; } };

// Callers use consistent pattern const result = await fetchUser('123'); if (!result.ok) { logger.error('Failed to fetch user', result.error); return; } const user = result.value; // Type-safe!


Standard pattern across codebase

#### Documentation Standards

#### In Practice

**Before adding new patterns:**

- Search codebase for similar problems solved
- Check CLAUDE.md for project conventions
- Discuss with team if breaking from pattern
- Update docs when introducing new pattern

**When writing code:**

- Match existing file structure
- Use same naming conventions
- Follow same error handling approach
- Import from same locations

**When reviewing:**

- Check consistency with existing code
- Point to examples in codebase
- Suggest aligning with standards
- Update CLAUDE.md if new standard emerges

### 4. Just-In-Time (JIT)

Build what's needed now. No more, no less. Avoid premature optimization and over-engineering.

#### Principles

**YAGNI (You Aren't Gonna Need It):**

- Implement only current requirements
- No "just in case" features
- No "we might need this later" code
- Delete speculation

**Simplest thing that works:**

- Start with straightforward solution
- Add complexity only when needed
- Refactor when requirements change
- Don't anticipate future needs

**Optimize when measured:**

- No premature optimization
- Profile before optimizing
- Measure impact of changes
- Accept "good enough" performance

#### YAGNI in Action

class ConsoleTransport implements LogTransport {/*... */} class FileTransport implements LogTransport {/*... */} class RemoteTransport implements LogTransport {/*...*/}

class Logger {private transports: LogTransport[] = []; private queue: LogEntry[] = []; private rateLimiter: RateLimiter; private formatter: LogFormatter;

// 200 lines of code for "maybe we'll need it"}

const logError = (error: Error) => {Logger.getInstance().log('error', error.message);};

Building for imaginary future requirements </Bad>

When to add complexity:

  • Current requirement demands it
  • Pain points identified through use
  • Measured performance issues
  • Multiple use cases emerged

<Good>

// Start simple
const formatCurrency = (amount: number): string => {
  return `$${amount.toFixed(2)}`;
};

// Requirement evolves: support multiple currencies
const formatCurrency = (amount: number, currency: string): string => {
  const symbols = { USD: '$', EUR: '€', GBP: '£' };
  return `${symbols[currency]}${amount.toFixed(2)}`;
};

// Requirement evolves: support localization
const formatCurrency = (amount: number, locale: string): string => {
  return new Intl.NumberFormat(locale, {\n    style: 'currency',
    currency: locale === 'en-US' ? 'USD' : 'EUR',
  }).format(amount);
};

Complexity added only when needed

Premature Abstraction

class GenericRepository {/*300 lines */} class QueryBuilder {/* 200 lines*/} //... building entire ORM for single table

Massive abstraction for uncertain future
</Bad>

<Good>

// Simple functions for current needs const getUsers = async (): Promise<User[]> => { return db.query('SELECT * FROM users'); };

const getUserById = async (id: string): Promise<User | null> => { return db.query('SELECT * FROM users WHERE id = $1', [id]); };

// When pattern emerges across multiple entities, then abstract


Abstract only when pattern proven across 3+ cases

#### Performance Optimization

// Benchmark shows: 50ms for 1000 users (acceptable) // ✓ Ship it, no optimization needed

// Later: After profiling shows this is bottleneck // Then optimize with indexed lookup or caching

Optimize based on measurement, not assumptions </Good>

<Bad>

// Premature optimization
const filterActiveUsers = (users: User[]): User[] => {
  // "This might be slow, so let's cache and index"
  const cache = new WeakMap();
  const indexed = buildBTreeIndex(users, 'isActive');
  // 100 lines of optimization code
  // Adds complexity, harder to maintain
  // No evidence it was needed
};\

Complex solution for unmeasured problem

In Practice

When implementing:

  • Solve the immediate problem
  • Use straightforward approach
  • Resist "what if" thinking
  • Delete speculative code

When optimizing:

  • Profile first, optimize second
  • Measure before and after
  • Document why optimization needed
  • Keep simple version in tests

When abstracting:

  • Wait for 3+ similar cases (Rule of Three)
  • Make abstraction as simple as possible
  • Prefer duplication over wrong abstraction
  • Refactor when pattern clear

Integration with Commands

The Kaizen skill guides how you work. The commands provide structured analysis:

  • /why: Root cause analysis (5 Whys)
  • /cause-and-effect: Multi-factor analysis (Fishbone)
  • /plan-do-check-act: Iterative improvement cycles
  • /analyse-problem: Comprehensive documentation (A3)
  • /analyse: Smart method selection (Gemba/VSM/Muda)

Use commands for structured problem-solving. Apply skill for day-to-day development.

Red Flags

Violating Continuous Improvement:

  • "I'll refactor it later" (never happens)
  • Leaving code worse than you found it
  • Big bang rewrites instead of incremental

Violating Poka-Yoke:

  • "Users should just be careful"
  • Validation after use instead of before
  • Optional config with no validation

Violating Standardized Work:

  • "I prefer to do it my way"
  • Not checking existing patterns
  • Ignoring project conventions

Violating Just-In-Time:

  • "We might need this someday"
  • Building frameworks before using them
  • Optimizing without measuring

Remember

Kaizen is about:

  • Small improvements continuously
  • Preventing errors by design
  • Following proven patterns
  • Building only what's needed

Not about:

  • Perfection on first try
  • Massive refactoring projects
  • Clever abstractions
  • Premature optimization

Mindset: Good enough today, better tomorrow. Repeat.

平台分布

Claude Code

26.39%
按下载量换算450

Cursor

20.39%
按下载量换算348

OpenCode

18.3%
按下载量换算312

Antigravity

11.74%
按下载量换算200

Gemini CLI

7.79%
按下载量换算133

windsurf

3.44%
按下载量换算59

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。

继续浏览同类 Skills