cluster-login
Skill3 starsChanged 6 months agoMITView on GitHub
Logs the user into their Intility Developer Platform cluster so they can run kubectl/oc commands against it. Use when the user asks to "log in", "log into the cluster", "connect to my cluster", "oc login", or when another skill needs cluster access and the user is not authenticated.
In this repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- create-clusterSkill
- deploy-appSkill
- expose-appSkill
- getting-startedSkill
- otel-operatorSkill
- prepare-appSkill
- statusSkill
- update-imageSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
If only one cluster exists, use it.
- Distinctive: line 43
If the browser doesn't open, suggest:
- Distinctive: line 53
After the user says they're done in the browser, confirm:
- Very specific: line 60
If oc whoami returns their username and oc get nodes lists nodes (any status), they're in.
- Distinctive: line 70
Do not go further down the troubleshooting tree than this.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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
Cluster login
Goal
Get oc whoami to succeed against the user's cluster. Browser-based OAuth — they finish in the browser, you confirm in the terminal.
Step 1 — Pick the cluster
If only one cluster exists, use it.
indev cluster listIf multiple, ask:
Q: "Which cluster do you want to log in to?"
Options: [one per cluster name found]Step 2 — Run the login
indev cluster login <cluster-name>This opens a browser. Tell the user one sentence:
A browser will open. Sign in with your Intility account, then come back here.
If the browser doesn't open, suggest:
indev cluster login <cluster-name> --no-browser…which prints a URL they can paste manually.
Step 3 — Verify
After the user says they're done in the browser, confirm:
oc whoami
oc get nodesIf oc whoami returns their username and oc get nodes lists nodes (any status), they're in. Tell them briefly:
Logged in as
<user>. Your cluster has<N>node(s) ready.
Step 4 — When it fails
- Browser auth times out: re-run
indev cluster login <cluster-name> oc whoamisays "Unauthorized": token didn't get saved — re-run loginoc get nodessays "Forbidden": the account was created but no roles attached yet. Tell the user to check with their cluster owner or reach out to the Developer Platform Admins via their collaboration channel (samhandlingskanal).
Do not go further down the troubleshooting tree than this. External users should escalate; they shouldn't be debugging RBAC.
Quick reference
indev cluster login <cluster-name>
oc whoami
oc get nodesExamples
See references/usage-examples.md for typical conversations (single cluster, multiple clusters, browser doesn't open, permissions missing).
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.

