botlearn-selfoptimize

botlearn-selfoptimize is a skill for Claude Code, Codex 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 CodeCodex

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.

agentmods
npx agentmods add skills/botlearn-ai/botlearn-skills/botlearn-selfoptimize
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, Codex.

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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00046 $0.06101
Opus 5 $0.00023 $0.03050
Sonnet 5 $0.00009 $0.01220
Haiku 4.5 $0.00005 $0.00610

Measured 3d ago against content hash 7b3edaccab0c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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. 3d 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 (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.

Related

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

mem0ai/mem0 · 273 tokens

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…

danielmiessler/LifeOS · 196 tokens

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…

maziyarpanahi/openmed · 148 tokens

agent-memory

../../../engineering/agent-memory/skills/agent-memory/SKILL.md.

alirezarezvani/claude-skills · 0 tokens

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.

opensquilla/opensquilla · 44 tokens

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…

shiwenwen/hope-agent · 115 tokens