본문으로 건너뛰기
cccskills
무료GitHub에 공개

client-compatibility

Adapt Squad agent coordination to the available Copilot interface. Detect supported tools, choose how to launch helper agents and collect results, and use file-based state for workflows that must work across interfaces.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

원문원문 설명 보기

Platform detection and adaptive spawning for CLI vs VS Code vs other surfaces

설치 방법 보기

이럴 때 유용합니다

  • Adapting agent coordination between CLI and VS Code
  • Launching multiple helper agents in VS Code
  • Managing shared state without the CLI-only SQL tool
  • Continuing work when helper agent tools are unavailable

포함된 파일(1)

  • SKILL.md5.3 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

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:

  1. CLI mode — task tool is available → full spawning control. Use task with agent_type, mode, model, description, prompt parameters. Collect results via read_agent.

  2. VS Code mode — runSubagent or agent tool is available → conditional behavior. Use runSubagent with the task prompt. Drop agent_type, mode, and model parameters. Multiple subagents in one turn run concurrently (equivalent to background mode). Results return automatically — no read_agent needed.

  3. Fallback mode — neither task nor runSubagent/agent available → 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 runSubagent instead of task. 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_agent polling.
  • 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

FeatureCLIVS CodeDegradation
Parallel fan-outmode: "background" + read_agentMultiple subagents in one turnNone — equivalent concurrency
Model selectionPer-spawn model param (4-layer hierarchy)Session model only (Phase 1)Accept session model, log intent
Scribe fire-and-forgetBackground, never readSync, must waitBatch with last parallel group
Launch table UXShow table → results laterSkip table → results with responseUX only — results are correct
SQL toolAvailableNot availableAvoid SQL in cross-platform code paths
Response order bugCritical workaroundPossibly 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

// Coordinator detects task tool available → CLI mode
task({ agent_type: "general-purpose", mode: "background", model: "claude-sonnet-4.5", ... })
task({ agent_type: "general-purpose", mode: "background", model: "claude-haiku-4.5", ... })
// Later: read_agent for both

Example 2: VS Code parallel spawn

// Coordinator detects runSubagent available → VS Code mode
runSubagent({ prompt: "...Fenster charter + task..." })
runSubagent({ prompt: "...Hockney charter + task..." })
runSubagent({ prompt: "...Scribe charter + task..." }) // Last in group
// Results return automatically, no read_agent

Example 3: Fallback mode

// Neither task nor runSubagent available → work inline
// Coordinator executes the task directly without spawning

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 task when only runSubagent is available
  • ❌ Dropping prompt structure (charter/identity/task) on non-CLI platforms

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Coordinate work across AI agents with shared rules for locating team files, recording decisions and their reasons, and requesting help. It also defines who owns revisions after a reviewer rejects an artifact.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Locate team files across separate working directories
  • Record decisions that affect other agents
  • Request input from another specialist
github/gh-aw5.4천2026년 10월 19일 업데이트

Set shared development rules for an agent team: keep specific agent names out of product code, tests, and CI configuration, verify affected tests before finishing, and record lessons learned from mistakes.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Share development rules across multiple agents
  • Keep team-specific agent names out of code and tests
  • Check affected tests before declaring work complete
github/gh-aw5.4천2026년 10월 19일 업데이트

Routes requests to design, create, update, debug, or upgrade GitHub Agentic Workflows to the appropriate instructions. It helps the agent select a workflow-specific procedure and apply any additional rules defined for the repository.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Designing a new workflow through questions
  • Investigating failed runs and recurring errors
  • Upgrading workflows and addressing deprecations
github/gh-aw5.4천2026년 10월 19일 업데이트

Prepare architecture proposals before implementation so the team can agree on a direction. Organize evidence, technical choices, effects on existing work, risks, and the first release’s scope into a document with clear recommendations and decision owners.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Proposing a major architecture change
  • Replanning milestones after a foundation change
  • Comparing technical options before seeking approval
github/gh-aw5.4천2026년 10월 19일 업데이트

Update the gh-aw-firewall version used by gh-aw, rebuild generated files, and review release notes and configuration schemas, which define valid settings. It guides related code and test updates while identifying follow-up work that remains.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Updating the firewall version used by gh-aw
  • Reviewing release notes for integration changes
  • Checking configuration schema differences
github/gh-aw5.4천2026년 10월 19일 업데이트

Review git and gh operations in gh-aw workflows to check credential availability for each repository. Identify missing token handoffs, risky expansions of limited checkouts, and error handling needed where credentials are intentionally unavailable.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Reviewing git operations after repository checkout
  • Checking tokens for private cross-repository access
  • Reviewing sparse and shallow checkout changes
github/gh-aw5.4천2026년 10월 19일 업데이트

github의 스킬 모두 보기

이 스킬의 문제 신고