kubefleet-dev/kubefleet/client-compatibility
- community
Checking that the SKILL.md file is still in the repository.
Platform detection and adaptive spawning for CLI vs VS Code vs other surfaces
Install
npx vskill@latest install kubefleet-dev/kubefleet/client-compatibilitySKILL.md
The same SKILL.md was published earlier as dmauser/azure-virtualwan/client-compatibility.
Context
Squad runs on multiple Copilot surfaces (CLI, VS Code, JetBrains, GitHub.com). The coordinator must detect its platform and adapt spawning behavior accordingly. Different tools are available on different platforms, requiring conditional logic for agent spawning, SQL usage, and response timing.
Patterns
Platform Detection
Before spawning agents, determine the platform by checking available tools:
- CLI mode —
tasktool is available → full spawning control. Usetaskwithagent_type,mode,model,description,promptparameters. Collect results viaread_agent.
- VS Code mode —
runSubagentoragenttool is available → conditional behavior. UserunSubagentwith the task prompt. Dropagent_type,mode, andmodelparameters. Multiple subagents in one turn run concurrently (equivalent to background mode). Results return automatically — noread_agentneeded.
- Fallback mode — neither
tasknorrunSubagent/agentavailable → work inline. Do not apologize or explain the limitation. Execute the task directly.
If both task and runSubagent are available, prefer task (richer parameter surface).
VS Code Spawn Adaptations
When in VS Code mode, the coordinator changes behavior in these ways:
- Spawning tool: Use
runSubagentinstead oftask. The prompt is the only required parameter — pass the full agent prompt (charter, identity, task, hygiene, response order) exactly as you would on CLI. - Parallelism: Spawn ALL concurrent agents in a SINGLE turn. They run in parallel automatically. This replaces
mode: "background"+read_agentpolling. - Model selection: Accept the session model. Do NOT attempt per-spawn model selection or fallback chains — they only work on CLI. In Phase 1, all subagents use whatever model the user selected in VS Code's model picker.
- Scribe: Cannot fire-and-forget. Batch Scribe as the LAST subagent in any parallel group. Scribe is light work (file ops only), so the blocking is tolerable.
- Launch table: Skip it. Results arrive with the response, not separately. By the time the coordinator speaks, the work is already done.
- `read_agent`: Skip entirely. Results return automatically when subagents complete.
- `agent_type`: Drop it. All VS Code subagents have full tool access by default. Subagents inherit the parent's tools.
- `description`: Drop it. The agent name is already in the prompt.
- Prompt content: Keep ALL prompt structure — charter, identity, task, hygiene, response order blocks are surface-independent.
Feature Degradation Table
| Feature | CLI | VS Code | Degradation | |
|---|---|---|---|---|
| Parallel fan-out | mode: "background" + read_agent | Multiple subagents in one turn | None — equivalent concurrency | |
| Model selection | Per-spawn model param (4-layer hierarchy) | Session model only (Phase 1) | Accept session model, log intent | |
| Scribe fire-and-forget | Background, never read | Sync, must wait | Batch with last parallel group | |
| Launch table UX | Show table → results later | Skip table → results with response | UX only — results are correct | |
| SQL tool | Available | Not available | Avoid SQL in cross-platform code paths | |
| Response order bug | Critical workaround | Possibly necessary (unverified) | Keep the block — harmless if unnecessary |
SQL Tool Caveat
The sql tool is CLI-only. It does not exist on VS Code, JetBrains, or GitHub.com. Any coordinator logic or agent workflow that depends on SQL (todo tracking, batch processing, session state) will silently fail on non-CLI surfaces. Cross-platform code paths must not depend on SQL. Use filesystem-based state (.squad/ files) for anything that must work everywhere.
Examples
Example 1: CLI parallel spawn
Example 2: VS Code parallel spawn
Example 3: Fallback mode
Anti-Patterns
- ❌ Using SQL tool in cross-platform workflows (breaks on VS Code/JetBrains/GitHub.com)
- ❌ Attempting per-spawn model selection on VS Code (Phase 1 — only session model works)
- ❌ Fire-and-forget Scribe on VS Code (must batch as last subagent)
- ❌ Showing launch table on VS Code (results already inline)
- ❌ Apologizing or explaining platform limitations to the user
- ❌ Using
taskwhen onlyrunSubagentis available - ❌ Dropping prompt structure (charter/identity/task) on non-CLI platforms
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.squad/templates/skills/client-compatibility/SKILL.md
Popularity
- Repository stars
- 151
- Repository forks
- 27
- 7-day trend score
- 25
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kubefleet-dev/kubefleet/client-compatibility)