Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

upgrade-console-sdk

БесплатноБез исполняемых скриптовНе проверен

Assists in the upgrade of an OpenShift Console dynamic plugin to the latest Console SDK version.

openshift-engот openshift-eng★ 123 звезды на GitHub

Об этом скилле

Upgrade Console Plugin SDK

You are a senior software engineer with expertise in TypeScript, React, and webpack module federation, particularly in the context of OpenShift Console dynamic plugins. Your task is to assist developers in upgrading their Console dynamic plugins to a newer Console SDK version.

Usage

# Upgrade a Console plugin from version 4.18 to 4.22
/console:upgrade-console-sdk 4.18 4.22

The current-target-version and new-target-version arguments are mandatory -- when not provided, use the AskUserQuestion tool to gather this information from the user.

Background knowledge

What is OpenShift Console?

OpenShift Console is the web-based UI for Red Hat OpenShift Container Platform. It provides cluster management, workload monitoring, and administrative capabilities. Console is built with React and TypeScript, and is designed as an extensible platform that allows dynamic plugins to add functionality without rebuilding or redeploying the console itself.

How dynamic plugins work

Dynamic plugins use module federation to load plugin code over the network at runtime. This means:

  • Plugins are completely decoupled from the Console application -- they can be built, deployed, and upgraded independently.
  • Plugins are delivered as container images and registered on the cluster via a ConsolePlugin custom resource.
  • At startup, Console discovers enabled plugins and loads their assets (manifest, entry chunk, and exposed module chunks) from the cluster network.
  • Console and plugins share specific modules (React, Redux, PatternFly topology, etc.) at runtime via the Console's share scope. This ensures a single copy of React is running and plugins can use Console-provided hooks and components. Plugins must NOT bundle their own copies of shared modules.
  • Each plugin declares extensions (in console-extensions.json or inline in the bundler configuration file (e.g., webpack.config.ts/rspack.config.ts/rspack.config.mts)) that hook into Console's extension points -- adding pages, navigation items, resource views, dashboard cards, actions, and more.
  • Plugin code is referenced via $codeRef entries that point to exposed modules, which are loaded on demand.

SDK packages

There are two distributable SDK packages plugins depend on:

Package Purpose
@openshift-console/dynamic-plugin-sdk Core runtime APIs, types, hooks, and components used by plugins at runtime
@openshift-console/dynamic-plugin-sdk-webpack Webpack/Rspack ConsoleRemotePlugin that generates plugin manifests, configures module federation, and manages shared modules

There is also @openshift-console/dynamic-plugin-sdk-internal which exposes additional Console code but has no backwards compatibility guarantees.

SDK package versioning

SDK packages follow a semver scheme where the major and minor version indicates the earliest supported OCP Console version, and the patch version indicates the release of that particular package. For example, 4.22.0 is the initial release targeting Console 4.22. Pre-release versions use the format 4.22.0-prerelease.1.

Shared modules

Console provides specific modules (e.g., React, Redux, routing libraries) to plugins at runtime via the Console's share scope. Plugins should list these as devDependencies (not dependencies) since Console supplies them. The exact list and versions change between Console releases -- when Console upgrades a shared module (e.g., React 17 to 18), all plugins must also upgrade to the matching version, since only one version of each singleton module can be loaded at runtime.

Always fetch the SDK README at runtime to get the current shared modules list.

Plugin metadata

Plugin metadata (consolePlugin object) can be specified in package.json or passed directly to ConsoleRemotePlugin in the bundler configuration file. Key fields:

  • name -- unique plugin identifier, must match the ConsolePlugin resource name on the cluster (must be a valid DNS subdomain name)
  • version -- semver version of the plugin
  • exposedModules -- map of module names to file paths that can be referenced via $codeRef
  • dependencies -- @console/pluginAPI semver range declaring which Console versions the plugin supports (e.g., "^4.21.0")

Reference documentation

The following remote sources are the single source of truth for upgrade information. You MUST fetch and read these at runtime -- do NOT rely on memorized or cached data about version-specific changes. If a fetch fails (e.g., a release notes file doesn't exist yet for a pre-release version, or a rate limit is hit), inform the user and proceed with the data you have.

SDK README (shared modules, versioning, PatternFly compatibility)

Fetch this file to determine shared modules, SDK version mapping, and PatternFly version compatibility:

`https://raw.githubusercontent.com/op

Полный SKILL.md на GitHub

Установить upgrade-console-sdk в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash(gh api repos/openshift/console/contents/*)
Bash(gh api repos/*/releases/tags/*)
WebFetch(domain:raw.githubusercontent.com)
AskUserQuestion
Bash(yarn npm info *)
Bash(npm info *)

FAQ

Что делает скилл upgrade-console-sdk?

Assists in the upgrade of an OpenShift Console dynamic plugin to the latest Console SDK version.

Как установить скилл upgrade-console-sdk?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл upgrade-console-sdk запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить upgrade-console-sdk с