verify

bởi anthropic

Xây dựng và chạy bản demo copilot-kit-ag-ui để xác minh các thay đổi từ đầu đến cuối.

npx skills add https://github.com/anthropics/claude-quickstarts --skill verify

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

npm run setup 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 agent-ids.json (from npm run setup) 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.

Thêm skills từ anthropic

analyzing-financial-statements
anthropic
Kỹ năng này tính toán các tỷ số và chỉ số tài chính chính từ dữ liệu báo cáo tài chính để phân tích đầu tư.
applying-brand-guidelines
anthropic
Kỹ năng này áp dụng nhận diện thương hiệu và phong cách doanh nghiệp nhất quán cho tất cả tài liệu được tạo ra, bao gồm màu sắc, phông chữ, bố cục và thông điệp.
creating-financial-models
anthropic
Kỹ năng này cung cấp bộ công cụ lập mô hình tài chính nâng cao với phân tích DCF, kiểm tra độ nhạy, mô phỏng Monte Carlo và lập kế hoạch kịch bản cho đầu tư…
board-minutes
anthropic
Soạn thảo biên bản cuộc họp hội đồng hoặc ủy ban theo định dạng của bạn. Tự động phát hiện các cuộc họp hội đồng và ủy ban sắp tới từ lịch của bạn, yêu cầu chương trình họp và…
crm-cleanup
anthropic
Quét HubSpot để tìm các deal đã cũ, danh bạ trùng lặp và các trường bị thiếu, sau đó sửa những gì chủ sở hữu phê duyệt. Chấp nhận đối số phạm vi tùy chọn cho deals, contacts,…
redshift-api
anthropic
Chạy SQL trên Amazon Redshift — gửi câu lệnh, kiểm tra trạng thái, phân trang kết quả và duyệt cơ sở dữ liệu/lược đồ/bảng. Sử dụng công cụ này bất cứ khi nào người dùng muốn…
ticket-deflector
anthropic
Đọc email hoặc ticket của khách hàng được chuyển tiếp, lấy trạng thái đơn hàng/hoàn tiền từ PayPal và lịch sử tài khoản từ HubSpot, soạn thảo phản hồi phù hợp với giọng điệu của chủ sở hữu…
reg-feed-watcher
anthropic
Kiểm tra các nguồn cấp dữ liệu quy định ngay bây giờ và báo cáo những gì mới kể từ lần kiểm tra trước, được lọc theo ngưỡng trọng yếu của bạn. Sử dụng khi người dùng nói "kiểm tra các nguồn cấp dữ liệu",…