kaizen

kaizen is a skill for Claude Code from careerchain-ys/stdd. It costs 54 tokens per session (1,592 once invoked), scanned A, original, Apache-2.0.

A set of development principles based on Kaizen, the practice of making small continuous improvements. It covers preventing errors, avoiding unnecessary work, reusing proven patterns, and refactoring step by step.

In plain words
What is it for?
Use it when implementing or refactoring code, making design decisions, planning validation and error handling, or improving development practices.
Why use it?
It helps keep changes manageable and reduces mistakes caused by over-designing or changing too much at once.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; installed under .agents/ (shared by several agents); mentions AGENTS.md.

Good fit Use it when implementing or refactoring code, making design decisions, planning validation and error handling, or improving development practices.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/careerchain-ys/stdd/kaizen
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add careerchain-ys/stdd --skill kaizen
Clone the repo
git clone --depth 1 https://github.com/careerchain-ys/stdd

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for kaizen

README.md
[![agentmods](https://agentmods.dev/badge/skills/careerchain-ys/stdd/kaizen.svg)](https://agentmods.dev/skills/careerchain-ys/stdd/kaizen)
Your own site
<a href="https://agentmods.dev/skills/careerchain-ys/stdd/kaizen"><img src="https://agentmods.dev/badge/skills/careerchain-ys/stdd/kaizen.svg" alt="Measured on agentmods" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,592 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.01592
Opus 5 $0.00027 $0.00796
Sonnet 5 $0.00011 $0.00318
Haiku 4.5 $0.00005 $0.00159

Measured 7d ago against content hash 881b63f4d1f7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

kaizen scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/kaizen/SKILL.md · 130 lines

How it starts

The opening of the file, as written. The whole thing — 130 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Kaizen: 継続的改善

小さな改善を継続的に。設計段階でエラーを防止。実績あるパターンに従う。必要なものだけを作る。

核心: 大きな一発勝負より、小さな改善の積み重ねが大きな成果を生む。

適用タイミング

  • コード実装とリファクタリング
  • アーキテクチャ・設計判断
  • エラーハンドリング・バリデーション設計

4つの柱

1. 継続的改善(Kaizen)

小さく頻繁な改善が、大きな成果に複利的に積み上がる。

段階的に進める:

  • 品質を改善する最小限の変更を行う
  • 一度に1つの改善のみ
  • 各変更を検証してから次へ

コードは見つけた時より良くする:

  • 小さな問題を見つけたらその場で修正(スコープ内で)
  • 古いコメントを更新、デッドコードを削除

反復的に洗練する:

  1. まず動くものを作る
  2. 次に明確にする
  3. 最後に効率化する
  4. 一度に3つ全部はやらない

実践: 機能実装時は最もシンプルなバージョンから始める。リファクタリング時は1つずつコードの匂いを修正し、各改善後にコミット。テストを常にパスさせる。

2. Poka-Yoke(エラー防止)

実行時ではなく、コンパイル時・設計時にエラーを防止するシステムを設計する。

エラーを不可能にする:

  • 型システムで間違いを検知
  • 無効な状態を表現不可能にする(Discriminated Union)
  • エラーは早期に(本番ではなく開発時に)検出

防御の層:

  1. 型システム(コンパイル時) - Union TypeでStringを避ける
  2. バリデーション(実行時、早期) - 境界で1回検証すれば内部は安全
  3. ガード節(前提条件) - Early returnで前提を明示
  4. エラー境界(グレースフルデグレード)

実践:

  • API設計時: 型で入力を制約し、無効な状態を表現不可能に
  • エラー処理時: システム境界でバリデーション、ガード節で前提条件チェック、明確なメッセージで失敗
  • 設定管理時: optionalよりrequired、起動時に全設定を検証

3. 標準化された作業

既存パターンに従う。うまくいくものを文書化する。良い慣行を簡単に従えるようにする。

一貫性は賢さに勝る:

  • 既存のコードベースパターンに従う
  • 解決済みの問題を再発明しない
  • 新パターンは大幅に改善される場合のみ導入

標準を自動化する:

  • リンターでスタイルを強制
  • 型チェックで契約を強制
  • テストで挙動を検証
  • CI/CDで品質ゲートを強制

実践:

  • 新パターン追加前: コードベースで類似問題の解決策を検索し、AGENTS.md / CLAUDE.mdの規約を確認
  • コード記述時: 既存のファイル構造、命名規則、エラーハンドリングパターンに合わせる

4. Just-In-Time(JIT)

今必要なものだけを作る。それ以上も以下もなく。

YAGNI(You Aren't Gonna Need It):

  • 現在の要件のみ実装
  • 「念のため」の機能は不要
  • 「将来必要になるかも」のコードは不要
  • 推測的コードは削除

動く最もシンプルなもの:

  • 直接的な解決策から始める
  • 必要になった時にのみ複雑さを追加
  • 要件変更時にリファクタリング

抽象化のタイミング(Rule of Three):

  • 3箇所以上で同じパターンが出現してから抽象化
  • 間違った抽象化より重複のほうがマシ
  • パターンが明確になってからリファクタリング

実践:

  • 実装時: 目の前の問題を解決、「もし〜だったら」思考に抵抗
  • 最適化時: まず計測、次に最適化
  • 抽象化時: 3箇所以上の類似ケースを待つ

危険信号

危険信号
継続的改善 「後でリファクタリングする」(実行されない)
Poka-Yoke 「ユーザーが気をつければいい」
標準化 「自分のやり方でやりたい」
JIT 「いつか必要になるかも」

コード例

詳細なコード例は references/code-examples.md を参照:

  • 段階的リファクタリングの例
  • 型システムによるエラー防止の例
  • 過剰設計 vs 適切な設計の例

まとめ

Kaizenの本質: 今日十分に良いものを作り、明日さらに良くする。これを繰り返す。

Read the full file on GitHub · 130 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 130 lines · 54 tokens per session scan A 881b63f4d1f7

Subscribe to this mod's changes

kaizen is a skill published in the GitHub repository careerchain-ys/stdd (2 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 54 tokens to every session and 1,592 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

babysit-pr

Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep…

openai/codex · 114 tokens