Install
openclaw skills install create-new-skillCreate a new skill through a guided conversation. Use when a user wants help authoring a skill from scratch, choosing between quick or full guidance, analyzing documentation to extract behavior patterns, generating a functional skill with proper workflow, and explaining how to make the new skill take effect.
openclaw skills install create-new-skillGuide the user through creating a new skill from scratch.
A skill should define behavior, not just store documentation.
Static documentation has little value - the agent can fetch that itself. The skill's value is in encoding the behavior pattern.
Follow these steps in order:
Output exactly:
Create a new skill.
1) Quick guidance
2) Full guidance
Choice [1]:
Ask:
What task does this skill solve?
Accept any natural language answer. Extract the core task.
Examples:
After purpose, ask:
When should the agent use this skill?
1) User explicitly asks for it
2) When user mentions specific keywords
3) When certain conditions are met
4) Not sure / I'll define later
Choice [1]:
If user chooses 2 or 3, ask for the specific trigger details.
After trigger, ask:
What tools does this skill need?
1) Built-in tools only
2) External CLI commands
3) API calls
4) Combination of above
Choice [1]:
If user chooses 2 or 3, ask:
After tools, ask:
What is the workflow? (describe in order)
1) I'll describe step by step
2) Generate from documentation
3) Use a common pattern
Choice [1]:
If user chooses 1, ask them to describe each step.
If user chooses 2, proceed to Step 10 (fetch documentation).
If user chooses 3, present common patterns:
After workflow, ask:
What should this skill produce?
1) Files (config, code, etc.)
2) Command output
3) API response
4) Combination
Choice [1]:
Ask for specific output format details.
After output, ask:
Are there any constraints?
1) No constraints
2) OS limitations
3) Required environment variables
4) Configuration requirements
5) I'll specify
Choice [1]:
If user chooses 2-5, gather the constraint details.
After constraints, ask:
Where to install?
1) Current workspace
2) Shared (all projects)
Choice [1]:
After install location, ask:
Skill name (lowercase, hyphenated):
If user chose to generate workflow from documentation in Step 5:
Where is the documentation?
1) Enter URL
2) GitHub repository
3) Local path
After getting the source:
Do NOT just copy the documentation. Transform it into behavioral instructions.
After all inputs are collected, show:
Skill: <name>
Task: <purpose>
Triggers: <trigger conditions>
Tools: <tool list>
Workflow:
1. <step 1>
2. <step 2>
...
Output: <expected output>
Constraints: <constraints>
Location: <workspace|shared>
Continue? [y/n]:
Generate the SKILL.md and show key sections:
Ask:
Write files? [y/n]:
If confirmed:
Show:
Created: <path>
To activate:
- Restart the agent, or
- Run: refresh skills
To test:
- "<test prompt>"
Done.
Full mode adds more detail at each step:
After purpose:
After trigger:
After tools:
After workflow:
After output:
After constraints:
A good SKILL.md should have:
---
name: <skill-name>
description: <brief description>
---
# <Skill Name>
## When To Use
- When user says "..."
- When user wants to "..."
## Tools Required
- tool1: description
- tool2: description
## Workflow
1. Step one - what to do
2. Step two - what to do
3. ...
## Output
- What files/config are produced
- Expected format
## Constraints
- OS limitations
- Prerequisites
- What NOT to do
## Examples
Example usage scenarios
The generated skill should be self-contained:
If the agent still needs to search the web or figure out the workflow, the skill is not complete.