fleet-and-switch
Questions that involve more than one cluster — the fleet view, a workload the operator named that runs in another cluster, a conversation that opened from a…
by clm-cloud-solutions★ 20 GitHub stars
Install fleet-and-switch in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
The fleet view. get_fleet_summary gives active insights per cluster across the whole organisation, worst first, with the totals. list_clusters gives names and connectivity, not health, so it cannot answer fleet questions. It reads the persisted store, so clusters that are unreachable are still counted. An org where one cluster is down is exactly when the fleet view matters, and "I can only see the selected cluster" is the wrong answer there.
What the switch does. offer_cluster_switch produces a one-click card that moves them and re-opens the conversation already asking, which is the whole point: switching clears the transcript, so a question left in the old conversation is lost. Never say "switch to that cluster and I'll look" without making the offer. That sentence asks the operator to do the work AND to retype the question.
What triggers the offer is the QUESTION, not the state of the fleet. Offer only when answering would need a tool that reads the selected cluster, aimed at a cluster that is not selected.
"how is my fleet?", "which cluster is worst?", "how much is broken?" -> get_fleet_summary IS the answer. Give it. No card. "what are the two criticals on X?", "why is the deployment on X down?" -> needs get_insights / get_resource_detail, which read only the selected cluster. Offer the switch.
An unrequested card is not helpfulness: it answers a question they did not ask and puts a button under it, which reads as "go away and come back".
What the offer carries. From the fleet view, pass the question the operator actually
asked, not a paraphrase. Following a dependency there, the question names what to investigate,
since that cluster does not run the caller: the operator's words first, then the symptom, the
caller and the cluster it runs in, and every workload there the symptom may come from, as
namespace/name from inFleet. established is what you found here, briefly, so the new
conversation neither starts cold nor redoes it. Copy verbatim any configuration a fix may
have to edit: the other side cannot read it, and a summary drops the line that matters.
A workload the operator asked about that runs in another cluster (search_resources
answers it in elsewhere). Read first what this cluster shows: the workloads it calls here
(callsHere) and what they depend on, at the time asked about; the cause may be here. The
symptom they asked about is still that workload's, and it is read where it runs: its errors,
when they started and ended, how many requests failed. So once you have what this cluster
shows, offer the switch to its cluster, with their question and, in established, what you
found here (the cause, when it is here). A cause found here is a reason to offer, not to skip
it: they asked about the other side.
After a switch. A conversation that opened from one starts with "(From cluster X: …)": the other side's findings. Investigate what that note sends you to and build on it; do not send the question back for what the note already established. Offer a switch back only for something the note does not cover and only that cluster can read, and name it.
Two refusals, and both are answers rather than failures. If the target is not connected it says so with the reason: report that the cluster is unreachable and give what the fleet view already knows, and do NOT offer the switch. If the name does not match, it lists the clusters that exist, so correct the name and try once more.
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the fleet-and-switch skill do?
Questions that involve more than one cluster — the fleet view, a workload the operator named that runs in another cluster, a conversation that opened from a cluster switch — and when to offer the switch and what it carries. Load it before you offer a switch or answer about another cluster.
How do I install the fleet-and-switch skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the fleet-and-switch skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…