1.6 KiB
ClawHub / OpenClaw Publishing
OpenClaw Metadata
Skills include metadata.openclaw in YAML front matter:
metadata:
openclaw:
homepage: https://github.com/JimLiu/baoyu-skills#<skill-name>
requires: # only for skills with scripts
anyBins:
- bun
- npx
Publishing Commands
bash scripts/sync-clawhub.sh # sync all skills
bash scripts/sync-clawhub.sh <skill> # sync one skill
Release hooks are configured via .releaserc.yml. This repo does not stage a separate release directory: release prep only syncs packages/ into each skill's committed scripts/vendor/, and publish reads the skill directory directly.
Shared Workspace Packages
packages/ is the only source of truth. Never edit skills/*/scripts/vendor/ directly.
Current package: baoyu-chrome-cdp (Chrome CDP utilities), consumed by 6 skills (baoyu-danger-gemini-web, baoyu-danger-x-to-markdown, baoyu-post-to-wechat, baoyu-post-to-weibo, baoyu-post-to-x, baoyu-url-to-markdown).
How it works: Sync script copies packages into each consuming skill's vendor/ directory and rewrites dependency specs to file:./vendor/<name>. Vendor copies are committed to git, making skills self-contained.
Update workflow:
- Edit package under
packages/ - Run
node scripts/sync-shared-skill-packages.mjs - Commit synced
vendor/,package.json, andbun.locktogether
Git hook: Run node scripts/install-git-hooks.mjs once to enable the pre-push hook. It re-syncs and blocks push if vendor copies are stale (--enforce-clean).