add-clawhub-skill-to-package
Use this skill when a CLI package already exists and needs OpenClaw runtime skill integration.
Scope
- •Target only existing package paths:
packages/<tool>-cli. - •Add runtime skill under package-local
skill-openclaw. - •Keep
.agents/skillsand runtime skill concept strictly separated.
Required inputs
- •
package_path(for examplepackages/byr-cli) - •
skill_name - •
skill_slug - •
required_bins(usually CLI executable name)
Files to add
text
packages/<tool>-cli/skill-openclaw/ SKILL.md examples.md (optional) publish.json (recommended)
SKILL.md requirements
- •YAML frontmatter with
name,description, and single-line JSONmetadata. - •
metadata.openclaw.requires.binsmust include the package binary. - •Define usage boundaries and side-effect confirmation policy.
- •Command examples should use
--json.
Package script requirements
Add scripts in package package.json:
- •
skill:publish=>clawhub publish ./skill-openclaw ... - •
skill:sync(optional) =>clawhub sync --root ./skill-openclaw --all
Publish workflow requirements
Document:
- •install
clawhubCLI - •
clawhub login - •run package
skill:publish - •optional
skill:sync
Keep web upload as fallback only.
Validation checklist
- •
pnpm --filter <pkg> test - •
pnpm --filter <pkg> check - •verify
skill-openclaw/SKILL.mdreferences correct binary inrequires.bins