Skills skill-refiner
Audit and fix all skills in the workspace for compliance with skill-creator requirements. Use when asked to "refine skills", "audit skills", "check skill quality", or "fix non-compliant skills". Exhaustively searches the entire workspace (not just skills/) to find every SKILL.md, then audits and repairs each one.
install
source · Clone the upstream repo
git clone https://github.com/openclaw/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/1va7/skill-refiner" ~/.claude/skills/clawdbot-skills-skill-refiner && rm -rf "$T"
manifest:
skills/1va7/skill-refiner/SKILL.mdsource content
Skill Refiner
Finds every skill in the workspace, audits each against skill-creator requirements, and fixes non-compliant ones.
Workflow
Step 1 — Discover all skills
bash scripts/find_skills.sh [workspace_dir]
This searches the entire workspace for
SKILL.md files (not just skills/). Skills created without following skill-creator conventions may end up anywhere.
Step 2 — Audit each skill
python3 scripts/audit_skill.py <skill-dir>
Returns JSON with:
— blocking problems that must be fixedissues
— advisory improvementswarnings
— true only when issues is emptycompliant
Run this on every path returned by Step 1. Batch example:
bash scripts/find_skills.sh | while read dir; do python3 scripts/audit_skill.py "$dir" done
Step 3 — Report findings
Summarize results in a table:
| Skill | Location | Issues | Warnings | Status |
|---|---|---|---|---|
| my-skill | skills/my-skill | 0 | 1 | ⚠️ |
| bad-skill | temp/bad-skill | 2 | 0 | ❌ |
Step 4 — Fix non-compliant skills
For each skill with issues, fix in this order:
- Missing/malformed frontmatter — Add or correct the
block with---
andname
onlydescription - Extra frontmatter fields — Remove any fields other than
andnamedescription - Weak description — Rewrite to include: what the skill does + trigger conditions ("Use when...")
- Extraneous files — Delete README.md, INSTALLATION_GUIDE.md, CHANGELOG.md, etc.
- Wrong location — If a skill is outside
, move it toskills/~/.openclaw/workspace/skills/<skill-name>/ - Naming violations — Rename directory to lowercase-hyphen-case
For warnings (advisory):
- Long SKILL.md (>500 lines): extract detailed content into
files and link from SKILL.mdreferences/ - Unlinked references: add links in SKILL.md body
- Weak description: improve trigger language
Step 5 — Validate fixes
Re-run
audit_skill.py on each fixed skill to confirm "compliant": true.
Optionally package with:
python3 /opt/homebrew/lib/node_modules/openclaw/skills/skill-creator/scripts/package_skill.py <skill-dir>
Compliance Checklist
A compliant skill must have:
-
at the root of a named directorySKILL.md - YAML frontmatter with exactly
andname
(no other fields)description -
includes what the skill does AND when to trigger itdescription - Directory name: lowercase letters, digits, hyphens only; ≤64 chars
- No extraneous files (README.md, CHANGELOG.md, etc.)
- Resources only in
,scripts/
, orreferences/assets/ - All
files linked from SKILL.md bodyreferences/ - SKILL.md body ≤500 lines (split into references/ if longer)