Self-Improving Agent
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md to install @user_37a4b62c/self-improving-nj.
About this skill
Problem
AI agents often repeat the same failures across multi-turn tasks, projects, and parallel sessions: user preferences get ignored again, error context disappears after the current conversation, reusable patterns are not preserved across projects, and accumulated experience rarely becomes executable skill. self-improving addresses this gap by adding a lightweight memory and review loop to the agent, instead of relying on the model to reconstruct context from scratch every time.
How It Works
The skill works through capture, reflection, sharing, and extraction. At session start, it performs a light sweep: removes files in ~/self-improving/shared/ older than 7 days, keeps the shared directory under 20 files, and compacts memory.md when it exceeds 100 lines. During work, it detects user corrections, runtime errors, feature gaps, knowledge gaps, and better approaches, then stores reusable information in project-local or global files. For cross-session exchange, it uses a flat shared/ directory as a lightweight board: each file contains one short insight, and other sessions can read it at task start or context switches, apply it, and delete it after use. Memory is organized into HOT, WARM, and COLD tiers, with frequent rules kept in memory.md, project and domain patterns stored in more specific files, and stale content demoted to archives. Once a pattern is repeatedly validated, it can be extracted into a SKILL.md.
Boundaries
It fits long-running collaboration, multi-project reuse, and cross-session consistency in engineering workflows. Be careful to record only explicit corrections or verified issues, avoid treating silence as rules, and never store secrets, tokens, or sensitive personal data. Do not load all memory at once; prefer the HOT tier and the smallest matching files. Shared notes should capture reusable rules, not debugging details from a single session.
Use Cases
- During parallel refactoring across repos, log repeated corrections and validated patterns to shared/ for other sessions.
- While debugging API timeouts and auth failures, record error signals and project patterns in .learnings/LEARNINGS.md for review.
- When maintaining long-term code conventions, distill user preferences into memory.md or projects/{name}.md.
- When a troubleshooting method works repeatedly, extract it into skills/{name}/SKILL.md and verify it in a fresh session.
Best For
- Engineers maintaining multi-project agent workflows who need to turn user corrections into stable preferences.
- Agent engineers orchestrating cross-session tasks who need to share short insights and control directory growth.
- Team leads building long-term coding conventions who need to promote effective patterns into project or domain rules.
- Agent skill-library editors who need to decide which experiences can be extracted into reusable skills.
Related Skills
An AI workflow that structures personal knowledge bases, IMA, Yuque, and Feishu content into approved personas for paid WeChat mini-agent deployment.
Local workflow memory with matching and SOP updates.
An OpenClaw live streaming executor that initializes TRTC streaming, starts a real-time dashboard, generates viewer URLs, and continuously reports live events.
Breaks down physical supply chains for super-trends to identify second- and third-layer bottlenecks, runs valuation and reverse checks, and maintains trackable reports.