OpenClaw Self-Improvement
by @x-rayluan
A reusable operator-guided workflow improvement skill for OpenClaw and ClawLite that turns repeated failures into logged learnings, binary eval loops, SOPs,...
clawhub install openclaw-self-improvementπ About This Skill
name: openclaw-self-improvement description: A reusable operator-guided workflow improvement skill for OpenClaw and ClawLite that turns repeated failures into logged learnings, binary eval loops, SOPs, checklists, and proof-based operational improvements. metadata: { "openclaw": { "requires": { "bins": ["node"] }, "writes": [".learnings/", "memory/harness-backlog-latest.md", "mission-control/data/delivery-receipts/agent-scorecard-YYYY-MM-DD.md", "AGENTS.md", "TOOLS.md", "SOUL.md"], "env": ["WORKSPACE", "OBSIDIAN_LEARNINGS_DIR"], "network": false, "notes": "Local-file workflow only. Promotion writes should be reviewed and can be previewed with --dry-run." } }
OpenClaw / ClawLite Self-Improvement
Use this skill to turn mistakes, corrections, blockers, and better approaches into durable operating knowledge.
What problem this solves
AI ops often repeat the same failures because mistakes stay in chat history instead of becoming system rules. This skill creates a lightweight improvement loop:When to use
Use this skill when the user asks:Files this skill uses
.learnings/LEARNINGS.md.learnings/ERRORS.md.learnings/FEATURE_REQUESTS.md.learnings/EXPERIMENTS.mdmemory/harness-backlog-latest.mdmission-control/data/delivery-receipts/agent-scorecard-YYYY-MM-DD.md.learnings/exports/obsidian/ by default, or OBSIDIAN_LEARNINGS_DIR if explicitly configuredSafety boundaries
AGENTS.md, TOOLS.md, or SOUL.mdscripts/promote-learning.mjs ... --dry-runOBSIDIAN_LEARNINGS_DIR should only point at a path you intend to modifyCommand examples
node {baseDir}/scripts/log-learning.mjs learning "Summary" "Details" "Suggested action"
node {baseDir}/scripts/log-learning.mjs error "Summary" "Error details" "Suggested fix"
node {baseDir}/scripts/log-learning.mjs feature "Capability name" "User context" "Suggested implementation"
node {baseDir}/scripts/log-learning.mjs experiment "Target problem" "Baseline failure" "Single mutation to test"
node {baseDir}/scripts/log-experiment.mjs "Target problem" "Baseline failure" "Single mutation" "eval1|eval2|eval3" "Result summary" "testing"
node {baseDir}/scripts/promote-learning.mjs workflow "Rule text"
node {baseDir}/scripts/analyze-openclaw-failures.mjs --output /Users/m1/.openclaw/workspace/memory/harness-backlog-latest.md
node {baseDir}/scripts/daily-agent-scorecard.mjs --output /Users/m1/.openclaw/workspace/mission-control/data/delivery-receipts/agent-scorecard-$(date +%F).md
node {baseDir}/scripts/daily-agent-scorecard.mjs --repair --output /Users/m1/.openclaw/workspace/mission-control/data/delivery-receipts/agent-scorecard-$(date +%F).md
Categories
learning
Use for:error
Use for:feature
Use for:experiment
Use for:harness
Use for:Default failure taxonomy:
NetworkPolicyBlocked - provider/tool blocked by local or external network policyGatewayUnavailable - gateway process, port, websocket, or reachability failureSessionContextRot - stale session, stale skill snapshot, identity drift, or outdated config contextSkillMissing - expected skill absent from installed path or session snapshotToolInvalidArguments - malformed tool/edit call or bad argument shapeProviderError - provider/model/API failure not caused by network policyExternalPlatformBlocked - X/LinkedIn/Facebook/Feishu/etc. platform/API/login/visibility blockerHumanApprovalRequired - real approval boundary for external, destructive, production, money, or ambiguous actionHarness workflow:
1. Scan logs and receipts with scripts/analyze-openclaw-failures.mjs.
2. Generate same-day agent scorecard with scripts/daily-agent-scorecard.mjs.
3. Run scripts/daily-agent-scorecard.mjs --repair to create/update recovery tickets for failed, blocked, or pending lanes.
4. Convert repeated classes into an error, experiment, or promoted rule.
5. Do not call a workflow closed until the scorecard has proof links or explicit blocker evidence.
Repair loop rules:
failureClass, repairState, nextAction, repeatCount7d, and evidence.ProofMissing, UpstreamMissing, and HumanApprovalRequired must not be blindly retried.agent + lane + failureClass failures within 7 days should become EXPERIMENT_REQUIRED.mission-control/data/recovery-tickets-v3/YYYY-MM-DD/.Promotion targets
AGENTS.md β workflow / delegation / execution rulesTOOLS.md β tool gotchas, secrets locations, environment routing rulesSOUL.md β behavior / communication / non-negotiable principlesKaren / Mission Control compatibility
This skill is designed to work with stricter ops governance:Eval loop rule
When a repeated failure is turning into a new rule/SOP/checklist, do not only log it. Also: 1. define 3-5 binary evals 2. record the baseline failure state 3. change one thing at a time 4. re-check the same evals 5. classify the change as keep / discard / partial_keepUse {baseDir}/references/eval-loop.md for the experiment format and examples.
Output goal
A good use of this skill should produce one of:Important limits
References
{baseDir}/references/schema.md{baseDir}/references/promotion-guide.md{baseDir}/references/eval-loop.md{baseDir}/references/examples.md{baseDir}/references/decision-rules.md{baseDir}/references/eval-loop.md{baseDir}/references/examples.md