Skip to content
borghei avatar

Self Improving Agent

Curated memory and reviewed promotion that turn repeated session lessons into permanent agent rules.

CCM score
63 of 100
skills.sh installs
248
GitHub stars
1.2K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the loop Remember, Extract, Promote, Review, with a Status dashboard for tracking memory state and learning progress
  • Includes 6 scripts, among them memory_health_checker.py, pattern_extractor.py, rule_promoter.py, feedback_analyzer.py, regression_detector.py, and rule_manager.py
  • Enforces human approval before any rule is applied, with a default promotion threshold of 3 recurrences and automatic rollback on regressions
  • Designed for building agents that improve over time while managing auto-memory and self-correcting feedback loops

Install

$ npx -y skills add borghei/claude-skills --skill self-improving-agent -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Self-Improving Agent

The agent captures what went wrong or right in a session, curates it in memory, and proposes promoting a lesson into a permanent rule only when it has recurred and a person has approved it. Rules compound: a wrong rule repeats its mistake in every later session, so promotion is a reviewed change, never an automatic one.

Core Capabilities

  • Memory curation — a layered memory stack (CLAUDE.md → MEMORY.md → session), review protocol, and promotion criteria for graduating learnings into enforced rules.
  • Feedback loops — outcome classification, signal extraction, and a capture template that turn every task result into a structured learning.
  • Regression detection — metrics, thresholds, and a response protocol that flags performance degradation within a few sessions.
  • Skill extraction — criteria and a 4-step process to graduate proven patterns into standalone skill packages.
  • Meta-learning — adaptive capture strategy and anti-pattern detection so the agent learns what is worth learning.
  • Continuous calibration — confidence scoring and belief revision for resolving contradictions across learned knowledge.

When to Use

Details

Repository
github.com/borghei/claude-skills
Categories
Memory & Context, AI Agents & LLM Apps, Agent Workflow & Planning
First seen
Jun 3, 2026

Questions

What does the self-improving-agent skill do?

self-improving-agent captures errors and learnings from a session, curates them in memory, and proposes promoting a lesson into a permanent rule only after it has recurred and a person has approved it. It also runs memory health checks and regression analysis on agent behavior.

How do I install the self-improving-agent skill?

Run npx -y skills add borghei/claude-skills --skill self-improving-agent -y in your project to install it. After that, the agent can check memory health, extract recurring patterns from session logs, and propose reviewed rule promotions.

Who should use self-improving-agent?

self-improving-agent suits teams building agents meant to improve over time rather than stay stateless. It also fits anyone managing auto-memory in MEMORY.md who needs to decide what to keep, promote or retire.

Does self-improving-agent promote lessons into rules automatically?

No, self-improving-agent shows a dry-run of the proposed rule and its target file before applying anything. It applies a promotion only after the user gives an explicit yes, so wrong rules do not repeat in later sessions.

More from borghei/claude-skills

All 81

Similar to Self Improving Agent

More Memory & Context