agentleFS
DROOdotFOODROOdotFOO/agent-skills/skills/self-improving-agent/SKILL.md

self-improving-agent

Skill1 starsChanged 3 months agoMITView on GitHub

Auto-curate memory, promote recurring patterns, and extract reusable knowledge across sessions. TRIGGER when: user says "/si:", asks about memory management, pattern promotion, or wants to review accumulated learnings. DO NOT TRIGGER when: user wants general code review, documentation, or project planning.

19 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use tavily-search, web-search and 3 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • caicongyangSkill

    tavily-search

    Tavily 搜索工具,提供 AI 优化的搜索结果。每月免费 1000 次查询。

    Also in 5 projects that use this

  • IgosukiSkill

    web-search

    This skill should be used when users need to search the web for information, find current content, look up news articles, search for images, or find videos. It uses DuckDuckGo's search API to return results in clean, formatted output (text, markdown, or JSON). Use for research, fact-checking, finding recent information, or gathering web resources.

    Also in 4 projects that use this

  • VercelSkill

    find-skills

    Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.

    Also in 6 projects that use this

  • OpenAISkill

    brainstorming

    You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

    Also in 4 projects that use this

  • VercelSkill

    frontend-design

    Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 15 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never promote after a single occurrence -- wait for recurrence

    line 70
  2. Distinctive:

    Always show the user what will be promoted and where before writing

    line 71
  3. Distinctive:

    Remove promoted entries from MEMORY.md to prevent duplication

    line 72

“Common” is measured: kept by at least 6 in 10 of the 15 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Self-Improving Agent

Curate session memory, promote recurring patterns to permanent config, and extract reusable skills.

Memory Stack

Three tiers, from most permanent to most ephemeral:

  1. Repository guidance (you write) -- AGENTS.md in Codex or CLAUDE.md in Claude Code. Project-wide rules, preferences, and conventions that survive across sessions.
  2. Review memory -- The host memory store, or a project MEMORY.md when the user has chosen a file-backed ledger. Observations, patterns, and corrections awaiting review.
  3. Session Memory -- In-context learnings that exist only for the current session. Lost on exit unless promoted.

Commands

CommandAction
reviewScan the active review-memory source for promotion candidates. Show each with recurrence count and recommendation.
promotePromote a pattern to AGENTS.md, CLAUDE.md, or an appropriate scoped rule. Remove it from review memory after promotion.
extractGenerate a complete skill from a recurring pattern (creates skills/<name>/SKILL.md).
statusShow memory stats: entries, staleness, promotion candidates, and session observations.
rememberCapture a specific observation with timestamp and context.

Invoke these as $self-improving-agent <command> in Codex, /si:<command> in Claude Code, or describe the operation in natural language.

Promotion Lifecycle

See promotion-lifecycle.md for detailed rules.

Summary: discover -> recurs 2-3x -> review flags -> promote to durable host guidance or a skill -> remove from review memory.

MEMORY.md Format

## Patterns

- [2026-04-01] Always use `--no-ff` for feature merges (seen 3x)
- [2026-04-03] Tests fail silently when DB not running -- add health check (seen 2x)

## Corrections

- [2026-04-02] User prefers `Result<T>` over panics in Rust (corrected 1x)

## Observations

- [2026-04-05] Build takes 4min -- investigate caching

What You Get

  • A curated MEMORY.md with timestamped patterns, corrections, and observations accumulated across sessions
  • Promotion recommendations identifying recurring patterns ready to graduate to AGENTS.md, CLAUDE.md, scoped rules, or a reusable skill
  • Extracted skills scaffolded from patterns that recur frequently enough to warrant standalone skill files

Rules

  1. Never promote after a single occurrence -- wait for recurrence
  2. Always show the user what will be promoted and where before writing
  3. Remove promoted entries from MEMORY.md to prevent duplication
  4. Timestamp every MEMORY.md entry
  5. Capture error patterns automatically (see promotion-lifecycle.md for error-capture hook)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.