Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
Create and update skills for clawhub registry; optimize structure, validate metadata, and ensure compatibility for AI agent usage.
Create and update skills for clawhub registry; optimize structure, validate metadata, and ensure compatibility for AI agent usage.
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
Complete guide for creating skills compatible with clawhub registry and optimized for AI agent usage.
Skill description must be in English, unless context requires otherwise (examples, comments, etc. may use other languages when appropriate). description in frontmatter: English only SKILL.md body: English preferred Examples, code comments: Any language as needed References: Any language as appropriate for domain
# Run initializer ./scripts/init-skill.sh my-skill # Or manually create structure mkdir -p my-skill/{references,scripts,assets} touch my-skill/SKILL.md my-skill/_meta.json my-skill/LICENSE.txt
Before writing any code, clarify: What problem does this skill solve? Concrete use cases (2-3 examples) Target queries that should trigger skill Who will use this skill? AI agents (primary audience for clawhub) Expected context (tools available, environment) What resources are needed? References for detailed docs? Assets for templates? Scripts for automation? Output: Clear understanding of skill scope and triggers.
Choose pattern based on complexity: ComplexityStructureWhen to UseSimpleSKILL.md only<100 lines, single purposeMedium+ references/100-300 lines, some detailsComplex+ references/ + assets/>300 lines, multi-domain Decide on resources: Which references needed? (docs, examples, patterns) Which assets needed? (templates, configs) Which scripts needed? (validation, packaging) Output: Directory structure and resource list.
# Create directory mkdir -p my-skill/{references,scripts,assets} # Create required files touch my-skill/SKILL.md touch my-skill/_meta.json touch my-skill/LICENSE.txt Required files for clawhub: my-skill/ βββ SKILL.md # Instructions and metadata (required) βββ _meta.json # Registry metadata (required) βββ LICENSE.txt # License file (required) βββ references/ # Optional: detailed documentation βββ scripts/ # Optional: automation scripts βββ assets/ # Optional: templates, resources
Frontmatter (YAML) --- name: skill-name description: What it does. Use when: (1) trigger-1, (2) trigger-2, (3) trigger-3. --- Critical rules: name must match directory name description is ONLY trigger mechanism β include all "when to use" here description must be in English Only name and description are required in frontmatter Body Structure # Skill Title Brief purpose (1-2 sentences). ## Quick Start **Linux/Mac:** ```bash command --option Windows CMD: command --option PowerShell: command --option
Situation 1: What to do Situation 2: What to do Situation 3: What to do
Step one: Description Step two: Description Step three: Description
Choose license (MIT recommended): MIT License Copyright (c) 2025 [Author] Permission is hereby granted...
Create files in references/: # Reference Title Detailed documentation here. ## Section Content... Guidelines: One topic per file <5K words per file Link from SKILL.md with clear context No deeply nested references Language: English preferred, domain-specific allowed
# Check structure ./scripts/validate.sh my-skill # Or manual checks: # - SKILL.md exists and has frontmatter # - _meta.json is valid JSON # - LICENSE.txt exists # - No README.md, CHANGELOG.md # - Line count < 300 # - References linked correctly Validation checklist: Directory name matches name in frontmatter and _meta.json description in English, includes "Use when:" triggers SKILL.md < 300 lines _meta.json valid JSON No extraneous files (README, CHANGELOG) References exist and linked Token estimate < 10K
Trigger test: Does skill activate for intended queries? Does description correctly trigger skill? Workflow test: Can agent follow steps without clarification? Are commands clear and executable? Resource test: Are references loaded at appropriate time? Is navigation clear? Edge case test: How does skill handle errors? Are platform differences handled?
If tests reveal issues: Identify problem Trigger not working? β Fix description Workflow unclear? β Rewrite steps Missing info? β Add reference Update files SKILL.md, _meta.json, or references Re-validate and re-test Go back to Phase 8 Repeat until satisfied Iterate cycle: Phase 8 β Phase 9 β Phase 10 (loop) β Phase 11
Before publishing, verify current registry version: # Check current registry version clawhub inspect skill-name --json | grep version # Ensure new version follows semver: # 1.0.0 β 1.0.1 (patch: bug fixes) # 1.0.0 β 1.1.0 (minor: new features) # 1.0.0 β 2.0.0 (major: breaking changes) # Never downgrade! (1.1.0 β 1.0.2 is wrong) Update _meta.json with correct version: { "version": "1.0.1" }
# Create .skill package for distribution ./scripts/package-skill.sh my-skill ./dist # Output: dist/my-skill.skill # Validates structure before packaging Package contains: All skill files Validated structure Ready for distribution
cd my-skill # Publish to clawhub clawhub publish . --version 1.0.1 --changelog "Description of changes" # Verify publication clawhub inspect skill-name After publish: Skill available in registry Others can install via clawhub install skill-name
Instructions and metadata: YAML frontmatter (name, description in English) Markdown body (workflow, examples) Navigation to references
Registry metadata: { "name": "skill-name", "version": "1.0.0", "description": "Registry listing description in English", "requires": { "env": [], "credentials": [] }, "tags": ["latest"] }
License file (MIT, Apache-2.0, etc.)
references/skill-structure.md - Directory structure patterns references/agent-first-design.md - Designing for AI vs humans references/token-optimization.md - Minimizing context usage references/cross-platform.md - Platform-aware scripts references/validation-checklist.md - Pre-publish checks references/versioning.md - Semver best practices
Skills used by AI agents, not humans: β No interactive prompts β No platform-specific scripts (use knowledge instead) β Command templates for all platforms β Clear navigation to references
Level 1: Metadata (name + description) β Always loaded Level 2: SKILL.md body β On trigger Level 3: Resources (references/, assets/) β On demand
ComponentTargetMaxMetadata50 words100 wordsSKILL.md200 lines300 linesReferences3K words5K wordsTotal5K tokens10K tokens
Agent frameworks, memory systems, reasoning layers, and model-native orchestration.
Largest current source with strong distribution and engagement signals.