skill-refiner
by @1va7
Audit and fix all skills in the workspace for compliance with skill-creator requirements. Use when asked to "refine skills", "audit skills", "check skill qua...
clawhub install skill-refinerπ About This Skill
name: skill-refiner description: 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.
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
Returns JSON with:
issues β blocking problems that must be fixedwarnings β advisory improvementscompliant β true only when issues is emptyRun 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:
1. Missing/malformed frontmatter β Add or correct the --- block with name and description only
2. Extra frontmatter fields β Remove any fields other than name and description
3. Weak description β Rewrite to include: what the skill does + trigger conditions ("Use when...")
4. Extraneous files β Delete README.md, INSTALLATION_GUIDE.md, CHANGELOG.md, etc.
5. Wrong location β If a skill is outside skills/, move it to ~/.openclaw/workspace/skills/
6. Naming violations β Rename directory to lowercase-hyphen-case
For warnings (advisory):
references/ files and link from SKILL.mdStep 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
Compliance Checklist
A compliant skill must have:
SKILL.md at the root of a named directoryname and description (no other fields)description includes what the skill does AND when to trigger itscripts/, references/, or assets/references/ files linked from SKILL.md body