bianhaifeng789-hue/openclaw-config/backend-type-discriminated-union
Claude Code and agent skill by bianhaifeng789-hue/openclaw-config
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install bianhaifeng789-hue/openclaw-config/backend-type-discriminated-unionSKILL.md
The same SKILL.md was published earlier as bianhaifeng789-hue/openclaw-config/backend-type-discriminated-union.
Backend Type Discriminated Union Pattern
Source
Claude Code: utils/swarm/backends/types.ts
Pattern
BackendType + PaneBackendType discriminated union + isPaneBackend type guard.
Code Example
Key Concepts
- BackendType: 3 backend types (tmux, iterm2, in-process)
- PaneBackendType: Subset for pane-based only (tmux, iterm2)
- PaneBackend: Low-level pane operations interface
- TeammateExecutor: High-level teammate lifecycle interface
- Type Guard: isPaneBackend() for narrowing
Benefits
- Clear separation: PaneBackend (low-level) vs TeammateExecutor (high-level)
- Type-safe backend selection
- Subset type for pane-only contexts
When to Use
- Multi-backend teammate execution
- Pane-based vs in-process distinction
- Backend capability checks
Related Patterns
- Backend Detection Registry (backends/registry.ts)
- Teammate Spawn Config (backends/types.ts)
- Pane Backend Executor (PaneBackendExecutor.ts)
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 repositoryCheckingskills-experimental/backend-type-discriminated-union/SKILL.md
Popularity
- 7-day trend score
- 5
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/bianhaifeng789-hue/openclaw-config/backend-type-discriminated-union)