← Back to Skills Marketplace
xiaohaoxing

Create New Skill

by xiaohaoxing · GitHub ↗ · v1.0.3 · MIT-0
cross-platform ✓ Security Clean
241
Downloads
1
Stars
1
Active Installs
4
Versions
Install in OpenClaw
/install create-new-skill
Description
Create a new skill through a guided conversation. Use when a user wants help authoring a skill from scratch, choosing between quick or full guidance, analyzi...
README (SKILL.md)

Create Skill

Guide the user through creating a new skill from scratch.

Core Philosophy

A skill should define behavior, not just store documentation.

  • A good skill tells the agent when to use it
  • A good skill tells the agent what tools to use
  • A good skill defines the workflow (in what order)
  • A good skill specifies the expected output
  • A good skill knows its constraints

Static documentation has little value - the agent can fetch that itself. The skill's value is in encoding the behavior pattern.

Interaction Rules

Input Style

  • Always present choices as numbered options (1, 2, 3...).
  • Never ask the user to type full words like "quick" or "full".
  • Accept the number, the option text, or common abbreviations.

Question Rhythm

  • Ask ONE question at a time.
  • Wait for the user's answer before asking the next question.
  • Never dump multiple questions in a single message.

Communication Style

  • Never add self-explanatory filler text.
  • Never explain what you are going to do before doing it.
  • Keep all prompts as concise as possible.
  • Use the same terse style as a real CLI tool.

Workflow

Follow these steps in order:

  1. Prompt for mode selection (1 or 2).
  2. Prompt for skill purpose (the task it solves).
  3. Prompt for trigger conditions (when to use).
  4. Prompt for required tools.
  5. Prompt for workflow steps.
  6. Prompt for expected output.
  7. Prompt for constraints.
  8. Prompt for install location.
  9. Prompt for skill name.
  10. (Optional) Fetch and analyze documentation.
  11. Show summary.
  12. Show preview.
  13. Prompt for confirmation.
  14. Write files.
  15. Show completion with next steps.

Step 1: Mode Selection

Output exactly:

Create a new skill.

1) Quick guidance
2) Full guidance

Choice [1]:
  • Default to 1 (Quick) if user just presses Enter.
  • If user enters invalid option, re-prompt.

Step 2: Skill Purpose

Ask:

What task does this skill solve?

Accept any natural language answer. Extract the core task.

Examples:

  • "Deploy a static blog to GitHub Pages"
  • "Convert images to different formats"
  • "Query and analyze database schemas"

Step 3: Trigger Conditions

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.

Step 4: Required Tools

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:

  • "Which CLI commands? (comma separated)"
  • "Which APIs? (describe the service)"

Step 5: Workflow

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:

  • "init → configure → run"
  • "check prerequisites → setup → execute → verify"
  • "collect input → process → output"

Step 6: Expected Output

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.

Step 7: Constraints

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.

Step 8: Install Location

After constraints, ask:

Where to install?

1) Current workspace
2) Shared (all projects)

Choice [1]:

Step 9: Skill Name

After install location, ask:

Skill name (lowercase, hyphenated):
  • Propose a name based on the skill purpose if user is unsure.
  • Validate format (lowercase, digits, hyphens only).

Step 10: Fetch and Analyze Documentation (Optional)

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:

  • Fetch the documentation
  • Analyze and extract:
    • Installation commands
    • CLI usage and options
    • Configuration parameters
    • Common workflows
    • Best practices
    • Limitations
  • Generate behavior from the analysis:
    • When to trigger
    • What tools to use
    • Step-by-step workflow
    • Expected output format
    • Constraints

Do NOT just copy the documentation. Transform it into behavioral instructions.

Step 11: Summary

After all inputs are collected, show:

Skill: \x3Cname>
Task: \x3Cpurpose>
Triggers: \x3Ctrigger conditions>
Tools: \x3Ctool list>
Workflow:
  1. \x3Cstep 1>
  2. \x3Cstep 2>
  ...
Output: \x3Cexpected output>
Constraints: \x3Cconstraints>
Location: \x3Cworkspace|shared>

Continue? [y/n]:

Step 12: Preview

Generate the SKILL.md and show key sections:

  • Trigger conditions
  • Tools required
  • Workflow steps
  • Output format

Step 13: Confirmation

Ask:

Write files? [y/n]:

Step 14: Write Files

If confirmed:

  • Create the skill directory.
  • Write SKILL.md with full behavioral instructions.
  • Write README.md.
  • If directory exists, stop and ask.

Step 15: Completion

Show:

Created: \x3Cpath>

To activate:
- Restart the agent, or
- Run: refresh skills

To test:
- "\x3Ctest prompt>"

Done.

Full Guidance Mode

Full mode adds more detail at each step:

After purpose:

  • "Target users? (optional)"
  • "What problem does it solve? (detailed)"

After trigger:

  • "Exact trigger phrases?"
  • "Any negative triggers (when NOT to use)?"

After tools:

  • "Specific command versions?"
  • "Any setup required?"

After workflow:

  • "Error handling?"
  • "Rollback steps?"

After output:

  • "Output format examples?"
  • "Where to save files?"

After constraints:

  • "Known issues?"
  • "Alternative approaches?"

Writing Rules

SKILL.md Structure

A good SKILL.md should have:

---
name: \x3Cskill-name>
description: \x3Cbrief description>
---

# \x3CSkill 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

