audit-portability

audit-portability is a skill for Claude Code from tomzx/agents. It costs 138 tokens per session (2,177 once invoked), scanned A, original, MIT.

A codebase review of portability, meaning how easily software can run in a different environment, be installed, or be replaced. It checks assumptions about operating systems, hosts, paths, configuration, and outside vendors.

In plain words
What is it for?
Use it to find hardcoded paths and hosts, operating-system-specific code, configuration embedded in source, difficult installation steps, platform-specific dependencies, and vendor lock-in.
Why use it?
It exposes changes that may break when moving to another machine, operating system, deployment setup, or service provider.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/tomzx/agents/audit-portability
Any agent
npx skills add tomzx/agents --skill audit-portability
Clone the repo
git clone --depth 1 https://github.com/tomzx/agents

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for audit-portability

README.md
[![agentmods](https://agentmods.dev/badge/skills/tomzx/agents/audit-portability.svg)](https://agentmods.dev/skills/tomzx/agents/audit-portability)
Your own site
<a href="https://agentmods.dev/skills/tomzx/agents/audit-portability"><img src="https://agentmods.dev/badge/skills/tomzx/agents/audit-portability.svg" alt="Measured on agentmods" height="20"></a>
Per session 138 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,177 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00138 $0.02177
Opus 5 $0.00069 $0.01089
Sonnet 5 $0.00028 $0.00435
Haiku 4.5 $0.00014 $0.00218

Measured 5d ago against content hash 0f6e512fbb97, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

audit-portability scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

rg -n "shelljs|execSync|child_process" -g '*.{ts,js}' .
skills/audit-portability/SKILL.md · 190 lines

How it starts

The opening of the file, as written. The whole thing — 190 lines — stays where its author put it; the contents beside it link to each section on GitHub.

TODAY=!date +%Y-%m-%d

Portability Audit (ISO/IEC 25010)

Audits the codebase for portability: can the software be adapted to a new environment, installed easily, and replaced or migrated off without lock-in? It finds the assumptions that make software brittle to relocation and hard to leave.

This is the Portability characteristic of the ISO/IEC 25010 quality model. Distinct from audit-compatibility (runs alongside other software and speaks standards), this is about running in a different environment and being replaceable.

Prerequisites

  • Working directory is the root of the repository
  • Read .sdlc/context/architecture.md and .sdlc/context/project-overview.md if present (for declared target environments and providers)

What This Checks

Sub-characteristic What it means Signals scanned
Adaptability runs in different environments without modification hardcoded absolute paths, hostnames, IPs, OS-specific code without abstraction, config baked into code (violating 12-factor), platform-specific dependencies (C extensions, native bins)
Installability easy to install in a new environment install/setup docs, containerization, package manifest, declared system requirements, pinned vs floating deps
Replaceability easy to swap out or migrate data off vendor/provider lock-in without an abstraction, proprietary data formats, no standard data-export or API, missing OpenAPI/schema

Steps

1. Adaptability: environment assumptions

Hardcoded absolute paths and OS-specific locations:

rg -n "/usr/|/var/|/tmp/|/etc/|/opt/|C:\\\\|/home/|/Users/" -g '*.{py,ts,js,go}' . \
  | rg -v "test|spec|example|docs|README|node_modules|\.venv"

Hardcoded hostnames and IPs:

rg -n "https?://[a-zA-Z0-9.-]+|\\b[0-9]{1,3}(\\.[0-9]{1,3}){3}\\b" -g '*.{py,ts,js}' . \
  | rg -v "localhost|0\.0\.0\.0|example\.com|test|spec|127\.0\.0\.1"

OS-specific code and shell calls without abstraction:

rg -n "os\.name|platform\.|sys\.platform|subprocess\.(run|call|Popen)\(|os\.system\(" -g '*.py' .
rg -n "shelljs|execSync|child_process" -g '*.{ts,js}' .

Read the full file on GitHub · 190 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 190 lines · 138 tokens per session scan A 0f6e512fbb97

Subscribe to this mod's changes

audit-portability is a skill published in the GitHub repository tomzx/agents (6 stars, last pushed 2d ago), licensed MIT. It adds 138 tokens to every session and 2,177 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

debug-optimize-lcp

Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…

ChromeDevTools/chrome-devtools-mcp · 99 tokens

systematic-debugging

Use when debugging a failing test, build error, or runtime issue that isn't immediately obvious. Guides a 4-phase root cause analysis instead of random fix attempts.

open-metadata/OpenMetadata · 37 tokens

diagnose

Trace from a reproduced symptom to the source code that causes it. Pin the specific file and approximate line, rate confidence in the cause and clarity of the fix independently, and always propose a concrete fix.

emdash-cms/emdash · 43 tokens

azsdk-common-pipeline-analysis

Analyze Azure SDK CI/CD pipeline failures into a structured diagnosis, and define the required output format. Load this skill before calling azsdkanalyzepipeline, which returns raw failure data that this skill interprets and formats. USE FOR: "pipeline failed", "build failure", "CI check failing", "tests failing in…

Azure/azure-sdk-for-net · 192 tokens

repro-admin

Reproduce an EmDash admin UI bug. Attach a container, start the demo dev server, drive the admin with agent-browser using the dev-bypass session, and capture the reproduction as screenshots plus a replayable transcript.

emdash-cms/emdash · 48 tokens

log-error-digest

Analyze log files to troubleshoot errors, identify peak error periods, and produce error clustering, frequency statistics, and time distribution reports. Supports JSON, syslog, and Nginx formats with automatic detection. Use when a user uploads a .log file and asks to analyze errors, find patterns, debug issues, or…

zebbern/claude-code-guide · 71 tokens