[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75TG1WCHK74D4JKHTM4Y4M7":3,"skill-same:01M75TG1WCHK74D4JKHTM4Y4M7":54},{"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":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M75TG1WCHK74D4JKHTM4Y4M7","eve-chat-template-eve",null,"Work safely on Eve-specific internals in the Eve chat template. Use when changing the Eve agent, withEve routes, eveChannel auth, useEveAgent, ClientSession\u002FSessionState, persisted event logs, stream\u002Fresume behavior, connection authorization, Vercel Connect MCP connections, local Eve tools, or upstream Eve API assumptions.","vercel\u002Feve","vercel","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F14985020?v=4","01M75TEEHHNJR9E6CG84ENB3MS","Vercel","01M75TEEJ5BJVTCPRH9YAWSMW4",5902,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fvercel\u002Feve\u002Fblob\u002Fmain\u002Fapps\u002Ftemplates\u002Feve-chat-template\u002F.agents\u002Fskills\u002Feve-chat-template-eve\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: eve-chat-template-eve\ndescription: Work safely on Eve-specific internals in the Eve chat template. Use when changing the Eve agent, withEve routes, eveChannel auth, useEveAgent, ClientSession\u002FSessionState, persisted event logs, stream\u002Fresume behavior, connection authorization, Vercel Connect MCP connections, local Eve tools, or upstream Eve API assumptions.\n---\n\n# Eve Template Runtime\n\n## Overview\n\nUse this skill to preserve the Eve protocol and durable-session invariants while changing the chat template.\n\n## First Pass\n\n- Read `AGENTS.md` first. It requires reading the relevant guide under `node_modules\u002Feve\u002Fdocs\u002F` before writing code.\n- Read `docs\u002Fhow-the-chatbot-works.md` for architecture changes and `docs\u002Fsetup-and-deploy.md` for setup, auth, storage, or deployment changes.\n- Search with `rg \"useEveAgent|ClientSession|SessionState|content.delta|interaction.opened|eveSession|chat_event|streamIndex|continuationToken|defineMcpClientConnection|defineTool\"`.\n- Keep Eve runtime code separate from product shell code: `agent\u002F` defines agent behavior; `app\u002F_components\u002Fagent-chat.tsx` bridges Eve to the web UI; `lib\u002Fdb\u002F*` persists app state.\n\n## Core Model\n\n- Treat an app chat row and an Eve session as different things. The app row owns URL, title, user ownership, `pendingUserMessage`, stored `eveSession`, and event rows. Eve owns the remote durable session and stream cursor.\n- Do not confuse `chat_event.eventIndex` with `SessionState.streamIndex`. The first orders local Postgres rows; the second resumes `\u002Feve\u002Fv1\u002Fsession\u002F:sessionId\u002Fstream`.\n- Preserve same-origin Eve routes mounted by `withEve(nextConfig)`: `POST \u002Feve\u002Fv1\u002Fsession`, `POST \u002Feve\u002Fv1\u002Fsession\u002F:sessionId`, and `GET \u002Feve\u002Fv1\u002Fsession\u002F:sessionId\u002Fstream?startIndex=n`.\n- Keep `betterAuthEveAuth`, `localDev()`, and `vercelOidc()` in the Eve channel unless deliberately changing local, browser, or Vercel auth behavior.\n\n## Persistence And Resume\n\n- Persist `SessionState` immediately after Eve returns `sessionId` and `continuationToken`; do not wait for the stream to finish.\n- Persist each stream event as it arrives, then use the final snapshot as the canonical cleanup pass.\n- Upsert events by local `eventIndex`; on final snapshot, delete rows beyond the final event length.\n- Keep `pendingUserMessage` for interruption recovery. Mark it before sending, consume it once in the session page, hide it after a settled event, and clear it after snapshot or authorization skip.\n- When preserving initial events, merge by prefix and compare JSON structurally. Do not rely on `JSON.stringify` key order.\n- Reset per-chat refs on route changes: event index, known initial events, stream events, resumed events, local events, pending bubbles, resume-started flags, and finalize timers.\n\n## Streaming\n\n- `useEveAgent` reduces Eve events into renderable messages; the template wraps it with a custom `ClientSession` to persist and resume sessions.\n- Treat `content.delta.data.delta` as the new text for its `partId`. Treat reduced message text and rendered parts as cumulative; `content.completed` carries a part's whole value.\n- Read the stream as NDJSON. Buffering until newline is normal parsing, not app-level response buffering.\n- Consider a turn settled on an event `endsTurn` from `eve\u002Fclient` accepts: `turn.settled`, `session.ended`, or a `turn.paused` awaiting a person. Treat a sign-in `interaction.opened` (`request.kind: \"sign-in\"`) as a blocked state for normal text input.\n- Treat a `turn.paused` awaiting only calls as progress, not a settled turn: the turn waits on its tasks and resumes with `turn.resumed` for the same `turnId`. Keep following the stream until one of the settling events above.\n- On disconnect, reconnect from the next unread remote stream index. On refresh mid-turn, resume from saved `activeChat.session` and layer resumed events until the final snapshot catches up.\n\n## Connections And Tools\n\n- Define local tools in `agent\u002Ftools\u002F\u003Csnake_case>.ts` with `defineTool(...)`. Tool filenames become runtime tool names, so keep them ASCII snake_case.\n- Define Vercel Connect-backed MCP connections in `agent\u002Fconnections\u002F\u003Cname>.ts` with `defineMcpClientConnection(...)` and `connect(process.env.ENV_NAME ?? \"local-name\")`.\n- Treat composer connection toggles as per-turn intent, not connector provisioning or OAuth state.\n- Do not parse assistant text for auth requirements. Use sign-in `interaction.opened` and `interaction.settled` events.\n- Implement Skip as a structured outcome: stop the stream, synthesize a declined `interaction.settled` plus a cancelled `turn.settled`, apply those local events to the chat, persist them, and clear pending input. The chat's next message starts a new session.\n\n## Upstream Signals\n\n- Prefer upstreaming generic Eve lifecycle needs: `onSessionStarted(session)`, hook-level resume APIs, durable event persistence adapters, authorization continuation helpers, structured connection policy, and stream debug helpers.\n- Keep template-specific concerns in the template: Better Auth UX, Neon\u002FDrizzle schema, Upstash limits, sidebar pagination, Notion UI toggles, and setup docs.\n- Do not split server events just to make coarse provider deltas look token-level. Preserve wire semantics and smooth only at the UI layer when needed.\n\n## Verification\n\n- Run `pnpm typecheck` for protocol\u002Ftype changes and `pnpm build` before opening a PR that touches runtime, routes, or docs examples.\n- Manually verify first message, follow-up send, refresh during a response, authorization Connect\u002FSkip, disabled input while auth is pending, and Notion enabled\u002Fdisabled turns when those flows are touched.\n","# Eve Template Runtime\n\n## Overview\n\nUse this skill to preserve the Eve protocol and durable-session invariants while changing the chat template.\n\n## First Pass\n\n- Read `AGENTS.md` first. It requires reading the relevant guide under `node_modules\u002Feve\u002Fdocs\u002F` before writing code.\n- Read `docs\u002Fhow-the-chatbot-works.md` for architecture changes and `docs\u002Fsetup-and-deploy.md` for setup, auth, storage, or deployment changes.\n- Search with `rg \"useEveAgent|ClientSession|SessionState|content.delta|interaction.opened|eveSession|chat_event|streamIndex|continuationToken|defineMcpClientConnection|defineTool\"`.\n- Keep Eve runtime code separate from product shell code: `agent\u002F` defines agent behavior; `app\u002F_components\u002Fagent-chat.tsx` bridges Eve to the web UI; `lib\u002Fdb\u002F*` persists app state.\n\n## Core Model\n\n- Treat an app chat row and an Eve session as different things. The app row owns URL, title, user ownership, `pendingUserMessage`, stored `eveSession`, and event rows. Eve owns the remote durable session and stream cursor.\n- Do not confuse `chat_event.eventIndex` with `SessionState.streamIndex`. The first orders local Postgres rows; the second resumes `\u002Feve\u002Fv1\u002Fsession\u002F:sessionId\u002Fstream`.\n- Preserve same-origin Eve routes mounted by `withEve(nextConfig)`: `POST \u002Feve\u002Fv1\u002Fsession`, `POST \u002Feve\u002Fv1\u002Fsession\u002F:sessionId`, and `GET \u002Feve\u002Fv1\u002Fsession\u002F:sessionId\u002Fstream?startIndex=n`.\n- Keep `betterAuthEveAuth`, `localDev()`, and `vercelOidc()` in the Eve channel unless deliberately changing local, browser, or Vercel auth behavior.\n\n## Persistence And Resume\n\n- Persist `SessionState` immediately after Eve returns `sessionId` and `continuationToken`; do not wait for the stream to finish.\n- Persist each stream event as it arrives, then use the final snapshot as the canonical cleanup pass.\n- Upsert events by local `eventIndex`; on final snapshot, delete rows beyond the final event length.\n- Keep `pendingUserMessage` for interruption recovery. Mark it before sending, consume it once in the session page, hide it after a settled event, and clear it after snapshot or authorization skip.\n- When preserving initial events, merge by prefix and compare JSON structurally. Do not rely on `JSON.stringify` key order.\n- Reset per-chat refs on route changes: event index, known initial events, stream events, resumed events, local events, pending bubbles, resume-started flags, and finalize timers.\n\n## Streaming\n\n- `useEveAgent` reduces Eve events into renderable messages; the template wraps it with a custom `ClientSession` to persist and resume sessions.\n- Treat `content.delta.data.delta` as the new text for its `partId`. Treat reduced message text and rendered parts as cumulative; `content.completed` carries a part's whole value.\n- Read the stream as NDJSON. Buffering until newline is normal parsing, not app-level response buffering.\n- Consider a turn settled on an event `endsTurn` from `eve\u002Fclient` accepts: `turn.settled`, `session.ended`, or a `turn.paused` awaiting a person. Treat a sign-in `interaction.opened` (`request.kind: \"sign-in\"`) as a blocked state for normal text input.\n- Treat a `turn.paused` awaiting only calls as progress, not a settled turn: the turn waits on its tasks and resumes with `turn.resumed` for the same `turnId`. Keep following the stream until one of the settling events above.\n- On disconnect, reconnect from the next unread remote stream index. On refresh mid-turn, resume from saved `activeChat.session` and layer resumed events until the final snapshot catches up.\n\n## Connections And Tools\n\n- Define local tools in `agent\u002Ftools\u002F\u003Csnake_case>.ts` with `defineTool(...)`. Tool filenames become runtime tool names, so keep them ASCII snake_case.\n- Define Vercel Connect-backed MCP connections in `agent\u002Fconnections\u002F\u003Cname>.ts` with `defineMcpClientConnection(...)` and `connect(process.env.ENV_NAME ?? \"local-name\")`.\n- Treat composer connection toggles as per-turn intent, not connector provisioning or OAuth state.\n- Do not parse assistant text for auth requirements. Use sign-in `interaction.opened` and `interaction.settled` events.\n- Implement Skip as a structured outcome: stop the stream, synthesize a declined `interaction.settled` plus a cancelled `turn.settled`, apply those local events to the chat, persist them, and clear pending input. The chat's next message starts a new session.\n\n## Upstream Signals\n\n- Prefer upstreaming generic Eve lifecycle needs: `onSessionStarted(session)`, hook-level resume APIs, durable event persistence adapters, authorization continuation helpers, structured connection policy, and stream debug helpers.\n- Keep template-specific concerns in the template: Better Auth UX, Neon\u002FDrizzle schema, Upstash limits, sidebar pagination, Notion UI toggles, and setup docs.\n- Do not split server events just to make coarse provider deltas look token-level. Preserve wire semantics and smooth only at the UI layer when needed.\n\n## Verification\n\n- Run `pnpm typecheck` for protocol\u002Ftype changes and `pnpm build` before opening a PR that touches runtime, routes, or docs examples.\n- Manually verify first message, follow-up send, refresh during a response, authorization Connect\u002FSkip, disabled input while auth is pending, and Notion enabled\u002Fdisabled turns when those flows are touched.\n",{"name":5,"description":7},"main","a318dcf054343b7a9007dd4e4367ac19374a6809","apps\u002Ftemplates\u002Feve-chat-template\u002F.agents\u002Fskills\u002Feve-chat-template-eve",656,"https:\u002F\u002Fgithub.com\u002Fvercel\u002Feve","https:\u002F\u002Feve.dev","https:\u002F\u002Fgithub.com\u002Fvercel","https:\u002F\u002Fvercel.com","Agentic infrastructure for every app and agent.","2026-11-15 05:08:34",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add vercel\u002Feve --skill eve-chat-template-eve",{"tool":40,"command":41},"bunx","bunx skills add vercel\u002Feve --skill eve-chat-template-eve",{"tool":43,"command":44},"pnpm","pnpm dlx skills add vercel\u002Feve --skill eve-chat-template-eve","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fvercel\u002Feve\u002Fblob\u002Fmain\u002Fapps\u002Ftemplates\u002Feve-chat-template\u002F.agents\u002Fskills\u002Feve-chat-template-eve\u002FSKILL.md",true,[48],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"agents\u002Fopenai.yaml","REFERENCE","参考文档",254,"https:\u002F\u002Fgithub.com\u002Fvercel\u002Feve\u002Fblob\u002Fmain\u002Fapps\u002Ftemplates\u002Feve-chat-template\u002F.agents\u002Fskills\u002Feve-chat-template-eve\u002Fagents\u002Fopenai.yaml",[55,63,69,76,83,90],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":62},"01M7DYJETPKENT6T9THCB7WKFD","writing-quality","The review rubric: writing-quality rules and reference lists for judging a content draft, covering AI-sounding phrasing, bloated wording, structure, and web-content specs. Load at the start of every review.","https:\u002F\u002Fgithub.com\u002Fvercel\u002Feve\u002Fblob\u002Fmain\u002Fapps\u002Ftemplates\u002Fsanity-copilot-eve-template\u002Fagent\u002Fsubagents\u002Freviewer\u002Fskills\u002Fwriting-quality\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":64,"name":57,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":62},"01M7DYJAZM6Y5VNF2PCM01N145","Writing-quality guardrails for any prose the agent drafts or edits: blog posts, page copy, Notion drafts, release notes, marketing text. Use this skill whenever writing or revising content meant for humans to read, to keep the prose natural, plain, and free of AI-sounding phrasing. Not needed for code, queries, or structural CMS work.","https:\u002F\u002Fgithub.com\u002Fvercel\u002Feve\u002Fblob\u002Fmain\u002Fapps\u002Ftemplates\u002Fsanity-copilot-eve-template\u002Fagent\u002Fskills\u002Fwriting-quality\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":62},"01M7DYJ40G4YADA5P8YAEQ7W7F","seo-aeo-best-practices","SEO and AEO best practices for metadata, Open Graph, sitemaps, robots.txt, hreflang, JSON-LD structured data, EEAT, and content optimized for search engines and AI answer surfaces. Use this skill when implementing page SEO, technical SEO, schema markup, international SEO, AI-overview readiness, or improving content for Google, ChatGPT, Perplexity, and similar assistants.","https:\u002F\u002Fgithub.com\u002Fvercel\u002Feve\u002Fblob\u002Fmain\u002Fapps\u002Ftemplates\u002Fsanity-copilot-eve-template\u002Fagent\u002Fskills\u002Fseo-aeo-best-practices\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":62},"01M7DYHX5JXJFHF2DZV64VFC13","sanity-best-practices","Sanity development best practices for schema design, GROQ queries, TypeGen, Visual Editing, images, Portable Text, Studio structure, localization, migrations, Sanity Functions, Blueprints, and framework integrations such as Next.js, Nuxt, Astro, Remix, SvelteKit, Angular, Hydrogen, and the App SDK. Use this skill whenever working with Sanity schemas, defineType or defineField, GROQ or defineQuery, content modeling, Presentation or preview setups, Sanity-powered frontend integrations, Sanity Functions, documentEventHandler, defineDocumentFunction, defineMediaLibraryAssetFunction, @sanity\u002Ffunctions, @sanity\u002Fblueprints, sanity.blueprint.ts, event-driven content automation, or when reviewing and fixing a Sanity codebase.","https:\u002F\u002Fgithub.com\u002Fvercel\u002Feve\u002Fblob\u002Fmain\u002Fapps\u002Ftemplates\u002Fsanity-copilot-eve-template\u002Fagent\u002Fskills\u002Fsanity-best-practices\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":62},"01M7DYHQG96APC7EV3FANC90WX","portable-text-serialization","Render and serialize Portable Text to React, Svelte, Vue, Astro, HTML, Markdown, and plain text. Use when implementing Portable Text rendering in any frontend framework, building custom serializers for non-standard block types, converting Portable Text to HTML strings server-side, converting Portable Text to Markdown, extracting plain text from Portable Text, or troubleshooting rendering issues with marks, blocks, lists, or custom types.","https:\u002F\u002Fgithub.com\u002Fvercel\u002Feve\u002Fblob\u002Fmain\u002Fapps\u002Ftemplates\u002Fsanity-copilot-eve-template\u002Fagent\u002Fskills\u002Fportable-text-serialization\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":62},"01M7DYHJJ89WGRXXVWJAQNQW9M","portable-text-conversion","Convert HTML and Markdown content into Portable Text blocks for Sanity. Use when migrating content from legacy CMSs, importing HTML or Markdown into Sanity, building content pipelines that ingest external content, converting rich text between formats, or programmatically creating Portable Text documents. Covers @portabletext\u002Fmarkdown (markdownToPortableText), @portabletext\u002Fblock-tools (htmlToBlocks), custom deserializers, and the Portable Text specification for manual block construction.","https:\u002F\u002Fgithub.com\u002Fvercel\u002Feve\u002Fblob\u002Fmain\u002Fapps\u002Ftemplates\u002Fsanity-copilot-eve-template\u002Fagent\u002Fskills\u002Fportable-text-conversion\u002FSKILL.md",[],[]]