Agent Self-Improvement Log
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 withERRORS.md,LEARNINGS.md, andFEATURE_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, andSee Alsofields 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 stablePattern-Key. - Promote durable rules into project memory files such as
CLAUDE.md,AGENTS.md, and.github/copilot-instructions.md; OpenClaw workspaces can also useSOUL.mdandTOOLS.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.
Related Skills
Turn vague requests into structured prompts with role, task, context, and constraints, outputting only usable prompts without executing the task.
A skill for game NPC and enemy AI that separates decision, steering, and pathfinding, covering FSMs, behavior trees, A*, path caching, and pitfalls.
Provides multi-turn emotional companion chat through a third-party Agent API and supports continuing sessions via session_id.
An evaluation-driven workflow for diagnosing, optimizing, validating, and logging Agent Skills based on design patterns and anti-patterns.