start
Skill1 starsChanged 32 days agoMITView on GitHub
Set up the self-improvement loop in this project: an efficiency ledger, a baseline of what loads every turn, and which skills to run next.
155 other projects use a version of this.
Adopted by
Most recently taken up by
- jason8745/llm-agent-tradertheir own version, first seen Nov 30, 2026
- kuni29/claude-skillstheir own version, first seen Nov 29, 2026
- xinglin-li/alphalatticetheir own version, first seen Nov 29, 2026
- 3rd-Brain/AI-Operations-Consultanttheir own version, first seen Nov 29, 2026
- bullish0x/GameStudiotheir own version, first seen Nov 29, 2026
- AlpacaLabsLLC/skills-for-architectstheir own version, first seen Nov 29, 2026
Used with
Projects with it also use project-stage-detect, setup-engine and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
CoralGameSkillproject-stage-detect
Automatically analyze project state, detect stage, identify gaps, and recommend next steps based on existing artifacts.
Also in 19 projects that use this
CoralGameSkillsetup-engine
Configure the project's game engine and version. Pins the engine in CLAUDE.md, detects knowledge gaps, and populates engine reference docs via WebSearch when the version is beyond the LLM's training data.
Also in 14 projects that use this
lilangMaxSkillcreate-stories
Break a single epic into implementable story files. Reads the epic, its GDD, governing ADRs, and control manifest. Each story embeds its GDD requirement TR-ID, ADR guidance, acceptance criteria, story type, and test evidence path. Run after /create-epics for each epic.
Also in 13 projects that use this
lilangMaxSkillstory-done
End-of-story completion review. Reads the story file, verifies each acceptance criterion against the implementation, checks for GDD/ADR deviations, prompts code review, updates story status to Complete, and surfaces the next ready story from the sprint.
Also in 13 projects that use this
- +3 more from CoralGame
- +5 more from lilangMax
Other versions155 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 155
- Donchitos/Claude-Code-Game-Studios★ 39ksame name
- anthropics/knowledge-work-plugins★ 37ksame name
- openai/plugins★ 8.4ksame name
- udecode/dotai★ 1.2ksame name
- udecode/ustack★ 1.2ksame name
- SterlingChin/marvin-template★ 1ksame name
- jason8745/llm-agent-trader★ 516same name
- educlopez/ui-craft★ 490same name
- AlpacaLabsLLC/skills-for-architects★ 445same name
- dsifry/metaswarm★ 443same name
145 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository25 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- auditSkill
- autonomySkill
- batch-wakeupsSkill
- code-mapSkill
- codex-dispatchSkill
- cycleSkill
- flowSkill
- frictionSkill
- guardrailsSkill
- lean-agentsSkill
- modelsSkill
- planningSkill
- reviewSkill
- rosterSkill
- scanSkill
- scheduleSkill
- slim-instructionsSkill
- speedSkill
- test-loopSkill
- tools-before-tokensSkill
- trim-contextSkill
- undoSkill
- whats-newSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 2 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 140 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 11
Not in Claude Code?: Read docs/hosts.md in the plugin root first.
- Very specific: line 28
Create docs/kaizen/LEDGER.md with a table: date | change | why (which audit finding) | expected effect | measured effect | keep/revert | …
- Distinctive: line 31
Add a short header explaining that every efficiency change gets a row, and that the "measured effect" column is filled in by the next …
- Very specific: line 33
Create docs/kaizen/README.md describing the loop in five lines: measure (audit) → propose → implement one change at a time → re-measure → …
- Very specific: line 40
Add docs/kaizen/audit-*.md, docs/kaizen/token-audit-*.md, docs/kaizen/cycle-*.md, docs/kaizen/review-*.md and …
- Distinctive: line 45
Don't commit; I'll review first.
“Common” is measured: kept by at least 6 in 10 of the 140 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Start the loop
Plugin root: ${CLAUDE_PLUGIN_ROOT}. If that is still a ${...} placeholder, use the folder that contains skills/ (this file is skills/<name>/SKILL.md), and substitute that path, in quotes, wherever this skill uses CLAUDE_PLUGIN_ROOT.
Not in Claude Code? Read docs/hosts.md in the plugin root first. Skip steps that only work in Claude Code, and follow its propose-only rule before changing any host configuration.
Set up the files that turn one-off tune-ups into a loop that keeps improving: an improvements ledger and a baseline.
Changes: creates docs/kaizen/ and writes schedule and scheduledAutonomy to docs/kaizen/config.json when you answer; auto also adds the project to the global autoProjects.
Autonomy: follow ${CLAUDE_PLUGIN_ROOT}/docs/autonomy.md. The mode comes from the skill argument (propose, safe, auto or yolo), else docs/kaizen/config.json, else agent-kaizen.json in your Claude config dir ($CLAUDE_CONFIG_DIR or ~/.claude), else propose. In safe and auto, read every "wait for my OK" below as: apply it yourself if the mode allows (backup, verify, roll back on failure, ledger row), otherwise list it as a proposal. Hard stops always ask. At most maxChangesPerRun changes (default 3). End with a summary of what was applied, skipped and rolled back.
Task
I want to set up a self-improving workflow for this project: we regularly measure how Claude Code (and Codex, if I use it) spends time, tokens and money here, make targeted changes, and check whether each change paid off.
Set up the scaffolding and ask about scheduled settings below. In safe or auto mode,
back up every existing file you touch (for example .gitignore) and write a manifest that
lists the files you create, including docs/kaizen/config.json, as docs/autonomy.md requires, so /agent-kaizen:undo works:
- Create docs/kaizen/LEDGER.md with a table:
date | change | why (which audit finding) | expected effect | measured effect | keep/revert | metric command | review date
Every new row needs a metric command in backticks (write a literal pipe as
\|; never run it automatically) and a review date inYYYY-MM-DD: the day the metric will be read, normally the next audit, at most 30 days out. For an existing six-column ledger, add the two header cells and separator cells in the same Edit as the first new row; leave older rows untouched. Add a short header explaining that every efficiency change gets a row, and that the "measured effect" column is filled in by the next audit, not by guessing. - Create docs/kaizen/README.md describing the loop in five lines: measure (audit) → propose → implement one change at a time → re-measure → keep or revert.
- Tell me which of these exist, with their size in lines and a rough token count
(characters / 4): CLAUDE.md, AGENTS.md, files they import,
<Claude config dir>/CLAUDE.md,<Claude config dir>/settings.json hooks,<Claude config dir>/agents/.md, .claude/agents/.md,<Codex home>/AGENTS.md,<Codex home>/config.toml. The Claude config dir is$CLAUDE_CONFIG_DIRor~/.claude; the Codex home is$CODEX_HOMEor~/.codex. Write that list to docs/kaizen/baseline-config.md. - Add
docs/kaizen/audit-*.md,docs/kaizen/token-audit-*.md,docs/kaizen/cycle-*.md,docs/kaizen/review-*.mdanddocs/kaizen/project-report-*.mdto .gitignore (audit reports contain paths and prompt fragments; the ledger and README stay tracked). - Ask whether to include this project in the weekly review (
schedule=activeorschedule=off; defaultactive), then whether the weekly run may apply changes here (scheduledAutonomy=autoorscheduledAutonomy=propose; defaultpropose). Wait for each answer.docs/kaizen/config.jsonmay be committed, soautoapplies to teammates' schedules too, but only on machines where the project is in the globalautoProjectslist; theconfig set --forcommand below writes that opt-in for this machine. A personal choice belongs in the global setting via/agent-kaizen:schedule. Write both answers explicitly, even when they match the defaults, because global settings may override unwritten keys:python3 ${CLAUDE_PLUGIN_ROOT}/scripts/kaizen-scheduled config set --for . schedule=<v> scheduledAutonomy=<v>. A project path with spaces or shell metacharacters cannot use scheduled auto mode. If the Claude config dir'sbin/has no scheduled runner, suggest/agent-kaizen:schedule. - Explain that
docs/kaizen/enrolls the project in the audit. An optional outcome log follows${CLAUDE_PLUGIN_ROOT}/docs/outcome-log.md. Offerpython3 ${CLAUDE_PLUGIN_ROOT}/scripts/kaizen-link --check, then after OK and with akaizen-backup, offerpython3 ${CLAUDE_PLUGIN_ROOT}/scripts/kaizen-link --applyto link the plugin scripts in<Claude config dir>/bin(copy mode when the plugin is in a plugin cache). - Suggest which of the skills I should run next, based on what you found. Don't commit; I'll review first.
Done when
two small docs plus a baseline of what your agents load on every turn.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

