Retrofit existing OpenClaw skills with self-bootstrap memory capability.
This skill upgrades a target skill so it can:
- read
references/LESSONS.mdbefore execution, - preserve reusable Hard Constraints / Common Failure Cases / Best Practices,
- and continuously improve from prior memory instead of repeating known mistakes.
In short: this is a meta skill for skill infrastructure, not for business task execution.
Given one or more target skills, skill-self-bootstrap will typically:
- Normalize/add a
Skill Memory and Iteration Protocolsection in targetSKILL.md - Create or refresh
references/LESSONS.md - Pull prior signal from memory sources (Mem0 + workspace memory files + target skill docs)
- Distill findings into reusable lesson categories
- Keep
SKILL.mdworkflow-focused and move corrective memory intoLESSONS.md
Use this skill when the user asks for things like:
- “给这个 skill 加自举能力 / 自迭代能力”
- “加错题集 / lessons / best practices”
- “初始化或刷新
LESSONS.md” - “把历史踩坑经验沉淀到 skill 里”
- “让这个 skill 能记住之前错误并避免重复”
Do not use it for normal domain work (e.g. data query, design, copywriting). It is specifically for upgrading skill memory architecture.
skill-self-bootstrap/
├── SKILL.md
└── references/
└── templates.md
SKILL.md: the runnable skill instructionsreferences/templates.md: reusable protocol/LESSONS template snippets
From SKILL.md compatibility:
readwriteeditexecmemory_searchmemory_get
These are required because the skill must inspect/modify files and retrieve memory evidence.
From your OpenClaw workspace root:
git clone https://github.com/Shire31/skill-self-bootstrap.git skills/skill-self-bootstrapOr if directory exists, update:
cd skills/skill-self-bootstrap
git pullgit submodule add https://github.com/Shire31/skill-self-bootstrap.git skills/skill-self-bootstrap
git submodule update --init --recursiveThis skill is auto-triggered via SKILL.md frontmatter description, but agents can also invoke it intentionally when users request lesson/bootstrap enhancements.
- “给
customer-account-research-feishu加自举能力并初始化 lessons” - “把
xxxskill 的历史失败经验整理到references/LESSONS.md” - “刷新
yyyskill 的 protocol + lessons,按最新记忆修正”
For each target skill, agents should produce:
- Updated
SKILL.mdwithSkill Memory and Iteration Protocol - Updated
references/LESSONS.mdwith reusable entries - A short summary including:
- what changed,
- where memory was sourced,
- what was seeded,
- and any known gaps for next pass
When target is skill-creator, this skill should enforce that:
- newly created skills include self-bootstrap capability by default, unless user opts out;
- new skills should include protocol block +
references/LESSONS.md+ first-pass lessons initialization.
This turns self-bootstrap into a default factory standard for future skills.
After installation, verify:
skills/skill-self-bootstrap/SKILL.mdexistsskills/skill-self-bootstrap/references/templates.mdexists- agent has access to required tools (
memory_search,memory_get, file tools)
Then run a small test prompt:
“帮我给某个已有 skill 补自举 protocol,并生成 first-pass LESSONS.md”
If target skill files are updated with protocol + lessons structure, installation is valid.
Suggested release flow:
git tag v0.1.0
git push origin main --tagsFor consumers:
cd skills/skill-self-bootstrap
git fetch --tags
git checkout v0.1.0MIT (see LICENSE).