/install kai-skill-creator
Kai Skill Creator
Create OpenClaw skills correctly. Learned from getting kai-minimax-tts and kai-skill-creator to pass ClawHub scan.
Quick Start
1. Clone Template
cp -r /home/kai/.openclaw/workspace/skills/kai-minimax-tts /home/kai/.openclaw/workspace/skills/\x3CNEW_SKILL>
2. Edit SKILL.md
CORRECT FRONTMATTER:
---
name: skill-name
description: What this skill does and when to use it
metadata:
openclaw:
requires:
bins:
- binary1
- curl
env:
- API_KEY
---
# My Skill
Brief description...
## Usage
Commands and examples...
3. Write Script
chmod +x /home/kai/.openclaw/workspace/skills/\x3CNEW_SKILL>/scripts/\x3Cscript>.sh
4. Validate
python3 /home/kai/.nvm/versions/node/v22.22.1/lib/node_modules/openclaw/skills/skill-creator/scripts/quick_validate.py /home/kai/.openclaw/workspace/skills/\x3CNEW_SKILL>
5. Copy to Global
cp -r /home/kai/.openclaw/workspace/skills/\x3CNEW_SKILL> /home/kai/.openclaw/skills/\x3CNEW_SKILL>
6. Register in Config
Add to ~/.openclaw/openclaw.json:
{
"skills": {
"entries": {
"\x3CSKILL_NAME>": {
"enabled": true
}
}
}
}
7. Publish
cd ~/.openclaw/workspace
npx clawhub publish skills/\x3CSKILL_NAME> --slug \x3CSKILL_NAME> --version 1.0.0 --tags "tag1,tag2"
⚠️ CRITICAL: What NOT to Do
❌ NEVER Hardcode API Keys
# FLAGGED!
API_KEY="sk-api-xxxxx"
❌ NEVER Load .env in Script
# FLAGGED! Security risk
source ~/.env
❌ NEVER Use homepage Key
# FLAGGED! Causes validation failure
homepage: https://example.com
❌ NEVER Mention External API URLs
# FLAGGED! External endpoint reference
Get key from: https://api.example.com
Keep docs minimal. Scanner interprets URL mentions as potential data exfiltration.
❌ NEVER Leave Env Vars Undeclared
# MISMATCH! Script uses $API_KEY but not declared
metadata:
openclaw:
requires: {}
❌ Script Syntax Errors
# Test your script before publishing!
bash script.sh --test
# If EOF error or syntax issues → FLAGGED
✅ The CORRECT Pattern
Declaring Requirements
metadata:
openclaw:
requires:
env:
- MINIMAX_API_KEY
- CUSTOM_VAR
bins:
- curl
- whisper
Using Env Vars (Auto-Injected)
# Just use directly - OpenClaw injects these
API_KEY="$MINIMAX_API_KEY"
curl -H "Authorization: Bearer ${API_KEY}" ...
Adding Secrets to Config
{
"skills": {
"entries": {
"my-skill": {
"enabled": true,
"env": {
"API_KEY": "actual_key_here"
}
}
}
}
}
Scanner Checks (What Gets Flagged)
The ClawHub scanner verifies:
- Coherence: Declared requirements match actual code
- No surprise permissions: Env vars/bins declared = actually used
- No data exfiltration: External URLs in docs = red flag
- Valid syntax: Scripts must parse without errors
- Purpose clarity: Description matches what code actually does
Green = purpose, permissions, and code all match.
Pre-Publish Checklist
- No API keys hardcoded anywhere
- No
.envloading statements - All env vars declared in
requires.env - All bins declared in
requires.bins - No
homepagekey - No external API URLs in docs
- Script has valid syntax (test it!)
- Script produces expected output
- Version bumped (1.0.0 → 1.0.1 → etc)
- Validated with quick_validate.py
Troubleshooting
| Problem | Cause | Fix |
|---|---|---|
| "Omits required env" | Env var used but not declared | Add to requires.env |
| "Binary not found" | Wrong binary name | Use exact name, no path |
| "Unexpected permissions" | More bins declared than needed | Remove unused |
| "Purpose mismatch" | Docs say one thing, code does another | Align description |
| "External endpoint" | URL mentioned in docs | Remove URL references |
| EOF/syntax error | Script has bash errors | Fix syntax before publish |
Testing Tips
Test script locally:
# With inline env var for testing
MINIMAX_API_KEY=test_key bash scripts/script.sh --speak "test" en
# Check syntax
bash -n scripts/script.sh
File Locations
| Purpose | Path |
|---|---|
| Workspace skills | ~/.openclaw/workspace/skills/ |
| Global skills | ~/.openclaw/skills/ |
| Config | ~/.openclaw/openclaw.json |
| Validator | /home/kai/.nvm/versions/node/v22.22.1/lib/node_modules/openclaw/skills/skill-creator/scripts/quick_validate.py |
| Template | ~/.openclaw/workspace/skills/kai-minimax-tts/ |
Updated 2026-03-20 - Full scan passage for kai-minimax-tts and kai-skill-creator
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install kai-skill-creator - 安装完成后,直接呼叫该 Skill 的名称或使用
/kai-skill-creator触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Kai Skill Creator 是什么?
Create new OpenClaw skills that pass ClawHub validation on first attempt. Use when building a new skill for OpenClaw. Teaches the complete process from templ... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 183 次。
如何安装 Kai Skill Creator?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install kai-skill-creator」即可一键安装,无需额外配置。
Kai Skill Creator 是免费的吗?
是的,Kai Skill Creator 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Kai Skill Creator 支持哪些平台?
Kai Skill Creator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Kai Skill Creator?
由 Blaze🔥(@ogdegenblaze)开发并维护,当前版本 v1.0.6。