image-repo-mapping

image-repo-mapping is a skill for Claude Code from openshift-eng/ai-helpers. It costs 41 tokens per session (4,909 once invoked), scanned C, original, Apache-2.0.

A lookup step that maps a container image name to the GitHub repository where its source can be analyzed. A container image is a packaged application and its dependencies, while Jira is a system for tracking work tickets.

In plain words
What is it for?
Use it when a CVE ticket contains a container image name and an analysis workflow needs the correct repository URL to clone.
Why use it?
It avoids guessing which source repository belongs to an image. It checks exact, version-stripped, and keyword matches, then stops if no match is found.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

Part of the compliance plugin — 9 skills, 1 command shipped together

Good fit Use it when a CVE ticket contains a container image name and an analysis workflow needs the correct repository URL to clone.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/openshift-eng/ai-helpers/image-repo-mapping
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.

Any agent
npx skills add openshift-eng/ai-helpers --skill image-repo-mapping
Clone the repo
git clone --depth 1 https://github.com/openshift-eng/ai-helpers

Made for: Claude Code.

Or install compliance, the plugin that ships this one along with the rest of its 9 skills, 1 command.

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 image-repo-mapping

README.md
[![agentmods](https://agentmods.dev/badge/skills/openshift-eng/ai-helpers/image-repo-mapping/github.svg)](https://agentmods.dev/skills/openshift-eng/ai-helpers/image-repo-mapping)
Your own site
<a href="https://agentmods.dev/skills/openshift-eng/ai-helpers/image-repo-mapping"><img src="https://agentmods.dev/badge/skills/openshift-eng/ai-helpers/image-repo-mapping/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for image-repo-mapping

Your own site · 80×15
<a href="https://agentmods.dev/skills/openshift-eng/ai-helpers/image-repo-mapping"><img src="https://agentmods.dev/badge/skills/openshift-eng/ai-helpers/image-repo-mapping.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,909 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00041 $0.04909
Opus 5.5 $0.00016 $0.01964
Sonnet 5.5 $0.00008 $0.00982
Haiku 4.5 $0.00004 $0.00491

Measured 23d ago against content hash 9079f74941eb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

image-repo-mapping scanned grade C 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 23d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf "${RELEASE_CLONE_DIR}"
plugins/compliance/skills/image-repo-mapping/SKILL.md · 350 lines

How it starts

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

Image to Repository Mapping

Translates a container image name into the GitHub repository URL to clone for analysis. Image names appear in the ticket summary, pscomponent: labels, and the Downstream Component Name custom field.

When to Use This Skill

Use this skill when:

  • An image name has been extracted from a Jira ticket (summary, label, or custom field)
  • The user passes --repo=<image-name> using a short image name rather than a full GitHub URL
  • Phase 0.7 needs to determine which repository to clone

Resolution Order

Apply these in order and stop at the first match:

  1. Full GitHub URL supplied (--repo=https://github.com/...) → use directly, skip this skill.
  2. Exact image name match — look the image name up in the table below.
  3. Prefix match — strip version suffixes (e.g. -1-0, -1-12-4, -rhel9, -rhel8) and re-match.
  4. Keyword match — check the per-section keyword rules at the bottom of each group.
  5. NOT FOUND → Exit immediately with the error message below. Do not guess. Do not proceed with analysis.

Tip: Strip pkg:oci/ prefix before matching (e.g. pkg:oci/ose-ansible-operator → ose-ansible-operator).

Not-Found Exit

If no match is found after all steps above, stop immediately and output:

❌ Repository mapping not found for image: <image_name>

The image "<image_name>" is not in the known mapping table and could not
be resolved automatically.

To proceed, re-run with an explicit repository URL:

  --repo=https://github.com/org/repo

Or add the mapping to:
  plugins/compliance/skills/image-repo-mapping/SKILL.md

Do NOT continue analysis without a confirmed source repository.

Do NOT fall back to guessing, fuzzy matching, or prompting the user inline. Exit the command at this point.


Two Repository Patterns

Components fall into one of two patterns. The resolution output is different for each.

Pattern A — Direct repo

Clone the mapped repo directly at the mapped branch. Used by: Operator SDK, Ansible Operator, must-gather, Secrets Store CSI.

Read the full file on GitHub · 350 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. 23d ago Changed 9079f74941eb
  2. 1mo ago First seen · 350 lines · 41 tokens per session scan C f700a7feef84

Subscribe to this mod's changes

image-repo-mapping is a skill published in the GitHub repository openshift-eng/ai-helpers (121 stars, last pushed today), licensed Apache-2.0. It adds 41 tokens to every session and 4,909 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-11.

Related

Other skills, from other repositories

deploy-docker-compose

Run the Omnigent server as a Docker compose stack (server + Postgres) on any Docker host — your laptop, a VPS, EC2 by hand, or as the base layer of any container-platform deploy. Invoke when the user wants to build the image, bring up the compose stack, debug the stack on a host they already have, or extend the stack…

omnigent-ai/omnigent · 84 tokens

bdd-container-update

Update the BDD test container image when its dependencies or runtime change. Determines version bump (major vs minor vs patch), rebuilds the Docker image, pushes to GitLab registry, and updates the image tag in starttest.sh. Test source (tests/, features/, scripts/, data/, conftest.py) is bind-mounted from the host…

NVIDIA-AI-Blueprints/video-search-and-summarization · 117 tokens

securing-kubernetes-on-cloud

This skill covers hardening managed Kubernetes clusters on EKS, AKS, and GKE by implementing Pod Security Standards, network policies, workload identity, RBAC scoping, image admission controls, and runtime security monitoring. It addresses cloud-specific security features including IRSA for EKS, Workload Identity for…

xalgorix/xalgorix · 80 tokens

detecting-privilege-escalation-in-kubernetes-pods

Detect and prevent privilege escalation in Kubernetes pods by monitoring security contexts, capabilities, and syscall patterns with Falco and OPA policies.

xalgorix/xalgorix · 40 tokens

docker-socket-mount

Docker / containerd socket mounted into a container → host RCE. Common in CI runners, GitOps controllers (ArgoCD, Flux), and 'Docker-in-Docker' setups. Single-command escape via docker run --rm --privileged -v /:/host alpine chroot /host.

PurpleAILAB/Decepticon · 67 tokens

polar-local-environment

This skill should be used when setting up or managing Polar local development environment with Docker.

fcakyon/claude-codex-settings · 22 tokens