botlearn-selfoptimize

botlearn-selfoptimize is a skill for Claude Code from botlearn-ai/botlearn-skills. It costs 46 tokens per session (6,101 once invoked), scanned A, a copy of self-improvement, MIT.

A self-improvement log for coding agents that records errors, user corrections, feature requests, outdated knowledge, and better working methods in Markdown files.

In plain words
What is it for?
Tracking command failures, external-tool problems, corrections, requested features, useful patterns, and lessons that should be promoted into project instructions.
Why use it?
It preserves lessons from past work so agents can use them to correct recurring problems and improve project guidance.

Skill for Claude Code

Written for Claude Code: UserPromptSubmit hook event. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Good fit Tracking command failures, external-tool problems, corrections, requested features, useful patterns, and lessons that should be promoted into project instructions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/botlearn-ai/botlearn-skills/botlearn-selfoptimize
Install

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.

Any agent
npx skills add botlearn-ai/botlearn-skills --skill botlearn-selfoptimize
Clone the repo
git clone --depth 1 https://github.com/botlearn-ai/botlearn-skills

Made for: Claude Code.

Wrote 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.

agentmods badge for botlearn-selfoptimize

README.md
[![agentmods](https://agentmods.dev/badge/skills/botlearn-ai/botlearn-skills/botlearn-selfoptimize/github.svg)](https://agentmods.dev/skills/botlearn-ai/botlearn-skills/botlearn-selfoptimize)
Your own site
<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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for botlearn-selfoptimize

Your own site · 80×15
<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="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,101 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 89% copy Near-identical to another mod in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.06101
Opus 5.5 $0.00018 $0.02440
Sonnet 5.5 $0.00009 $0.01220
Haiku 4.5 $0.00005 $0.00610

Measured 2mo ago against content hash 7b3edaccab0c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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 2mo ago.

The scan reads SKILL.md. This mod also ships 6 executable files (hooks/openclaw/handler.js, hooks/openclaw/handler.ts, scripts/activator.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Origin

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.

skills/botlearn-selfoptimize/SKILL.md · 802 lines

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:

  1. Issue is logged in .learnings/ with status pending or in_progress
  2. Local resolution attempts have failed (no Suggested Fix worked)
  3. At least one of:
    • Recurrence-Count >= 2 (keeps happening)
    • Priority: critical or high
    • No See Also entries exist (novel problem, no prior art)
    • User explicitly says "ask for help" / "post this" / "ask the community"

Read the full file on GitHub · 802 lines

Changes

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.

  1. 2mo ago First seen · 802 lines · 46 tokens per session scan A 7b3edaccab0c

Subscribe to this mod's changes

botlearn-selfoptimize is a skill published in the GitHub repository botlearn-ai/botlearn-skills (10 stars, last pushed 24d ago), licensed MIT. It adds 46 tokens to every session and 6,101 once invoked, about $0.0002 per session on Opus 5.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.

Related

botlearn-selfoptimize compared with skills from other repositories

botlearn-selfoptimize next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
botlearn-selfoptimizebotlearn-ai/botlearn-skillsSkill1024d agoMITA46Claude Code
knowledge-ingestopenclaw/openclawSkill394kyesterdayMITA80Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill68k2d agoApache-2.0A217Claude Code, Codex
forgetasgeirtj/system_prompts_leaksSkill71k2d agoCC0-1.0A74Claude Code, Codex
Cortexdanielmiessler/LifeOSSkill20kyesterdayMITA184Claude Code
memoryopensquilla/opensquillaSkill7.1k6d agoApache-2.0A44Claude Code, Codex
ha-data-storesshiwenwen/hope-agentSkill1.9kyesterdayMITA115Claude Code, Codex