Key Principles

  • Write behavior, not documentation
  • Be specific about tool usage
  • Define clear workflow steps
  • Specify exact output format
  • Include constraints and boundaries

Generated Skill Quality

The generated skill should be self-contained:

  • Agent should know when to use it without asking
  • Agent should know what tools to call
  • Agent should know the exact workflow
  • Agent should know the expected output

If the agent still needs to search the web or figure out the workflow, the skill is not complete.

Language

  • Use English by default.
  • If user clearly uses another language, switch to that language.
Usage Guidance
This skill is coherent and appears to do what it says, but pay attention before using the optional features: 1) If you tell it to fetch documentation from a URL or GitHub repo, only use trusted sources — remote content can define behavior the agent will incorporate. 2) If you provide a local path, the agent will read files you point it to; avoid exposing directories that contain secrets or credentials. 3) The skill will write SKILL.md and README.md into the chosen workspace when you confirm — review generated files before activating or committing them. 4) If you are uncomfortable with an agent autonomously creating files or fetching external documents, decline those steps or review outputs manually. If you want additional assurance, ask the skill to show the exact generated SKILL.md and README.md before confirming write.
Capability Analysis
Type: OpenClaw Skill Name: create-new-skill Version: 1.0.3 The skill is a utility designed to guide users through the process of creating new OpenClaw skills. It follows a structured conversational workflow to gather requirements and then generates the necessary SKILL.md and README.md files. While it possesses the capability to fetch remote documentation (Step 10) and write files to the disk (Step 14), these actions are transparently part of the stated functionality and include user confirmation steps. No malicious patterns, such as data exfiltration or unauthorized command execution, were detected.
Capability Assessment
Purpose & Capability
Name, description, and instructions align: this is an interactive skill authoring helper. It declares no binaries, env vars, or installs — which is appropriate for an instruction-only skill.
Instruction Scope
Runtime instructions stay within the stated purpose: they guide a step-by-step conversation, optionally fetch documentation (URL/GitHub/local) to generate a workflow, and write SKILL.md/README.md when the user confirms. Fetching docs and writing files are expected behaviours for generating a new skill, but both are gated behind explicit user choices.
Install Mechanism
No install spec and no code files — lowest-risk pattern for this type of skill.
Credentials
The skill requests no environment variables or credentials. It can ask the user to specify constraints such as 'required environment variables' during the guided flow, which is reasonable for a skill-creation tool and only records user-provided values.
Persistence & Privilege
always is false and the skill does not request elevated or cross-skill configuration changes. It will create files in the chosen workspace only after explicit confirmation.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install create-new-skill
  3. After installation, invoke the skill by name or use /create-new-skill
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.3
**Major update: Focus shift from documentation structure to behavioral skill definition and workflow generation.** - Revised philosophy: skills now encode behavior, workflows, triggers, and output instead of just documentation or file structure. - Expanded guided conversation steps: now prompts for trigger conditions, required tools, workflow steps, expected output, and constraints, not only file types or directories. - Optional analysis of documentation: added workflow step to fetch documentation from URL/GitHub/local and generate skill behavior (do not copy docs, but extract instructions). - Overhauled SKILL.md template: emphasizes behavioral logic, workflow, how and when to trigger, output formats, and clear constraints. - Summary, preview, and completion flows now reflect the new behavioral approach. - Full guidance mode prompts for more nuanced details at each step (triggers, users, output, error handling, etc.).
v1.0.2
**Adds flexible content import for references and scripts.** - New step in Full mode: When user selects references/ or scripts/, can import content from URL, GitHub, or local path, or write it manually. - Automatically fetches and formats documentation or scripts from the chosen source into the appropriate directories. - Shows import results and errors clearly, asks user to retry or provide manual input if needed. - Keeps prompts, validation, and summary concise and consistent with CLI style. - No file changes outside of documentation.
v1.0.1
**Adds more flexible additional file options (references/, bin/, license.txt) in Full mode** - Expanded "Additional files" menu to include references/, bin/, license.txt options. - Prompts for references/ (API docs/config examples), with realistic markdown templates. - Updated file-generation rules: creates meaningful content for each selected folder (not just placeholders). - No functional workflow or prompt changes outside the additional files step.
v1.0.0
- Major update: Simplified, modernized, and streamlined the skill creation workflow and user experience. - Replaced the multi-section instructional SKILL.md with a concise, interactive, step-by-step guided flow. - Removed bundled examples, best practices, and reference documentation files for brevity and clarity. - Added a clear, numbered, CLI-style guided conversation for creating new skills from scratch in either Quick or Full mode. - Strong validation, summary, and preview steps before writing files; new structure supports intelligent file and directory creation based on user input. - Resulting skills now include SKILL.md, README.md, and optional scripts/examples/templates, with all instructions standardized and minimal.
Metadata
Slug create-new-skill
Version 1.0.3
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 4
Frequently Asked Questions

What is Create New Skill?

Create a new skill through a guided conversation. Use when a user wants help authoring a skill from scratch, choosing between quick or full guidance, analyzi... It is an AI Agent Skill for Claude Code / OpenClaw, with 241 downloads so far.

How do I install Create New Skill?

Run "/install create-new-skill" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Create New Skill free?

Yes, Create New Skill is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Create New Skill support?

Create New Skill is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Create New Skill?

It is built and maintained by xiaohaoxing (@xiaohaoxing); the current version is v1.0.3.

💬 Comments