AI Agent Hub
Back to skills
Self-Improvement Log icon

Self-Improvement Log

AI Agent Updated 2026.08.30

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

Please install @user_189e97e8/ceshirui according to https://skillhub.cn/install/skillhub.md.

About this skill

Problem

AI coding agents often repeat the same mistakes: forgetting the package manager, skipping type checks, misreading environment setup, or losing context after a session ends. Manually maintaining CLAUDE.md, AGENTS.md, or .github/copilot-instructions.md tends to lag behind real work, and useful rules end up buried in chat history.

How It Works

This skill turns runtime experience into traceable Markdown logs. During first use, it initializes .learnings/ at the project or workspace root with LEARNINGS.md, ERRORS.md, and FEATURE_REQUESTS.md. When a command fails, a user corrects the agent, knowledge becomes outdated, or a feature request appears, the skill appends a categorized entry and assigns a stable ID such as LRN-20250115-001 or ERR-20250115-A3F using the TYPE-YYYYMMDD-XXX pattern.

Key steps include:
- Log immediately: prefer short summaries, reproduction steps, and relevant file paths.
- Track status: move entries from pending to in_progress, resolved, wont_fix, or promoted.
- Detect recurrence: search existing logs with grep, add See Also links, raise priority, and decide whether the issue needs docs, automation, or an architecture fix.
- Promote durable rules: write broadly applicable guidance into CLAUDE.md, AGENTS.md, or .github/copilot-instructions.md; in OpenClaw workspaces, also consider SOUL.md and TOOLS.md.
- Use optional hooks: trigger reminders or error detection via UserPromptSubmit and PostToolUse hooks.

Boundaries

It fits long-lived coding-agent workflows, not one-off scripts or memoryless tasks. Logs can capture sensitive context, so avoid recording secrets, tokens, full source files, or raw command output by default. Before sharing with a team, decide whether to keep logs local, commit them as shared knowledge, or track templates while ignoring entries.

Use Cases

  • During Claude Code or Codex sessions, log command failures and user corrections to .learnings/ERRORS.md and LEARNINGS.md.
  • After finishing a feature, distill reusable pnpm or TypeScript client regeneration rules into CLAUDE.md or AGENTS.md.
  • When debugging similar failures, search .learnings with grep, add See Also links, and raise priority for recurring issues.
  • In an OpenClaw workspace, promote behavioral guidelines and tool gotchas into SOUL.md and TOOLS.md respectively.

Best For

  • Engineers maintaining Claude Code or Codex workflows who want agents to log errors and corrections as traceable entries.
  • Tech leads defining AI coding standards who want recurring pitfalls written into CLAUDE.md, AGENTS.md, or Copilot instructions.
  • Developers using OpenClaw for long-lived agent work who want behavioral and tool guidance promoted to SOUL.md and TOOLS.md.
  • Engineers debugging complex environments who need to record pnpm, Docker, or CI/CD setup gotchas to prevent repeats.