kindctl
Skill52 starsChanged 7 days agoMITView on GitHub
Use repo/worktree-scoped kind clusters without touching the global kubeconfig. Trigger when users mention kind cluster, local k8s, local Kubernetes, spin up a cluster, Kubernetes-in-Docker, multi-repo kind, or multi-worktree cluster work.
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .agents/skills/autoreview/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-sandbox-deploySkill
- agent-substrate-deploySkill
- autoreviewSkill
- delete-commentSkill
- frontend-designSkill
- orka-kind-deploySkill
- pr-closeoutSkill
- vekil-reverse-proxy-deploySkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 0 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use this skill whenever work involves a local kind cluster, local k8s/Kubernetes, Kubernetes-in-Docker, or repo/worktree-specific test …
- Very specific: line 19
Never run bare kubectl or helm against a kindctl-managed cluster.
- Very specific: line 70
If kindctl is not on PATH, use the repo-relative path:
- Very specific: line 93
Use the same --tag on every command that targets that cluster.
- Very specific: line 125
Only one running cluster can bind a given host port.
- Very specific: line 137
If .kind/setup.sh fails, the cluster is preserved and registry status is failed.
- Very specific: line 175
No skill instruction should read, write, merge, or switch ~/.kube/config.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
kindctl
Use this skill whenever work involves a local kind cluster, local k8s/Kubernetes, Kubernetes-in-Docker, or repo/worktree-specific test clusters.
Mental model
kindclusters are global to the Docker daemon.~/.kube/configis a shared mutable global and must not be used for kindctl-managed clusters.kindctlderives a cluster name from the current repo/worktree path and stores its kubeconfig in~/.kube/kind/<name>.kubeconfig.- The current directory is enough: random repos and git worktrees do not need to know anything special.
Golden rule for agents
Never run bare kubectl or helm against a kindctl-managed cluster.
Prefer:
.agents/skills/kindctl/bin/kindctl kubectl get nodes
.agents/skills/kindctl/bin/kindctl exec -- helm listDo not run:
kubectl get pods
kubectl config use-context kind-something
kind create clusterInstallation
This skill is vendored into the repo at .agents/skills/kindctl/. If another
harness needs to expose it, create an external skills/kindctl symlink that points
back to this canonical directory; this repo does not keep .codex or .copilot
mirrors. Invoke the wrapper by its repo-relative path:
.agents/skills/kindctl/bin/kindctl <command>The skill itself should invoke bin/kindctl by absolute path or by resolving the skill directory. Do not rely on shell aliases.
Commands
kindctl create [--config F] [--tag T] [--k8s-version vX.Y.Z]
kindctl delete [--tag T]
kindctl kubectl [--tag T] <args...>
kindctl exec [--tag T] -- <cmd...>
kindctl path [--tag T]
kindctl ctx [--tag T]
kindctl env [--tag T]
kindctl load [--tag T] <image>
kindctl hibernate [--tag T]
kindctl resume [--tag T]
kindctl list [--workspace|--all]
kindctl doctor
kindctl prune --workspace [--yes]
kindctl prune --dead [--yes]
kindctl nuke [--yes]If kindctl is not on PATH, use the repo-relative path:
.agents/skills/kindctl/bin/kindctl <command>Recipes
Create and use a repo cluster
kindctl create
kindctl kubectl get nodes
kindctl kubectl get pods -AUse a second cluster for the same repo
kindctl create --tag e2e
kindctl kubectl --tag e2e get nodesUse the same --tag on every command that targets that cluster.
Load a local image
docker build -t myapp:dev .
kindctl load myapp:dev
kindctl kubectl set image deployment/myapp myapp=myapp:devRun helm, k9s, or other tools safely
kindctl exec -- helm list -A
kindctl exec -- k9sIngress
For ingress, commit .kind/cluster.yaml in the target repo with explicit extraPortMappings. Example:
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
extraPortMappings:
- containerPort: 80
hostPort: 8080
protocol: TCPOnly one running cluster can bind a given host port. Use kindctl hibernate on other clusters or choose distinct host ports.
Hibernate/resume after a work session or reboot
kindctl hibernate
kindctl resume
kindctl doctorRecover from failed setup
If .kind/setup.sh fails, the cluster is preserved and registry status is failed.
kindctl doctor
kindctl exec -- kubectl get pods -A
kindctl delete # if you want to recreate cleanly
kindctl createDelete safely
kindctl deleteBulk cleanup is registry-scoped and asks for confirmation unless --yes is passed:
kindctl prune --workspace
kindctl prune --dead
kindctl nukeRepo-specific .kind/
Optional repo files:
.kind/cluster.yaml # native kind config: nodes, Kubernetes version, ports, mounts
.kind/setup.sh # post-create setup: CRDs, ingress, namespaces, local imagesInside .kind/setup.sh, bare kubectl is okay because kindctl sets KUBECONFIG for that one hook process.
Outside that hook, use kindctl kubectl or kindctl exec.
Invariant
No skill instruction should read, write, merge, or switch ~/.kube/config. Every operation must use kindctl or a scoped kubeconfig path produced by kindctl.
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.

