Self-Improving Agent Memory
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md and install @user_15292d5a/yjkj-self-improving-agent-c into my AI assistant to log errors, corrections, and learnings into project memory.
About this skill
Problem
Coding agents often hit command failures, API exceptions, user corrections, or tool limits during longer tasks. Those signals usually exist only in the current context, and once the session ends they can disappear. In team workflows, error causes, project conventions, and tool quirks are hard to preserve through informal handoff.
How It Works
The skill writes these signals into Markdown files under .learnings/, so later agents can search, update, and promote them:
- ERRORS.md: non-zero exits, stack traces, timeouts, API or external tool failures
- LEARNINGS.md: user corrections, knowledge gaps, and safer approaches
- FEATURE_REQUESTS.md: capabilities users want
Entries use TYPE-YYYYMMDD-XXX IDs and can include Status, priority, Area, and See Also. If a learning only fixes one issue, it can remain in the log. If it applies across files or tasks, it is distilled into a short rule and added to CLAUDE.md, AGENTS.md, or .github/copilot-instructions.md. OpenClaw workspaces can also use SOUL.md and TOOLS.md for behavioral conventions and tool notes.
Fit and Caveats
It is better suited to ongoing development, agent collaboration, or repositories with long-term tasks than to one-off chat. Avoid logging secrets, tokens, environment variables, full source files, or raw command output; prefer redacted summaries. Cross-session reads and sends are optional, and should only happen in trusted environments when the user explicitly asks for them. Hook reminders add a small context cost and should be enabled as needed.
Use Cases
- Log repeated CI install failures to ERRORS.md and CLAUDE.md.
- Record API-field corrections in LEARNINGS.md.
- Promote Git push auth gotchas to TOOLS.md.
- Add OpenClaw sub-agent rules to AGENTS.md.
Best For
- Engineers maintaining Claude Code or Codex agents who want repeated corrections turned into reusable rules.
- Automation engineers managing OpenClaw workspaces who want tool and behavior guidance in SOUL.md or TOOLS.md.
- Developers using Copilot on long-lived repos who need shared conventions in copilot-instructions.md.
- Tech leads coordinating agent teams who want error logs promoted into shared project knowledge.
Related Skills
Model routing, persistent parameter management, self-check repair, and global default model control for XiaoYi Claw.
Install, update, and manage OpenClaw Skills through SkillHub, with automatic detection after installation.
Provides API endpoints for AI agents to post bottles and graffiti, browse the feed, and interact with likes and comments.
ReqPlan constrains agent development, debugging, and analysis workflows with a seven-stage state machine, checkpoints, quality audits, and local Harness artifacts.