Install
openclaw skills install skill-optimizer-2Analyze the current conversation history and local installed skills to identify missed skill triggers, overlapping or duplicate skills, weak metadata, stale...
openclaw skills install skill-optimizer-2Audit the current thread and the locally visible skill set, then turn findings into a clear action queue that the user can review and choose from.
This skill is for governance and optimization, not for silently changing skills. Start with analysis, produce a report, and only edit files after the user chooses actions.
Unless the user explicitly provides extra logs or transcript files, use:
Do not claim global usage statistics unless the user provided cross-thread logs or telemetry.
Audit for these issue types:
missed_trigger
A task in the current thread clearly matched an existing skill, but that skill was not used.weak_metadata
name or description likely under-trigger because they miss common user phrasing or contexts.duplicate_skill
The same skill, or near-identical copies, exist in multiple active places.overlap_skill
Two or more skills cover nearly the same job and create ambiguity.stale_skill
The skill description, instructions, bundled files, or agents/openai.yaml are out of sync.risky_skill
The skill enables dangerous actions but lacks guardrails, warnings, or confirmation points.install_flow_issue
The install, sync, backup, or directory workflow is confusing or inconsistent.unused_candidate
Based on the current thread and local structure, a skill appears low-value or inactive. Phrase this carefully; it is not proof of never being used globally.Follow this sequence.
Identify the skill roots that are relevant to the current workspace. Typical places include:
./.agents/skills./.claude/skillsskills/ directoriesFor each skill, capture at least:
agents/openai.yaml existsReview the current conversation history and extract:
Use exact evidence from the thread when possible, but keep quotations short.
Compare the thread evidence against the local skill inventory.
Pay special attention to:
Structure the report using the schema in report-schema.md.
The report must include:
Keep findings evidence-based. If something is an inference rather than a direct fact, say so.
Every action item must expose exactly these user-facing actions:
FixMergeDeleteKeep and SkipDo not introduce extra action labels like archive or disable in the user-facing menu. If you internally think a "soft delete" is safer, explain that inside the recommendation, but keep the action menu limited to the four agreed options.
Do not modify any skill during the audit step.
Only after the user selects action items should you:
agents/openai.yamlIf the user selects Delete, confirm the exact target before removing files when there is any ambiguity.
Use these defaults unless the evidence strongly suggests otherwise:
FixMergeDeleteKeep and SkipFor unused_candidate, be conservative. Prefer Keep and Skip or Fix over Delete unless the user explicitly wants aggressive cleanup.
When running the audit, return:
Example response pattern:
Action Queue
- I01: Recommend `Fix`
- I02: Recommend `Merge`
- I03: Recommend `Keep and Skip`
Reply with selections such as:
- `I01 -> Fix`
- `I02 -> Merge`
- `I03 -> Keep and Skip`