A callable skill factory designed for programmatic invocation by other skills.
This skill is typically called by other skills with structured parameters. Call it when you need to generate a new skill programmatically.
When calling this skill, provide the following parameters:
ParameterRequiredDescriptionnameYesSkill name (lowercase, hyphens only, <64 chars)descriptionYesSkill description for frontmatter (include what it does + when to use)instructionsYesMarkdown body content for SKILL.mdscriptsNoList of script files to create: [{name, content, language}]``referencesNoList of reference docs: [{name, content}]``assetsNoList of asset files: [{name, content}]``output_dirNoOutput directory (default: ~/.openclaw/workspace/skills)validateNoRun validation after creation (default: true)packageNoGenerate .skill file after creation (default: true)
text
Call this skill with a structured request:
{
"name": "my-skill",
"description": "Brief description of what this skill does and when to use it.",
"instructions": "## Overview\n\nDetailed instructions in markdown...",
"scripts": [
{"name": "main.py", "content": "#!/usr/bin/env python3\n...", "language": "python"}
],
"references": [
{"name": "api-docs.md", "content": "# API Reference\n..."}
]
}
skill_name/ with appropriate subdirectoriesReturns a result object:
json
{
"success": true,
"skill_path": "~/.openclaw/workspace/skills/my-skill",
"skill_file": "~/.openclaw/workspace/skills/my-skill.skill",
"files_created": ["SKILL.md", "scripts/main.py"]
}
A calling skill might invoke this with:
text
Create a skill named "pdf-watermarker" that:
- Description: "Add watermarks to PDF files. Use when processing PDFs for branding or security."
- Instructions: Basic watermarking workflow with pdfplumber
- Scripts: A watermark.py script using PyPDF2
The skill factory handles all file creation, validation, and packaging.
create_skill.py - Main skill creation scriptvalidate_skill.py - Validation utilities (wraps skill-creator's package_skill.py)skill-spec.md - AgentSkills specification reference