agentleFS
intilityintility/for-developers-plugin/skills/cluster-login/SKILL.md

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.

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
  1. Distinctive:

    If only one cluster exists, use it.

    line 20
  2. Distinctive:

    If the browser doesn't open, suggest:

    line 43
  3. Distinctive:

    After the user says they're done in the browser, confirm:

    line 53
  4. Very specific:

    If oc whoami returns their username and oc get nodes lists nodes (any status), they're in.

    line 60
  5. Distinctive:

    Do not go further down the troubleshooting tree than this.

    line 70

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 list

If 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 nodes

If 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 whoami says "Unauthorized": token didn't get saved — re-run login
  • oc get nodes says "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 nodes

Examples

See references/usage-examples.md for typical conversations (single cluster, multiple clusters, browser doesn't open, permissions missing).

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.