/devops:ingress-migration-advisorfrom devops
Read-only planner that inventories every Ingress in a Kustomize repo, scores services on five migration-readiness dimensions, and recommends one of four migration paths (direct-gateway, two-step, swap-only, defer). Outputs a Mermaid Gantt plan and ready-to-paste Zeus commands.
Ships in devops. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Invoked by Zeus pipeline *ingress-migration-advisor.
This skill sits upstream of the three migration skills
(nginx-to-traefik, gateway-api-migration, nginx-to-gateway). It does
not invoke them — it produces a recommendation plan, and the operator runs
each batch through Zeus manually using the suggested commands.
Read this skill in full before answering questions about "which path should I migrate service X on" or "what is our EOL migration plan".
| File | When to read |
|---|---|
references/scoring-model.md | Step 2 — the five-dimension rubric + critical-tier veto rule |
references/decision-matrix.md | Step 3 — score-band → path mapping + sourceClass shortcut |
references/plan-template.md | Step 5 — Mermaid Gantt + per-service table + per-batch command block |
| Script | Used by | Purpose |
|---|---|---|
scripts/inventory_all_ingresses.py | Step 1 | Build every overlay, classify rendered Ingresses (reuses classify_ingress.py from gateway-api-migration) |
scripts/score_services.py | Step 2, 3 | Apply veto + rubric, decide path per service, emit decisions |
scripts/render_plan.py | Step 5 | Substitute plan-template.md with state.yaml data |
The scripts produce structured JSON / YAML. The model's job is to invoke them and weave their output into the report — not to re-derive scoring or decision logic in natural language.
Triggered explicitly by *ingress-migration-advisor from Zeus. Auto-triggered
also by descriptions containing: NGINX Ingress EOL, ingress-nginx end-of-life,
migration plan, which path should I migrate, per-service advisor.
*ingress-migration-advisor # interactive: prompts for deadline + batch size
*ingress-migration-advisor --deadline 2025-10-31 # explicit deadline (ISO date)
*ingress-migration-advisor --deadline 2025-10-31 --batch-size 5
*ingress-migration-advisor --target-path two-step # override per-service decision (single global path)
*ingress-migration-advisor --strict-tier-map # HALT on tier-map entries not present in inventory
*ingress-migration-advisor --bake-buffer-days 30 # buffer between final cutover and deadline (default 30)
*ingress-migration-advisor --resume <state-path> # re-render plan from existing state without re-scoring
--target-path valid values: direct-gateway, two-step, swap-only.
When set, the scoring still runs (for the report) but every
non-vetoed service is bound to the override path.
| Step | Action | Script |
|---|---|---|
| 0 | Tool check (kustomize, yq, git, python3) | inline command -v |
| 0b | Read docs/ingress-tier-map.yaml; prompt for deadline + batch size | inline |
| 1 | Inventory every Ingress across all overlays | inventory_all_ingresses.py |
| 2 | Score each non-vetoed service on 5 dimensions | score_services.py |
| 3 | Decide path per service (veto → sourceClass shortcut → score bands) | score_services.py --decide |
| 4 | Batch services by path + deadline pressure | inline |
| 5 | Render plan.md (Mermaid Gantt + per-service table + commands) | render_plan.py |
| 6 | Print summary to session; never auto-commit | inline |
Run command -v kustomize yq git python3. HALT on any missing with install
hints (brew install kustomize yq jq on macOS, equivalent apt/dnf on Linux).
No cluster tools required — this skill is offline.
Two prompts + one required file:
EOL deadline (ISO date) — e.g. 2025-10-31. Defaults: if --deadline
is set, skip prompt. If a previous state.yaml exists under
docs/reports/ingress-migration-advisor/, suggest the prior value.
Tier map file — read docs/ingress-tier-map.yaml from the consumer
repo root. HALT if missing with:
docs/ingress-tier-map.yaml not found. The advisor requires an explicit tier map so critical services are never auto-scheduled. Create the file with the format documented at the bottom of this SKILL.md, then re-run.
Validate: every service in the map should exist in the inventory written
at Step 1. If --strict-tier-map is set, missing services HALT;
otherwise WARN. Services in inventory but missing from the map default
to standard with per-service WARN.
Batch size cap — max services per migration batch. Default 5.
Override via --batch-size <n>.
Persist to state.yaml.inputs.
Discover every overlay matching */overlays/*/kustomization.yaml under
common.*/. Build each with kustomize build. Pipe each build through
classify_ingress.py (imported as a library from
gateway-api-migration/scripts/). Group by service name, deduplicate
across envs.
Invoke scripts/inventory_all_ingresses.py. Output written to
state.yaml.inventory[]. HALT if zero Ingresses found (nothing to plan)
or if every kustomize build fails.
Invoke scripts/score_services.py --inventory <inv.json> --tier-map docs/ingress-tier-map.yaml.
The script:
references/scoring-model.md.state.yaml.scores[].Score range: 4–14. Critical tier means traffic-tier dimension is scored 2 (not 3) because tier-3 is reserved for the veto path.
Same script with --decide flag, reads the scores it just wrote.
Decision order (encoded in references/decision-matrix.md):
defer (record vetoReason: critical-tier)direct-gatewaydirect-gatewaytwo-stepswap-onlydeferIf --target-path is set, override all non-vetoed decisions to that path
and record decision.overrideReason: "--target-path <value>".
Emit state.yaml.decisions[] with service, path, advisoryPath (the
score-derived path even when vetoed, for the report's deferred section),
vetoReason, overrideReason, and suggestedCommand.
Group decisions where path != defer by:
pathConstraints:
batchSizeCap services per batchdeadline - bakeBufferDaysSchedule batches at weekly cadence starting from "next Monday". If the schedule overflows the deadline, surface a WARN banner in the plan header and continue.
Emit state.yaml.batches[]. Deduplicate commands at the overlay level:
*gateway-migrate <overlay> processes every nginx-source Ingress in that
overlay in one invocation, so 5 services × 3 envs collapse to 3 unique
commands (one per env), not 15. Same for *nginx-to-gateway <env>. Only
*nginx-to-traefik <env> <service> is service-specific.
batches:
- id: b1
path: direct-gateway
services: [grafana, kibana]
targetWeek: 2025-07-07
estimatedDuration: 1 week
commands:
# Deduplicated: one command per overlay processes all services
- "*gateway-migrate common.service/overlays/dev --source-class nginx --gateway-class traefik"
- "*gateway-migrate common.service/overlays/stg --source-class nginx --gateway-class traefik"
- "*gateway-migrate common.service/overlays/prd --source-class nginx --gateway-class traefik"
Invoke scripts/render_plan.py --state <state.yaml> --template references/plan-template.md --out plan.md.
The template includes:
targetWeek)Unresolved {{placeholders}} are surfaced as a banner at the top of the
plan — informational, not a failure.
Print to the session:
Plan: docs/reports/ingress-migration-advisor/<slug>/plan.md
Total services: 18
direct-gateway: 3 (1 batch, week of 2025-07-07)
two-step: 12 (3 batches, weeks of 2025-07-21 → 2025-09-01)
swap-only: 2 (1 batch, week of 2025-09-15)
defer: 1 (kafka-proxy — critical-tier veto)
Deadline: 2025-10-31
Bake buffer: 30 days
Final cutover by: 2025-10-01 (29 days margin)
state.yaml)Path: docs/reports/ingress-migration-advisor/<isodate>-<ulid>/state.yaml.
schemaVersion: 1
skillVersion: "1.0.0"
runId: <ulid>
createdAt: <iso>
inputs:
deadline: 2025-10-31
bakeBufferDays: 30
batchSizeCap: 5
targetPathOverride: null
strictTierMap: false
tierMap:
argocd-server: critical
grafana: standard
kibana: low
inventory:
- service: argocd-server
namespace: argocd
sourceClass: nginx
envs: [dev, stg, prd]
modulePathPerEnv:
dev: common.service/overlays/dev
stg: common.service/overlays/stg
prd: common.service/overlays/prd
hostsPerEnv:
dev: [argocd.dev.example.com]
stg: [argocd.stg.example.com]
prd: [argocd.example.com]
annotations:
total: 12
cors: false
authPresent: false
stubbedLikely: 0
unknownLikely: 1
tlsMode: secret
pathTypes: [Prefix]
backendResolved: true
scores:
- service: argocd-server
vetoed: true
vetoReason: critical-tier
dimensions: {} # empty when vetoed; otherwise see below
- service: grafana
vetoed: false
dimensions:
annotationComplexity: 1
tlsMode: 1
hostnameCount: 1
trafficTier: 1
securityAnnotations: 1
total: 5
decisions:
- service: argocd-server
path: defer
advisoryPath: two-step # what the score would have said
vetoReason: critical-tier
overrideReason: null
suggestedCommand: null
- service: grafana
path: direct-gateway
advisoryPath: direct-gateway
vetoReason: null
overrideReason: null
suggestedCommand: "*gateway-migrate common.service/overlays/dev --source-class nginx --gateway-class traefik"
batches:
- id: b1
path: direct-gateway
services: [grafana, kibana]
targetWeek: 2025-07-07
estimatedDuration: 1 week
deferred:
- service: argocd-server
reason: "critical-tier veto"
advisoryPath: two-step
warnings: []
verdict: PASS | WARN | FAIL
reportPath: docs/reports/ingress-migration-advisor/<slug>/plan.md
| Step | Halt cause |
|---|---|
| 0 | Required tool missing |
| 0b | Deadline in the past |
| 0b | docs/ingress-tier-map.yaml missing |
| 0b | Tier-map references services not in inventory and --strict-tier-map is set |
| 1 | Zero Ingresses found |
| 1 | kustomize build fails across all overlays |
| 2 | Scoring script crash (treat as bug — report and re-run) |
| 5 | Template substitution fails entirely (file write error) |
WARN-not-HALT:
standard--strict-tier-map)deadline - bakeBufferdocs/ingress-tier-map.yaml — sibling of docs/PROJECT.md. Reviewed
via PR like any policy change.
schemaVersion: 1
services:
argocd-server: critical
harbor: critical
grafana: standard
kibana: standard
chartmuseum: standard
mlflow: low
registry-mirror: low
# Services not listed default to "standard" with a WARN.
Valid tier values: critical, standard, low. Anything else is a
HALT at Step 0b regardless of --strict-tier-map (validation error,
not policy decision).
Four invariants:
kustomize build side-effects
beyond /tmp, no git operations, no DNS edits. Re-running the advisor
is always safe.--resume only
re-renders the report from existing state; it does NOT refresh
inventory or scores. Re-run from scratch when the repo shifts.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub qwedsazxc78/devops-ai-skill --plugin devops12 skills in this plugin
/gateway-api-migrationMigrates Kustomize modules using NGINX Ingress to Gateway API resources. Dual-target: default Traefik (GatewayClass=traefik), opt-in GKE Gateway (--gateway-class gke-l7-global-external-managed). Handles master/minion topology (common.ingress/ + common.service/) as the primary case, with standalone Ingress as a fallback. Performs cluster-side preflight (CRDs, GatewayClass, policy CRDs, Traefik version probe on Traefik targets), deterministic discovery/analysis via bundled scripts, two-phase conversion with atomic rollback from full file backups, semantic diff of path and listener coverage, plus an ingress2gateway second-opinion cross-check. Renders a comprehensive report covering per-hostname mapping, TLS map, annotation inventory (translated/stubbed/unknown), risk register, cutover checklist, verification commands, and rollback procedures. Never modifies the master source; performs idempotent in-place edits only to common.service/overlays/<env>/kustomization.yaml.
/helm-version-upgradeManages Helm chart version upgrades across Terraform+Helm platforms. Handles atomic 3-file updates with version discovery from ArtifactHub. Use when upgrading Helm charts, checking for outdated versions, or performing version consistency checks.
/ingress-controller-installGitOps-flavored Traefik Ingress Controller bootstrap, env addition, or chart upgrade in a Kustomize + ArgoCD repo. Operates exclusively on files under `common.traefik/` (base, overlays, argocd manifests). Never runs `helm install` or `helm upgrade` — those are ArgoCD's job. Plan-only: edits Kustomize files, emits the `git add` / commit / push commands, and the operator drives git. Validates coexistence with `ingress-nginx` via Kustomize-build inspection (no live cluster required). Use for new-cluster bootstrap, adding a new env overlay, or bumping the Traefik chart version.
/kustomize-resource-validationAuto-trigger skill that activates when any kustomization.yaml file is edited. Validates resource references, patch references, orphaned files, cross-environment consistency, build success, and generator configurations.
/retire-nginxRetire the nginx ingress controller and all nginx Ingress resources from a Kustomize + ArgoCD repo after Gateway API / Traefik migration is complete. Supports single-env (dev/stg/prd) or all-envs retirement in one command. Use this skill whenever: removing nginx after migration, cleaning up dead nginx Ingress resources from a kustomize base, decommissioning the ingress-nginx controller ArgoCD Application for an env, or retiring nginx from one environment without touching others. Safety-gated: aborts if no HTTPRoutes/Traefik Ingresses found (migration not done). Uses $patch: delete in the service overlay kustomization to exclude base nginx Ingress resources per-env — base files stay intact for other envs still using them.
/nginx-to-gatewayThin orchestrator that chains nginx-to-traefik (class swap) and gateway-api-migration (resource swap) against one Kustomize module in one operator session. Owns no conversion logic. Invokes skill A first, reads its outputs.traefikIngresses[] hand-off contract, then invokes skill B with --source-class traefik --no-redirect and the chosen --gateway-class. Produces a single combined index document linking both sub-reports. Each phase keeps its own state file; this skill records the chain in docs/reports/nginx-to-gateway/<slug>/index.yaml.
Other plugins' skills for the same job