Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计提醒

copilotkit-debugcopilotkit 调试

Agent Skill

copilotkit-debug 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,575

周安装

152

GitHub Stars

22

下载量

1,252
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:copilotkit-debug(copilotkit 调试)
来源仓库:https://github.com/copilotkit/skills
仓库路径:skills/copilotkit-debug
安装命令:
npx skills add https://github.com/copilotkit/skills --skill copilotkit-debug
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/copilotkit/skills --skill copilotkit-debug

简介

用于诊断 CopilotKit 运行时连接与通信问题,适合在 Codex、Claude、Cursor、Gemini CLI 中排查连接失败、事件流中断或版本不匹配等场景。

  • 可检查包版本、网络请求、CORS 配置及 AG-UI 协议状态,提供结构化诊断步骤和修复建议。
  • 调用时需明确错误现象,按流程收集信息并验证环境;涉及命令执行或文件读写时应确认权限与安全边界。
  • 安装前请核实来源仓库与缓存策略,避免重复克隆;建议结合 .mcp.json 配置使用,注意不同宿主工具的自动集成差异。
  • copilotkit-debug 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

CopilotKit Debugging Skill

When to Use

Invoke this skill when:

  • The CopilotKit runtime is unreachable or returning errors
  • Agents fail to connect, respond, or stream events
  • Frontend tools are not executing or returning results
  • Transcription (voice) is failing
  • Version mismatch errors appear between packages
  • AG-UI SSE events are malformed or missing
  • CORS errors block browser requests to the runtime

Diagnostic Workflow

Step 1: Gather Information

Before proposing any fix, collect:

  1. Package versions -- Run npm ls @copilotkit/runtime @copilotkit/react @copilotkit/core @ag-ui/client (or the v1 equivalents). Version mismatches between runtime and react packages are a common root cause.
  2. Runtime mode -- Is this SSE mode (CopilotSseRuntime) or Intelligence mode (CopilotIntelligenceRuntime)? Check the runtime constructor.
  3. Transport configuration -- What is runtimeUrl set to in CopilotKitProvider? Does it match the basePath in createCopilotEndpoint?
  4. Agent type -- Is the agent a BuiltInAgent, LangGraphAgent, A2AAgent, or custom AbstractAgent?
  5. Error messages -- Collect the exact error from browser console and server logs. CopilotKit uses structured error codes (see references/error-patterns.md).
  6. Browser network tab -- Check the /info request (runtime discovery), the /agent/:id/run SSE stream, and any CORS preflight failures.

Step 2: Check Logs and Error Codes

CopilotKit has three error code systems:

  • V1 CopilotKitErrorCode -- Legacy error codes from the v1 runtime layer (@copilotkit/runtime). Codes like NETWORK_ERROR, AGENT_NOT_FOUND, API_NOT_FOUND. Still surfaced in some contexts since @copilotkit/* packages wrap v2 internally.
  • V2 CopilotKitCoreErrorCode -- Used by @copilotkit/core. Codes like runtime_info_fetch_failed, agent_connect_failed, agent_run_failed.
  • TranscriptionErrorCode -- Used by both v1 and v2 for voice transcription. Codes like service_not_configured, rate_limited, auth_failed.

Match the error code to the catalog in references/error-patterns.md for root cause and resolution.

Step 3: Trace AG-UI Events

For streaming/agent issues, trace the AG-UI event flow:

  1. RunStartedEvent -- Confirms the agent run was initiated
  2. TextMessageStartEvent / TextMessageChunkEvent / TextMessageEndEvent -- Text streaming
  3. ToolCallStartEvent / ToolCallArgsEvent / ToolCallEndEvent -- Tool invocations
  4. ToolCallResultEvent -- Tool results flowing back
  5. StateSnapshotEvent / StateDeltaEvent -- Agent state synchronization
  6. ReasoningStartEvent / ReasoningMessageContentEvent / ReasoningMessageEndEvent -- Reasoning tokens (can cause stalls, see issue #3323)
  7. RunFinishedEvent -- Successful completion
  8. RunErrorEvent -- Agent-level error

Enable the CopilotKit Web Inspector (@copilotkit/web-inspector) to see events in real time. Or check the SSE stream directly in the browser Network tab -- each event is a data: line in the text/event-stream response.

Step 4: Identify Root Cause

Use the reference documents to match symptoms to known issues:

  • references/runtime-debugging.md -- Connectivity, CORS, transport, SSE streaming
  • references/agent-debugging.md -- Agent discovery, state sync, tool execution, AG-UI protocol
  • references/error-patterns.md -- Complete error code catalog with resolutions
  • references/quick-workflows.md -- Step-by-step diagnostic sequences for common scenarios

Step 5: Fix and Verify

  1. Apply the fix
  2. Verify the /info endpoint returns the expected agent list
  3. Confirm the SSE stream produces a complete event sequence (RunStarted through RunFinished)
  4. Check the browser console for any remaining structured errors

Using mcp-docs for Live Documentation Lookups

During debugging, use the copilotkit-docs MCP server to look up the latest CopilotKit documentation. This server provides two tools: search-docs (search documentation) and search-code (search source code examples).

MCP Setup

Claude Code: The MCP server is auto-configured by the plugin's .mcp.json -- no manual setup needed. The agent can call the search-docs and search-code tools from the copilotkit-docs server directly.

Codex: Add the following to your .codex/config.toml:

[mcp_servers.copilotkit-docs]
type = "http"
url = "https://mcp.copilotkit.ai/mcp"

Tool Usage

The search-docs and search-code tools are invoked as MCP tool calls (not CLI commands). Examples of what to search for during debugging:

search-docs("AGENT_NOT_FOUND")
search-docs("CopilotRuntime configuration")
search-docs("AG-UI protocol events")
search-docs("troubleshooting common issues")
search-docs("CORS configuration copilotkit")
search-code("CopilotRuntime error handling")

The official troubleshooting docs are at:

  • https://docs.copilotkit.ai/troubleshooting/common-issues
  • https://docs.copilotkit.ai/coagents/troubleshooting/common-issues

Key File Locations in the CopilotKit Codebase

ComponentPath
V1 Error classes & codespackages/v1/shared/src/utils/errors.ts
V2 Core error codespackages/v2/core/src/core/core.ts (CopilotKitCoreErrorCode enum)
V2 Transcription errorspackages/v2/shared/src/transcription-errors.ts
Runtime SSE responsepackages/v2/runtime/src/handlers/shared/sse-response.ts
Runtime info endpointpackages/v2/runtime/src/handlers/get-runtime-info.ts
Runtime CORS configpackages/v2/runtime/src/endpoints/hono.ts
Intelligence platform clientpackages/v2/runtime/src/intelligence-platform/client.ts
Agent package (BuiltInAgent)packages/v2/agent/src/index.ts
Web Inspectorpackages/v2/web-inspector/src/index.ts

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.27%
按下载量换算454

Claude

28.8%
按下载量换算361

Cursor

18.57%
按下载量换算232

Gemini CLI

9.75%
按下载量换算122

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills