borghei avatar

Self Improving Agent

Most agents repeat the same mistakes because they're stateless. This skill gives you patterns for agents that actually learn: feedback loops that capture what worked and what failed, memory curation that turns session logs into actionable rules, and a promotion system that graduates proven patterns from MEMORY.md into enforced rules in CLAUDE.md. It's built as five sub-skills (Remember, Extract, Promote, Review, Status) that form an improvement cycle, plus scripts for pattern extraction and regression detection. Use this when you're building agents that run repeatedly and you're tired of watching them make the same errors. The core insight is solid: auto-memory captures everything, but curation is what makes it useful.

skills.sh installs
241
GitHub stars
1.1K
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/borghei/claude-skills
Categories
Documentation, AI & Agent Building
First seen
Jun 3, 2026

More from borghei/claude-skills

All 82
1cloudai-x avatarconvex-backendcloudai-x/claude-workflow-v2Convex backend development guidelines. Use when writing Convex functions, schemas, queries, mutations, actions, or any backend code in a Convex project. Trigger240skills.sh installs
2nexu-io avatardigital-eguidenexu-io/open-designA two-spread digital e-guide preview — page 1 is a cover (display title, author, "What's inside" stats, table of contents teaser); page 2 is a spread (lesson bo239skills.sh installs
3charleswiltgen avataraxiom-ios-testingcharleswiltgen/axiomUse when writing ANY test, debugging flaky tests, making tests faster, or asking about Swift Testing vs XCTest. Covers unit tests, UI tests, fast tests without 238skills.sh installs
4cosai-oasis avatarsoftware-securitycosai-oasis/project-codeguardA software security skill that integrates with Project CodeGuard to help AI coding agents write secure code and prevent common vulnerabilities. Use this skill w236skills.sh installs
5pluginagentmarketplace avatarrequirements-specificationpluginagentmarketplace/custom-plugin-product-managerMaster requirements gathering, user story writing, acceptance criteria definition, and scope management. Transform insights into clear, actionable specification236skills.sh installs
6sendaifun avatarsolana-agent-kitsendaifun/skillsComprehensive guide for building AI agents that interact with Solana blockchain using SendAI's Solana Agent Kit. Covers 60+ actions, LangChain/Vercel AI integra236skills.sh installs