verify

GitHub

用于验证 copilot-kit-ag-ui demo 端到端变更的技能。通过构建并驱动真实服务器,在无凭据时使用模拟 ID 检查路由与适配器连通性,在有凭据时进行实时代理交互测试,确保前端构建、后端路由及 AI SDK 集成正常工作。

managed-agents/copilot-kit-ag-ui/.claude/skills/verify/SKILL.md anthropics/claude-quickstarts

Trigger Scenarios

需要验证 demo 应用端到端功能时 检查 AI 代理集成和路由配置是否正确时

Install

npx skills add anthropics/claude-quickstarts --skill verify -g -y
More Options

Non-standard path

npx skills add https://github.com/anthropics/claude-quickstarts/tree/main/managed-agents/copilot-kit-ag-ui/.claude/skills/verify -g -y

Use without installing

npx skills use anthropics/claude-quickstarts@verify

指定 Agent (Claude Code)

npx skills add anthropics/claude-quickstarts --skill verify -a claude-code -g -y

安装 repo 全部 skill

npx skills add anthropics/claude-quickstarts --all -g -y

预览 repo 内 skill

npx skills add anthropics/claude-quickstarts --list

SKILL.md

Frontmatter
{
    "name": "verify",
    "description": "Build and drive the copilot-kit-ag-ui demo to verify changes end-to-end."
}

Verifying changes to this demo

Build and drive the real server. npm run typecheck is CI's job, not evidence.

Without Anthropic credentials or provisioned agents

The server boots and serves everything except a live agent turn with stub IDs:

npm install && npm run build
ANTHROPIC_API_KEY=sk-ant-test ANTHROPIC_ENVIRONMENT_ID=env_x \
  ANTHROPIC_AGENT_ID=agent_x ANTHROPIC_AGENT_VERSION=1 PORT=8799 npm start

Probes that exercise the wiring:

  • GET :8799/ returns the built web/dist/index.html (there is no SPA catch-all, so unknown paths 404).
  • GET :8799/api/copilotkit/info lists the registered agents, confirming agent id and class registration without an API call.
  • POST :8799/api/copilotkit/agent/financial-assistant/run with an AG-UI body ({"threadId":"t1","runId":"r1","messages":[{"id":"m1","role":"user","content":"hi"}],"state":{},"tools":[],"context":[],"forwardedProps":{}}) reaches the AG-UI adapter and fails with a 401 from Anthropic. That 401 in the SSE RUN_ERROR proves the full route-to-SDK path.
  • CORS: send OPTIONS with an Origin header. With ALLOWED_ORIGINS set, allowed origins get Access-Control-Allow-Origin echoed and others get none.
  • VITE_COPILOT_RUNTIME_URL=... npm run build then grep web/dist/assets for the URL to confirm build-time baking.

With real credentials

ant apply agents environments once, npm run dev, open http://localhost:5173, send a prompt that triggers a visual tool ("show me a growth projection for $500/month at 7%") and confirm the chart renders inline.

Gotchas

  • Boot requires agent identity: either claude-lock.json (from ant apply agents environments) or the three ANTHROPIC_* ID env vars. Missing both is a deliberate boot failure.
  • Static serving only activates when web/dist exists, so run npm run build before npm start probes.

Version History

  • 4a4224b Current 2026-12-01 19:57

Same Skill Collection

computer-use-best-practices/.claude/skills/first-run/SKILL.md
computer-use-demo/.claude/skills/verify/SKILL.md

Metadata

Files
0
Version
4a4224b
Hash
2edae0f2
Indexed
2026-12-01 19:57

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-12-03 02:57
浙ICP备14020137号-1