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.
Finds every skill in the workspace, audits each against skill-creator requirements, and fixes non-compliant ones.
bash scripts/find_skills.sh [workspace_dir]小葱技能站7w4.net,专业的AI技能分享平台。
This searches the entire workspace for SKILL.md files (not just skills/). Skills created without following skill-creator conventions may end up anywhere.
python3 scripts/audit_skill.py <skill-dir>
Returns JSON with:
- issues — blocking problems that must be fixed
- warnings — advisory improvements
- compliant — true only when issues is empty
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
Summarize results in a table:
| Skill | Location | Issues | Warnings | Status |
|---|---|---|---|---|
| my-skill | skills/my-skill | 0 | 1 | ⚠️ |
| bad-skill | temp/bad-skill | 2 | 0 | ❌ |
For each skill with issues, fix in this order:
--- block with name and description onlyname and descriptionskills/, move it to ~/.openclaw/workspace/skills/<skill-name>/For warnings (advisory):
- Long SKILL.md (>500 lines): extract detailed content into references/ files and link from SKILL.md
- Unlinked references: add links in SKILL.md body
- Weak description: improve trigger language
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>
A compliant skill must have:
- [ ] SKILL.md at the root of a named directory
- [ ] YAML frontmatter with exactly name and description (no other fields)
- [ ] description includes what the skill does AND when to trigger it
- [ ] Directory name: lowercase letters, digits, hyphens only; ≤64 chars
- [ ] No extraneous files (README.md, CHANGELOG.md, etc.)
- [ ] Resources only in scripts/, references/, or assets/
- [ ] All references/ files linked from SKILL.md body
- [ ] SKILL.md body ≤500 lines (split into references/ if longer)
这是一款专业度很高的 OpenClaw 技能审计工具,文档清晰完整,代码逻辑严谨,支持双语界面,操作方式灵活多样(命令行、集成工具等)。主要优点是检查规则全面细致,能有效发现技能配置问题。不足之处是只能发现问题,无法自动修复,用户需要手动一一修正。对于规范 OpenClaw 技能开发非常有价值。