flux-kustomize-layout
Skill2 starsChanged 3 months agoMITView on GitHub
Set up or review FluxCD and Kustomize repository layouts. Use when the user asks for a FluxCD repo layout, Kubernetes GitOps structure, kustomization scaffold, base/overlay setup, or dev/prod environment overlays.
In this repository24 other files it gives its agents.
- AGENTS.mdAGENTS.md
- act-within-scopeSkill
- asd-ste100Skill
- codingSkill
- context-managementSkill
- create-verification-skillSkill
- dockerfileSkill
- domain-modelingSkill
- encode-lessonsSkill
- experience-firstSkill
- eyes-onSkill
- flux-ghcr-image-automationSkill
- frontend-designSkill
- git-commit-workflowSkill
- git-worktreeSkill
- grill-with-docsSkill
- implement-ticketsSkill
- maintain-verification-skillSkill
- makefileSkill
- omarchy-developmentSkill
- releaseSkill
- skill-evaluationSkill
- technical-writingSkill
- test-auditSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 7 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Create predictable FluxCD-friendly Kustomize layouts with one shared base and explicit dev/prod overlays.
- Distinctive: line 19
Always scaffold this structure unless the user explicitly asks otherwise:
- Very specific: line 34
Put shared Kubernetes manifests in kustomization/base/.
- Distinctive: line 37
Put environment-specific patches, generators, images, labels, or namespace settings in the matching overlay folder.
- Distinctive: line 39
Keep base manifests environment-neutral unless the user asks for a different environment model.
- Very specific: line 43
Use lowercase file names with clear resource names, such as deployment.yaml, service.yaml, configmap.yaml, and ingress.yaml.
- Distinctive: line 45
Do not put application manifests directly in overlay folders when they should be shared through base.
- Very specific: line 72
Create missing directories and kustomization.yaml files in the required layout.
- Distinctive: line 75
Add all shared manifests to the base resources list.
- Very specific: line 76
Add ../../base to each overlay resources list.
- Distinctive: line 77
Put dev/prod differences in overlays as patches or Kustomize fields.
- Very specific: line 78
If Flux Kustomization custom resources are requested, keep them separate from Kustomize kustomization.yaml files and name the distinction …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Flux Kustomize Layout
Goal
Create predictable FluxCD-friendly Kustomize layouts with one shared base and explicit dev/prod overlays. Keep the repository structure boring, discoverable, and easy for CI or Flux reconciliation to validate.
Required Layout
Always scaffold this structure unless the user explicitly asks otherwise:
kustomization/
base/
kustomization.yaml
overlays/
dev/
kustomization.yaml
prod/
kustomization.yamlRules
- Put shared Kubernetes manifests in
kustomization/base/. - Include every base manifest from
kustomization/base/kustomization.yaml. - Make
devandprodoverlays include../../base. - Put environment-specific patches, generators, images, labels, or namespace settings in the matching overlay folder.
- Keep base manifests environment-neutral unless the user asks for a different environment model.
- Prefer
apiVersion: kustomize.config.k8s.io/v1beta1andkind: Kustomizationfor Kustomize files. - Use lowercase file names with clear resource names, such as
deployment.yaml,service.yaml,configmap.yaml, andingress.yaml. - Do not put application manifests directly in overlay folders when they should be shared through base.
Minimal Files
Base kustomization.yaml:
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- deployment.yaml
- service.yamlOverlay kustomization.yaml:
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../baseWorkflow
- Inspect existing Kubernetes, Kustomize, or Flux files before editing.
- Create missing directories and
kustomization.yamlfiles in the required layout. - Move shared manifests into
kustomization/base/when safe. - Add all shared manifests to the base resources list.
- Add
../../baseto each overlay resources list. - Put dev/prod differences in overlays as patches or Kustomize fields.
- If Flux
Kustomizationcustom resources are requested, keep them separate from Kustomizekustomization.yamlfiles and name the distinction clearly. - Validate with
kustomize buildorkubectl kustomizewhen available; otherwise report that validation was not run.
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.

