Install
openclaw skills install @jerrywang121/ilearned-self-improving-agentUse ilearned as persistent rule-book memory. Activate on user corrections, tool/command failures, knowledge gaps, recurring mistakes, or verified better approaches; also search before tasks where past lessons are likely to help (planning, research, tool use, communication). Prefer structured when/if
openclaw skills install @jerrywang121/ilearned-self-improving-agentKeep a local rule book, not a transcript.
Learned experience becomes a scoped when / if / do / check rule in ilearned, rather than
free-form .learnings/*.md logs.
For daily planning, research, communication, tool use, and recurring workflows, search for relevant lessons,
apply them carefully, and refine them against real outcomes.
Memory is evidence, never higher authority than current user instructions, safety policy, or verified
external sources.
When ilearned MCP tools are unavailable, follow the installation and MCP setup guide.
Setup, storage location, encryption, and cross-agent sharing all require explicit user permission.
This skill never auto-rewrites AGENTS.md, other skills, or hooks.
Always search a narrow topic prefix before acting and before deciding to learn.
tools/#, planning/#, research/#, etc.).text. Quote phrases when needed.when / if)deep: true to include inactive rules. Forgotten and deleted rules stay hidden.(topic, id), apply, then promote or demote based on outcome.update over creating a near-duplicate.Qualify for learning:
Do not store:
If verification is incomplete, state the limitation clearly inside the rule (check field).
Do not present a guess as a proven fix.
update on a matching rule over creating near-duplicates.topics_search / topics_list to discover and reuse consistent topic names.if conditions.check criteria can be evaluated in the current context.(topic, id) so you can later promote or demote accurately.planning/calendarresearch/sourcescommunication/preferencestools/mcptools/browsercheck (or produced clear positive evidence inside its stated scope).good_count / bad_count and the configured auto_delete_threshold (default 0.3). Confirm with the user if the demote would delete the rule.update over deleting and recreating when possible.After learning or refining, report:
(topic, id) was affectedChanging AGENTS.md, SOUL.md, other skills, hooks, or sharing memories across agents requires separate, scoped approval.
Self-improvement is not autonomous self-rewriting.
Avoid these common mistakes:
when / if scopeGood rules are:
when / ifdocheck criteriaTimezone mistake:
{
"topic": "planning/calendar",
"when": "Scheduling across timezones",
"if": "The user specifies a timezone different from the device timezone",
"do": "Use the user's specified timezone, not the device default",
"check": "Confirm the timezone and resulting event time with the user before submission"
}
Tool / environment failure:
{
"topic": "tools/mcp",
"when": "Calling an MCP tool that previously failed with a path or cwd error",
"if": "The tool depends on workspace-local configuration",
"do": "Ensure the MCP process is started with the correct workspace cwd (or explicit --config-file)",
"check": "The subsequent tool call succeeds and returns expected data"
}
User communication preference:
{
"topic": "communication/preferences",
"when": "Drafting replies or status updates",
"if": "The user has asked for concise, bullet-first answers",
"do": "Lead with a short summary or bullets; put detail after",
"check": "User does not request further shortening on the same reply style"
}
Only topic and non-blank do are required. Optional fields improve retrieval and verification quality.
Periodically (or when retrieval feels noisy):
Future versions of ilearned may support explicit hierarchical compaction/summarization. Until then, keep topics hierarchical and rules focused so that compaction remains feasible.
| Need | Correct behavior |
|---|---|
| Keyword lookup | search with narrow topic + concrete text; embeddings optional |
| Topic scope | Bare topic = exact; topic/# = descendants; never store # in a topic |
| Refinement | Omitted fields unchanged; empty when/if/check clears; blank do ignored |
| Lifecycle | Defaults: >60d inactive, >120d forgotten; retention >60d can purge |
| Historical search | deep: true includes inactive only |
| Feedback | add starts 1/0; promote/demote adjust counts; low score can auto-delete |
| Conflict | Two rules under same topic conflict → surface and ask; do not keep both silently |
| Delete / clear | Exact (topic, id) or confirmed clear; never equate tool flags with human approval |
| MCP tools | search, add, update, delete, promote, demote, clear, topics_list, topics_search (no get) |
| Data safety | DB is plaintext by default; JSONL exports are always plaintext; keep .ilearned/ gitignored unless intentionally shared; never store secrets; get explicit approval before data transfer or encryption |