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

Agent Self-Improvement Log

AI Agent Updated 2026.08.30

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

Install @user_28fe638b/zhao10 by following https://skillhub.cn/install/skillhub.md.

About this skill

Problem

This skill addresses a common failure mode in AI-assisted engineering: agents encounter errors, user corrections, stale knowledge, tool quirks, and missing capabilities, but those insights often remain trapped in one conversation and are re-encountered later. It turns transient session experience into searchable, trackable project notes by logging them to structured Markdown files.

How It Works

  • Initialise a .learnings/ directory with ERRORS.md, LEARNINGS.md, and FEATURE_REQUESTS.md, without overwriting existing files.
  • Capture events at the moment they occur: command failures, user corrections, API or tool failures, knowledge gaps, and feature requests, using IDs like TYPE-YYYYMMDD-XXX.
  • Track entries with Status, Priority, Area, and See Also fields so related issues can be linked instead of duplicated.
  • Detect recurring patterns by searching existing entries, then update Recurrence-Count, Last-Seen, or create a new entry with a stable Pattern-Key.
  • Promote durable rules into project memory files such as CLAUDE.md, AGENTS.md, and .github/copilot-instructions.md; OpenClaw workspaces can also use SOUL.md and TOOLS.md.

Boundaries and Notes

It fits engineering workspaces where agent collaboration is iterative and the team wants to keep the loop of “incident — fix — rule” in the repository. It is not a substitute for tests, CI, or formal postmortems, and it should not log secrets, tokens, environment variables, or full sensitive configuration unless explicitly requested. Prefer short summaries, redacted excerpts, and file paths. Cross-session sharing should only be used in trusted environments and should send concise summaries rather than raw transcripts.

Use Cases

  • Debug a backend API timeout and auth misconfiguration, then log the error, repro steps, and fix status to ERRORS.md.
  • After a user repeatedly corrects npm usage to pnpm, capture the correction in LEARNINGS.md and promote it to AGENTS.md.
  • In OpenClaw multi-session work, collect repeated Git push auth pitfalls and write a concise rule into TOOLS.md.
  • Aggregate recurring simplify-and-harden patterns, deduplicate by Pattern-Key, and promote them to CLAUDE.md after threshold.

Best For

  • Engineers maintaining Claude Code or Codex workspaces who want to turn errors and corrections into project rules.
  • OpenClaw agent-platform users who need to record tool pitfalls and behavioral conventions in SOUL.md or TOOLS.md.
  • Technical leads responsible for AI-assisted coding flows who want shared, traceable, promotable learning records.
  • Automation engineers processing simplify-and-harden output who need to deduplicate patterns and promote them into system prompts.