/open-skills:self-improvefrom open-skills
Detects concrete improvement signals in skills after they run — ambiguous instructions, edge cases, misfired rules, user corrections — and proposes specific diffs for approval. Trigger via /self-improve or automatically after participating skills.
Ships in open-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Self-Improvement (SIP) turns each skill run into a chance for that skill to get better. When a participating skill finishes, SIP checks whether the run surfaced a concrete improvement signal for the skill — and if so, drafts a specific improvement and surfaces it for the handler to approve. It is the per-skill, in-the-moment, signal-triggered counterpart to the deliberate batch reflection of /insight-skill-gap and /insight-retro.
SIP is the structural mirror of NSP: NSP runs after a skill and asks "what should you do next?"; SIP runs after a skill and asks "how should this skill be better next time?"
SIP is invoked two ways: automatically, when a skill carrying the SIP opt-in block completes; or directly, as /self-improve [skill] to review a specific skill against the most recent run.
Structured execution spec:
protocol.yon. Read it for the canonical rules and step sequence; this file is explanation. The two must stay in sync — if you edit one, update the other and refresh the@STAMPdate.
Conservative by default. A missed minor improvement is cheaper than nag fatigue. SIP surfaces nothing unless a signal is concrete, material (it cost or gained something this run — a deviation, a guess, a halt, a wrong output, or a practice that improved the result) or recurring within the session (the same signal seen ≥2× this session), and a specific fix is ready. Silence is the common case.
SIP fires only on concrete signals tied to this run. Vibes ("this could be cleaner") do not qualify. The qualifying signals:
During the run, note any signal above. On completion, answer from this run's evidence:
good-practice)fixed-pitfall)forced-deviation or edge-case)An answer the skill already covers is not a signal.
Apply the conservative bar above; otherwise stay silent. Then check the within-session already-proposed set — if this same improvement was surfaced earlier this session and not acted on, do not re-surface it (re-nagging is the failure mode). This is SIP's equivalent of COP's and AGP's anti-nag gate. (Cross-session dedup is a v2 backlog item — see Depth & safety.)
Produce a specific diff, not prose hand-waving: the target file (SKILL.md and/or protocol.yon, or a directive), the exact lines to add/change, and a one-line rationale tying the change to the signal. Bundle all qualified signals into one proposal of at most 3 items, each in the skill's nearest existing section; never add a section for one item. Prefer replacing or deleting text over adding it. If the run instead reveals that a new skill is warranted (recurring multi-step pattern with no home), delegate the authoring question to /insight-skill-gap rather than drafting a skill from scratch here.
If a required vetting or approval helper is unavailable, stop the dependent proposal path, name the missing coverage when material, and do not reconstruct the helper or surface an unvetted approval request. This does not block completion of the parent task. Full installations retain the existing depth and vetting sequence.
Run /insight-cross-examine inline under a SIP-RESOLVED marker on the drafted items plus the no-change option; no fan-out when the caller is a leaf; suppress next-skill offers for this sub-step. Keep the items that survive, revised as it recommends. If none survive, record the proposal in the within-session already-proposed set and stay silent.
Route the cross-examined proposal through /ask-gate (the proposal is itself a handler question) — invoked under a SIP-RESOLVED marker (see Depth & safety) — recommended action first: approve / edit / decline. Never auto-apply — Apply an approved proposal through its verified canonical source owner and Skill Smith update/write procedure; current approval selects scope but never replaces path, preimage, conflict or recovery prerequisites. An installed projection is not the source. Managed directives must go through their owner; do not edit managed bytes as an ordinary skill tweak. On approve, use that owner and (for dual-doc skills) keep SKILL.md ↔ protocol.yon in sync and bump the @STAMP. On decline or no-action, record it in the within-session already-proposed set so it isn't raised again this session.
A skill joins SIP by declaring itself self-improvable (per-skill front-matter is canonical):
self-improvable: true. Capable procedural skills (phases, gates, judgment) opt in; pure routers, mode-setters, and reference cards omit it (nothing to tune from a run).Self-improvement. On completion, run the Self-Improvement Protocol (
self-improve/SKILL.md): apply its signal taxonomy and threshold to this run; surface any surviving proposal for handler approval. Conservative — silent otherwise. Never auto-apply.
@STEP rid=step:sip as the last step, after step:nsp where present.The field is metadata — the harness does not execute it; it is read by SIP, by audit tooling, and by humans.
rule:no-auto-apply MUST_NOT + the /ask-gate human approval — not an assumed harness feature. (The harness's auto-mode self-edit classifier does gate writes to agent-config like CLAUDE.md — confirmed to fire on such edits — but whether it also intercepts edits to individual skill files is unverified, so SIP does not lean on it.)skill-improvements/ store ships (v2 backlog), the mitigation is the conservative bar plus surfacing once and respecting the handler's standing decision.SIP-RESOLVED marker). SIP invokes /insight-cross-examine and /ask-gate and may invoke /insight-skill-gap; all are themselves SIP participants whose completion would otherwise re-fire SIP, an unguarded SIP → ask-gate → SIP → … loop. SIP closes this the way COP and AGP do: when it invokes them it prepends a SIP-RESOLVED marker carrying depth: 1; under that marker they run inline and neither their own step:sip nor any nested SIP re-enters the gate. The marker is the recursion guard — a prose rule alone is memory-dependent, since no harness signal detects the nesting.SIP joins the skill-hook family and never conflicts with the others:
caller-options) — before a skill: routes venue/mode.ask-gate) — the question moment: triages and quality-gates any handler question.next-skills) — after a skill: recommends successor skills.self-improve) — after a skill: proposes improvements to the skill that just ran.NSP and SIP both run on completion and compose cleanly: NSP points forward (what to do next), SIP points inward (how this skill should evolve). SIP surfaces through AGP.
/ask-gate → AskUserQuestion. Codex or any runtime without a structured-question tool: present the proposal + recommended action as prose and wait./self-improve [skill] runs the protocol on demand against the most recent run of a named skill — useful to deliberately mine a skill you just used heavily for tuning opportunities, or to audit one skill's fit without waiting for an automatic trigger.
Not a batch reflection and not a library audit. For a deliberate scan of recent work for new/updated skills use insight-skill-gap; for a full post-implementation retrospective use insight-retro; for library health (descriptions, cross-refs, runtime parity), run a dedicated library-audit pass. SIP is the lightweight, per-run, signal-triggered detector that feeds those when a pattern is bigger than one fix.
What SKILL.md sets; muted values are Claude Code's defaults
93 skills in this plugin
/agent-mailboxTwo or more agents — any harness, any vendor — collaborate through any shared folder: share a folder, load the skill, point at it.
/agent-outputCompact agent-to-agent communication contract for worker reports, handoffs, status, blockers, and review findings. Trigger phrases: "/agent-output", "brief the worker", "make agent reports terse". Not a transport; use /agent-mailbox for delivery.
/ask-gateThe Ask-Gate Protocol (AGP). Before surfacing an AskUserQuestion, triage whether the question is genuinely the handler's call (anti-nag); ask routine questions directly after a quality checklist, but escalate high-stakes / branching / irreversible ones through /insight-critique then /insight-assess first. Trigger via /ask-gate, or automatically before any handler-facing question. Not /caller-options (routes a skill's venue/mode) or /next-skills (recommends successors) — AGP governs the question itself.
/ask-meConstructively interview someone about an idea, task, project or decision so useful work can start. Use when explicitly asked to be interviewed, including “ask me”; ordinary task requests do not start this interview./audit-code-commentsInventory the code comments in a repository, classify each one against the code it sits beside (tautology, stale, excuse, decision, keep, uncertain), then report, prune or strictly migrate them: delete noise, turn excuse comments into issue drafts, move decisions into ADRs, and optionally lock the result with a per-file comment ratchet. Edits go through a real parser with a token guard. Scales from a small module to a large repo with a pilot batch, path stages and budget gates. Trigger on /audit-code-comments, "audit the comments in this repo", "clean up code comments", "move comments to ADRs", "turn TODO comments into issues", "add a comment ratchet". Not for reviewing a diff for bugs (use /cold-review), not for prose in docs (use /prose-audit), not for duplicated constants (use /audit-coupled-constant).
/audit-coupled-constantAudit every site of a constant whose value is duplicated across multiple call sites (retry budgets, timeouts, page sizes, magic numbers, feature flags). The author-maintained `SEE ALSO` trail is documentation, not enforcement — one missed site means the trail lies. Trigger on /audit-coupled-constant, "audit budget consistency", "find all sites of this value", "check coupled invariant", "before raising this constant", or after any edit to a constant that has SEE ALSO cross-references in its comments. Pairs naturally before /cold-review on a "raise the budget" PR. Not for extract-constant refactors that consolidate scattered values into a single named import — use /improve-codebase-architecture. Not for constants enforced by the type system (TypeScript `as const` literal imported everywhere) where the compiler is the audit — skip.npx claudepluginhub allemaar/open-skills --plugin open-skillsOther plugins' skills for the same job