[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M70KSS4A87NJV72QAPKSH6HG":3,"skill-same:01M70KSS4A87NJV72QAPKSH6HG":154},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":26,"publishedAt":47,"linkOnly":48,"markdownContent":49,"markdownBody":50,"frontMatter":51,"refName":52,"commitSha":53,"skillDirectory":54,"forksCount":55,"repositoryHtmlUrl":56,"repositoryHomepageUrl":57,"ownerHtmlUrl":58,"ownerBlogUrl":59,"ownerDescription":60,"updatedAt":61,"install":62,"resources":75},"01M70KSS4A87NJV72QAPKSH6HG","agents-sdk",null,"Build AI agents on Cloudflare Workers using the Agents SDK. Load when creating stateful agents, durable workflows, real-time WebSocket apps, scheduled tasks, MCP servers, chat applications, voice agents, or browser automation. Covers Agent class, state management, callable RPC, Workflows, durable execution, queues, retries, observability, and React hooks. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.","shengdabai\u002FTony-Claude-Code-Skills","shengdabai","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F116417419?v=4","01M70F6D2WY5PQV5A92BKYJQEW","Tony Sheng","01M70F6D3GAAAYZ5H4CC1G8VXM",3,"MIT","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fagents-sdk\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000009","前端开发","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],"sdk","agents sdk","queues","cloudflare workers","browser","react","ai agents","tasks","when","workflows","apps","scheduled","MCP","retries","knowledge","cloudflare","hooks","browser automation","time","stateful","2026-11-10 10:12:30",false,"---\nname: agents-sdk\ndescription: Build AI agents on Cloudflare Workers using the Agents SDK. Load when creating stateful agents, durable workflows, real-time WebSocket apps, scheduled tasks, MCP servers, chat applications, voice agents, or browser automation. Covers Agent class, state management, callable RPC, Workflows, durable execution, queues, retries, observability, and React hooks. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.\n---\n\n# Cloudflare Agents SDK\n\nYour knowledge of the Agents SDK may be outdated. **Prefer retrieval over pre-training** for any Agents SDK task.\n\n## Retrieval Sources\n\nCloudflare docs: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002F\n\n| Topic | Docs URL | Use for |\n|-------|----------|---------|\n| Getting started | [Quick start](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fgetting-started\u002Fquick-start\u002F) | First agent, project setup |\n| Adding to existing project | [Add to existing project](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fgetting-started\u002Fadd-to-existing-project\u002F) | Install into existing Workers app |\n| Configuration | [Configuration](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fconfiguration\u002F) | `wrangler.jsonc`, bindings, assets, deployment |\n| Agent class | [Agents API](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fagents-api\u002F) | Agent lifecycle, patterns, pitfalls |\n| State | [Store and sync state](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fstore-and-sync-state\u002F) | `setState`, `validateStateChange`, persistence |\n| Routing | [Routing](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Frouting\u002F) | URL patterns, `routeAgentRequest` |\n| Callable methods | [Callable methods](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fcallable-methods\u002F) | `@callable`, RPC, streaming, timeouts |\n| Scheduling | [Schedule tasks](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fschedule-tasks\u002F) | `schedule()`, `scheduleEvery()`, cron |\n| Workflows | [Run workflows](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Frun-workflows\u002F) | `AgentWorkflow`, durable multi-step tasks |\n| HTTP\u002FWebSockets | [WebSockets](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fwebsockets\u002F) | Lifecycle hooks, hibernation |\n| Chat agents | [Chat agents](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fchat-agents\u002F) | `AIChatAgent`, streaming, tools, persistence |\n| Client SDK | [Client SDK](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fclient-sdk\u002F) | `useAgent`, `useAgentChat`, React hooks |\n| Client tools | [Client tools](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fclient-tools\u002F) | Client-side tools, `autoContinueAfterToolResult` |\n| Server-driven messages | [Trigger patterns](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Ftrigger-patterns\u002F) | `saveMessages`, `waitUntilStable`, server-initiated turns |\n| Resumable streaming | [Resumable streaming](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fresumable-streaming\u002F) | Stream recovery on disconnect |\n| Email | [Email](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Femail\u002F) | Email routing, secure reply resolver |\n| MCP client | [MCP client](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fmcp-client-api\u002F) | Connecting to MCP servers |\n| MCP server | [MCP server](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fmcp-agent-api\u002F) | Building MCP servers with `McpAgent` |\n| MCP transports | [MCP transports](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fmcp-transports\u002F) | Streamable HTTP, SSE, RPC transport options |\n| Securing MCP servers | [Securing MCP](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fsecuring-mcp-servers\u002F) | OAuth, proxy MCP, hardening |\n| Human-in-the-loop | [Human-in-the-loop](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fconcepts\u002Fhuman-in-the-loop\u002F) | Approval flows, `needsApproval`, workflows |\n| Durable execution | [Durable execution](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fdurable-execution\u002F) | `runFiber()`, `stash()`, surviving DO eviction |\n| Queue | [Queue](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fqueue-tasks\u002F) | Built-in FIFO queue, `queue()` |\n| Retries | [Retries](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fretries\u002F) | `this.retry()`, backoff\u002Fjitter |\n| Observability | [Observability](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fobservability\u002F) | Diagnostics-channel events |\n| Push notifications | [Push notifications](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fpush-notifications\u002F) | Web Push + VAPID from agents |\n| Webhooks | [Webhooks](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fwebhooks\u002F) | Receiving external webhooks |\n| Cross-domain auth | [Cross-domain auth](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fcross-domain-authentication\u002F) | WebSocket auth, tokens, CORS |\n| Readonly connections | [Readonly](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Freadonly-connections\u002F) | `shouldConnectionBeReadonly` |\n| Voice | [Voice](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fvoice\u002F) | Experimental STT\u002FTTS, `withVoice` |\n| Browse the web | [Browser tools](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fbrowse-the-web\u002F) | Experimental CDP browser automation |\n| Think | [Think](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fthink\u002F) | Experimental higher-level chat agent class |\n| Migrations | [AI SDK v5](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fguides\u002Fmigration-to-ai-sdk-v5\u002F), [AI SDK v6](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fguides\u002Fmigration-to-ai-sdk-v6\u002F) | Upgrading `@cloudflare\u002Fai-chat` |\n\n## Capabilities\n\nThe Agents SDK provides:\n\n- **Persistent state** — SQLite-backed, auto-synced to clients via `setState`\n- **Callable RPC** — `@callable()` methods invoked over WebSocket\n- **Scheduling** — One-time, recurring (`scheduleEvery`), and cron tasks\n- **Workflows** — Durable multi-step background processing via `AgentWorkflow`\n- **Durable execution** — `runFiber()` \u002F `stash()` for work that survives DO eviction\n- **Queue** — Built-in FIFO queue with retries via `queue()`\n- **Retries** — `this.retry()` with exponential backoff and jitter\n- **MCP integration** — Connect to MCP servers or build your own with `McpAgent`\n- **Email handling** — Receive and reply to emails with secure routing\n- **Streaming chat** — `AIChatAgent` with resumable streams, message persistence, tools\n- **Server-driven messages** — `saveMessages`, `waitUntilStable` for proactive agent turns\n- **React hooks** — `useAgent`, `useAgentChat` for client apps\n- **Observability** — `diagnostics_channel` events for state, RPC, schedule, lifecycle\n- **Push notifications** — Web Push + VAPID delivery from agents\n- **Webhooks** — Receive and verify external webhooks\n- **Voice** (experimental) — STT\u002FTTS via `@cloudflare\u002Fvoice`\n- **Browser tools** (experimental) — CDP-powered browsing via `agents\u002Fbrowser`\n- **Think** (experimental) — Higher-level chat agent via `@cloudflare\u002Fthink`\n\n## FIRST: Verify Installation\n\n```bash\nnpm ls agents  # Should show agents package\n```\n\nIf not installed:\n```bash\nnpm install agents\n```\n\nFor chat agents:\n```bash\nnpm install agents @cloudflare\u002Fai-chat ai @ai-sdk\u002Freact\n```\n\n## Wrangler Configuration\n\n```jsonc\n{\n  \"compatibility_flags\": [\"nodejs_compat\"],\n  \"durable_objects\": {\n    \"bindings\": [{ \"name\": \"MyAgent\", \"class_name\": \"MyAgent\" }]\n  },\n  \"migrations\": [{ \"tag\": \"v1\", \"new_sqlite_classes\": [\"MyAgent\"] }]\n}\n```\n\n**Gotchas:**\n- Do NOT enable `experimentalDecorators` in tsconfig (breaks `@callable`)\n- Never edit old migrations — always add new tags\n- Each agent class needs its own DO binding + migration entry\n- Add `\"ai\": { \"binding\": \"AI\" }` for Workers AI\n\n## Agent Class\n\n```typescript\nimport { Agent, routeAgentRequest, callable } from \"agents\";\n\ntype State = { count: number };\n\nexport class Counter extends Agent\u003CEnv, State> {\n  initialState = { count: 0 };\n\n  validateStateChange(nextState: State, source: Connection | \"server\") {\n    if (nextState.count \u003C 0) throw new Error(\"Count cannot be negative\");\n  }\n\n  onStateUpdate(state: State, source: Connection | \"server\") {\n    console.log(\"State updated:\", state);\n  }\n\n  @callable()\n  increment() {\n    this.setState({ count: this.state.count + 1 });\n    return this.state.count;\n  }\n}\n\nexport default {\n  fetch: (req, env) => routeAgentRequest(req, env) ?? new Response(\"Not found\", { status: 404 })\n};\n```\n\n## Routing\n\nRequests route to `\u002Fagents\u002F{agent-name}\u002F{instance-name}`:\n\n| Class | URL |\n|-------|-----|\n| `Counter` | `\u002Fagents\u002Fcounter\u002Fuser-123` |\n| `ChatRoom` | `\u002Fagents\u002Fchat-room\u002Flobby` |\n\nClient: `useAgent({ agent: \"Counter\", name: \"user-123\" })`\n\nCustom routing: use `getAgentByName(env.MyAgent, \"instance-id\")` then `agent.fetch(request)`.\n\n## Core APIs\n\n| Task | API |\n|------|-----|\n| Read state | `this.state.count` |\n| Write state | `this.setState({ count: 1 })` |\n| SQL query | `` this.sql`SELECT * FROM users WHERE id = ${id}` `` |\n| Schedule (delay) | `await this.schedule(60, \"task\", payload)` |\n| Schedule (cron) | `await this.schedule(\"0 * * * *\", \"task\", payload)` |\n| Schedule (interval) | `await this.scheduleEvery(30, \"poll\")` |\n| RPC method | `@callable() myMethod() { ... }` |\n| Streaming RPC | `@callable({ streaming: true }) stream(res) { ... }` |\n| Start workflow | `await this.runWorkflow(\"ProcessingWorkflow\", params)` |\n| Durable fiber | `await this.runFiber(\"name\", async (ctx) => { ... })` |\n| Enqueue work | `this.queue(\"handler\", payload)` |\n| Retry with backoff | `await this.retry(fn, { maxAttempts: 5 })` |\n| Broadcast to clients | `this.broadcast(message)` |\n| Get connections | `this.getConnections(tag?)` |\n\n## React Client\n\n```tsx\nimport { useAgent } from \"agents\u002Freact\";\n\nfunction App() {\n  const [state, setLocalState] = useState({ count: 0 });\n\n  const agent = useAgent({\n    agent: \"Counter\",\n    name: \"my-instance\",\n    onStateUpdate: (newState) => setLocalState(newState),\n    onIdentity: (name, agentType) => console.log(`Connected to ${name}`)\n  });\n\n  return (\n    \u003Cbutton onClick={() => agent.setState({ count: state.count + 1 })}>\n      Count: {state.count}\n    \u003C\u002Fbutton>\n  );\n}\n```\n\n## References\n\n### Core\n- **[references\u002Fstate-scheduling.md](references\u002Fstate-scheduling.md)** — State persistence, scheduling, SQL\n- **[references\u002Fcallable.md](references\u002Fcallable.md)** — RPC methods, streaming, timeouts\n- **[references\u002Frouting.md](references\u002Frouting.md)** — URL patterns, custom routing, `getAgentByName`\n- **[references\u002Fconfiguration.md](references\u002Fconfiguration.md)** — Wrangler config, bindings, Vite setup\n\n### Chat & Streaming\n- **[references\u002Fstreaming-chat.md](references\u002Fstreaming-chat.md)** — AIChatAgent, resumable streams, tools\n- **[references\u002Fclient-sdk.md](references\u002Fclient-sdk.md)** — `useAgent`, `useAgentChat`, `AgentClient`\n- **[references\u002Fserver-driven-messages.md](references\u002Fserver-driven-messages.md)** — Trigger patterns, `saveMessages`\n- **[references\u002Fhuman-in-the-loop.md](references\u002Fhuman-in-the-loop.md)** — Approval flows, `needsApproval`\n\n### Background Processing\n- **[references\u002Fworkflows.md](references\u002Fworkflows.md)** — Durable Workflows integration\n- **[references\u002Fdurable-execution.md](references\u002Fdurable-execution.md)** — `runFiber`, `stash`, surviving eviction\n- **[references\u002Fqueue-retries.md](references\u002Fqueue-retries.md)** — Built-in queue, retry with backoff\n\n### Integrations\n- **[references\u002Fmcp.md](references\u002Fmcp.md)** — MCP client and server, transports, securing\n- **[references\u002Femail.md](references\u002Femail.md)** — Email routing and handling\n- **[references\u002Fwebhooks-push.md](references\u002Fwebhooks-push.md)** — Webhooks, push notifications\n- **[references\u002Fobservability.md](references\u002Fobservability.md)** — Diagnostics-channel events\n\n### Experimental\n- **[references\u002Fthink.md](references\u002Fthink.md)** — `@cloudflare\u002Fthink` higher-level chat agent\n- **[references\u002Fvoice.md](references\u002Fvoice.md)** — `@cloudflare\u002Fvoice` STT\u002FTTS\n- **[references\u002Fcodemode.md](references\u002Fcodemode.md)** — Code Mode for tool orchestration\n- **[references\u002Fbrowse-the-web.md](references\u002Fbrowse-the-web.md)** — CDP browser tools\n","# Cloudflare Agents SDK\n\nYour knowledge of the Agents SDK may be outdated. **Prefer retrieval over pre-training** for any Agents SDK task.\n\n## Retrieval Sources\n\nCloudflare docs: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002F\n\n| Topic | Docs URL | Use for |\n|-------|----------|---------|\n| Getting started | [Quick start](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fgetting-started\u002Fquick-start\u002F) | First agent, project setup |\n| Adding to existing project | [Add to existing project](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fgetting-started\u002Fadd-to-existing-project\u002F) | Install into existing Workers app |\n| Configuration | [Configuration](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fconfiguration\u002F) | `wrangler.jsonc`, bindings, assets, deployment |\n| Agent class | [Agents API](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fagents-api\u002F) | Agent lifecycle, patterns, pitfalls |\n| State | [Store and sync state](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fstore-and-sync-state\u002F) | `setState`, `validateStateChange`, persistence |\n| Routing | [Routing](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Frouting\u002F) | URL patterns, `routeAgentRequest` |\n| Callable methods | [Callable methods](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fcallable-methods\u002F) | `@callable`, RPC, streaming, timeouts |\n| Scheduling | [Schedule tasks](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fschedule-tasks\u002F) | `schedule()`, `scheduleEvery()`, cron |\n| Workflows | [Run workflows](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Frun-workflows\u002F) | `AgentWorkflow`, durable multi-step tasks |\n| HTTP\u002FWebSockets | [WebSockets](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fwebsockets\u002F) | Lifecycle hooks, hibernation |\n| Chat agents | [Chat agents](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fchat-agents\u002F) | `AIChatAgent`, streaming, tools, persistence |\n| Client SDK | [Client SDK](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fclient-sdk\u002F) | `useAgent`, `useAgentChat`, React hooks |\n| Client tools | [Client tools](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fclient-tools\u002F) | Client-side tools, `autoContinueAfterToolResult` |\n| Server-driven messages | [Trigger patterns](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Ftrigger-patterns\u002F) | `saveMessages`, `waitUntilStable`, server-initiated turns |\n| Resumable streaming | [Resumable streaming](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fresumable-streaming\u002F) | Stream recovery on disconnect |\n| Email | [Email](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Femail\u002F) | Email routing, secure reply resolver |\n| MCP client | [MCP client](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fmcp-client-api\u002F) | Connecting to MCP servers |\n| MCP server | [MCP server](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fmcp-agent-api\u002F) | Building MCP servers with `McpAgent` |\n| MCP transports | [MCP transports](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fmcp-transports\u002F) | Streamable HTTP, SSE, RPC transport options |\n| Securing MCP servers | [Securing MCP](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fsecuring-mcp-servers\u002F) | OAuth, proxy MCP, hardening |\n| Human-in-the-loop | [Human-in-the-loop](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fconcepts\u002Fhuman-in-the-loop\u002F) | Approval flows, `needsApproval`, workflows |\n| Durable execution | [Durable execution](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fdurable-execution\u002F) | `runFiber()`, `stash()`, surviving DO eviction |\n| Queue | [Queue](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fqueue-tasks\u002F) | Built-in FIFO queue, `queue()` |\n| Retries | [Retries](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fretries\u002F) | `this.retry()`, backoff\u002Fjitter |\n| Observability | [Observability](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fobservability\u002F) | Diagnostics-channel events |\n| Push notifications | [Push notifications](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fpush-notifications\u002F) | Web Push + VAPID from agents |\n| Webhooks | [Webhooks](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fwebhooks\u002F) | Receiving external webhooks |\n| Cross-domain auth | [Cross-domain auth](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fcross-domain-authentication\u002F) | WebSocket auth, tokens, CORS |\n| Readonly connections | [Readonly](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Freadonly-connections\u002F) | `shouldConnectionBeReadonly` |\n| Voice | [Voice](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fvoice\u002F) | Experimental STT\u002FTTS, `withVoice` |\n| Browse the web | [Browser tools](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fbrowse-the-web\u002F) | Experimental CDP browser automation |\n| Think | [Think](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fapi-reference\u002Fthink\u002F) | Experimental higher-level chat agent class |\n| Migrations | [AI SDK v5](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fguides\u002Fmigration-to-ai-sdk-v5\u002F), [AI SDK v6](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fguides\u002Fmigration-to-ai-sdk-v6\u002F) | Upgrading `@cloudflare\u002Fai-chat` |\n\n## Capabilities\n\nThe Agents SDK provides:\n\n- **Persistent state** — SQLite-backed, auto-synced to clients via `setState`\n- **Callable RPC** — `@callable()` methods invoked over WebSocket\n- **Scheduling** — One-time, recurring (`scheduleEvery`), and cron tasks\n- **Workflows** — Durable multi-step background processing via `AgentWorkflow`\n- **Durable execution** — `runFiber()` \u002F `stash()` for work that survives DO eviction\n- **Queue** — Built-in FIFO queue with retries via `queue()`\n- **Retries** — `this.retry()` with exponential backoff and jitter\n- **MCP integration** — Connect to MCP servers or build your own with `McpAgent`\n- **Email handling** — Receive and reply to emails with secure routing\n- **Streaming chat** — `AIChatAgent` with resumable streams, message persistence, tools\n- **Server-driven messages** — `saveMessages`, `waitUntilStable` for proactive agent turns\n- **React hooks** — `useAgent`, `useAgentChat` for client apps\n- **Observability** — `diagnostics_channel` events for state, RPC, schedule, lifecycle\n- **Push notifications** — Web Push + VAPID delivery from agents\n- **Webhooks** — Receive and verify external webhooks\n- **Voice** (experimental) — STT\u002FTTS via `@cloudflare\u002Fvoice`\n- **Browser tools** (experimental) — CDP-powered browsing via `agents\u002Fbrowser`\n- **Think** (experimental) — Higher-level chat agent via `@cloudflare\u002Fthink`\n\n## FIRST: Verify Installation\n\n```bash\nnpm ls agents  # Should show agents package\n```\n\nIf not installed:\n```bash\nnpm install agents\n```\n\nFor chat agents:\n```bash\nnpm install agents @cloudflare\u002Fai-chat ai @ai-sdk\u002Freact\n```\n\n## Wrangler Configuration\n\n```jsonc\n{\n  \"compatibility_flags\": [\"nodejs_compat\"],\n  \"durable_objects\": {\n    \"bindings\": [{ \"name\": \"MyAgent\", \"class_name\": \"MyAgent\" }]\n  },\n  \"migrations\": [{ \"tag\": \"v1\", \"new_sqlite_classes\": [\"MyAgent\"] }]\n}\n```\n\n**Gotchas:**\n- Do NOT enable `experimentalDecorators` in tsconfig (breaks `@callable`)\n- Never edit old migrations — always add new tags\n- Each agent class needs its own DO binding + migration entry\n- Add `\"ai\": { \"binding\": \"AI\" }` for Workers AI\n\n## Agent Class\n\n```typescript\nimport { Agent, routeAgentRequest, callable } from \"agents\";\n\ntype State = { count: number };\n\nexport class Counter extends Agent\u003CEnv, State> {\n  initialState = { count: 0 };\n\n  validateStateChange(nextState: State, source: Connection | \"server\") {\n    if (nextState.count \u003C 0) throw new Error(\"Count cannot be negative\");\n  }\n\n  onStateUpdate(state: State, source: Connection | \"server\") {\n    console.log(\"State updated:\", state);\n  }\n\n  @callable()\n  increment() {\n    this.setState({ count: this.state.count + 1 });\n    return this.state.count;\n  }\n}\n\nexport default {\n  fetch: (req, env) => routeAgentRequest(req, env) ?? new Response(\"Not found\", { status: 404 })\n};\n```\n\n## Routing\n\nRequests route to `\u002Fagents\u002F{agent-name}\u002F{instance-name}`:\n\n| Class | URL |\n|-------|-----|\n| `Counter` | `\u002Fagents\u002Fcounter\u002Fuser-123` |\n| `ChatRoom` | `\u002Fagents\u002Fchat-room\u002Flobby` |\n\nClient: `useAgent({ agent: \"Counter\", name: \"user-123\" })`\n\nCustom routing: use `getAgentByName(env.MyAgent, \"instance-id\")` then `agent.fetch(request)`.\n\n## Core APIs\n\n| Task | API |\n|------|-----|\n| Read state | `this.state.count` |\n| Write state | `this.setState({ count: 1 })` |\n| SQL query | `` this.sql`SELECT * FROM users WHERE id = ${id}` `` |\n| Schedule (delay) | `await this.schedule(60, \"task\", payload)` |\n| Schedule (cron) | `await this.schedule(\"0 * * * *\", \"task\", payload)` |\n| Schedule (interval) | `await this.scheduleEvery(30, \"poll\")` |\n| RPC method | `@callable() myMethod() { ... }` |\n| Streaming RPC | `@callable({ streaming: true }) stream(res) { ... }` |\n| Start workflow | `await this.runWorkflow(\"ProcessingWorkflow\", params)` |\n| Durable fiber | `await this.runFiber(\"name\", async (ctx) => { ... })` |\n| Enqueue work | `this.queue(\"handler\", payload)` |\n| Retry with backoff | `await this.retry(fn, { maxAttempts: 5 })` |\n| Broadcast to clients | `this.broadcast(message)` |\n| Get connections | `this.getConnections(tag?)` |\n\n## React Client\n\n```tsx\nimport { useAgent } from \"agents\u002Freact\";\n\nfunction App() {\n  const [state, setLocalState] = useState({ count: 0 });\n\n  const agent = useAgent({\n    agent: \"Counter\",\n    name: \"my-instance\",\n    onStateUpdate: (newState) => setLocalState(newState),\n    onIdentity: (name, agentType) => console.log(`Connected to ${name}`)\n  });\n\n  return (\n    \u003Cbutton onClick={() => agent.setState({ count: state.count + 1 })}>\n      Count: {state.count}\n    \u003C\u002Fbutton>\n  );\n}\n```\n\n## References\n\n### Core\n- **[references\u002Fstate-scheduling.md](references\u002Fstate-scheduling.md)** — State persistence, scheduling, SQL\n- **[references\u002Fcallable.md](references\u002Fcallable.md)** — RPC methods, streaming, timeouts\n- **[references\u002Frouting.md](references\u002Frouting.md)** — URL patterns, custom routing, `getAgentByName`\n- **[references\u002Fconfiguration.md](references\u002Fconfiguration.md)** — Wrangler config, bindings, Vite setup\n\n### Chat & Streaming\n- **[references\u002Fstreaming-chat.md](references\u002Fstreaming-chat.md)** — AIChatAgent, resumable streams, tools\n- **[references\u002Fclient-sdk.md](references\u002Fclient-sdk.md)** — `useAgent`, `useAgentChat`, `AgentClient`\n- **[references\u002Fserver-driven-messages.md](references\u002Fserver-driven-messages.md)** — Trigger patterns, `saveMessages`\n- **[references\u002Fhuman-in-the-loop.md](references\u002Fhuman-in-the-loop.md)** — Approval flows, `needsApproval`\n\n### Background Processing\n- **[references\u002Fworkflows.md](references\u002Fworkflows.md)** — Durable Workflows integration\n- **[references\u002Fdurable-execution.md](references\u002Fdurable-execution.md)** — `runFiber`, `stash`, surviving eviction\n- **[references\u002Fqueue-retries.md](references\u002Fqueue-retries.md)** — Built-in queue, retry with backoff\n\n### Integrations\n- **[references\u002Fmcp.md](references\u002Fmcp.md)** — MCP client and server, transports, securing\n- **[references\u002Femail.md](references\u002Femail.md)** — Email routing and handling\n- **[references\u002Fwebhooks-push.md](references\u002Fwebhooks-push.md)** — Webhooks, push notifications\n- **[references\u002Fobservability.md](references\u002Fobservability.md)** — Diagnostics-channel events\n\n### Experimental\n- **[references\u002Fthink.md](references\u002Fthink.md)** — `@cloudflare\u002Fthink` higher-level chat agent\n- **[references\u002Fvoice.md](references\u002Fvoice.md)** — `@cloudflare\u002Fvoice` STT\u002FTTS\n- **[references\u002Fcodemode.md](references\u002Fcodemode.md)** — Code Mode for tool orchestration\n- **[references\u002Fbrowse-the-web.md](references\u002Fbrowse-the-web.md)** — CDP browser tools\n",{"name":5,"description":7},"main","7850740bd837adb32f0a109ab2af82482196c6f2","skills\u002Fagents-sdk",1,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills","https:\u002F\u002Fzturnsgo.com","https:\u002F\u002Fgithub.com\u002Fshengdabai","https:\u002F\u002Fzturnsgo.com\u002F","AI × education creator — producer, not consumer. Taught 6,000+ learners; shipping learning tools & daily essays with Claude Code, practicing @xiaolai's way 🥋","2026-11-01 21:28:23",{"source":8,"skillName":5,"commands":63,"prompt":73,"zipAvailable":74},[64,67,70],{"tool":65,"command":66},"npx","npx skills add shengdabai\u002FTony-Claude-Code-Skills --skill agents-sdk",{"tool":68,"command":69},"bunx","bunx skills add shengdabai\u002FTony-Claude-Code-Skills --skill agents-sdk",{"tool":71,"command":72},"pnpm","pnpm dlx skills add shengdabai\u002FTony-Claude-Code-Skills --skill agents-sdk","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fagents-sdk\u002FSKILL.md",true,[76,82,86,90,94,98,102,106,110,114,118,122,126,130,134,138,142,146,150],{"path":77,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":80,"sourceHtmlUrl":81},"references\u002Fbrowse-the-web.md","REFERENCE","参考文档",1634,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fagents-sdk\u002Freferences\u002Fbrowse-the-web.md",{"path":83,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":84,"sourceHtmlUrl":85},"references\u002Fcallable.md",2115,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fagents-sdk\u002Freferences\u002Fcallable.md",{"path":87,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":88,"sourceHtmlUrl":89},"references\u002Fclient-sdk.md",2287,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fagents-sdk\u002Freferences\u002Fclient-sdk.md",{"path":91,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":92,"sourceHtmlUrl":93},"references\u002Fcodemode.md",2902,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fagents-sdk\u002Freferences\u002Fcodemode.md",{"path":95,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":96,"sourceHtmlUrl":97},"references\u002Fconfiguration.md",1837,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fagents-sdk\u002Freferences\u002Fconfiguration.md",{"path":99,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":100,"sourceHtmlUrl":101},"references\u002Fdurable-execution.md",1705,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fagents-sdk\u002Freferences\u002Fdurable-execution.md",{"path":103,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":104,"sourceHtmlUrl":105},"references\u002Femail.md",3539,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fagents-sdk\u002Freferences\u002Femail.md",{"path":107,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":108,"sourceHtmlUrl":109},"references\u002Fhuman-in-the-loop.md",1804,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fagents-sdk\u002Freferences\u002Fhuman-in-the-loop.md",{"path":111,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":112,"sourceHtmlUrl":113},"references\u002Fmcp.md",4663,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fagents-sdk\u002Freferences\u002Fmcp.md",{"path":115,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":116,"sourceHtmlUrl":117},"references\u002Fobservability.md",1339,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fagents-sdk\u002Freferences\u002Fobservability.md",{"path":119,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":120,"sourceHtmlUrl":121},"references\u002Fqueue-retries.md",2228,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fagents-sdk\u002Freferences\u002Fqueue-retries.md",{"path":123,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":124,"sourceHtmlUrl":125},"references\u002Frouting.md",1828,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fagents-sdk\u002Freferences\u002Frouting.md",{"path":127,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":128,"sourceHtmlUrl":129},"references\u002Fserver-driven-messages.md",1681,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fagents-sdk\u002Freferences\u002Fserver-driven-messages.md",{"path":131,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":132,"sourceHtmlUrl":133},"references\u002Fstate-scheduling.md",4047,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fagents-sdk\u002Freferences\u002Fstate-scheduling.md",{"path":135,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":136,"sourceHtmlUrl":137},"references\u002Fstreaming-chat.md",5080,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fagents-sdk\u002Freferences\u002Fstreaming-chat.md",{"path":139,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":140,"sourceHtmlUrl":141},"references\u002Fthink.md",2929,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fagents-sdk\u002Freferences\u002Fthink.md",{"path":143,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":144,"sourceHtmlUrl":145},"references\u002Fvoice.md",1901,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fagents-sdk\u002Freferences\u002Fvoice.md",{"path":147,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":148,"sourceHtmlUrl":149},"references\u002Fwebhooks-push.md",2423,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fagents-sdk\u002Freferences\u002Fwebhooks-push.md",{"path":151,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":152,"sourceHtmlUrl":153},"references\u002Fworkflows.md",3878,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fagents-sdk\u002Freferences\u002Fworkflows.md",[155,164,172,180,188,196],{"skillNo":156,"name":157,"nameZh":6,"description":158,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":159,"sourceHtmlUrl":160,"categories":161,"keywords":162,"publishedAt":163},"01M73H7XKBHE1ETQDZT94MF9HH","seedance-prompt-en","Write effective prompts for Jimeng Seedance 2.0 multimodal AI video generation. Use when users want to create video prompts using text, images, videos, and audio inputs with the @ reference system. Covers camera movements, effects replication, video extension, editing, music beat-matching, e-commerce ads, short dramas, and educational content.","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fseedance-prompt-en\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fseedance-prompt-en\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":165,"name":166,"nameZh":6,"description":167,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":168,"sourceHtmlUrl":169,"categories":170,"keywords":171,"publishedAt":163},"01M73GRE9998Q1DZWC71N41JWG","onepage-pdf","Convert an HTML page into a single continuous-page PDF (one tall page, no pagination breaks), preserving desktop layout, backgrounds and selectable text. Use when the user asks to turn an HTML file\u002Freport\u002Fproposal into a \"single-page PDF\", \"long PDF\", \"不分页 PDF\", \"单页 PDF\", \"长图式 PDF\", or complains that an HTML-to-PDF export breaks into pages or cuts content. Supports optional string redaction with leak verification.","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fonepage-pdf\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fonepage-pdf\u002FSKILL.md",[],[],{"skillNo":173,"name":174,"nameZh":6,"description":175,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":176,"sourceHtmlUrl":177,"categories":178,"keywords":179,"publishedAt":163},"01M73GQG1KZDADVPV3MHAT1J5A","native-feel-cross-platform-desktop","Use when the user is designing, prototyping, or rewriting a desktop app that must run on multiple OSes (macOS + Windows, optionally Linux) AND feel indistinguishable from a native app to its users — fast launch, native windowing, native input handling, native materials. Trigger words include \"cross-platform desktop\", \"Electron alternative\", \"Tauri vs native\", \"WebView wrapper\", \"near-native performance\", \"Raycast architecture\", \"WebKit\u002FWebView2 quirks\", \"WKWebView\", \"system tray app\", \"global hotkey app\", \"launcher app\". Do NOT trigger this skill for pure web apps, pure mobile apps, or for greenfield projects that have no native-feel requirement.","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fnative-feel-cross-platform-desktop\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fnative-feel-cross-platform-desktop\u002FSKILL.md",[],[],{"skillNo":181,"name":182,"nameZh":6,"description":183,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":184,"sourceHtmlUrl":185,"categories":186,"keywords":187,"publishedAt":163},"01M73G87PDNSMKG2FHWCYER6N8","gstack","Router for the gstack skill suite. (gstack)","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fgstack\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fgstack\u002FSKILL.md",[],[],{"skillNo":189,"name":190,"nameZh":6,"description":191,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":192,"sourceHtmlUrl":193,"categories":194,"keywords":195,"publishedAt":163},"01M73G3EAQWKCM8DB8D0N0QSVG","fireworks-tech-graph","Use when the user wants to create any technical diagram - architecture, data flow, flowchart, sequence, agent\u002Fmemory, or concept map - and export as SVG+PNG. Trigger on: \"画图\" \"帮我画\" \"生成图\" \"做个图\" \"架构图\" \"流程图\" \"可视化一下\" \"出图\" \"generate diagram\" \"draw diagram\" \"visualize\" or any system\u002Fflow description the user wants illustrated.","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ffireworks-tech-graph\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ffireworks-tech-graph\u002FSKILL.md",[],[],{"skillNo":197,"name":198,"nameZh":6,"description":199,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":200,"categories":201,"keywords":202,"publishedAt":163},"01M73G086AXAH9DW1H5G5N3CPB","dbs-video-extract","接收抖音、小红书、微信视频号等短视频链接或分享文案，查询作品／账号数据并提取语音文字稿，按作者和标题归档为 Markdown。用户希望完整解析短视频、取得数据或文字稿时使用；运行前检查 TikHub 与轻抖使用凭证，缺少时用新手能理解的方式引导购买和安全配置。","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fdbs-video-extract\u002FSKILL.md",[],[]]