/install agent-portability-checker
Agent Portability Checker 🔌
Audit an agent skill for platform lock-in. Auto-fixes what it can, flags what needs manual attention.
Why
Skills with hardcoded paths only work on one platform. This tool catches those issues and fixes them — making your skills work everywhere agents run.
When to Use
- "Is this skill portable?"
- "Make this skill cross-platform"
- "Check for hardcoded paths"
- "Prepare a skill for other agents"
How to Run
python3 scripts/audit.py \x3Cskill_dir> # audit only
python3 scripts/audit.py \x3Cskill_dir> --fix # auto-fix + audit
python3 scripts/audit.py \x3Cskill_dir> --json # structured output
What It Checks
📍 Hardcoded paths — platform-specific dirs like ~/.\x3Cplatform>/ in scripts
🔧 SKILL_DATA_DIR — env var support for data dir resolution
📦 XDG fallback — ~/.config/\x3Cskill>/ fallback path
🔌 Platform CLI deps — external binary dependencies (e.g. clawhub, gh)
🏷️ User-Agent strings — platform names in HTTP headers
📄 SKILL.md paths — platform-specific path references in docs
🖥️ Headless setup — OAuth scripts without --no-browser flag
🔑 Credential env vars — file-only credentials with no env var alternative
Output Example
❌ github-growth-tracker — 8 errors, 9 warnings (9 auto-fixable)
📍 Hardcoded Paths
❌ scripts/github_tracker.py:28: ~/.\x3Cplatform>/ [auto-fix]
❌ scripts/github_tracker.py:31: ~/.\x3Cplatform>/ [auto-fix]
🔧 SKILL_DATA_DIR: Not supported — scripts use hardcoded paths
🔧 XDG Fallback: Missing ~/.config/ fallback path
Two-Phase Flow
- Audit — show all findings (auto-fixable + manual)
- Fix — apply auto-fixes, show brief "what changed" confirmation
The agent reads the script output and formats it for the current channel. See references/formatting.md for Slack/WhatsApp/Discord styling.
Auto-Fixes
- Replaces
~/.\x3Cplatform>/credentials/with$SKILL_DATA_DIR - Replaces
~/.\x3Cplatform>/workspace/data/\x3Cskill>/with$SKILL_DATA_DIR/\x3Cskill>/ - Strips platform names from User-Agent strings
- Replaces hardcoded paths in SKILL.md with
\x3CDATA_DIR>placeholder
⚠ Output styling is never modified. Emojis, formatting, and visual elements in script output are preserved exactly as-is.
Manual flags require human review (platform CLI deps, headless setup, env var alternatives).
Formatting
Read references/formatting.md for channel-specific styling (Slack, WhatsApp, Discord, terminal).
The Portability Pattern
Skills that work everywhere follow this:
1. Resolve data dir via $SKILL_DATA_DIR (set by agent platform)
2. Fall back to ~/.config/\x3Cskill>/ (XDG-compliant, works everywhere)
3. Accept credentials via env var OR file (env var preferred)
4. Output to stdout — no platform messaging APIs
5. Self-contained scripts — no platform SDK imports
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install agent-portability-checker - After installation, invoke the skill by name or use
/agent-portability-checker - Provide required inputs per the skill's parameter spec and get structured output
What is Agent Portability Checker?
Audit agent skills for platform lock-in and cross-agent compatibility. Use when checking if a skill is portable, making a skill work across multiple agents (... It is an AI Agent Skill for Claude Code / OpenClaw, with 128 downloads so far.
How do I install Agent Portability Checker?
Run "/install agent-portability-checker" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Agent Portability Checker free?
Yes, Agent Portability Checker is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Agent Portability Checker support?
Agent Portability Checker is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Agent Portability Checker?
It is built and maintained by 99rebels (@99rebels); the current version is v1.1.3.