Agent Skills
› anthropics/claude-quickstarts
› verify
verify
GitHub用于构建和驱动 copilot-kit-ag-ui 演示应用,通过模拟凭证或真实凭证实验端到端功能。涵盖服务器启动、API 探针测试、CORS 验证及 Agent 交互流程,确保代码变更的正确性。
Trigger Scenarios
验证前端与后端集成的端到端功能
测试 Agent API 调用路径
检查 CORS 配置生效情况
Install
npx skills add anthropics/claude-quickstarts --skill verify -g -y
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 builtweb/dist/index.html(there is no SPA catch-all, so unknown paths 404).GET :8799/api/copilotkit/infolists the registered agents, confirming agent id and class registration without an API call.POST :8799/api/copilotkit/agent/financial-assistant/runwith 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 SSERUN_ERRORproves the full route-to-SDK path.- CORS: send
OPTIONSwith anOriginheader. WithALLOWED_ORIGINSset, allowed origins getAccess-Control-Allow-Originechoed and others get none. VITE_COPILOT_RUNTIME_URL=... npm run buildthen grepweb/dist/assetsfor 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(fromant apply agents environments) or the threeANTHROPIC_*ID env vars. Missing both is a deliberate boot failure. - Static serving only activates when
web/distexists, so runnpm run buildbeforenpm startprobes.
Version History
- 4a4224b Current 2026-12-01 19:57


