rhdh-plugin-export

rhdh-plugin-export is a skill for Claude Code, Codex from redhat-developer/rhdh-skills. It costs 156 tokens per session (951 once invoked), scanned A, original, Apache-2.0.

A procedure for turning a Backstage plugin into a deployable Red Hat Developer Hub plugin package. A plugin package is a built artifact that can be installed as an OCI image, compressed archive, or npm package.

In plain words
What is it for?
Use it to build and type-check a plugin, export its dynamic files, select dependency handling, package it, and optionally publish it to a registry.
Why use it?
It organizes the build, dependency choices, packaging, and optional registry upload needed to move a plugin from source code to deployment.

Skill for Claude CodeCodex

Part of the plugins plugin — 17 skills shipped together

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/redhat-developer/rhdh-skills/rhdh-plugin-export
Any agent
npx skills add redhat-developer/rhdh-skills --skill rhdh-plugin-export
Clone the repo
git clone --depth 1 https://github.com/redhat-developer/rhdh-skills

Made for: Claude Code, Codex.

Or install plugins, the plugin that ships this one along with the rest of its 17 skills.

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 rhdh-plugin-export

README.md
[![agentmods](https://agentmods.dev/badge/skills/redhat-developer/rhdh-skills/rhdh-plugin-export.svg)](https://agentmods.dev/skills/redhat-developer/rhdh-skills/rhdh-plugin-export)
Your own site
<a href="https://agentmods.dev/skills/redhat-developer/rhdh-skills/rhdh-plugin-export"><img src="https://agentmods.dev/badge/skills/redhat-developer/rhdh-skills/rhdh-plugin-export.svg" alt="Measured on agentmods" height="20"></a>
Per session 156 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 951 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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 $0.00156 $0.00951
Opus 5 $0.00078 $0.00476
Sonnet 5 $0.00031 $0.00190
Haiku 4.5 $0.00016 $0.00095

Measured 5d ago against content hash f2c459aae5ec, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

rhdh-plugin-export scanned grade A with 0 findings 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.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/export-plugin.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/plugins/rhdh-plugin-export/SKILL.md · 91 lines

How it starts

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

RHDH Plugin Export

Own the step between working source and a deployable artifact. The plugin builds, exports to dist-dynamic/, gets packaged in one of three formats, and optionally lands in a registry with an integrity value the deployment can pin.

Scope against /rhdh-overlay

This skill exports a plugin you are developing, from its own workspace, on your machine. /rhdh-overlay repairs the overlay repository's CI exportsource.json, plugins-list.yaml, and the export jobs that rhdh-plugin-export-overlays runs for the Extensions Catalog. If the failing export is a GitHub Actions run in that repository, it is not this skill.

Start here

  1. Confirm the plugin builds: yarn build and yarn tsc from the plugin directory.
  2. Read package.json for the plugin role, name, and version, and check that a backend plugin has a default export from src/index.ts.
  3. Decide the target format before running anything: OCI image, tgz archive, or npm package.

Route by outcome

Outcome Load and follow
Export and package in one pass references/export.md; run scripts/export-plugin.py
Choose shared, embedded, or bundled dependencies references/export-options.md
Compare or produce a specific artifact format references/packaging-formats.md
Produce or verify an integrity value references/integrity-hashes.md
See a complete deployment configuration examples/dynamic-plugins.yaml

The bundled script covers the common path:

python scripts/export-plugin.py --plugin-dir plugins/my-plugin \
  --tag quay.io/ns/my-plugin:v0.1.0 --push --clean

Run it with --help for the full option set. Follow references/export.md step by step when the script's defaults do not fit.

Boundaries

  • This skill produces artifacts. It does not write plugin source, generate deployment configuration, or run RHDH.
  • /rhdh-plugin-authoring owns plugin source, including a missing default export or a broken build that surfaces here.
  • /rhdh-plugin-wiring owns the dynamic-plugins.yaml configuration that consumes the artifact this skill produces.
  • /rhdh-local owns installing the artifact into a running local RHDH.
  • /rhdh-overlay owns the overlay repository and the Extensions Catalog.

Read the full file on GitHub · 91 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 91 lines · 156 tokens per session scan A f2c459aae5ec

Subscribe to this mod's changes

rhdh-plugin-export is a skill published in the GitHub repository redhat-developer/rhdh-skills (16 stars, last pushed yesterday), licensed Apache-2.0. It adds 156 tokens to every session and 951 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

imagegen

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…

openai/codex · 113 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens