/prometheus-devops-skills:gitops-transformfrom prometheus-devops-skills
Detects and transforms existing GitHub Actions workflows and Kubernetes deployment configurations to the TJ-CICD-001 multi-cloud GitOps standard. Analyzes the current CI stack (registry provider, auth mechanism, deploy strategy, target cloud) and produces a diff-based transformation plan before making any changes. Handles: raw kubectl deploy workflows, Helm-based deploys, single-cloud workflows missing multi-cloud support, static credential auth (service account keys, access key IDs) needing OIDC migration, and workflows that deploy directly instead of committing to a GitOps repo. Use when a project has existing CI/CD that needs upgrading or modernizing.
Ships in prometheus-devops-skills. 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.
This skill audits an existing CI/CD setup and transforms it to the TJ-CICD-001 standard. It always produces a detection report and transformation plan before touching any file. The user approves the plan before execution.
Use this skill when the user says any of:
Run the full detection script before any other step:
scripts/detect-stack.sh
GitHub Actions workflows (.github/workflows/*.yml, .github/workflows/*.yaml):
Detect deploy mechanisms — flag each as COMPLIANT, VIOLATION, or UPGRADE-NEEDED:
kubectl apply in workflow → VIOLATION (direct deploy bypasses GitOps)helm upgrade in workflow → VIOLATION (direct deploy bypasses GitOps)docker push with no subsequent GitOps commit → VIOLATION (image never reaches cluster)kustomize edit set image + git commit + git push to gitops repo → COMPLIANTDetect authentication patterns — flag each:
gcloud auth activate-service-account --key-file → VIOLATION (static key)GOOGLE_APPLICATION_CREDENTIALS env var set to JSON → VIOLATION (static key)aws-actions/configure-aws-credentials with aws-access-key-id → VIOLATION (static keys)azure/login with creds: ${{ secrets.AZURE_CREDENTIALS }} (JSON blob) → VIOLATION (static)google-github-actions/auth with workload_identity_provider → COMPLIANT (keyless)aws-actions/configure-aws-credentials with role-to-assume → COMPLIANT (OIDC)azure/login with client-id + tenant-id + subscription-id → COMPLIANT (federated)Detect registry targets:
docker push to Docker Hub → NOTE (should use cloud-native registry)docker push to ghcr.io → NOTE (GHCR acceptable for non-production)docker push to *.pkg.dev → GCP (Artifact Registry)docker push to *.azurecr.io → AZURE (ACR)docker push to *.dkr.ecr.*.amazonaws.com → AWS (ECR)Detect target clouds from workflow content and repository structure:
gcloud container clusters, google-github-actions/, gke_ kubeconfig contextsazure/aks-set-context, azurerm_kubernetes_cluster, az aksaws eks, eks.amazonaws.com, aws_eks_clusterKubernetes manifests (any .yaml in the repo):
data: or stringData: containing values → VIOLATIONlatest in a manifest committed to git → WARNINGserviceAccount in Deployment → WARNINGGitOps repository indicators:
kustomization.yaml files → detect overlay structureApplication CRs → detect existing ArgoCD setupvalues.yaml files → detect Helm-based deliveryOutput a structured detection report:
═══════════════════════════════════════════════════
GITOPS TRANSFORM — DETECTION REPORT
═══════════════════════════════════════════════════
DETECTED CLOUDS
GKE ✓ (found in: .github/workflows/deploy.yml:14)
AKS ✗ (not detected)
EKS ✗ (not detected)
VIOLATIONS (must fix)
[V1] kubectl apply in workflow .github/workflows/deploy.yml:47
[V2] Static GCP service account key secrets.GCP_SA_KEY
[V3] Docker Hub push (use Artifact Registry) .github/workflows/deploy.yml:32
WARNINGS (should fix)
[W1] Image tag 'latest' in manifest k8s/deployment.yaml:18
[W2] No Kustomize overlay structure detected
COMPLIANT
[C1] Tests run before deploy step
[C2] Build and deploy are separate jobs
EXISTING GITOPS SETUP
ArgoCD: not detected
Kustomize: not detected
GitOps repo: not detected
═══════════════════════════════════════════════════
After detection, produce a transformation plan listing every change to be made. Present the plan to the user and wait for approval before executing.
Plan format:
TRANSFORMATION PLAN
═══════════════════════════════════════════════════
ACTION 1: Replace kubectl apply with GitOps promotion
File: .github/workflows/deploy.yml
Remove: lines 44-50 (kubectl apply -f k8s/)
Replace with: Kustomize image tag update + git push to gitops repo
ACTION 2: Migrate GCP auth to Workload Identity Federation
File: .github/workflows/deploy.yml
Remove: google-github-actions/auth with key-file
Replace with: google-github-actions/auth@v2 with workload_identity_provider
Requires: Add WIF_PROVIDER and WIF_SA to GitHub secrets (instructions provided)
ACTION 3: Create GitOps repository structure
Creates: gitops/services/{service}/base/ + cloud/gke/ + overlays/gke-{staging,prod}/
Creates: gitops/apps/{service}/gke-prod.yaml (ArgoCD Application CR)
ACTION 4: Migrate registry from Docker Hub to Artifact Registry
File: .github/workflows/deploy.yml
Replace: docker push {user}/{image}:tag
Replace with: docker push us-east5-docker.pkg.dev/{project}/{image}:{sha}
Requires: Create Artifact Registry repository (Terraform resource provided)
ESTIMATED SCOPE: 4 files modified, 8 files created
APPROVAL REQUIRED before execution.
═══════════════════════════════════════════════════
After user approval, execute each action in the plan:
Replacing direct kubectl deploy:
# REMOVE this pattern:
- run: kubectl apply -f k8s/
# REPLACE with GitOps promotion:
- name: Checkout GitOps repo
uses: actions/checkout@v4
with:
repository: ${{ env.GITOPS_REPO }}
token: ${{ secrets.GITOPS_PAT }}
path: gitops
- name: Update image tag
run: |
cd gitops/services/$SERVICE/overlays/gke-staging
kustomize edit set image $SERVICE=$REGISTRY/$SERVICE:${{ github.sha }}
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "deploy($SERVICE): ${{ github.sha }} → staging [gke]"
git push
Migrating GCP static key to WIF:
# REMOVE:
- uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.GCP_SA_KEY }}
# REPLACE with:
- uses: google-github-actions/auth@v2
with:
workload_identity_provider: ${{ secrets.WIF_PROVIDER }}
service_account: ${{ secrets.WIF_SA }}
Migrating AWS static keys to OIDC:
# REMOVE:
- uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# REPLACE with:
- uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
aws-region: us-east-1
Adding multi-cloud support to single-cloud workflow:
If only GKE is detected but the user wants AKS and/or EKS, add parallel push jobs
following the pattern in references/MULTICLOUD-WORKFLOW.md.
If no GitOps structure exists, invoke gitops-bootstrap skill logic to create it,
pre-populated with the service name and cloud(s) detected in Phase 1.
Secret manifests containing encoded valuesExternalSecret CR stubs pointing to the appropriate cloud secret storelatest image tags to $(PLACEHOLDER) (Kustomize will replace at deploy time)After transformation:
git diff --stat to show all changed fileskustomize build on each overlay — must succeedkubectl apply, helm upgrade, static credential patternsOutput a list of GitHub secrets the user must create and the commands to create ArgoCD Application CRs for any newly created GitOps structure.
For each removed static credential, output the replacement setup:
GCP (remove GCP_SA_KEY, add):
WIF_PROVIDER — Workload Identity Pool provider resource nameWIF_SA — Service account email with Workload Identity User bindingGITOPS_PAT — Fine-grained GitHub token with write access to GitOps repo onlyAWS (remove AWS_ACCESS_KEY_ID + AWS_SECRET_ACCESS_KEY, add):
AWS_ROLE_ARN — IAM role ARN configured with OIDC trust for GitHub ActionsGITOPS_PAT — Fine-grained GitHub tokenAzure (remove AZURE_CREDENTIALS JSON blob, add):
AZURE_CLIENT_ID — App registration client IDAZURE_TENANT_ID — Azure AD tenant IDAZURE_SUBSCRIPTION_ID — Subscription IDGITOPS_PAT — Fine-grained GitHub tokenSee references/SECRETS-MIGRATION.md for detailed setup instructions per cloud.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub prometheus-ags/prometheus-skill-system --plugin prometheus-devops-skills2 plugins in one repository ship this exact skill · first indexed Nov 27, 2026
5 skills in this plugin
/argocd-multicloudInstalls, configures, and manages ArgoCD as a multi-cloud GitOps control plane on GKE, with AKS and EKS registered as remote cluster destinations. Covers: fresh ArgoCD installation with --insecure mode behind Envoy Gateway, wildcard TLS certificate setup, cluster registration via argocd CLI, App-of-Apps root application creation, ArgoCD ApplicationSet authoring for cross-cluster fan-out delivery, ArgoCD project isolation per client/environment, RBAC configuration, and Dex OIDC SSO wiring. Use when setting up ArgoCD for the first time or adding remote clusters to an existing control plane.
/fabric-integrationEnforce the cross-repository fabric version invariants (Loro minor, wasmtime major, iroh floor, WIT world pinning) so a drift that would surface as a merge error, a cache miss, or a component that will not instantiate fails at check time instead./gitops-bootstrapScaffolds a complete multi-cloud GitOps CI/CD system from scratch following the TJ-CICD-001 standard. Detects target cloud environments (GKE, AKS, EKS — any combination), creates the GitOps repository structure (base / cloud / environment Kustomize overlays), generates GitHub Actions workflows with keyless OIDC authentication per cloud, creates ArgoCD Application CRs or ApplicationSets, and registers remote clusters with an ArgoCD control plane on GKE. Use when a project has no existing GitOps pipeline and needs one built from the ground up.
/kustomize-overlayGenerates a complete three-dimensional Kustomize overlay structure (base / cloud / environment) for a new or existing service following TJ-CICD-001. Creates cloud-specific annotation patches for GKE Workload Identity, Azure Workload Identity, and EKS IRSA. Validates existing overlays for structural compliance and repair broken overlay chains. Use when adding a new service to the GitOps repository, adding a new cloud target to an existing service, or auditing and repairing existing Kustomize structures.