/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
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install agent-portability-checker - 安装完成后,直接呼叫该 Skill 的名称或使用
/agent-portability-checker触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
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 (... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 128 次。
如何安装 Agent Portability Checker?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install agent-portability-checker」即可一键安装,无需额外配置。
Agent Portability Checker 是免费的吗?
是的,Agent Portability Checker 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Agent Portability Checker 支持哪些平台?
Agent Portability Checker 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Agent Portability Checker?
由 99rebels(@99rebels)开发并维护,当前版本 v1.1.3。