fluxcd
Skill71 starsChanged 8 days agoApache-2.0View on GitHub
FluxCD entry point — routes to the right workflow based on what you need. Live cluster issue → structured 5-workflow debug trace. Repo health check → 6-phase audit (discovery, validation, API compliance, best practices, security). Helm chart review → helmchart. Starts by asking one question to confirm the right mode.
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 38
Use when something is broken or not reconciling on a live cluster.
- Very specific: line 80
Use before merging, before a release, or when onboarding an unfamiliar repo.
- Distinctive: line 104
Use when working on a HelmRelease chart — scaffold, lint, or security-audit the chart itself.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
You are a senior platform engineer specialising in Flux CD.
The input is: $ARGUMENTS
Step 1 — Identify the mode
Determine which workflow applies from the input. If it is ambiguous, ask exactly one question:
"Are you debugging a live cluster issue, auditing a GitOps repository, or reviewing a Helm chart?"
| If the input contains... | Use |
An error message, flux get output, pod logs, or "not reconciling" | Debug → run /platform-skills:gitops debug |
| A repo path, "audit", "review", "before merge", "is this correct" | Audit → run /platform-skills:gitops audit |
A Helm chart path, Chart.yaml, values.yaml, "helm", "chart" | Helm → run /platform-skills:helmchart |
| A manifest to review (Kustomization, HelmRelease, FluxInstance YAML) | Review → run /platform-skills:preflight |
Debug mode — live cluster issue
Version check:
flux --versionbefore proceeding.
- Flux v2.3+: use
flux bootstrap(GitOps Toolkit) — this is the standard path.- Flux Operator (v2.7+): use a
FluxInstanceCR instead.flux bootstrapis not used in Operator mode.- If unsure:
kubectl get crd fluxinstances.fluxcd.io— if this CRD exists, you are running Flux Operator.
Use when something is broken or not reconciling on a live cluster. Invoke as /platform-skills:gitops debug.
If the input already contains error output (flux get, kubectl describe, pod logs): skip directly to the relevant workflow — do NOT start from installation check. Match the error to the layer first:
| Error pattern | Layer | Jump to |
rendered manifests contain a resource that already exists / invalid ownership metadata | chart rendering | HelmRelease trace (Workflow 3) |
Helm install failed / upgrade retries exhausted | chart rendering / reconciliation | HelmRelease trace (Workflow 3) |
FetchFailed / unauthorized | source | Source workflow (Workflow 2) |
kustomize build failed / BuildFailed | reconciliation | Kustomization trace (Workflow 4) |
| Controller pod not running | installation | Installation check (Workflow 1) |
Works through 5 structured workflows in order (when no evidence provided):
- Installation check — FluxInstance status, FluxReport, controller pods
- Source failures — GitRepository FetchFailed, OCIRepository auth, Cosign verify
- HelmRelease trace — spec/status → valuesFrom → chart source → inventory → pod logs
- Kustomization trace — spec/status → substituteFrom → source → managed resources
- ResourceSet trace — status → inputsFrom providers → generated objects
Produces a 5-section report: Summary → Resource Analysis → Dependency Chain → Root Cause → Recommendations.
# HelmRelease ownership conflict evidence
# Step 1: get the conflicting resource name from the error message (not the HelmRelease name)
flux logs --kind=HelmRelease --name=<helmrelease-name> --namespace=<ns>
# Step 2: check ownership annotations on the conflicting resource
kubectl get <kind> <resource-name-from-error> -o yaml | grep "meta.helm.sh"
# Step 3: find the owning release across ALL namespaces (owner may be in a different ns)
helm list -A
kubectl get events -n <ns>
# Quick health check to start (when no evidence provided)
flux get all -A
kubectl get fluxinstance flux -n flux-system -o yaml # if using Flux Operator
kubectl get fluxreport flux -n flux-system -o yamlAudit mode — GitOps repository health check
Use before merging, before a release, or when onboarding an unfamiliar repo. Invoke as /platform-skills:gitops audit.
Runs 6 phases using the bundled Flux audit scripts from examples/fluxcd/repo-audit. Set audit_dir to that directory's absolute path in the loaded installation. It is under the repository or Claude plugin root; portable skills carry it under their own directory. No script is downloaded during an audit.
audit_dir='<absolute path to bundled examples/fluxcd/repo-audit>'
SCRIPTS="$audit_dir/scripts"
# Phase 1 — inventory
bash "$SCRIPTS/discover.sh" -d .
# Phase 2 — validation (flux-schema + kustomize or kubectl)
bash "$SCRIPTS/validate.sh" -d .
# Phase 3 — deprecated API check (exits 1 in CI if found)
bash "$SCRIPTS/check-deprecated.sh" -d .Requires installed flux-schema >= 0.10.0, kustomize or kubectl, and flux >= 2.9.0. See the bundled audit README for provenance, tool setup and schema behavior. Phases 4–6 (best practices, security, report) are analysed from the repo content. Produces a Critical / Warning / Info report.
Helm mode — chart review
Use when working on a HelmRelease chart — scaffold, lint, or security-audit the chart itself.
helm lint --strict ./charts/my-app
helm template my-app ./charts/my-app --debug | kubeconform -strict -summaryQuick reference — Flux CRD apiVersions
| Kind | apiVersion |
| FluxInstance, ResourceSet, ResourceSetInputProvider | fluxcd.controlplane.io/v1 |
| GitRepository, OCIRepository, HelmRepository, HelmChart, Bucket | source.toolkit.fluxcd.io/v1 |
| Kustomization | kustomize.toolkit.fluxcd.io/v1 |
| HelmRelease | helm.toolkit.fluxcd.io/v2 |
| Provider, Alert | notification.toolkit.fluxcd.io/v1beta3 |
| Receiver | notification.toolkit.fluxcd.io/v1 |
Reference files
| Topic | Reference |
| Overview, patterns, common mistakes | references/fluxcd.md |
| Source CRDs | references/fluxcd-sources.md |
| ResourceSet + InputProvider | references/fluxcd-resourcesets.md |
| Flux Operator (FluxInstance, FluxReport) | references/fluxcd-operator.md |
| Kustomization advanced | references/fluxcd-kustomization.md |
| HelmRelease deep dive | references/fluxcd-helmrelease.md |
| Notifications (Provider, Alert, Receiver) | references/fluxcd-notifications.md |
| Terraform bootstrap | references/fluxcd-terraform.md |
| MCP server (AI debug) | references/fluxcd-mcp.md |
| API migration (v2.7/v2.8) | references/fluxcd-migration.md |
| Security audit checklist | references/fluxcd-security.md |
| Working examples | examples/fluxcd/ |
In this repository59 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/keda.mdcCursor rule
- .cursor/rules/kubernetes.mdcCursor rule
- .cursor/rules/platform-skills.mdcCursor rule
- .cursor/rules/terraform.mdcCursor rule
- code-reviewSkill
- platform-skillsSkill
- ai-governanceSkill
- awesome-docsSkill
- aws-profileSkill
- awsSkill
- azureSkill
- backup-drSkill
- chaosSkill
- checkovSkill
- cluster-upgradeSkill
- commitSkill
- complianceSkill
- composite-actionsSkill
- datadogSkill
- debugSkill
- documentSkill
- doraSkill
- dynatraceSkill
- finopsSkill
- gateway-apiSkill
- github-actionsSkill
- gitopsSkill
- helmchartSkill
- karpenterSkill
- kedaSkill
- kingfisherSkill
- kubernetesSkill
- kubescape-operatorSkill
- kubescapeSkill
- kyvernoSkill
- linkerdSkill
- linuxSkill
- mcpSkill
- observabilitySkill
- opaSkill
- openshiftSkill
- platform-skillsSkill
- preflightSkill
- productSkill
- progressive-deliverySkill
- pr-reviewSkill
- renovateSkill
- runtime-securitySkill
- secretsSkill
- self-improveSkill
- setup-agentsSkill
- supply-chainSkill
- terraformSkill
- token-optimizerSkill
- triageSkill
- trivySkill
- zizmorSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

