← 返回
未分类 中文

Skill Dependency Fixer

Scan installed OpenClaw skills for missing npm, pip, brew, or system dependencies and auto-install fixable ones.
扫描已安装的 OpenClaw 技能,检测缺失的 npm、pip、brew 或系统依赖,并自动安装可修复的依赖。
christianteohx christianteohx 来源
未分类 clawhub v2.0.9 1 版本 99734 Key: 无需
★ 1
Stars
📥 355
下载
💾 0
安装
1
版本
#dependencies#latest#openclaw#skills

概述

skill-dep-fixer Skill

Generate a Node.js CLI tool that scans installed OpenClaw skills, detects missing dependencies, and optionally auto-fixes them.

When to invoke

Trigger when the user says or asks for:

  • "fix skill dependencies"
  • "skill-dep-fixer"
  • "check skill dependencies"
  • "skills are broken"
  • "openclaw doctor"
  • "skill has missing deps"

Instructions

When triggered, generate a complete Node.js CLI project that:

Core requirements

  • Node.js 18+
  • No external runtime dependencies where possible
  • One-file entry point with optional src/ submodules
  • CLI argument parsing (manual or minimist-light)
  • Colored terminal output with ANSI codes or chalk

Commands to implement

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

What to scan

Parse SKILL.md frontmatter from skills in:

  • ~/.openclaw/skills/*/SKILL.md
  • ~/.openclaw/workspace/skills/*/SKILL.md

Look for the metadata.openclaw.install array.

Example frontmatter:

metadata:
  openclaw:
    install:
      - id: gh
        kind: brew
        formula: gh
        bins: [gh]
        label: "Install GitHub CLI"

Detection and fix logic

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)

Output format

Text report (default):

  • Header: "Skill Dependency Report"
  • One line per skill: [icon] [name] [status] missing: [list]
  • Status icons: ok, fixed, failed, mismatch
  • Summary line at bottom

Discord report (--report): compact single-line per skill in a code block.

Exit codes: 0 = all fixed/satisfied, 1 = some failed.

Keeping packages updated

When using any skill that wraps a Homebrew/package tool:

  1. Check if the skill has a newer version: run clawhub inspect and compare version
  2. If ClawHub skill is newer: run clawhub update to pull new SKILL.md
  3. If the underlying package has a newer version: update it too:
    • Homebrew: brew upgrade / (e.g., brew upgrade christianteohx/tap/calctl)
    • npm: npm update -g
    • pip: pip install --upgrade
  4. When publishing a skill update: update both SKILL.md AND the underlying package in the right order:
    • First: update GitHub repo and create new release
    • Second: update Homebrew formula / package registry
    • Third: publish updated SKILL.md to ClawHub

This ensures agents using the skill always get the latest tool with matching documentation.

Output

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 个版本

  • v2.0.9 当前
    2026-05-07 07:04 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Calctl

christianteohx
用于 macOS Sonoma 的命令行工具,使用 EventKit 管理 Apple 日历事件,支持创建、列出、编辑和删除功能。
★ 1 📥 437
ai-agent

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,232 📥 268,474
ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,386 📥 321,165