/disconnected-readiness-scorer:disconnected-scorefrom disconnected-readiness-scorer
Score a repository's readiness for disconnected / air-gapped OpenShift deployments. Scans for image manifest completeness, digest enforcement, runtime egress, and Python dependency validation. Use when asked to check disconnected readiness, air-gap compliance, or image mirroring coverage for an RHOAI component repo.
Ships in disconnected-readiness-scorer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Score a repository's readiness for deployment in disconnected / air-gapped OpenShift environments.
Scans a repository for common patterns that break disconnected deployments:
RELATED_IMAGE_* env vars (used by the opendatahub-operator) and static CSV relatedImages lists.RELATED_IMAGE_* env vars across 18 components). This is the source of truth for what images must be mirrorable.@sha256: digests, not mutable tags.All rules exclude test files (*_test.go, test/, testdata/), CI config (.github/, .tekton/), and linting rules (semgrep.yaml) from blocker-level findings.
make install-arch-analyzer in the repo root)The scorer uses arch-analyzer to extract production code scope and kustomize overlay mappings. This replaces fragile Dockerfile parsing and provides accurate production vs non-production file classification.
claude plugin install disconnected-readiness-scorer@opendatahub-skills
Then from the root of any RHOAI component repo:
/disconnected-score
--rules all (default) — run all rules--rules csv,tags — run only specified rules--fix — attempt auto-remediation for supported rules (e.g., replace image tags with digests)--report markdown — output a markdown report (default)--report json — output machine-readable JSONDisconnected Readiness Score: NOT READY
FAIL image-manifest-complete 2 blocker(s)
PASS no-image-tags All checks passed
PASS no-runtime-egress All checks passed
PASS python-imports-bundled All checks passed
Blockers: 2 | Passed: 3
| Score | Meaning |
|---|---|
| READY | All rules pass — no blocker findings |
| NOT READY | One or more blocker-level findings |
Parses Dockerfiles, Helm charts, kustomize overlays, Go/Python source, and YAML manifests for container image references. Compares against:
spec.relatedImages in the ClusterServiceVersion (CSV)Any image found in code but missing from both lists is a blocker.
Scans all image references for tag-based refs (:latest, :v1.2.3). Tags cannot be reliably mirrored — only digest refs (@sha256:...) are guaranteed to resolve in a disconnected registry.
Production manifests with tags: blocker. Test/dev manifests with tags: warning.
Scans Go, Python, and TypeScript source for patterns indicating outbound network calls:
http.Get, http.Post, http.NewRequest, net.Dialrequests.get, urllib.request, httpx, aiohttpfetch(, axios, http.requestcurl, wget in scripts executed at runtimeBuild-time usage (Dockerfiles, Makefiles, CI scripts) is excluded. Runtime usage where the URL is configurable/mirrorable is info; hardcoded external URLs are a blocker.
For Python projects, checks:
requirements.txt, setup.py, pyproject.toml for packages not in the known-mirrors catalogpip install or subprocess calls that fetch from PyPI/GitHubgit+https:// dependencies in any requirements fileUnbundled runtime dependencies: blocker. Unbundled dev/test dependencies: warning.
config/config.yaml)Exception rules applied to all scanned repos. The rules field accepts a single rule name, a list of rule names, or "*" for all rules. Prefer naming specific rules over using "*" — the wildcard should only be used when the excepted path genuinely cannot produce valid findings for any rule (e.g. test directories, CI config, build files). For repo-specific exceptions, consider which rules the path could realistically violate and list only those — overly broad wildcards can silently hide real issues that a more targeted exception would have caught.
exceptions:
- rules: "*"
paths:
- "**/test/**"
reason: "Test directory — not deployed in production"
- rules: no-runtime-egress
repo: opendatahub-io/odh-dashboard
paths:
- "frontend/src/utilities/fetch.ts"
reason: "Uses cluster-internal API proxy, not external egress"
- rules: "*"
images:
- "*/REPLACE_IMAGE:*"
- "*:replace"
reason: "Kustomize/template placeholder images"
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
disconnected-readiness-scorer@opendatahub-skills is listed by opendatahub-io/skills-registry — review the source before installing
npx claudepluginhub opendatahub-io/skills-registry --plugin disconnected-readiness-scorer