self-improving-agent
БесплатноБез исполняемых скриптовНе проверенUse after a failure, user correction, repeated workflow problem, or validated success reveals a reusable lesson. Captures bounded redacted candidates, runs…
от zhaono1★ 91 звезда на GitHubОб этом скилле
Self-Improving Agent
Turn evidence from completed work into a small, auditable behavior change. The default result is a candidate or no change—not an automatic rewrite of skills.
Use This Skill When
- A tool or workflow failed in a way that may recur.
- The user corrected an assumption, requirement, or operating rule.
- The same workaround appeared more than once.
- A focused test proved a better reusable method.
- The user asks to review or consolidate learning candidates.
Do not use it for routine session summaries, raw transcript storage, speculative ideas without evidence, or project facts that belong in project documentation.
Required Outcome
Every run ends in exactly one state:
candidate: reusable but not yet validated.validated: representative evidence supports the lesson, but no owner change is claimed yet.applied: the validated lesson was installed in one named durable owner with a change reference.rejected: disproved, unsafe, too specific, or obsolete.supersededorrolled_back: an applied/validated lesson was replaced or reverted.no-delta: no reusable behavior change was found.open-question: evidence is insufficient and the missing proof is named.
An artifact is not proof of improvement. An applied lesson must change future behavior and have a representative check that demonstrates the change.
Start Packet
Before editing durable guidance, state:
- Future behavior: what the agent should do differently next time.
- Representative task: one concrete scenario that should now succeed.
- Evidence: current source, failure output, user correction, or focused test.
- Owner: the one skill, instruction file, script, or runtime component that owns it.
- Write boundary: files allowed to change and information that must remain local.
- Proof: the command, eval, or review that confirms the new behavior.
If any item is unknown, capture a candidate and stop before validation or application.
Lifecycle
1. Capture the Signal
Prefer facts over interpretation. Record only the minimum reusable summary; do not copy transcripts, tool inputs, credentials, private paths, or customer data.
Claude Code failure hooks explicitly enabled with apb init --hooks can call:
agent-playbook self-improve
Manual corrections or successes use an explicit summary and evidence label:
apb self-improve capture \
--kind correction \
--summary "Verify the current source before relying on cached state" \
--evidence "focused-test"
The CLI stores redacted events and deduplicated candidates under
~/.agent-playbook/self-improvement/. Override the root with
AGENT_PLAYBOOK_DATA_DIR or --data-dir.
2. Assess Reusability
Keep a candidate only when all are true:
- It describes future behavior, not just what happened.
- It is useful beyond one private task or repository.
- It does not conflict with a current authoritative source.
- A narrow owner and a realistic validation path exist.
Use apb behavior inbox to inspect the prioritized queue. Repeated evidence
increases occurrence count; it does not automatically increase truth. Use
apb behavior owners <candidate-id> --repo . for local suggestions, but treat
every result as a review candidate rather than an ownership decision.
3. Validate
Choose the smallest proof that can falsify the candidate, encode it as an
executable artifact, and run it with apb self-improve eval. See
references/eval-artifact.md for the schema and safety boundary.
| Candidate | Minimum proof |
|---|---|
| Prompt or workflow rule | Representative prompt plus rubric |
| CLI/runtime behavior | Focused automated test |
| External integration | Live capability check against current docs/runtime |
| Safety rule | Negative test showing the unsafe path is blocked |
| Repeated heuristic | Multiple independent episodes or explicit human confirmation |
Separate facts, hypotheses, and missing evidence. Structural validation alone does not prove that guidance is semantically current or executable by the host.
4. Validate, Apply, or Reject
Run the artifact first. A baseline scenario is recommended when the previous behavior can be reproduced safely; at least one candidate scenario is required:
apb self-improve eval cand-123 --artifact behavior-eval.json
apb self-improve review cand-123 \
--decision validate \
--reason "baseline reproduced and candidate scenarios passed" \
--eval-result /path/printed/by/the/eval/command.json
Validation accepts only a passing CLI-generated eval result for the same candidate. It does not claim runtime behavior changed.
Generate a local Behavior Change Proposal before editing the owner:
apb behavior proposal cand-123 \
--owner "skill:self-improving-agent" \
--output behavior-proposal.md
The proposal contains the behavior diff intent, eval proof, acceptance criteria, privacy boundary, and rollback plan. It does not edit the owner or cre
Установить self-improving-agent в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditBashGrepGlobВложенные файлы
FAQ
Что делает скилл self-improving-agent?
Use after a failure, user correction, repeated workflow problem, or validated success reveals a reusable lesson. Captures bounded redacted candidates, runs executable behavior evals, and separates validation from application in durable guidance.
Как установить скилл self-improving-agent?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл self-improving-agent запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic