opensearch-project/agent-health/add-connector
Claude Code and agent skill by opensearch-project/agent-health
- community
Checking that the SKILL.md file is still in the repository.
Use when adding, modifying, or debugging agent connectors. Provides connector architecture, built-in types, and custom connector template.
Install
npx vskill@latest install opensearch-project/agent-health/add-connectorSKILL.md
Connector System (services/connectors/)
Pluggable abstraction for agent communication protocols.
Key Files
types.ts:AgentConnector,ConnectorRequest,ConnectorResponseinterfacesregistry.ts: SingletonconnectorRegistry—get(),getForAgent()base/BaseConnector.ts: Abstract base with auth header buildingindex.ts: Browser-safe exports (no Node.js deps)server.ts: All connectors including Node.js-only (subprocess, claude-code)
Built-in Connectors
| Connector | Protocol | Use Case | |
|---|---|---|---|
agui-streaming | AG-UI SSE | ML-Commons agents (default) | |
rest | HTTP POST | Non-streaming REST APIs | |
openai-compatible | OpenAI Chat Completions | LiteLLM, Ollama, vLLM | |
langgraph | LangGraph REST /invoke | Non-AG-UI LangGraph instances | |
strands | Bedrock Agent Runtime | Amazon Strands agents (server-only) | |
subprocess | CLI stdin/stdout | Generic command-line tools | |
claude-code | Claude CLI | Claude Code agent (extends subprocess) | |
kiro | Kiro CLI | Kiro coding agent (extends subprocess; parses [tool] stderr markers) | |
pi | Pi CLI | Pi coding agent (extends subprocess) | |
mock | In-memory | Demo and testing |
Usage
Creating a Custom Connector
Trace correlation & subprocess hooks
- Trace context propagation is handled by
BaseConnector— set
connectorConfig.traceContext so the agent's spans join the eval test_case trace tree:
propagateEnv: true→ injectTRACEPARENTenv into subprocess agents (buildTraceparentEnv()).propagateHeader: true→ inject atraceparentHTTP header into HTTP/SSE agents (injectTraceparentHeaders()).serviceName: '<otel-service-name>'→ service-name + time-window fallback. Defaults:claude-code-agent,kiro-agent,pi-agent,observio-sample-agent. See the "Trace correlation conventions" section inAGENTS.md.- Subprocess connectors (
SubprocessConnectorsubclasses) can override
parseStderrChunk(chunk, trajectory, onProgress, state) to turn stderr markers into trajectory steps (how kiro surfaces [tool] Running: / [tool] status: as action + tool_result steps). The base class persists stderr to rawOutput and honors per-request connectorConfig overrides (args / inputMode / timeout). Keep ALL streaming state (partial-line buffers, pending tool names, captured ids) on the per-invocation state object (extend SubprocessExecutionState via createExecutionState()), never on this — the registry shares one connector instance across concurrent runs.
Security
- Security scanPassed, 90 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 repositoryCheckingdocs/skills/add-connector/SKILL.md
Popularity
- Repository stars
- 35
- Repository forks
- 28
- 7-day trend score
- 0
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/opensearch-project/agent-health/add-connector)