Generate a Node.js CLI tool that scans installed OpenClaw skills, detects missing dependencies, and optionally auto-fixes them.
Trigger when the user says or asks for:
When triggered, generate a complete Node.js CLI project that:
skill-dep-fixer --dry-run scan and report (no changes)
skill-dep-fixer --fix install missing dependencies
skill-dep-fixer --skill name check a specific skill
skill-dep-fixer --json JSON output
skill-dep-fixer --report Discord-formatted compact report
skill-dep-fixer --help show usage
Parse SKILL.md frontmatter from skills in:
Look for the metadata.openclaw.install array.
Example frontmatter:
metadata:
openclaw:
install:
- id: gh
kind: brew
formula: gh
bins: [gh]
label: "Install GitHub CLI"
brew : detect with brew list, fix with brew install
npm : detect with npm list -g, fix with npm install -g
pip : detect with pip show, fix with pip install
bins : detect with which, not auto-fixable (report only)
Text report (default):
Discord report (--report): compact single-line per skill in a code block.
Exit codes: 0 = all fixed/satisfied, 1 = some failed.
When using any skill that wraps a Homebrew/package tool:
clawhub inspect and compare versionclawhub update to pull new SKILL.mdbrew upgrade / (e.g., brew upgrade christianteohx/tap/calctl)npm update -g pip install --upgrade This ensures agents using the skill always get the latest tool with matching documentation.
After generating, tell the user:
Homebrew (recommended):
brew install christianteohx/tap/skill-dep-fixer
Direct binary:
curl -fsSL https://github.com/christianteohx/skill-dep-fixer/releases/latest/download/skill-dep-fixer -o ~/bin/skill-dep-fixer
chmod +x ~/bin/skill-dep-fixer
npm:
npm install -g skill-dep-fixer
Build from source:
git clone https://github.com/christianteohx/skill-dep-fixer
cd skill-dep-fixer
npm install
node skill-dep-fixer.js --help
共 1 个版本