← 返回 Skills 市场
ahmed-eladl

Harmonia

作者 Ahmed Eladl · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
85
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install harmonia
功能描述
Check PyTorch, Transformers, and CUDA compatibility. Detect GPU, driver mismatches, and version conflicts in ML environments. Use when the user sets up ML/AI...
使用说明 (SKILL.md)

Harmonia — ML Dependency Harmony

Harmonia detects GPU, CUDA, driver, OS, Python, and installed ML packages — then reports exactly what's compatible with what. Zero dependencies, works offline.

When To Use This Skill

  • User asks to set up a PyTorch or ML environment
  • User hits a dependency error with torch, transformers, torchaudio, torchvision, accelerate, or CUDA
  • User asks "what version of X works with Y" for ML packages
  • User asks to check their GPU, CUDA, or driver setup
  • User says something like "my torch is broken", "CUDA error", "version mismatch", "which torch for my Python"
  • User is installing local models via Ollama or setting up training

Instructions

Step 1: Install harmonia (if not already installed)

pip install harmonia-ml

Step 2: Choose the right command based on the user's need

Full environment scan — use when diagnosing issues:

harmonia check

This scans OS, Python, GPU, CUDA driver chain, torch, transformers, and known conflicts all at once.

Deep system diagnostics — use when the user asks specifically about GPU, CUDA, or driver:

harmonia doctor

Shows GPU model, VRAM, driver version, CUDA (nvidia-smi vs nvcc vs torch), glibc, virtualenv status.

Suggest compatible versions — use when the user wants to know what works together:

# What works with a specific torch version?
harmonia suggest torch==2.5.1

# What works with a specific transformers version?
harmonia suggest transformers==4.44.2

# Best stack for specific Python + CUDA?
harmonia suggest transformers --python 3.11 --cuda 12.1

Show compatibility matrix — use when the user wants to see all options:

harmonia matrix pytorch
harmonia matrix transformers

List known conflicts — use when the user hit a specific error:

harmonia conflicts

Shows known bug patterns with exact error messages and fixes.

JSON output — use for programmatic processing:

harmonia check --json

Step 3: Interpret the output for the user

  • Lines starting with are errors that must be fixed
  • Lines starting with ⚠️ are warnings worth noting
  • Lines starting with mean everything is fine
  • The 📦 Recommended compatible set section gives the exact versions to install
  • The Install command at the bottom can be copied and run directly

Step 4: Help the user fix issues

When harmonia reports errors, help the user fix them by running the suggested commands. Common fixes:

  • Wrong companion version: pip install torchaudio==2.5.1 (use the version harmonia suggests)
  • CUDA mismatch: Install torch with the correct CUDA index URL from the recommendation
  • torch too old for transformers: pip install torch>=2.4.0
  • No virtualenv: python -m venv .venv && source .venv/bin/activate

Rules

  • Always run harmonia check FIRST when a user reports any ML dependency issue — do not guess
  • Always show the full output to the user — do not summarize away important details
  • If harmonia is not installed, install it with pip install harmonia-ml before running commands
  • Do NOT try to manually diagnose version compatibility — let harmonia do it
  • When harmonia suggests a fix, offer to run the fix command for the user
  • If the user asks about versions not in harmonia's database, say so and suggest checking the official docs

Constraints

  • This skill only checks compatibility — it does not install or modify packages unless the user asks
  • harmonia works offline with a local database — it does not make API calls
  • The database covers PyTorch 2.0–2.5 and Transformers 4.24–5.x — very old versions may not be covered
