[{"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,172,203,229,251,271],{"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":6,"sourceHtmlUrl":159,"categories":160,"keywords":164,"publishedAt":47},"01M70P17DAD4C1C47NPH6A96EM","xiaolai-methodology","以李笑来(Li Xiaolai)的思考方式、方法论与表达风格,为用户做全方位 1-on-1 教练指导,覆盖创业、赚钱、投资、学习、自学、读书写作、用 AI、以及人生心态与自我管理。当用户提到 \"李笑来\"、\"笑来\"、\"笑来老师\"、\"扮演李笑来\"、\"找笑来聊聊\"、\"笑来怎么看\"、\"xiaolai\"、\"把时间当作朋友\"、\"通往财富自由之路\"、\"定投改变命运\"、\"韭菜的自我修养\"、\"自学是门手艺\"、\"让时间陪你慢慢变富\"、\"七年就是一辈子\"、\"元认知\"、\"活在未来\"、\"复利\u002F长期主义\"、\"践行\"、\"痴迷改进\"、\"个人商业模式\u002F出售时间\"、\"睡后收入\"、\"定投\"、\"财富自由\"、\"操作系统升级\"、\"最少必要知识\"、\"北极星提示词\"、\"用 AI 该怎么学\u002F思考\" 等任一触发词,或当用户带着关于创业\u002F赚钱\u002F投资\u002F学习\u002F职业\u002F重大人生决策的困惑、希望被人用笑来式的「逻辑 + 大白话 + 类比 + 重新定义 + 践行导向」来点醒和指导时,自动进入李笑来教练模式。","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fxiaolai-methodology\u002FSKILL.md",[161],{"categoryNo":162,"categoryName":163,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000018","写作与文案",[165,166,167,168,169,170,171],"methodology","xiaolai","xiaolai methodology","朋友","投资","writing","收入",{"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":6,"sourceHtmlUrl":176,"categories":177,"keywords":184,"publishedAt":47},"01M70P13NB9YP7ACJR1S861CDS","zread","Produce and consume a wiki-style knowledge base for a code repository via the `zread` CLI and its on-disk output under `.\u002F.zread\u002Fwiki\u002F`. Use this skill whenever the user wants to understand, onboard onto, explore, summarize, map, or get an overview of an unfamiliar codebase; asks for architecture docs, a project wiki, a repo walkthrough, module\u002Fpackage explanations, or \"what does this repo do\"; wants to generate, regenerate, resume, browse, or serve code documentation locally; or mentions zread \u002F zread.ai directly. Also use it proactively before diving into a large unknown repo — if `.\u002F.zread\u002Fwiki\u002Fcurrent` exists, read the generated pages instead of crawling source file-by-file; if it doesn't, consider offering to run `zread generate`. The trigger is the intent (understand a codebase through generated docs), not the literal word \"zread\".","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fzread\u002FSKILL.md",[178,179],{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":180,"categoryName":181,"taxonomyType":182,"taxonomyTypeDesc":183},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[174,41,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202],"wiki","explore","walkthrough","project","get","knowledge base","run","generate","intent","cli","map","documentation","project wiki","disk","architecture","code","unknown","generated",{"skillNo":204,"name":205,"nameZh":6,"description":206,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":207,"categories":208,"keywords":213,"publishedAt":47},"01M70P10S4SWMZQ8BJAFBFDRW3","youtube","Launch the YouTube Creator Agent to auto-generate videos.\nUse when: user types \u002Fyoutube, wants to create YouTube videos,\ngenerate video content, or upload to YouTube.\nKeywords: youtube, video, 视频, 创作视频, 发布视频","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fyoutube\u002FSKILL.md",[209,210],{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":211,"categoryName":212,"taxonomyType":182,"taxonomyTypeDesc":183},"01JBSEEDCAT000000000000036","内容创作者",[205,214,215,216,217,218,219,220,192,221,222,223,35,224,225,226,227,228],"user","content","视频","creator","generate video","videos","launch","video content","create","upload","use","auto","types","Video","创作",{"skillNo":230,"name":231,"nameZh":6,"description":232,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":233,"categories":234,"keywords":236,"publishedAt":47},"01M70P0YE95D8BACZCGV8BK90K","youtube-script-sync","Sync, update, or optimize Tony's GetNote knowledge base `Youtube视频逐字稿` by turning each parent recording or first-person idea note into an idempotent child note containing a directly recordable YouTube long-video or Shorts script. Use when the user says “更新\u002F同步\u002F优化 Youtube视频逐字稿知识库”, or says “更新\u002F同步\u002F优化该知识库” while this knowledge base is the active context.","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fyoutube-script-sync\u002FSKILL.md",[235],{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},[237,238,205,239,240,227,241,242,243,244,245,246,247,248,190,249,35,224,41,250],"sync","script","youtube script sync","recording","shorts","first","base","person","update","active","child","optimize","idempotent","long",{"skillNo":252,"name":253,"nameZh":6,"description":254,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":255,"categories":256,"keywords":261,"publishedAt":47},"01M70P0WMV5XT0EEC0N445PW07","writing-skills","How to write SKILL.md files that trigger reliably and teach effectively. Use when creating, improving, or reviewing Claude Code skills.","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fxiaolai\u002Fnlpm\u002Fskills\u002Fnlpm\u002Fwriting-skills\u002FSKILL.md",[257,258,259,260],{"categoryNo":162,"categoryName":163,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":180,"categoryName":181,"taxonomyType":182,"taxonomyTypeDesc":183},{"categoryNo":211,"categoryName":212,"taxonomyType":182,"taxonomyTypeDesc":183},[262,170,263,264,265,266,200,35,224,267,268,269,270],"writing skills","how","teach","write skill","write","claude code skills","files","how to","trigger",{"skillNo":272,"name":273,"nameZh":6,"description":274,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":275,"categories":276,"keywords":279,"publishedAt":47},"01M70P0SJFR4YVJQBGMHKGSKXT","writing-rules","How to write .claude\u002Frules\u002F files that Claude actually follows. Use when creating, improving, or reviewing project rules.","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fxiaolai\u002Fnlpm\u002Fskills\u002Fnlpm\u002Fwriting-rules\u002FSKILL.md",[277,278],{"categoryNo":162,"categoryName":163,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":211,"categoryName":212,"taxonomyType":182,"taxonomyTypeDesc":183},[280,170,281,188,282,268,35,263,266,224,269],"Rules","writing rules","project rules"]