Reads existing in-tree ODH operator component code and produces a step-by-step extraction checklist for migrating it to a standalone module. Analyzes controller logic, webhooks, RBAC, embedded manifests, and DSC field mappings.
Ships in odh-ai-helpers. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Analyze an in-tree ODH operator component and generate a migration checklist for extracting it into a standalone module operator.
The user must have the opendatahub-io/opendatahub-operator repository (or a
fork) checked out locally. This skill reads that codebase to analyze the
component.
Extract the component name from $ARGUMENTS. If not provided, ask the user.
Search for the component in these locations within the operator repo:
internal/controller/components/<name>/ (component controllers)internal/controller/services/<name>/ (service controllers)api/components/v1alpha1/<name>_types.go (component CRD types)api/services/v1alpha1/<name>_types.go (service CRD types)If the component is found under components/, the target API group is
components.platform.opendatahub.io. If under services/, use
services.platform.opendatahub.io.
Read all files in the component's controller directory. Document:
go:embed directives, template files,
or inline YAML strings. Note their locations.Read the component's CRD types file. Document:
Search for webhook registrations related to the component using the Grep tool:
"webhook" in internal/controller/components/<name>/"webhook" in internal/controller/services/<name>/"<ComponentKind>" in internal/webhook/Document each webhook: type (validating/mutating), what it validates, where the handler code lives.
Find RBAC requirements for the component:
+kubebuilder:rbac: markers in the controller files.internal/controller/datasciencecluster/kubebuilder_rbac.go).Find how the component's configuration flows from DSC to the component:
spec.components.<name> or the component's stanza name in the
DSC types.Using ${CLAUDE_SKILL_DIR}/references/import-mappings.md, identify all
imports from the operator's internal packages and map them to their
odh-platform-utilities equivalents.
Use the Grep tool to find imports that need remapping:
"opendatahub-operator" in internal/ and api/"openshift/api" in internal/ and api/For each import, note the old path, the new path, and any API changes
(e.g., WithReleases is now part of PlatformObject).
Write the checklist to migration-checklist-<component>.md in the current
directory. Use this structure:
# Migration Checklist: <Component> Module
Generated from opendatahub-operator analysis on <YYYY-MM-DD>.
## 1. Create Module Repository
- [ ] Create repo: `opendatahub-io/<component>-operator`
- [ ] Run `/module-scaffold <component>` to generate the skeleton
- [ ] Initialize go.mod with `github.com/opendatahub-io/<component>-operator`
## 2. Migrate CRD Types
- [ ] Move types from `api/<area>/v1alpha1/<component>_types.go`
- [ ] Create CommonSpec with user-facing fields: <list fields>
- [ ] Move operator-written fields to Spec only: <list fields>
- [ ] Implement PlatformObject interface (including WithReleases)
- [ ] Replace `operatorv1.ManagementState` with `common.ManagementState`
- [ ] Add CEL singleton validation for name `default-<component>`
- [ ] Replace status type with common.Status + ComponentReleaseStatus embeds
## 3. Migrate Controller Logic
- [ ] Move handler from `internal/controller/<area>/<component>/`
- [ ] Adapt to standalone reconciler builder pattern
- [ ] Replace operator-internal imports with odh-platform-utilities:
<list each import mapping>
- [ ] Extract render action (embed manifests in module binary)
- [ ] Extract deploy action (use pkg/deploy Deployer)
- [ ] Add gc action as LAST action in builder chain
- [ ] Set up condition Manager (Ready + ProvisioningSucceeded + Degraded)
- [ ] Add observedGeneration update on every reconcile
## 4. Migrate Manifests
- [ ] Move embedded manifests from `opt/manifests/<component>/` to module
- [ ] Package application manifests inside the controller binary
- [ ] Create Helm chart with controller-only manifests (Deployment, RBAC, CRD)
## 5. Migrate Webhooks
- [ ] Move webhook handlers: <list each webhook>
- [ ] Add singleton webhook using pkg/webhook
- [ ] Configure cert-manager for webhook TLS (not OpenShift serving-cert)
## 6. Migrate RBAC
- [ ] Module RBAC rules: <list rules>
- [ ] Remove component-specific RBAC from orchestrator's ClusterRole
## 7. Handle Dependencies
- [ ] <list each dependency and handling strategy>
## 8. Platform Integration
- [ ] Document DSC field mappings for orchestrator integration:
<list DSC field → module spec field mappings>
- [ ] Document DSCI platform config injection points:
<list DSCI fields that get projected into module CR>
- [ ] Create ConfigMap template for internal flags
## 9. Testing
- [ ] Move/adapt unit tests from operator repo
- [ ] Create E2E tests for standalone deployment
- [ ] Verify Helm chart deploys correctly
- [ ] Run `/module-compliance` to validate contract
## 10. Cleanup
- [ ] Remove component code from operator repo
- [ ] Remove component RBAC from operator ClusterRole
- [ ] Add module registration in operator's module registry
- [ ] Update operator's DSC reconciler to use ModuleHandler
Customize each section with the specific details discovered in Steps 2-7.
Replace placeholder <list ...> items with actual file paths, field names,
import paths, and RBAC rules found during analysis.
PlatformObject interface did not include WithReleases.
The shared library version does. Every migrated CR must implement
GetReleaseStatus() and SetReleaseStatus().GetSingleton error handling changed: use errors.Is(err, cluster.ErrNoInstance)
instead of k8serr.IsNotFound(err).DenyCountGtZero signature changed: now takes (count, gvk) instead of
(ctx, cli, gvk, msg). Counting is done separately via CountObjects.go:embed in components.go. The migration must extract only the
manifests for the target component.operatorv1.ManagementState from openshift/api. The
shared library uses a plain string type. The JSON values are identical
so CRDs do not need regeneration for this field.Present a brief summary to the user:
/module-scaffold <component> first, then applying the
checklist to fill in the component-specific logicWhat SKILL.md sets; muted values are Claude Code's defaults
/odh-ai-helpers:module-migrate <component-name>from odh-ai-helpers
odh-ai-helpers@opendatahub-skills is listed by opendatahub-io/skills-registry — review the source before installing
npx claudepluginhub opendatahub-io/skills-registry --plugin odh-ai-helpers3 plugins in one repository ship this exact skill · first indexed Jul 10, 2026
70 skills in this plugin
/acli-setup-checkVerify acli installation and authentication. Checks if acli is installed, authenticated to Jira, and can query projects. Use when troubleshooting acli issues or setting up acli for the first time./adr-reviewReview an Architectural Decision Record (ADR) using a team of six specialist reviewer subagents and produce a consolidated report as both PDF and PPTX slide deck. Use this skill whenever the user asks to review, critique, audit, or get feedback on an ADR, architecture decision, design doc, or RFC — whether the input is a Markdown file, a .docx document, or pasted text. Trigger even if the user does not explicitly say "ADR"; phrases like "review this architecture decision", "critique this design doc", or "run the reviewer panel on this" should also invoke this skill./Other plugins' skills for the same job