/devops:yaml-fix-suggestionsfrom devops
Auto-triggers when YAML files in Kustomize module directories are modified. Checks formatting, Kubernetes label compliance, kustomization.yaml references, and build validation. Reports only when issues are found.
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.
None: SKILL.md is the whole skill.
Automatically activates when YAML files in Kustomize module directories are modified.
Trigger: Any .yaml or .yml file is created or edited inside a Kustomize module directory (any directory containing base/ and overlays/ structure).
Exclude: Files under .claude/, .bmad-*/, tool/agent configuration directories, and any paths excluded by a local .yamllint.yml.
After the user edits a YAML file, perform these checks silently and only report if issues are found.
Read the modified file and check against the repo's .yamllint.yml configuration (if present). Fall back to these defaults if no .yamllint.yml exists:
indent-sequences: true)If formatting issues are found, suggest running the repo's formatter. Example:
pre-commit run yamlfmt --files <modified-file>
If pre-commit is not configured, suggest yamllint directly:
yamllint <modified-file>
For any resource with a metadata: section, verify standard Kubernetes labels exist.
Recommended Kubernetes labels (check for presence of at least these 4):
| Label | Description |
|---|---|
app.kubernetes.io/name | Application name |
app.kubernetes.io/component | Component type (e.g., service-account, ingress, deployment) |
app.kubernetes.io/part-of | Higher-level system or platform |
app.kubernetes.io/managed-by | Management tool (e.g., kustomize, helm) |
Optional organizational labels (warn if absent):
| Label | Description |
|---|---|
team | Owning team |
cost-center | Cost allocation identifier |
environment | Deploy target (e.g., dev, stg, prd) |
Note: Labels inherited via Kustomize commonLabels in base or overlay kustomization.yaml count as present. Check the relevant kustomization.yaml chain before reporting missing labels.
If labels are missing, suggest the specific labels to add with values inferred from the resource type, namespace, and file path context.
Check the kustomization.yaml in the same directory as the edited file. If the edited file is not referenced as a resources entry or a patches entry (by path), warn:
WARNING:
<filename>is not referenced in<directory>/kustomization.yaml. It may be orphaned and will not be included in the Kustomize build.
Discover the available environments by listing subdirectories under overlays/ in the same Kustomize module.
If the edited file is under an overlay directory (e.g., <module>/overlays/dev/), identify the affected module and environment, then suggest running:
kustomize build <module>/overlays/<env>
If the edited file is under a base/ directory, suggest building all discovered environments for the affected module:
kustomize build <module>/overlays/<env1>
kustomize build <module>/overlays/<env2>
# ... for each environment discovered under overlays/
Only show output if at least one check produces a WARN or FAIL status. Use this format:
YAML Fix Suggestions for <filename>
| # | Check | Status | Details |
|---|-----------|--------|----------------------------------|
| 1 | Format | OK | No issues found |
| 2 | Labels | WARN | Missing: team, cost-center |
| 3 | Reference | OK | Listed in kustomization.yaml |
| 4 | Build | WARN | Suggest: kustomize build ... |
Suggested fix: pre-commit run yamlfmt --files <file>
If all checks pass, do not produce any output.
yamllint not installed: Perform basic formatting checks using file reading only (indentation, trailing whitespace, duplicate keys). Suggest installing yamllint for comprehensive checking.pre-commit not installed: Suggest yamllint <file> directly as the fix command instead.kustomize not installed: Skip Check 4 (build validation). Report as INFO with install command.kind: CustomResourceDefinition may not need standard Kubernetes labels (Check 2). Skip label compliance for CRDs.{{ }} Helm template syntax are not valid YAML. Skip formatting check and note this is a Helm template.yamllint CLI for better performance.This skill is read-only by default — it only reports suggestions, never modifies files. All suggested fixes are presented as commands for the user to run manually.
No rollback needed — this skill only reads and suggests. It never modifies files directly.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
12 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.
/ingress-migration-advisorRead-only planner that inventories every Ingress in a Kustomize repo, scores each service on five migration-readiness dimensions, and recommends one of four paths per service (direct-gateway, two-step, swap-only, defer). Output is a Mermaid Gantt plan plus ready-to-paste Zeus commands. Critical traffic-tier services are vetoed to defer. Services already on Traefik Ingress (sourceClass=traefik) auto-route to direct-gateway. Never mutates the repo; produces docs/reports/ ingress-migration-advisor/<slug>/plan.md and state.yaml. Use for end-of-life planning (ingress-nginx EOL 2025), migration sequencing, or per-service path advisory. Requires docs/ingress-tier-map.yaml in the consumer repo.
/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.
npx claudepluginhub qwedsazxc78/devops-ai-skill --plugin devopsOther plugins' skills for the same job