Skills are the primary mechanism for giving OpenClaw agents reusable, shareable capabilities beyond their base tool set. A skill is a self-contained package consisting of a SKILL.md file (instructions the agent follows), optional tool definitions, and metadata. When installed, a skill's instructions are injected into the agent's system prompt alongside SOUL.md and other bootstrap files. ClawHub is the community registry where developers publish and discover skills. This decoupled architecture means you can add database migration support, deployment workflows, or code review capabilities to any agent without modifying its core configuration.
Master openclaw skills & clawhub registry
Take the Introduction to OpenClaw course with hands-on lessons and challenges.
Every skill is a directory with at least a SKILL.md and skill.json. The manifest declares metadata and required tools. When installing the skill, OpenClaw checks that the target agent has all required tools. The tags field helps discoverability on ClawHub.
SKILL.md is written as instructions the agent follows literally. The 'When to Use' section helps the agent decide when to activate the skill. Safety rules define hard boundaries. Common patterns give the agent reference commands. Clear, specific instructions produce reliable agent behavior.
ClawHub works like npm for agent capabilities. Search by keyword, install per agent, and manage versions independently. The install command checks that the agent has the required tools and warns if any are missing. Skills are versioned so you can pin to a known-good version in production.
A single agent can have multiple skills installed. Each skill's SKILL.md instructions are appended to the system prompt. The agent decides which skill to activate based on the 'When to Use' section. Keep skills focused and non-overlapping to avoid instruction conflicts when composing.
The prompt preview shows exactly what the agent sees. Skills are loaded after persona files but before memory. The stats flag shows token usage per section, helping you identify bloated skills that consume too much of the context budget. Keep total skill tokens under 2,000 for most agents.
Writing overly broad skills that try to cover many scenarios (e.g., a single 'DevOps' skill covering deployments, migrations, monitoring, and alerting)
Each skill should cover one focused capability. Create separate skills for deployment, migration, monitoring, and alerting. Focused skills compose better, are easier to test, and can be installed independently on different agents.
Installing a skill on an agent that lacks the required tools, then wondering why the agent cannot perform the skill's actions
Check the skill's requiredTools in its manifest. Ensure the agent has all required tools in its tools.allow list before installing. The `openclaw skills install` command warns about missing tools -- do not ignore those warnings.
Not including a 'When to Use' section in SKILL.md, causing the agent to activate the skill at inappropriate times
Always include a clear 'When to Use' section that describes the trigger conditions. Without it, the agent may attempt to use the skill for unrelated requests, producing confusing behavior.
Auto-updating skills in production without testing, causing unexpected changes in agent behavior after a skill author pushes a new version
Pin skill versions in production configurations. Test skill updates in a staging environment first. Use `openclaw skills update` deliberately, not automatically.
Installing too many skills on a single agent, bloating the system prompt and consuming most of the context window before the conversation even starts
Monitor system prompt token usage with `openclaw agent prompt --stats`. Keep total skill tokens under 2,000. If an agent needs many capabilities, consider splitting into multiple specialized agents with routing.
OpenClaw skills are reusable agent capabilities packaged as SKILL.md files with manifests and optional tool definitions. They are installed per agent and injected into the system prompt alongside bootstrap files. ClawHub is the community registry for discovering, installing, and publishing skills. Skills should be focused on a single capability, declare their required tools, and include clear 'When to Use' triggers and safety rules. Pin versions in production, monitor token usage, and compose multiple focused skills rather than building monolithic ones.
Interactive lessons and challenges on Stanza, practice in VS Code, Cursor, or the web.
Interactive lessons and challenges, right in your code editor.
Check the free courses. No credit card.