AI Agent Hub
Back to skills
Self Improvement Logging icon

Self Improvement Logging

AI Agent Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please follow https://skillhub.cn/install/skillhub.md and install @user_cfce8954/aaa.

About this skill

The problem

Coding agents can fix a bug in one session, yet lose the cause, user corrections, tool constraints, and missing capabilities in chat history. When a similar issue appears later, the agent may repeat the mistake. This skill writes those signals into Markdown files in the repo or workspace, so future agents can search, reproduce, resolve, and promote stable rules into project memory.

How it works

  • Local logs: maintain .learnings/ at the project root, with ERRORS.md, LEARNINGS.md, and FEATURE_REQUESTS.md, without overwriting existing files.
  • Structured entries: use IDs like LRN-YYYYMMDD-XXX, ERR-YYYYMMDD-XXX, and FEAT-YYYYMMDD-XXX, plus status, priority, area tags, and context.
  • Trigger logging: immediately record command failures, user corrections, stale knowledge, better practices, or feature requests, with reproduction steps and relevant file paths.
  • Deduplicate and track: link similar entries with See Also; raise priority when issues recur and decide whether documentation, automation, or an architectural fix is needed.
  • Promote memory: when a rule applies across features or contributors, distill it into concise guidance for CLAUDE.md, AGENTS.md, .github/copilot-instructions.md, or OpenClaw workspace files such as SOUL.md and TOOLS.md.

Boundaries

Best for long-lived, multi-agent, or team-shared engineering repositories. Avoid logging secrets, tokens, private keys, environment variables, or unredacted source; if logs will be committed, verify content safety first. It is not an automatic bug fixer, but a workflow that turns transient agent experience into reviewable, searchable, promotable project knowledge.

Use Cases

  • After a build or test command fails, capture the exit code, stack trace, and files in `ERRORS.md`.
  • When a user corrects stale API assumptions, record the correction, old assumption, and rule in `LEARNINGS.md`.
  • When similar command constraints recur across tasks, update the `Pattern-Key` count and consider promotion to `AGENTS.md`.
  • Before starting a new module, search `.learnings/` for past errors and feature requests to avoid repeat mistakes.

Best For

  • Engineering leads using Claude Code to maintain repos and distill transient experience into `CLAUDE.md`.
  • Platform operators configuring OpenClaw workspaces and recording tool gotchas in `TOOLS.md`.
  • Tech Leads coordinating humans and multiple agents with shared conventions and automation rules.
  • Senior engineers repeatedly fixing similar Copilot generation errors and leaving searchable context.