agentleFS
redhat-developerredhat-developer/rhdh-skills/skills/plugins/rhdh-plugin-wiring/SKILL.md

rhdh-plugin-wiring

Skill20 starsChanged 20 days agoApache-2.0View on GitHub

Generates the Red Hat Developer Hub dynamic-plugins.yaml configuration that makes an exported Backstage frontend plugin appear in RHDH: derive the Scalprum name from plugin-manifest.json or the package name, and write the pluginConfig.dynamicPlugins.frontend block with dynamicRoutes, menuItems, mountPoints, appIcons, apiFactories, routeBindings, entity tabs, cards, context menu items, and provider components. Use for "generate the wiring for this plugin", "which mount point does this card need", entity page customization, importName, or a plugin that installs but never renders. To apply the configuration to a running instance instead, use /rhdh-local.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read package.json for the package name and any scalprum block.

    line 32
  2. Very specific:

    Read src/plugin.ts or src/plugin.tsx and src/index.ts for the extensions and public exports.

    line 33
  3. Very specific:

    Read dist-dynamic/dist-scalprum/plugin-manifest.json when the plugin has been exported.

    line 35
  4. Very specific:

    Every importName must name a real export.

    line 75
  5. Distinctive:

    Do not invent a mount point.

    line 77

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

RHDH Plugin Wiring

Own the configuration that connects an exported frontend dynamic plugin to RHDH's extension points. Read the plugin's real exports, derive the Scalprum name the same way RHDH does, and emit configuration whose every importName corresponds to something the plugin actually exports.

Scope against /rhdh-local

This skill generates wiring configuration from plugin source. /rhdh-local applies configuration to a running local RHDH instance, enables and disables plugins there, and restarts containers. Producing the YAML is here; loading it into an instance is there.

Start here

  1. Read package.json for the package name and any scalprum block.
  2. Read src/plugin.ts or src/plugin.tsx and src/index.ts for the extensions and public exports.
  3. Read dist-dynamic/dist-scalprum/plugin-manifest.json when the plugin has been exported; its name field is authoritative for the Scalprum name.
  4. Report the exports you found before generating configuration.

Route by outcome

OutcomeLoad and follow
Generate wiring for a frontend pluginreferences/wiring.md
Configure a specific wiring option in depthreferences/frontend-wiring.md
Place content on a catalog entity pagereferences/entity-page.md

references/frontend-wiring.md is the complete option reference: dynamic routes, mount points and their configs, entity tabs and cards, search result types, themes, scaffolder field extensions, API factories, and route bindings. references/entity-page.md covers the entity page structure itself — default tabs, card placement, context menu items, and context providers.

Boundaries

  • This skill emits configuration. It does not modify plugin source, export artifacts, or run RHDH.
  • /rhdh-plugin-authoring owns plugin source. If a needed importName does not exist, the fix belongs there, not in the configuration.
  • /rhdh-plugin-export owns producing the artifact and its plugin-manifest.json.
  • /rhdh-plugin-nfs-migration owns converting legacy mount points into New Frontend System extensions. This skill writes the legacy dynamic-plugin configuration that RHDH consumes today.
  • /rhdh-local owns applying the configuration and restarting an instance.
  • /rhdh-overlay owns the catalog metadata for a published plugin.

Invoke a named skill and describe the handoff in the conversation. Never open another skill's files.

Invariants

  • The Scalprum name must match the deployed artifact exactly. Prefer plugin-manifest.json, then package.json scalprum.name, and only then derive it from the package name.
  • Every importName must name a real export. Verify against src/index.ts rather than assuming a naming convention.
  • Do not invent a mount point. Use the ones the target RHDH version defines and say so when a requested placement has no mount point.
  • Emit complete, runnable YAML. A fragment that the user has to reassemble is the most common source of a plugin that installs and never renders.
  • Configuration alone changes nothing until it is applied and the instance restarts. Say which restart the change needs.

Completion

Report the resolved Scalprum name and where it came from, the exports found and the configuration entry each produced, the complete YAML block, any requested placement you could not wire and why, and the named skill to invoke next to apply or publish it.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.