Self-Improving Agent
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md and install @zcwl/self-improving.
About this skill
Problem: feedback rarely compounds
Agents often start every session from zero. Corrections, project preferences, and reusable workflows remain scattered in chat history. Over time this creates two risks: important rules are not retained consistently, or one-off context is mistaken for durable preference, making behavior unpredictable. self-improving focuses on turning corrections, preferences, and self-reflection into auditable local memory.
How it works: tiered memory and proactive maintenance
The skill organizes state under ~/self-improving/. Its core approach is not online learning, but maintaining readable and exportable Markdown rules. Typical steps include:
- Capture learning signals: when the user explicitly corrects the agent, states a stable preference, or when the agent identifies an improvement after significant work, record it in
corrections.mdormemory.md. - Store by tier: frequent rules stay in the HOT layer of
memory.md; project and domain patterns stay inprojects/anddomains/as WARM; low-frequency content moves toarchive/as COLD. - Promote conservatively: a lesson is promoted only after repeated evidence, avoiding one-off instructions, hypothetical questions, or silence being treated as long-term rules.
- Cite sources: when using memory, name the source file; support querying, exporting, demotion, and loading the HOT layer first when context is tight.
Scope
It fits agent workflows that need stable memory for user preferences, project conventions, and correction lessons. It does not read calendars, email, or contacts, does not make network requests, and should not blindly delete memory during heartbeat cleanup. Sensitive data, health data, and third-party information should follow the boundary rules and not be written into local memory.
Use Cases
- After three repeated code-naming corrections, the agent promotes the rule to HOT and follows it in subsequent turns
- Across multiple projects, the agent isolates preferences under projects/ to prevent global config pollution
- After a multi-step refactor, the agent triggers self-reflection and logs reusable lessons to corrections.md
- When the context window is tight, the agent loads only memory.md and reports which WARM files were skipped
Best For
- Frontend engineers who repeatedly correct output style and want preferences persistently retained
- Architects maintaining multiple repos who need per-repo preference isolation
- Indie developers who want the agent to self-reflect and distill lessons after complex tasks
- AI engineers who need to audit memory sources and verify rules were not over-promoted
Related Skills
Run a grilling session to interact with or test AI agents.
A systematic prompt optimization skill that refines prompts using a four-step distillation framework (diagnose, structure, think, compress) and methodologies from four prompting masters.
Tencent Cloud OCR agent for K-12 exam grading with async full-sheet or single-question marking, handwritten answer recognition, correctness, knowledge points, and coordinates.
Quickly converts a user's input, list, or screenshot into a multi-page workbench, supporting template selection, custom builds, and responsive layouts.