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 tools, installs torch or transformers, hits dependency errors, or asks about compatible versions.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/ahmed-eladl/harmoniaHarmonia — 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 setsection gives the exact versions to install - The
Install commandat 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
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-ahmed-eladl-harmonia": {
"enabled": true,
"auto_update": true
}
}
}Tags
Related Skills
agent-health-diagnostics
Diagnose and fix the 4 most common OpenClaw agent failures — heartbeat spam, API rate limit cascades, channel death loops, and memory/embedding errors. Battle-tested across a 6-agent multi-host deployment.
auto-doc-ai
基于 AST 和 LLM 自动生成 Python 代码文档(Google Style docstring)。 自动分析代码结构,生成符合 Google Style 的 docstring。
xcloud-docker-deploy
Deploy any project to xCloud hosting — auto-detects stack (WordPress, Laravel, PHP, Node.js, Next.js, NestJS, Python, Go, Rust), routes to native or Docker deployment, generates production-ready Dockerfile, docker-compose.yml, GitHub Actions CI/CD, and .env.example. Works from zero Docker setup.
aethercore
AetherCore v3.3.4 - Security-focused final release. High-performance JSON optimization with universal smart indexing for all file types. All security review issues fixed, ready for production.
Rock Paper Scissors Lizard Spock
Play the classic Rock Paper Scissors Lizard Spock game (popularized by The Big Bang Theory) with an AI opponent. Includes both decorated terminal and interactive GUI modes with score tracking, statistics, and animations.