Agent Portability Checker is a developer skill that audits agent skill codebases for portability issues that cause platform lock-in. It scans Python-based agent skills for hardcoded paths, platform-specific CLI dependencies, missing environment variable support, and rigid environmental assumptions that prevent skills from running across different agent environments such as Claude Code, OpenClaw, or Codex.
The skill operates against an 8-point checklist that includes XDG Base Directory Specification compliance, cross-platform path resolution using os.path or pathlib, multi-channel formatting compatibility (Slack, Discord, WhatsApp), and headless OAuth compliance. These are checks that are easy to miss in manual code review.
The output is a structured audit report that identifies specific line numbers where issues occur — flagging hardcoded paths, absent environment variable fallbacks, and platform-tied CLI calls. When run in fix mode, the skill automatically refactors problematic paths to use dynamic environment variables such as $SKILL_DATA_DIR instead of leaving static references in place.
This skill is aimed at developers who distribute or plan to distribute agent skills across multiple platforms and want to catch portability problems before deployment rather than debug them after the fact. It is not a general-purpose code linter and does not cover languages other than Python.