/memory:improve-skillsfrom memory
Generates approval-gated Skill improvement proposals from Memory Skill telemetry. Use when repeated failures suggest a skill should be patched but direct self-modification is unsafe.
Ships in memory. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Generate concrete Skill improvement proposals from Skill telemetry evidence.
Generate approval-gated Skill improvement proposals from telemetry evidence, review each one before applying, and never patch a skill without explicit human approval.
Prefer JSON when another agent or command will inspect the result:
node "${CLAUDE_PLUGIN_ROOT}/scripts/bootstrap.mjs" improve skills --json
To write proposal files:
node "${CLAUDE_PLUGIN_ROOT}/scripts/bootstrap.mjs" improve skills --write-proposal --json
To list and inspect pending proposal files before applying or archiving:
node "${CLAUDE_PLUGIN_ROOT}/scripts/bootstrap.mjs" improve proposals list --json
node "${CLAUDE_PLUGIN_ROOT}/scripts/bootstrap.mjs" improve proposals show .red/memory/proposals/<proposal>.md --json
To apply a reviewed proposal that contains a structured patch block:
node "${CLAUDE_PLUGIN_ROOT}/scripts/bootstrap.mjs" improve apply .red/memory/proposals/<proposal>.md --yes --json
To remove a reviewed proposal from the pending queue without deleting history:
node "${CLAUDE_PLUGIN_ROOT}/scripts/bootstrap.mjs" improve proposals archive .red/memory/proposals/<proposal>.md --reason rejected --yes --json
The command writes proposals under:
.red/memory/proposals/
See init-chain state taxonomy — for uninitialized, run /memory:init; for no-op, re-run with --mode graph; for unavailable, add --skill-telemetry.
no-candidates — telemetry does not currently support a proposal.proposal-ready — dry-run found proposal candidates but wrote no files. JSON summaries include recentFailures, dominantErrorStage, dominantErrorClass, patchDrafted, score, priority, and scoreReasons for machine-readable routing.proposal-written — proposal files were written or refreshed for review, including recent failure evidence, a deterministic Fingerprint, and a draft structured patch block when the skill file has a safe unique insertion anchor.applied — an explicitly approved structured patch was applied.pending — proposal lifecycle listing found pending proposal files.shown — a specific proposal file was returned for review.archived — a proposal was moved under .red/memory/proposals/archive/<reason>/.For each proposal, inspect:
Only patch the skill after explicit human approval or an equivalent review gate.
memory improve apply refuses to run unless all of these are true:
--yes;--root;oldString appears exactly once in the target file.Patch block format:
```json memory-skill-patch
{
"path": "plugins/dev/skills/example/SKILL.md",
"oldString": "text to replace",
"newString": "replacement text"
}
```
memory improve proposals list/show/archive to keep the pending queue clean and auditable.oldString: it should target Setup/Prerequisites for setup failures, Execution/Commands for execute failures, Verification/Validation for verify failures, and Troubleshooting/Common Pitfalls for timeout/lock/rate-limit style failures when those sections exist.json memory-skill-patch block only when the target skill is readable and has a safe unique anchor.--yes and an exact oldString match before applying a proposal.--yes and an explicit --reason applied|rejected|stale.memory improve skills currently proposes fixes for curatable skills flagged as frequently-failing by partitioned Skill telemetry rollups. Each Evidence card gets a deterministic fingerprint from its telemetry source, refinement route, dominant error pattern, and telemetry window; unresolved cards in captured, routed, or proposed status with the same fingerprint are refreshed in place, while reviewed or terminal cards (approved, rejected, promoted, archived) are preserved and a later run creates a new card. Draft patch blocks choose a semantic section anchor from the dominant failure stage/class before falling back to a tail anchor. It is deliberately proposal-gated: the Memory plugin may write .red/memory/proposals/*.md, but applying a patch remains an explicit review step handled outside this command.
This is the first mutating stage in the self-improvement loop. Proposal generation mutates only .red/memory/proposals/; proposal application can patch a target skill only when a reviewed structured block plus --yes are both present.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
skill-patching, telemetry, proposal-generation, memory-skill
14 skills in this plugin
/context-statusReport the project context stack posture without mutating anything. Use when checking whether agent rules, domain docs, ADRs, Memory graph/telemetry, and LLM Wiki are ready before a large task or self-improvement loop./doctorInspect and maintain the memory graph — list stale nodes (long-unaccessed and never recalled) and, only after explicit confirmation, prune them. Use when the user says "memory doctor", "clean up memory", "what's stale in memory", "prune old memory", or wants a health check of the graph. Graph mode only./exportExport the memory graph to a self-contained, navigable bundle — graph.json (data), graph.html (an interactive node-link view that opens straight from disk), and audit.md (a health summary). Use when the user says "export memory", "visualize the memory graph", "show me the graph", "dump the memory graph", or wants to browse what's stored. Graph mode only.npx claudepluginhub reddb-io/red-skills --plugin memoryOther plugins' skills for the same job