Install
openclaw skills install skill-optimizeAudit and improve existing Agent Skills (SKILL.md files) against the agentskills.io standard. Use this skill whenever the user wants to optimize, polish, improve, audit, review, fix, or refine an existing skill — even if they don't say "skill optimizer" explicitly. Triggers on phrases like "improve my skill", "audit SKILL.md", "make my skill trigger better", "fix the description", "is my skill well written?", "review this skill", "polish my skill", "this skill underperforms", or any request to update a SKILL.md for clarity, triggering accuracy, or structure. Runs a 3-dimension audit (Specification / Best Practices / Description Optimization), produces a severity-ranked report, and proposes concrete edits. For full eval-driven iteration with baseline comparisons, defer to the skill-creator skill.
openclaw skills install skill-optimizeA focused, opinionated tool for auditing and improving existing Agent Skills. Where skill-creator covers the full create-from-scratch workflow (interview → draft → eval → iterate), this skill is the lighter, faster counterpart you reach for when the skill already exists and the question is "how do I make it better?"
The optimization framework is built directly on the three pillars from agentskills.io:
When the user wants full eval-driven iteration with subagent runs, baseline comparisons, and an HTML viewer, defer to the skill-creator skill. Use this skill for everything else.
Use this skill for any of:
SKILL.mdDo not use this skill to create a new skill from scratch — for that, start with skill-creator. If the user has a draft and wants to run evals, hand off to skill-creator after the first pass here.
Every optimization pass runs the same three dimensions. The order matters — fix Specification issues first, then Best Practices, then Description. A skill that violates the spec won't even load; a skill with bad content won't produce good outputs; a skill with a bad description won't be reached at all.
The spec is binary — either the file is valid or it isn't. Read the agentskills.io Specification in detail at references/specification-checklist.md. The audit covers:
SKILL.md exists at the skill root.name and description fields.name is kebab-case, 1–64 chars, no leading/trailing hyphens, no consecutive hyphens, matches the parent directory.description is 1–1024 chars, no angle brackets, non-empty.compatibility (if present) is 1–500 chars.name, description, license, allowed-tools, metadata, compatibility.SKILL.md — no references/sub/deep/file.md chains.Run scripts/audit_skill.py <path> to perform the mechanical checks. It returns the same errors and warnings the agentskills.io validator would catch, plus a few content-level checks (line count, body structure).
Best practices are softer — a skill can be spec-valid and still be vague, over-long, or unscoped. Read the detailed audit at references/best-practices-checklist.md. The key axes:
references/ with explicit triggers (e.g. "Read references/<topic>.md if the API returns a non-200 status").For each axis, give a verdict: Pass / Warning / Fail with one sentence of evidence.
The description field is the entire triggering mechanism. The agentskills.io guide emphasizes that agents only consult skills for tasks requiring knowledge beyond what they can handle alone — so simple one-step requests may not trigger even a perfect description. The audit covers the wording; triggering accuracy in practice also depends on the user actually having non-trivial work to do.
Read the full guide at references/description-guide.md. The audit checks:
The output of this dimension is a list of specific edits to the description, often in before/after form.
A single optimization pass follows this sequence. Skip steps only if the user is explicit ("just fix the description").
Ask the user one focused question if it's not obvious: What problem are you trying to solve with this skill? Common intents:
Don't ask more than one question at a time. The user's intent shapes which dimensions get the deepest treatment.
SKILL.md. The user usually points at it directly. If not, search common locations: ~/.claude/skills/, ~/.agents/skills/, project-local .claude/skills/, plugin caches.<workspace>/original-SKILL.md) so the user can diff the changes. Don't write back to a read-only path without copying first.Read the relevant reference checklist for each dimension as you go. Use the bundled scripts/audit_skill.py for the mechanical (Dimension 1) checks — it produces a structured pass/fail list. For Dimensions 2 and 3, do them by reading and applying the checklist; LLMs are better judges of content quality than regex.
Use the template at assets/report-template.md. Fill in:
The report is what the user reviews and approves. Don't apply changes silently.
Walk through each proposed edit with the user. For each:
Apply all approved edits, then re-run scripts/audit_skill.py to confirm the result is still spec-valid.
If the user wants to verify the improvements actually change behavior (not just structure), hand off to skill-creator. That skill's eval-driven iteration is the right tool for measuring output quality, not this one. This skill optimizes the artifact; skill-creator measures the outcome.
A single optimization pass produces:
SKILL.md plus a validation pass confirming the file is still spec-valid.It does not produce: eval runs, baseline comparisons, triggering-rate measurements. Those are skill-creator's job.
These come up over and over. When you see them, name them explicitly — the user is more likely to act on a named pattern than a generic "this is unclear."
references/ and tell the model when to read each file.For the full list and how to fix each, see references/common-issues.md.
references/specification-checklist.md — Detailed Dimension 1 audit checks.references/best-practices-checklist.md — Detailed Dimension 2 audit checks.references/description-guide.md — Detailed Dimension 3 audit guide.references/common-issues.md — Catalog of recurring problems and their fixes.scripts/audit_skill.py — Programmatic Dimension 1 checks (spec + body length).assets/report-template.md — The report structure to fill in for the user.Read the relevant reference file before auditing in that dimension. Don't try to hold all four checklists in your head at once.
Match the user's familiarity. Most users optimizing a skill know what YAML and frontmatter are; some don't. When in doubt:
The user is iterating on an artifact they care about. Be direct about what's wrong and why. Don't pad the report with "great question!" — they want signal.