crestapps/crestapps.agentskills/crestapps-core-external-relays

Claude Code and agent skill by crestapps/crestapps.agentskills

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Skill for implementing and managing persistent external chat relays in CrestApps.Core 2.0 using IExternalChatRelay, IExternalChatRelayManager and its ExternalChatRelayConnectionManager singleton, ExternalChatRelayContext, IExternalChatRelayEventHandler, IExternalChatRelayNotificationHandler, IExternalChatRelayNotificationBuilder and ExternalChatRelayEventTypes. Use it when bridging AI chat sessions or chat interactions to a live-agent or other external chat platform through a deferred response…

Install

npx vskill@latest install crestapps/crestapps.agentskills/crestapps-core-external-relays

SKILL.md

The same SKILL.md was published earlier as crestapps/crestapps.agentskills/crestapps-core-external-relays.

CrestApps.Core External Chat Relays

Scope

IExternalChatRelay is the contract for a persistent, bidirectional connection to a live-agent or other external chat platform. An implementation supplies connection, prompt, signal, disconnect, and async-disposal behavior; the transport is application-defined.

The core packages ship no IExternalChatRelay implementation, only the manager: ExternalChatRelayConnectionManager is registered by AddCoreAIOrchestration() as the singleton IExternalChatRelayManager and tracks relay instances by session ID. Its members are GetOrCreateAsync(sessionId, context, factory, cancellationToken), Get(sessionId) and CloseAsync(sessionId, cancellationToken).

Connect and Close a Relay

Create the relay in the factory passed to the manager. The manager connects it, disposes a failed connection attempt, and disposes an extra instance if a concurrent caller won the same session ID.

csharp
var relay = await relayManager.GetOrCreateAsync(
sessionId,
new ExternalChatRelayContext
{
SessionId = sessionId,
ChatType = ChatContextType.AIChatSession,
},
() => new MyExternalChatRelay(),
cancellationToken);
await relay.SendPromptAsync(prompt, cancellationToken);
await relayManager.CloseAsync(sessionId, cancellationToken);

MyExternalChatRelay must implement IExternalChatRelay. The manager does not construct relays or choose a platform.

Event and Notification Integration

The current packages ship no default IExternalChatRelayEventHandler, IExternalChatRelayNotificationHandler, or IExternalChatRelayNotificationBuilder implementation. Consequently, registering a relay alone does not route incoming external events into chat messages or notifications.

An integration that needs event routing must implement and register its own IExternalChatRelayEventHandler (HandleEventAsync) and IExternalChatRelayNotificationHandler (HandleAsync). IExternalChatRelayNotificationBuilder exposes NotificationType and Build(relayEvent, notification, result, T); nothing in the core packages resolves builders, so your notification handler decides how to pick one, for example by matching NotificationType to ExternalChatRelayEvent.EventType. ExternalChatRelayEventTypes supplies constants such as agent-typing, agent-stopped-typing, agent-connected, agent-disconnected, agent-reconnecting and connection-lost; integrations may add custom strings. ExternalChatRelayEvent carries EventType, Content, AgentName and Metadata.

Keep platform credentials and reconnection policy inside the relay implementation. Call CloseAsync when the corresponding session ends so the manager disconnects and disposes the relay.

Related skills

  • Use crestapps-core-response-handlers for the IChatResponseHandler contract that a deferred relay-backed handler typically pairs with.
  • Use orchardcore-ai-response-handlers for the Orchard Core module wrapper that consumes this relay contract in chat sessions and chat interactions.

Upgrading from 1.x

  • The 2.0 release notes list no relay changes. ExternalChatRelayContext still carries only SessionId and ChatType; keep platform credentials in the relay implementation.
  • Older samples that read an API key from the relay context or returned Handled/Transferred results from the response handler do not match the current contracts.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
13
Repository forks
4
7-day trend score
5

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/crestapps/crestapps.agentskills/crestapps-core-external-relays/badge)](https://verified-skill.com/skills/crestapps/crestapps.agentskills/crestapps-core-external-relays)

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