AI Agent Hub
Back to skills
AI Agent Self-Improvement Learning Log icon

AI Agent Self-Improvement Learning Log

AI Agent Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Follow https://skillhub.cn/install/skillhub.md and install @user_60b84151/test-v2-plus.

About this skill

Problem

Agents often hit one-off failures while working on code: failed commands, user corrections, changing API behavior, outdated docs, missing capabilities. If that context stays only in a chat session, the next run can repeat the same mistake, and other agents or contributors cannot reuse it.

How It Works

This skill turns feedback into structured Markdown logs, usually under .learnings/:

  • ERRORS.md: command failures, exceptions, external tool errors, with reproducible details and output.
  • LEARNINGS.md: corrections, knowledge gaps, and best practices, optionally categorized as correction, knowledge_gap, or best_practice.
  • FEATURE_REQUESTS.md: user-requested capabilities.

Entries use IDs such as LRN-YYYYMMDD-XXX, ERR-YYYYMMDD-XXX, and FEAT-YYYYMMDD-XXX, with statuses like pending, in_progress, resolved, and promoted. When a lesson recurs and applies across tasks, it can be distilled into a short rule and written into CLAUDE.md, AGENTS.md, or .github/copilot-instructions.md; in an OpenClaw workspace it may map to SOUL.md or TOOLS.md.

Boundaries

It is not an automatic fixer and does not directly patch code. Its value is a searchable, promotable feedback loop. If the project wants team-wide reuse, decide whether .learnings/ should be tracked in Git; if logs are never reviewed, they become noise. It suits long-running agent workflows, not one-shot task execution.

Use Cases

  • After a failed Bash command, exception, or API timeout, record the output in `ERRORS.md` and set its status.
  • When a user corrects a mistake, log the fix in `LEARNINGS.md`, then promote it to `CLAUDE.md` later.
  • When `simplify-and-harden` emits the same `Pattern-Key` repeatedly, count recurrence and consider `AGENTS.md`.
  • When multiple agent sessions should reuse experience, track `.learnings/` in Git and maintain `See Also` links.

Best For

  • AI engineers maintaining Claude Code project memory: need to distill corrections, errors, and requests into searchable rules.
  • OpenClaw multi-session agent operators: need to share learnings across sessions and write them into `SOUL.md` or `TOOLS.md`.
  • Backend engineers debugging automation failures: need to preserve command errors, repro steps, and promote rules into `AGENTS.md`.
  • Agent Skills maintainers: need to extract recurring learnings into reusable `SKILL.md` files.