安全使用建议
This skill appears to do what it claims (diagnose PyTorch/CUDA/transformers compatibility) but you should verify a few things before installing or letting the agent run fixes automatically: - Verify system tooling: The documentation mentions checking nvidia-smi and nvcc (GPU and CUDA tools) but the skill metadata only requires pip and python3. Confirm that your environment has nvidia-smi/nvcc if you expect full GPU diagnostics. - Review the PyPI package: 'pip install harmonia-ml' will download code from PyPI — inspect the package (or its GitHub repo) for unexpected network calls or installation scripts before installing. - Be cautious about automatic fixes: The skill encourages running pip install commands it recommends. Those modify your Python environment. Always preview and approve any install command the agent proposes, and prefer running them manually in a controlled virtualenv. - Offline claim: The SKILL.md says it 'works offline' with a local DB. That can be fine, but confirm by checking the package source (some tools still fetch metadata online during runtime). If you want higher assurance, ask the skill author or inspect the harmonia-ml package source on GitHub/PyPI to confirm it only runs local checks and to see whether it invokes nvidia-smi/nvcc and how it handles suggested fix commands.
功能分析
Type: OpenClaw Skill Name: harmonia Version: 1.0.0 The harmonia skill is a diagnostic utility designed to manage ML dependencies like PyTorch and CUDA. It provides instructions for the agent to install the 'harmonia-ml' package and execute specific diagnostic commands (e.g., 'harmonia check', 'harmonia doctor'). The skill's behavior is transparent, lacks obfuscation, and contains no indicators of data exfiltration or malicious intent in its SKILL.md or README.md files.
能力评估
Purpose & Capability
The skill's name, description, and commands (harmonia check/doctor/suggest/matrix) align with the stated goal of diagnosing ML environment compatibility. However, the runtime instructions reference system GPU utilities (nvidia-smi, nvcc) and other system state checks that are not declared in the skill's listed required binaries; that omission is an inconsistency that should be clarified.
Instruction Scope
SKILL.md explicitly instructs the agent to install the package (pip install harmonia-ml), run system diagnostics (nvidia-smi, nvcc, glibc, virtualenv status), and offers to run suggested fix commands (pip installs). The instructions do not declare reliance on nvidia-smi/nvcc, and they allow the agent to execute environment-modifying commands if the user asks — which can change the user's system. The skill also claims 'works offline' and 'does not make API calls'; those claims are plausible for a local database but should be verified in the package source before trusting them.
Install Mechanism
Install spec points to 'pip install harmonia-ml' (package on PyPI) which is a typical install path for this functionality and acceptable. The registry metadata uses kind 'uv' (ambiguous in this context) but the SKILL.md explicitly uses pip. No remote arbitrary archive downloads are present. Verify the PyPI package and its source code before installing.
Credentials
The skill requests no environment variables or credentials and does not declare access to any config paths. That is proportionate for a diagnostic tool.
Persistence & Privilege
The skill does not request always:true and does not ask for persistent system-wide configuration changes. It can be invoked by the agent autonomously (platform default), which is normal; combine this with the instruction-scope concerns (ability to run pip install) when deciding whether to allow autonomous runs.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install harmonia
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /harmonia 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of harmonia. - Detects GPU, CUDA, driver, OS, Python, and main ML package versions for compatibility checks. - Diagnoses version conflicts and mismatches in PyTorch, Transformers, and related environments. - Provides specific commands for full environment diagnostics, system details, and compatibility suggestions. - Offers a compatibility matrix and lists known bug patterns and fixes. - Outputs actionable recommendations, including errors, warnings, and install commands. - Works offline with no dependencies beyond Python and pip.
元数据
Slug harmonia
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Harmonia 是什么?

Check PyTorch, Transformers, and CUDA compatibility. Detect GPU, driver mismatches, and version conflicts in ML environments. Use when the user sets up ML/AI... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 85 次。

如何安装 Harmonia?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install harmonia」即可一键安装,无需额外配置。

Harmonia 是免费的吗?

是的,Harmonia 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Harmonia 支持哪些平台?

Harmonia 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Harmonia?

由 Ahmed Eladl(@ahmed-eladl)开发并维护,当前版本 v1.0.0。

💬 留言讨论