Rechercher

PythonReactSEOPDF
OpenClaw

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.

1va70 installations selon la source☆ 0 Étoiles du dépôt

Installation

Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.

SkillHub CLI

skillhub install 1va7/skill-refiner

Examinez la source et la compatibilité, puis suivez les étapes d’installation.

Donnez le lien à votre agent et demandez-lui d’examiner instructions et dépendances avant d’expliquer les étapes.

Voir la source ↗Guides

Instructions

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:

  • 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
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/<skill-name>/
  6. Naming violations — Rename directory to lowercase-hyphen-case

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
Step 5 — Validate fixes

Re-run audit_skill.py on each fixed s...

Informations sur la source

Source
github
Repository
openclaw/skills
Path
skills/1va7/skill-refiner
Version
—
Commit
72c86c9ac1649c098b218fd19449dd7e6e6a78d6
Source de classification
rules
Statut
active
Visibilité
public

Ces informations proviennent de l’analyse indexée et peuvent être anciennes. Vérifiez les fichiers actuels.

README

skill-refiner

Audit and fix OpenClaw agent skills for skill-creator compliance.

中文文档

Why?

OpenClaw skills need to follow specific conventions to be properly discovered and triggered. Common issues include:

  • Missing or malformed YAML frontmatter
  • Extra frontmatter fields (only name and description allowed)
  • Extraneous files (README.md, CHANGELOG.md in skill directories)
  • Weak descriptions that don't specify trigger conditions

This tool finds all skills in your workspace and reports compliance issues.

Quick Start

# Scan your OpenClaw workspace
npx skill-refiner

# Scan a specific directory
npx skill-refiner /path/to/workspace

Installation

As an OpenClaw Skill
clawhub install skill-refiner

Then ask your agent: "audit my skills" or "check skill compliance"

Global CLI
npm install -g skill-refiner
skill-refiner ~/.openclaw/workspace

What It Checks

Check Severity Description
SKILL.md exists 🔴 Issue Every skill needs a SKILL.md
YAML frontmatter 🔴 Issue Must start with --- block
Required fields 🔴 Issue name and description required
Extra fields 🔴 Issue Only name + description allowed
Extraneous files 🔴 Issue No README.md, CHANGELOG.md, etc.
Naming convention 🔴 Issue lowercase-hyphen-case, ≤64 chars
Trigger conditions 🟡 Warning Description should include "Use when..."
SKILL.md length 🟡 Warning Recommended max 500 lines
Unlinked references 🟡 Warning Files in references/ should be linked

Output Example

🔍 skill-refiner — scanning: /Users/me/.openclaw/workspace

✅ markdown-converter
✅ weather
❌ my-broken-skill
  ✗  Frontmatter has extra fields: metadata, author
  ✗  Extraneous file: README.md
⚠️ another-skill
  ⚠️  Descripti...

Contenu extrait

SKILL.md
# 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
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

```bash
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
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/<skill-name>/`
6. **Naming violations** — Rename directory to lowercase-hyphen-case

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

### Step 5 — Validate fixes

Re-run `audit_skill.py` on each fixed s...
README
# skill-refiner

Audit and fix [OpenClaw](https://github.com/openclaw/openclaw) agent skills for [skill-creator](https://github.com/openclaw/openclaw/tree/main/skills/skill-creator) compliance.

[中文文档](./README.zh.md)

## Why?

OpenClaw skills need to follow specific conventions to be properly discovered and triggered. Common issues include:

- Missing or malformed YAML frontmatter
- Extra frontmatter fields (only `name` and `description` allowed)
- Extraneous files (README.md, CHANGELOG.md in skill directories)
- Weak descriptions that don't specify trigger conditions

This tool finds all skills in your workspace and reports compliance issues.

## Quick Start

```bash
# Scan your OpenClaw workspace
npx skill-refiner

# Scan a specific directory
npx skill-refiner /path/to/workspace
```

## Installation

### As an OpenClaw Skill

```bash
clawhub install skill-refiner
```

Then ask your agent: "audit my skills" or "check skill compliance"

### Global CLI

```bash
npm install -g skill-refiner
skill-refiner ~/.openclaw/workspace
```

## What It Checks

| Check | Severity | Description |
|-------|----------|-------------|
| SKILL.md exists | 🔴 Issue | Every skill needs a SKILL.md |
| YAML frontmatter | 🔴 Issue | Must start with `---` block |
| Required fields | 🔴 Issue | `name` and `description` required |
| Extra fields | 🔴 Issue | Only `name` + `description` allowed |
| Extraneous files | 🔴 Issue | No README.md, CHANGELOG.md, etc. |
| Naming convention | 🔴 Issue | lowercase-hyphen-case, ≤64 chars |
| Trigger conditions | 🟡 Warning | Description should include "Use when..." |
| SKILL.md length | 🟡 Warning | Recommended max 500 lines |
| Unlinked references | 🟡 Warning | Files in references/ should be linked |

## Output Example

```
🔍 skill-refiner — scanning: /Users/me/.openclaw/workspace

✅ markdown-converter
✅ weather
❌ my-broken-skill
  ✗  Frontmatter has extra fields: metadata, author
  ✗  Extraneous file: README.md
⚠️ another-skill
  ⚠️  Descripti...

Skills associés

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

dojo.md

edholofy

University for AI agents. 92 courses, 4400+ scenarios, any model via OpenRouter. Auto-training loops generate per-model SKILL.md documents. Works with Claude Code, OpenClaw, Cursor, Windsurf. No fine-tuning req...

OpenClaw

geo-optimization

capt-marbles

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...