Install
openclaw skills install lean-skill-builderBuilds lean SKILL.md-based skills: decides when a skill is justified, drafts a minimal skill skeleton, and audits existing skills for bloat and drift. Use when creating a new skill, tightening an existing one, or deciding whether the right answer is a plain edit, an existing tool, or a subagent instead. Also use when reviewing a skill's trigger description, restructuring a bloated SKILL.md, or moving detail into references. Even if the user just says "should this be a skill?" or "this skill feels too big," use this.
openclaw skills install lean-skill-builderUse this skill when the job is to decide, build, or audit a skill itself.
This is a narrow builder, not a meta-agent and not a skill factory. Prefer the smallest useful answer.
SKILL.md into references/Run the decision tree first
Read references/decision-tree.md and choose between plain edit, existing
tool/skill, subagent, or a lean skill.
If the answer is not "use a skill," stop there Prefer the honest recommendation over unnecessary skill creation.
If a skill is justified, build the smallest workable skeleton
Read references/supporting-files-guide.md and produce only what is earned:
SKILL.mdreferences/ with 1-3 files only if they reduce context load or hold optional detailassets/ only if the skill produces output that depends on bundled filesscripts/ stub only if deterministic execution is clearly warrantedWrite the skill body well
Read references/writing-patterns.md for guidance on voice, examples,
output templates, and explaining the why behind instructions.
Keep SKILL.md minimal
Include only:
name, description) — see references/frontmatter-patterns.mdIf any of these behave wrong, revisit the description or workflow before shipping.
Audit before expanding
Use references/audit-checklist.md to remove bloat, stale claims, weak triggers,
duplicate guidance, and files that do not earn their keep.
Apply the Tool Addition Gate lightly If the proposed skill is compensating for a missing primitive, check this order: existing tools → lean skill → subagent/retrieval pattern → new tool only if clearly needed.
When building, produce the smallest useful package in this order:
skill-name/
├── SKILL.md
└── references/
└── optional-file.md
namedescriptionSKILL.md outline
Include only the sections the skill actually needs.
Optional additions
Suggest 1-3 references/ files if justified.
Suggest an assets/ folder only if the skill needs bundled templates or static files.
Suggest a scripts/ stub only if exact repeatable execution matters.
Optionally suggest publish metadata ideas (description/tags), but do not package or publish.
Recommendation: Use a skill
skill-name/
├── SKILL.md
└── references/
└── checklist.md
name: skill-name
description: Helps with X. Use when the user asks for Y or needs Z.
SKILL.md should then contain only:
references/checklist.mdSKILL.mdSKILL.mdThis skill handles the pre-flight phase: deciding if a skill is warranted and
structuring the smallest viable version. For testing, iteration, and benchmarking
of a built skill, hand off to skill-creator (if available), which provides eval
runners, comparison viewers, and description optimization loops.
references/decision-tree.md — choose skill vs tool vs subagent vs plain editreferences/frontmatter-patterns.md — lean frontmatter, description patterns, and pushy trigger guidancereferences/writing-patterns.md — voice, examples, output templates, and instruction stylereferences/supporting-files-guide.md — progressive disclosure model and what belongs in each folderreferences/audit-checklist.md — fast bloat/spec-drift reviewLead with the recommendation, then provide only the smallest justified build or edit plan.