self-improving-agent

self-improving-agent is a skill for Claude Code from kopp0510/claude-dd. It costs 94 tokens per session (1,612 once invoked), scanned A, original, MIT.

A tool for reviewing Claude Code’s saved project notes and turning repeated, reliable lessons into project instructions or reusable skills. It works with MEMORY.md, CLAUDE.md, and .claude/rules/.

In plain words
What is it for?
Use it to review memory, check its health, save important knowledge, promote proven patterns into project rules, and extract recurring solutions into standalone skills.
Why use it?
It reduces the chance that useful fixes and preferences remain buried in old notes or are forgotten between sessions. It also helps identify outdated, duplicated, or conflicting guidance.

Skill for Claude Code

Written for Claude Code: PostToolUse hook event. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./scripts/codex-install.sh --skill self-improving-agent.

Part of the self-improving-agent plugin — 5 skills, 1 hook shipped together

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/kopp0510/claude-dd
agentmods
npx agentmods add skills/kopp0510/claude-dd/self-improving-agent

Made for: Claude Code.

Or install self-improving-agent, the plugin that ships this one along with the rest of its 5 skills, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for self-improving-agent

README.md
[![agentmods](https://agentmods.dev/badge/skills/kopp0510/claude-dd/self-improving-agent.svg)](https://agentmods.dev/skills/kopp0510/claude-dd/self-improving-agent)
Your own site
<a href="https://agentmods.dev/skills/kopp0510/claude-dd/self-improving-agent"><img src="https://agentmods.dev/badge/skills/kopp0510/claude-dd/self-improving-agent.svg" alt="Measured on agentmods" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,612 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00094 $0.01612
Opus 5 $0.00047 $0.00806
Sonnet 5 $0.00019 $0.00322
Haiku 4.5 $0.00009 $0.00161

Measured 6d ago against content hash ed65e1c0ab59, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

self-improving-agent scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (hooks/error-capture.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/self-improving-agent/SKILL.md · 161 lines

How it starts

The opening of the file, as written. The whole thing — 161 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Self-Improving Agent

Auto-memory captures. This plugin curates.

Claude Code's auto-memory (v2.1.32+) automatically records project patterns, debugging insights, and your preferences in MEMORY.md. This plugin adds the intelligence layer: it analyzes what Claude has learned, promotes proven patterns into project rules, and extracts recurring solutions into reusable skills.

Quick Reference

Command What it does
/self-improving-agent:review Analyze MEMORY.md — find promotion candidates, stale entries, consolidation opportunities
/self-improving-agent:promote Graduate a pattern from MEMORY.md → CLAUDE.md or .claude/rules/
/self-improving-agent:extract Turn a proven pattern into a standalone skill
/self-improving-agent:status Memory health dashboard — line counts, topic files, recommendations
/self-improving-agent:remember Explicitly save important knowledge to auto-memory

How It Fits Together

┌─────────────────────────────────────────────────────────┐
│                  Claude Code Memory Stack                │
├─────────────┬──────────────────┬────────────────────────┤
│  CLAUDE.md  │   Auto Memory    │   Session Memory       │
│  (you write)│   (Claude writes)│   (Claude writes)      │
│  Rules &    │   MEMORY.md      │   Conversation logs    │
│  standards  │   + topic files  │   + continuity         │
│  Full load  │   First 200 lines│   Contextual load      │
├─────────────┴──────────────────┴────────────────────────┤
│              ↑ /self-improving-agent:promote        ↑ /self-improving-agent:review          │
│         Self-Improving Agent (this plugin)               │
│              ↓ /self-improving-agent:extract    ↓ /self-improving-agent:remember            │
├─────────────────────────────────────────────────────────┤
│  .claude/rules/    │    New Skills    │   Error Logs     │
│  (scoped rules)    │    (extracted)   │   (auto-captured)│
└─────────────────────────────────────────────────────────┘

Read the full file on GitHub · 161 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 161 lines · 94 tokens per session scan A ed65e1c0ab59

Subscribe to this mod's changes

self-improving-agent is a skill published in the GitHub repository kopp0510/claude-dd (6 stars, last pushed 2d ago), licensed MIT. It adds 94 tokens to every session and 1,612 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

docs-decisions

Work on Composio documentation content, Fumadocs configuration, changelogs, docs automation prompts, docs decisions, ADR-style records, and docs review guidance. Use for files under docs/, documentation workflows, or requests to record or update a docs decision. Do not use for SDK runtime changes unless docs are the…

ComposioHQ/composio · 72 tokens

skill-creator

Create new skills (SKILL.md files), modify and improve existing skills, and design skill descriptions for accurate triggering. Use when the user wants to create a new skill from scratch, edit an existing skill, optimize a skill's description, or convert a workflow they just demonstrated into a reusable skill.

waybarrios/opencode-power-pack · 63 tokens

agents-md-revise

Capture learnings from the current session into the project-rules file (AGENTS.md, CLAUDE.md, or local override) so future sessions benefit. Use when the user says "revise the rules", "update AGENTS.md / CLAUDE.md with what we just learned", "save this to project memory", "remember this for next time", or at the end…

waybarrios/opencode-power-pack · 114 tokens

session-management

Context preservation, tiered summarization, resumability.

alinaqi/maggy · 13 tokens

sol-luna-router

Route substantial coding or repository-review work through a two-stage Sol commander/verifier and separate Luna Max CLI worker. Use when the user explicitly asks Sol to direct or supervise Luna, explicitly requests this router, needs an isolated auditable Luna-owned implementation with a Sol review loop, or asks to…

majiayu000/spellbook · 123 tokens

idea-team

想法群聊室主持人 — 把一句话想法丢给多角色 AI 团队(调研员/反方/类比者)做查漏补缺。每个角色有自己的 voice,他们互相 @ 接话;你随时插话。这是创意扩展工具,不打分、不否决、不堵路。Use when 用户说"组个团队聊一下"、"开会讨论这个想法"、"找几个角度看看"、"群聊一下 X"、"team review X",或调用插件命令 /idea-coach:idea-team。Do NOT use when 用户已决定做这个想法只要 PRD(用 idea-to-product)、或用户要单独某个角色 skill、或用户只想自由 brainstorm(不需要 team 结构)。.

majiayu000/spellbook · 182 tokens