Self-Improvement Learning Log
Paste the following prompt into your AI chat to install this skill:
Install @user_7feb6caf/self-improvement-v2 by following https://skillhub.cn/install/skillhub.md.
About this skill
Problem Being Solved
In AI-agent-assisted development, useful context is easily lost: a failed pnpm install, a correction like “regenerate the OpenAPI client first,” or a CI permission gotcha can recur if it is not captured. self-improvement-v2 focuses on turning errors, corrections, feature requests, and knowledge gaps into searchable, trackable, promotable project memory rather than fixing code directly.
How It Works
The skill expects a .learnings/ directory at the project or workspace root, usually with Markdown logs such as:
LEARNINGS.md: user corrections, knowledge gaps, best practicesERRORS.md: command failures, exceptions, external tool issuesFEATURE_REQUESTS.md: capabilities the user wants added
When triggers appear—non-zero exits, stack traces, “that is outdated,” “can you also support this,” or a better approach discovered—the agent should append a structured entry. Entries use stable IDs such as LRN-20250115-001, ERR-20250115-A3F, or FEAT-20250115-002, plus Status, priority, area tags, related files, and See Also links.
The promotion step matters most: if a lesson is not one-off but applies across files, tasks, or team conventions, distill it into a concise rule and write it to project memory such as CLAUDE.md, AGENTS.md, or .github/copilot-instructions.md. In OpenClaw workspaces, it may also go to SOUL.md or TOOLS.md. Recurring patterns can be tracked with Pattern-Key and Recurrence-Count before becoming system-prompt guidance.
Boundaries
This skill fits long-lived agent workspaces where tools read project memory, including Claude Code, Codex, Copilot, and OpenClaw. It does not automatically implement fixes, and its value depends on timely, specific, actionable logging. Avoid recording secrets, tokens, full source files, or long raw output; prefer redacted summaries. Hooks are optional and may inject reminders or inspect command output, so review their setup before enabling.
Use Cases
- When `pnpm install` fails in Claude Code, log an `ERR` entry and link the `pnpm-lock.yaml` fix.
- When a user says API changes require regenerating the TS client, record the correction and promote it to `AGENTS.md`.
- When CI repeatedly fails on `git push` auth, log the `ERR`, raise priority, and distill a rule into `AGENTS.md`.
- Dedupe `Pattern-Key` candidates from simplify-and-harden, track `Recurrence-Count`, and promote durable rules.
Best For
- Engineers maintaining Claude Code projects who want to distill gotchas into `CLAUDE.md` to avoid repeat mistakes
- OpenClaw workspace agent developers who want to capture tool pitfalls and behavior preferences in `TOOLS.md` or `SOUL.md`
- Tech Leads sharing agent context with teams who need to turn feature requests and workflow improvements into project memory
- Engineers debugging Codex/Copilot who want to record API behavior differences and promote them to `copilot-instructions`
Related Skills
Automatically searches job postings based on the user profile, AI-scores fit, saves desktop reports, and sends email updates with scheduled tracking.
Activates bionic reasoning for causal judgment, numerical prediction, and hypothesis validation, using hypothesis-driven checks, Bayesian updates, falsifiability tests, bias defense, and physical constraints.
Triggered by /plan, it asks the agent to output a plan, risks, impact scope, and validation approach before execution.
Track and clean agent session files, packages, and Skills via trash-first safety.