delegate-to-agent

Routes all AI work from UI and scripts through the agent chat bridge.

Updated May 13, 2026
One-click install
npx skills add https://github.com/fred07diamond/Call-Copilot --skill delegate-to-agent-fred07diamond
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: delegate-to-agent
Source: https://github.com/fred07diamond/Call-Copilot/tree/main/apps/design/.agents/skills/delegate-to-agent
Command: npx skills add https://github.com/fred07diamond/Call-Copilot --skill delegate-to-agent-fred07diamond

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @agent-native/core.

What problem does it solve? It prevents developers from adding inline LLM calls in client or server code, which would create a shadow AI that lacks the agent's project context, database access, and coordination abilities. ## Core Features & Use Cases - Chat Bridge Delegation: Send messages to the agent from the UI with sendToAgentChat or from Node scripts with agentChat.submit, with optional hidden context. - Submit vs Prefill Control: Choose between auto-submitting routine operations or prefilling the chat input for user review on high-stakes actions like deletions. - Prompt Capture Pattern: Use a Popover with a Textarea to capture the user's actual prompt before triggering generative actions like "New Design" or "Make Deck". - Use Case: When building a "Generate Form" button, capture the user's description in a popover, then auto-submit it to the agent instead of hardcoding a generic message. ## Quick Start Delegate AI work from a button by calling sendToAgentChat with the user's captured prompt and submit set to true.

Frequently Asked Questions about delegate-to-agent

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I call an LLM from my React UI in an agent-native app?▼

You never call an LLM directly from the UI. Use sendToAgentChat from @agent-native/core to delegate the request to the agent chat, optionally passing hidden context and a submit flag.

How do I trigger the agent from a Node script?▼

Use agentChat.submit from @agent-native/core with your instruction string, for example agentChat.submit("Process the uploaded images"). The script acts as a tool the agent orchestrates, not a replacement for it.

When should I use submit true versus false in sendToAgentChat?▼

Use submit true for routine operations the user already approved, and submit false to prefill the chat input for user review on high-stakes actions like deleting data or API calls with side effects. Omitting it uses the project default.

Can I use the Anthropic or OpenAI SDK directly in server code?▼

No. Direct imports of @anthropic-ai/sdk, openai, or AI SDK functions like generateText are prohibited because they bypass the agent's context and coordination. Scripts may call external non-LLM APIs like image generation.

Why does my New Design button produce generic results?▼

Auto-submitting a hardcoded message like "make a design" ignores what the user actually wants. Capture the user's prompt in a Popover with a Textarea first, then submit that text to the agent.