Self-Reflection Memory
Paste the following prompt into your AI chat to install this skill:
Please install @user_416e33b9/reflection-v2 using https://skillhub.cn/install/skillhub.md.
About this skill
Problem
Agents in long conversations often repeat the same mistakes: users repeat preferences, fixed bugs resurface, and project conventions are not retained. Dumping all lessons into long context can exceed limits and can turn one-off instructions into durable rules. This skill turns corrections, preferences, and reusable patterns into auditable local memory instead of relying on implicit recall.
How It Works
It stores state under ~/self-improving/ with tiers: memory.md as HOT for confirmed high-frequency rules, projects/ and domains/ as WARM for scoped conventions, and archive/ as COLD for decayed material. It triggers logging when users explicitly correct behavior, state preferences, or after significant work. Candidate patterns usually need about three repetitions before becoming stable rules, avoiding inference from silence or one-off observations.
When users ask what the agent knows, show patterns, or request memory stats, it retrieves the relevant tier and reports counts. If files approach limits, it merges similar rules, archives stale patterns, and compresses verbose entries, while preserving confirmed preferences. Memory usage should cite sources for traceability. It only reads and writes its local directory, does not access calendar, email, or contacts, and makes no network requests. If context is low, it should degrade to HOT memory and disclose what is not loaded.
Use Cases
- When a frontend user repeatedly corrects component naming, store the project convention in projects/ and retrieve it before generating code.
- After a multi-step task, have the agent assess outcome gaps and write recurring mistakes to corrections.md as candidates.
- When asked what is known, search HOT, WARM, and COLD tiers and report memory stats with counts per tier.
- Resolve conflicts between project and global preferences using specificity, recency, or by asking the user.
Best For
- Engineering teams maintaining long-term project agents who want repeated corrections stored as retrievable rules.
- Agent developers building code review or writing assistants who need preferences and error samples tiered.
- Workspace ops engineers using heartbeat maintenance who need local state to be queryable, exportable, and safe from accidental deletion.
- Product engineers running parallel projects who need conventions isolated by project and domain.
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.