opensearch-project/agent-health/add-connector

Claude Code and agent skill by opensearch-project/agent-health

Trust tier 3
  • community
Source check pending

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-connector

SKILL.md

Connector System (services/connectors/)

Pluggable abstraction for agent communication protocols.

Key Files
  • types.ts: AgentConnector, ConnectorRequest, ConnectorResponse interfaces
  • registry.ts: Singleton connectorRegistry — get(), getForAgent()
  • base/BaseConnector.ts: Abstract base with auth header building
  • index.ts: Browser-safe exports (no Node.js deps)
  • server.ts: All connectors including Node.js-only (subprocess, claude-code)
Built-in Connectors
ConnectorProtocolUse Case
agui-streamingAG-UI SSEML-Commons agents (default)
restHTTP POSTNon-streaming REST APIs
openai-compatibleOpenAI Chat CompletionsLiteLLM, Ollama, vLLM
langgraphLangGraph REST /invokeNon-AG-UI LangGraph instances
strandsBedrock Agent RuntimeAmazon Strands agents (server-only)
subprocessCLI stdin/stdoutGeneric command-line tools
claude-codeClaude CLIClaude Code agent (extends subprocess)
kiroKiro CLIKiro coding agent (extends subprocess; parses [tool] stderr markers)
piPi CLIPi coding agent (extends subprocess)
mockIn-memoryDemo and testing
Usage
typescript
import { connectorRegistry } from '@/services/connectors';
const connector = connectorRegistry.getForAgent(agentConfig);
const response = await connector.execute(endpoint, request, auth, onProgress);
Creating a Custom Connector
typescript
import { BaseConnector } from '@/services/connectors';
class CustomConnector extends BaseConnector {
readonly type = 'custom' as const;
readonly name = 'My Custom Agent';
readonly supportsStreaming = true;
async execute(endpoint, request, auth, onProgress) {
// Your protocol implementation
}
}
connectorRegistry.register(new CustomConnector());
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 → inject TRACEPARENT env into subprocess agents (buildTraceparentEnv()).
  • propagateHeader: true → inject a traceparent HTTP 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 in AGENTS.md.
  • Subprocess connectors (SubprocessConnector subclasses) 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/opensearch-project/agent-health/add-connector/badge)](https://verified-skill.com/skills/opensearch-project/agent-health/add-connector)

Something wrong with this skill or its page? Tell us.