mikeng-io/agent-skills/bridge-claude
- community
Checking that the SKILL.md file is still in the repository.
Reference adapter for Claude (Anthropic) dispatch. Read by any orchestrating skill via the Read tool. Defines how to invoke Claude sub-agents or the Anthropic API, with availability checks. Usable by any AI orchestrator — Claude Code, OpenCode, Codex, Gemini, or custom agents.
Install
npx vskill@latest install mikeng-io/agent-skills/bridge-claudeSKILL.md
Bridge: Claude (Anthropic) Adapter
This file is a REFERENCE DOCUMENT. Any orchestrating skill reads it via the Read tool and embeds its instructions directly into Task agent prompts. It is not invoked as a standalone skill — it is a reusable set of instructions for Anthropic model dispatch.
Input schema, agent prompt template, output schema, verdict logic, timeout formula, artifact format, and status semantics are defined in `bridge-commons/SKILL.md`. This file covers only Claude-specific connection detection and execution paths.
Bridge Identity
Step 1: Pre-Flight — Connection Detection
MUST read `bridge-commons/tool-discovery.md` first to understand the discovery protocol.
Step 1.0: Discover Execution Context
Before checking connection paths, discover what dispatch methods are available in the CURRENT execution context. This bridge runs inside multiple executors (Claude Code, OpenCode, Codex CLI, Gemini CLI, others).
Primary detection: Tool availability (most reliable)
Discovery logic:
If Claude native dispatch is available:
→ Use native-dispatch path (Steps 3A + 3B). This is the preferred path.
If NOT running inside Claude Code, proceed to Check A.
Check A: Claude Code CLI Installed?
If found → use CLI path (Step 3C). Any external executor (OpenCode, Codex, Gemini, custom agents) can invoke claude -p to get Claude's analysis without API keys.
If not found → proceed to Check B.
Check B: Anthropic API Accessible?
If ANTHROPIC_API_KEY is set → use API path (Step 3D).
Neither available → SKIPPED
Claude bridge is non-blocking when unavailable. SKIPPED is a valid outcome.
Step 2: Select Dispatch Mode
Claude bridge has two native-dispatch modes. Select based on task complexity and environment:
Agent Teams vs Task Tool:
| Task Tool | Agent Teams | ||
|---|---|---|---|
| Communication | Sub-agents report to parent only | Teammates message each other directly | |
| Coordination | Parent manages all | Shared task list, self-coordinating | |
| Best for | Quick focused tasks | Multi-domain debate, complex analysis | |
| Availability | Always | Requires env var AND top-level execution context |
Depth note: Claude sub-agents can spawn their own Task sub-agents (Task → Task works). Agent Teams (TeamCreate) in a nested sub-agent is not guaranteed — the experimental feature may not be available at depth 2+. If this bridge is already running inside a Task agent dispatched by deep-council or another orchestrator, attempt Agent Teams but be prepared to fall back.
Step 3A: Execute via Agent Teams (preferred for complex tasks)
When CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 is set and task complexity warrants it (3+ domains or thorough intensity), attempt Agent Teams. Teammates share a task list and can message each other directly — enabling real-time debate between domain experts.
Failure guard — attempt before committing
Before executing the full flow, attempt TeamCreate. If it fails for any reason (not available in this execution context, naming collision, experimental feature restricted at current depth) → immediately fall back to Step 3B. Do not retry Agent Teams.
Teammates communicate findings and challenges directly without routing through the parent. This replaces the bridge-commons consolidation pass — debate-protocol provides a richer version.
Teammate prompts
Domain expert:
Devil's Advocate:
Integration Checker:
Step 3B: Execute via Task Tool (fallback)
When Agent Teams is not available, spawn parallel Task sub-agents — one per domain + Devil's Advocate + Integration Checker. Sub-agents report results to parent only (no direct inter-agent communication). Build prompts using the Agent Prompt Template from bridge-commons.
All tasks run in parallel. After all complete, run the bridge-commons Post-Analysis Protocol. For subsequent rounds, spawn new Task sub-agents with the context packet embedded in their prompts — the parent agent holds all state between rounds and manages the orchestrator synthesis step.
Step 3C: Execute via CLI (external executors)
When any non-Claude-Code executor can call the claude CLI:
Key flags:
| Flag | Purpose | |
|---|---|---|
-p "prompt" | Prompt string — non-interactive mode | |
--output-format json | Structured JSON output for parsing | |
--output-format stream-json | Streaming JSON for real-time processing | |
CAPABILITY_FLAGS | Resolved runtime controls for inspect or modify | |
--continue | Resume the most recent session |
Resolve CAPABILITY_FLAGS from bridge-commons:
inspectprofile → constrain Claude to non-mutating tools onlymodifyprofile → enable non-interactive writes so implementation tasks do not block on approvals
The bridge policy is the shared capability_profile, not a fixed Claude flag set. Claude-specific permission flags are only the runtime-level translation of that profile.
Step 3D: Execute via Anthropic API (last resort)
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNeutral, 47 of 100Ineffective. 1 run. Evaluated 7 months ago.
Source
- SKILL.md in the repositoryCheckingskills/bridge-claude/SKILL.md
Popularity
- 7-day trend score
- 0
Refreshed 17 Mar 2026, 7 months ago.
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/mikeng-io/agent-skills/bridge-claude)