/prometheus-skill-pack:gitops-transformfrom prometheus-skill-pack
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-skill-pack. 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
2 plugins in one repository ship this exact skill · first indexed Nov 27, 2026
218 skills in this plugin
/actor-modelTokio-native actor model pattern for Prometheus AGS projects. Implements actors as tokio tasks communicating via mpsc channels with a typed message enum, enabling safe concurrent state management without shared locks. Used in UAR session management, pk-librarian event broadcasting, and parking-lot scheduler design. Use when a component needs to own state exclusively while serving concurrent callers.
/adversarial-reviewIsolated, cross-model adversarial review of KBD artifacts and change diffs. Dispatches a fresh-context LLM judge over an OpenAI-compatible REST gateway (openai-proxy or `liter-llm api`) with an explicit mandate to find problems — the model that produced an artifact or change is never the model that reviews it. Runs as a pipeline stage inside kbd-assess/analyze/plan (artifact mode) and kbd-execute's single phase-boundary QA step (diff mode, once over the whole phase diff). Findings are severity-bucketed (CRITICAL/WARNING/SUGGESTION) and the judge's own report is screened by sycophancy-correction before it is surfaced.
Other plugins' skills for the same job
/agent-team-creatorCreate, revise, package, and deploy agent-team definitions with staged questions and native exports for UAR, Codex, Claude Code, Copilot, Kimi Code, MiniMax CLI, OpenCode and DeepSeek. Use for team definition and catalog lifecycle; use agent-team-manage for active runtime task state.npx claudepluginhub prometheus-ags/prometheus-skill-system --plugin prometheus-skill-pack