A highly structured, eleven-step methodology designed to evaluate whether an AI agent skill is truly necessary and refactor its internal workflows if it is.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install skill-refactor
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install skill-refactor using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Skill Refactor method represents a fundamental shift in how developers maintain and optimize AI agents. Instead of simply asking "how can we make this skill better?", this protocol challenges the very existence of a skill by asking, "should this skill even exist?". Redundant workflows, legacy routines, and features designed only to compensate for human limitations are systematically targeted for elimination. By pruning unnecessary components, developers can maintain a lightweight, highly efficient, and unified library of Openclaw Skills.
For skills that survive this initial elimination audit, the protocol guides the AI developer through a rigorous content refactoring phase. It breaks the skill down into its constituent chapters, prompts, and rules, identifying and discarding transitional or formatting steps while preserving the core logical engine. This ensures your custom agent actions remain cohesive, independent, and performant.
To set up and run the skill refactoring protocol inside your AI environment, follow these steps:
Create the Skill File: Save the refactoring protocol as a markdown skill in your project folder under .claw/skills/skill-refactor.md or import it directly into your AI workspace.
Initialize in CLI: Use your agent platform CLI to verify that the skill is recognized within your active Openclaw Skills:
# List registered agent skills to verify integration
openclaw skills list
# Run the refactor process on a target skill
openclaw run skill-refactor --target=.claw/skills/old-doc-converter.md
The refactoring skill processes and outputs structured metadata matching standard Openclaw Skills layouts. It tracks optimization metadata through a strict schema.
All target and refactored files must maintain standard YAML headers:
| Field | Type | Description |
|---|---|---|
name |
String | Unique identifier of the skill (e.g., skill-refactor) |
author |
String | Creator or maintainer identifier |
description |
String | Summary of the skill's core purpose |
| Dimension | Weight | Definition |
|---|---|---|
| Boundary Clarity | 30% | How clear and isolated the skill's domain boundaries are |
| Functional Cohesion | 40% | The internal relational strength of the skill's tasks |
| Elimination Cost | 30% | The technical effort required to deprecate or merge the skill |
The output logs are formatted into clear markdown records mapping the transformation from raw legacy prompt structures to clean, standardized AI instructions.
Loading
A powerful two-layer search and deep research suite combining multi-engine web search, content extraction, and thread tracing for AI agents.

An AI-agent skill that enables automated command-line control of the Douyin web interface, including playback, navigation, interactions, and media recording.

An automated AI agent skill that guides users through generating custom mechanical jack CAD blueprints via incremental API calculations without requiring login credentials.

An AI-driven pre-pump fingerprint scanner that identifies crypto assets showing accumulation signals before a major price move using an 8-signal validation framework.

Automatically restore damaged or corrupted videos, documents, designs, and archive files directly within your AI agent workflows.

A Model Context Protocol-based synchronization skill designed to sync local Markdown, Word, Excel, and text files bidirectionally with Yuque knowledge bases.








































