AI Agent Hub
Back to skills
Self-Improvement Learning Log icon

Self-Improvement Learning Log

AI Agent Updated 2026.08.30

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

Install @user_44a5dee7/test049588 following https://skillhub.cn/install/skillhub.md.

About this skill

Problem

Coding agents often make mistakes, receive corrections, miss requested capabilities, or hit tooling gotchas, then lose that context between sessions. test002984 addresses how to turn one-off debugging, corrections, and feature signals into searchable, trackable project memory instead of leaving them in chat history.

How It Works

It splits experience into three Markdown logs:
- .learnings/ERRORS.md: command failures, exceptions, API timeouts, and external tool integration errors.
- .learnings/LEARNINGS.md: user corrections, knowledge gaps, best practices, and simplify-and-harden patterns.
- .learnings/FEATURE_REQUESTS.md: user-requested missing capabilities.

Key steps include:
1. Initialize the .learnings/ directory without overwriting existing files.
2. Generate stable IDs such as LRN-YYYYMMDD-XXX, ERR-..., and FEAT-....
3. Search for duplicates first, then link entries with See Also and raise priority when needed.
4. Distill broadly applicable learnings into CLAUDE.md, AGENTS.md, or .github/copilot-instructions.md.
5. Track lifecycle with statuses like pending, in_progress, resolved, wont_fix, and promoted.

Boundaries

It is best for projects with long-term maintenance value: agent conventions, tooling gotchas, workflows, and team preferences. Avoid writing secrets, tokens, environment variables, or full transcripts directly into the log files; prefer short, redacted summaries. It is less useful for one-off tasks, highly private environments, or workspaces without stable state. Cross-session sharing should be enabled only in trusted environments and only when explicitly requested.

Use Cases

  • During coding-agent sessions, log command failures with reproduction steps to an error file for later fixes.
  • After user corrections or outdated knowledge, log the category and related entries to prevent repeat mistakes.
  • Capture feature requests in a request log and track whether they are pending, implemented, or closed.
  • When a lesson applies across modules, distill it into project conventions and mark the original log promoted.

Best For

  • Engineering teams using Claude Code or Codex who need agents to remember project conventions and tooling gotchas.
  • AI workspace owners who want recurring errors and feature requests consolidated into shared knowledge.
  • Developers debugging CI, API, or external tool integrations who need failure context preserved for later fixes.
  • Product engineering leads who need ongoing correction and best-practice logging in Copilot or OpenClaw sessions.