From Agent Toolkit
Captures durable user feedback into skills or governing docs so future sessions don't repeat mistakes. Use when the user rejects, reverts, or overrides agent output on a skill-covered topic.
How this skill is triggered — by the user, by Claude, or both
Slash command
/agent-toolkit:self-improveThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Suggest** durable improvements to the skill or governing doc that should have steered the agent,
Suggest durable improvements to the skill or governing doc that should have steered the agent, so the next session gets it right without being told again — and apply them only after the user approves. The skill proposes; the user stays in control of every change. Three ways in:
/self-improve to deliberately improve a skill or doc."Skill/doc" means any standing instruction: a SKILL.md, AGENTS.md/CLAUDE.md, a
coding-standards or convention doc, a rules file — anything that guides future agents.
SKILL.md goes through
compact-skill-creator; any other doc (rule,
AGENTS.md/CLAUDE.md, convention doc) goes through
compact-docs-writer. Actually invoke the skill and follow its
workflow before drafting or applying; reading it, applying its principles by hand, or naming it
after a direct edit does not count.Signals the agent was corrected in a way worth persisting: the user rejects or reverts a choice ("no, do X instead"), states a standing preference ("we always…", "never…"), or redirects an action the agent took under a skill or doc.
Only persist a durable lesson — one that generalizes and will recur. Skip one-off, task-specific tweaks that won't apply next time; persisting those pollutes the docs. Whenever unsure whether it generalizes, ask the user.
AGENTS.md/
CLAUDE.md, convention docs). If one exists, it's the target — and if that rule already existed
yet failed to steer the agent, the discoverability gap is the lesson, not a no-op: don't stop
at "the rule exists." Diagnose why it didn't fire (buried, in a doc the agent wouldn't open for
this action, scoped or worded too narrowly, or unenforced) and fix that root cause: surface it
where the agent looks, tighten its scope, cross-reference it, or propose mechanical enforcement
(e.g. a lint rule). If none fits, propose a new target and ask before drafting: a new skill for a
recurring workflow, a new rule for a standing constraint, or the most fitting doc otherwise. Ask
whenever unsure.SKILL.md → compact-skill-creator, any
other doc → compact-docs-writer — presenting a diff and applying only on approval.npx claudepluginhub eai-org/agent-toolkit --plugin agent-toolkitImproves Claude Code skills post-use: diagnoses issues from execution (outdated/missing/unclear/wrong), previews diffs, edits SKILL.md after confirmation, logs changes.
Analyzes work sessions to propose improvements to skills by detecting corrections, successes, and edge cases. Activates automatically after skill use or via `self-improve`.
Records user feedback and integrates lessons into skill documentation, avoiding append-only pitfalls. Triggered by '记录反馈', '更新规则', '改进skill'.