Capture durable lessons from debugging, user corrections, missing capabilities, and repeated workflow friction so future sessions avoid the same mistakes. Us...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install actual-self-improvement或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install actual-self-improvement⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/actual-self-improvement/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: self-improvement description: Capture durable lessons from debugging, user corrections, missing capabilities, and repeated workflow friction so future sessions avoid the same mistakes. Use this skill when a non-obvious failure is diagnosed, the user corrects or updates the agent, a workaround or project convention is discovered, a capability is missing, a solved issue should be promoted into shared memory, or you should review prior learnings before changing a known-problem area. Do not use for trivial typos, expected failures, straightforward retries, or one-off noise with no reusable lesson. compatibility: Portable Agent Skills format. Core workflow is agent-agnostic. Bundled helpers require Python 3.11+; hook helpers require bash. No network access is required. Hook snippets are examples for Claude Code-style configs and OpenClaw; manual use works everywhere. metadata: version: "4.0.0" original_slug: "self-improving-agent" category: "workflow" author: "OpenAI adaptation from user-provided skill" ---
Capture, review, promote, and extract durable lessons so future sessions avoid repeating the same mistakes.
Use this skill for reusable learning, not for every bump in the road.
A good entry usually has at least one of these properties:
Do not log routine noise such as obvious typos, expected validation failures, or errors that were solved immediately with no transferable lesson.
There are two different roots in this skill:
- scripts/... - references/... - assets/...
- .learnings/LEARNINGS.md - .learnings/ERRORS.md - .learnings/FEATURE_REQUESTS.md - CLAUDE.md, AGENTS.md, .github/copilot-instructions.md, SOUL.md, TOOLS.md
Never write learnings into the installed skill directory. Always target the workspace root.
| Situation | What to do | |---|---| | User corrects you or updates a fact | Log a learning | | Non-obvious command / API / tool failure | Log an error | | User asks for a missing capability | Log a feature request | | You discover a reusable workaround or convention | Log a learning | | A pattern keeps recurring | Search related entries, link with See Also, and consider promotion | | A lesson is broadly applicable or repeated | Promote it into project memory | | A resolved, general pattern could help other projects | Extract a new skill |
Before reading or writing .learnings/, determine WORKSPACE_ROOT.
Good defaults:
If unsure, prefer the directory containing .git, AGENTS.md, CLAUDE.md, or the user's active project files.
.learnings/ if neededUse the helper instead of creating files manually:
python3 scripts/learnings.py init --root /absolute/path/to/workspace
This creates:
.learnings/LEARNINGS.md.learnings/ERRORS.md.learnings/FEATURE_REQUESTS.mdReview first when:
Use the helper:
python3 scripts/learnings.py status --root /absolute/path/to/workspace
python3 scripts/learnings.py search --root /absolute/path/to/workspace --query "pnpm" --limit 5
Always search for related entries before creating a new one.
python3 scripts/learnings.py search --root /absolute/path/to/workspace --query "keyword or pattern" --limit 10
If a similar entry already exists:
See AlsoPattern-Key for recurring issuesUse for corrections, knowledge gaps, best practices, and durable conventions.
python3 scripts/learnings.py log-learning \
--root /absolute/path/to/workspace \
--category correction \
--priority high \
--area backend \
--summary "Project uses pnpm workspaces, not npm" \
--details "Attempted npm install. Lockfile and workspace config showed pnpm." \
--suggested-action "Check for pnpm-lock.yaml before assuming npm." \
--source error \
--related-files pnpm-lock.yaml pnpm-workspace.yaml \
--tags package-manager,pnpm
Use for non-obvious failures, exceptions, or tool/API issues worth remembering.
python3 scripts/learnings.py log-error \
--root /absolute/path/to/workspace \
--name docker-build \
--priority high \
--area infra \
--summary "Docker build failed on Apple Silicon due to platform mismatch" \
--error-text "error: failed to solve: no match for platform linux/arm64" \
--context "docker build -t myapp . on Apple Silicon" \
--suggested-fix "Retry with --platform linux/amd64 or update base image" \
--reproducible yes \
--related-files Dockerfile
Use when the user wants a missing capability or a recurring friction point should become a feature.
python3 scripts/learnings.py log-feature \
--root /absolute/path/to/workspace \
--capability export-to-csv \
--priority medium \
--area backend \
--summary "User needs report export to CSV" \
--user-context "Needed for sharing weekly reports with non-technical stakeholders" \
--complexity-estimate simple \
--suggested-implementation "Add --output csv alongside existing JSON output" \
--frequency recurring \
--related-features analyze-command,json-output
Promote when the learning is broad, repeated, or something any future contributor should know.
Common targets:
CLAUDE.md — durable project facts and conventionsAGENTS.md — workflow rules and automation guidance.github/copilot-instructions.md — shared Copilot contextSOUL.md — behavioural principles in OpenClaw workspacesTOOLS.md — tool-specific gotchas in OpenClaw workspacesWrite promotions as short prevention rules, not long incident write-ups.
Example:
pnpm install in this repo; it is a pnpm workspace.”When a learning is promoted, update the original entry’s status to promoted or promoted_to_skill and record the destination.
Extract a new skill when the solution is:
Use the helper:
python3 scripts/extract_skill.py \
--root /absolute/path/to/workspace \
docker-build-fixes \
--description "Fix recurring Docker build and platform mismatch issues. Use when Docker builds fail due to architecture, base image, or runtime packaging problems." \
--from-learning-id LRN-20260313-001 \
--scaffold-evals
Or keep the old entry point if existing automation already calls it:
bash scripts/extract-skill.sh docker-build-fixes --root /absolute/path/to/workspace --dry-run
...
安装 Self Improvement (done properly) 后,可以对 AI 说这些话来触发它
Help me get started with Self Improvement (done properly)
Explains what Self Improvement (done properly) does, walks through the setup, and runs a quick demo based on your current project
Use Self Improvement (done properly) to capture durable lessons from debugging, user corrections, missing c...
Invokes Self Improvement (done properly) with the right parameters and returns the result directly in the conversation
What can I do with Self Improvement (done properly) in my ai agent & automation workflow?
Lists the top use cases for Self Improvement (done properly), with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/actual-self-improvement/ 目录(个人级,所有项目可用),或 .claude/skills/actual-self-improvement/(项目级)。重启 AI 客户端后,用 /actual-self-improvement 主动调用,或让 AI 根据上下文自动发现并使用。
Self Improvement (done properly) 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Self Improvement (done properly) 可免费安装使用。请查阅仓库了解许可证信息。
Capture durable lessons from debugging, user corrections, missing capabilities, and repeated workflow friction so future sessions avoid the same mistakes. Us...
Automate my ai agent & automation tasks using Self Improvement (done properly)
Identifies repetitive steps in your workflow and sets up Self Improvement (done properly) to handle them automatically
Self Improvement (done properly) 属于「AI Agent & Automation」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。