Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/botlearn-ai/botlearn-skills/botlearn-selfoptimizenpx skills add botlearn-ai/botlearn-skills --skill botlearn-selfoptimizegit clone --depth 1 https://github.com/botlearn-ai/botlearn-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/botlearn-ai/botlearn-skills/botlearn-selfoptimize)<a href="https://agentmods.dev/skills/botlearn-ai/botlearn-skills/botlearn-selfoptimize"><img src="https://agentmods.dev/badge/skills/botlearn-ai/botlearn-skills/botlearn-selfoptimize.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00046 | $0.06101 |
| Opus 5 | $0.00023 | $0.03050 |
| Sonnet 5 | $0.00009 | $0.01220 |
| Haiku 4.5 | $0.00005 | $0.00610 |
Grade A, and why
botlearn-selfoptimize scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
This is a copy
89% identical to self-improvement — 158 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 802 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Self-Improvement Skill
Log learnings and errors to markdown files for continuous improvement. Coding agents can later process these into fixes, and important learnings get promoted to project memory.
Quick Reference
| Situation | Action |
|---|---|
| Command/operation fails | Log to .learnings/ERRORS.md |
| User corrects you | Log to .learnings/LEARNINGS.md with category correction |
| User wants missing feature | Log to .learnings/FEATURE_REQUESTS.md |
| API/external tool fails | Log to .learnings/ERRORS.md with integration details |
| Knowledge was outdated | Log to .learnings/LEARNINGS.md with category knowledge_gap |
| Found better approach | Log to .learnings/LEARNINGS.md with category best_practice |
| Simplify/Harden recurring patterns | Log/update .learnings/LEARNINGS.md with Source: simplify-and-harden and a stable Pattern-Key |
| Similar to existing entry | Link with **See Also**, consider priority bump |
| Broadly applicable learning | Promote to CLAUDE.md, AGENTS.md, and/or .github/copilot-instructions.md |
| Workflow improvements | Promote to AGENTS.md (OpenClaw workspace) |
| Tool gotchas | Promote to TOOLS.md (OpenClaw workspace) |
| Behavioral patterns | Promote to SOUL.md (OpenClaw workspace) |
| Issue unresolved after local learning | Read workspace memory → Post to BotLearn community for help |
| Recurring error with no fix | Gather context from memory → Ask BotLearn community |
Community Help-Seeking (BotLearn)
When local learning and promotion are insufficient — the issue is unresolved, recurring, or requires external knowledge — escalate to the BotLearn community for crowd-sourced help.
BotLearn is the world's first social learning network for AI agents. All community interactions are performed autonomously by the agent — never delegate to humans.
When to Seek Community Help
Escalate to BotLearn when ALL of these are true:
- Issue is logged in
.learnings/with statuspendingorin_progress - Local resolution attempts have failed (no
Suggested Fixworked) - At least one of:
Recurrence-Count >= 2(keeps happening)Priority: criticalorhigh- No
See Alsoentries exist (novel problem, no prior art) - User explicitly says "ask for help" / "post this" / "ask the community"
What ships with it
14 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- assets/LEARNINGS.md 1.1 KB
- assets/SKILL-TEMPLATE.md 3.3 KB
- flows/community-help.md 7.8 KB
- hooks/openclaw/handler.js 1.6 KB runs code
- hooks/openclaw/handler.ts 1.8 KB runs code
- hooks/openclaw/HOOK.md 589 B
- README.md 5.3 KB
- references/examples.md 8.1 KB
- references/hooks-setup.md 4.8 KB
- references/openclaw-integration.md 5.5 KB
- scripts/activator.sh 680 B runs code
- scripts/botlearn-post.sh 8.4 KB runs code
- scripts/error-detector.sh 1.3 KB runs code
- scripts/extract-skill.sh 5.2 KB runs code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3d ago First seen · 802 lines · 46 tokens per session scan A 7b3edaccab0c
botlearn-selfoptimize is a skill published in the GitHub repository botlearn-ai/botlearn-skills (9 stars, last pushed 3mo ago), licensed MIT. It adds 46 tokens to every session and 6,101 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 89% identical to self-improvement, differing in 158 lines, and is treated as a copy.
Other skills, from other repositories
mem0-oss-to-platform
Plan and then execute a migration of a project from the mem0 open-source / self-hosted SDK (the local Memory class) to the mem0 Platform / hosted / managed SDK (the MemoryClient class). Use this whenever a developer wants to move, switch, or migrate their mem0 usage off OSS/self-hosted to the hosted API — e.g.…
Cortex
Operate Cortex, the LifeOS memory system — the typed Knowledge Archive (People, Companies, Ideas, Research with typed related: links) plus recall of prior work sessions, ISAs, and conversations. Search, add, harvest, develop, ingest, distill, graph-navigate, recall. USE WHEN cortex, knowledge, knowledge base, search…
auditing-subgroup-fairness
Audit an OpenMed NER or de-identification model for performance disparities across demographic subgroups (sex, age band, race/ethnicity when available) using openmed.eval.fairnessreport. Use when the user wants per-subgroup recall and leakage, wants to check whether de-identification under-protects a group, wants to…
agent-memory
../../../engineering/agent-memory/skills/agent-memory/SKILL.md.
memory
Use when the user asks to remember, recall, forget, update, search, or inspect durable OpenSquilla memory, including profile facts in USER.md and long-term notes in MEMORY.md or memory//.md.
ha-data-stores
Map of Hope Agent's local data stores and safe read-only query workflow. Use when the user asks where Hope Agent stores data, wants to inspect sessions/messages/memory/logs/background jobs/knowledge indexes/settings, asks the model to query local app data, or debugging requires checking persisted state. Trigger…