[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6K1JR8FJBFYQ35NFS3M97RV":3,"skill-same:01M6K1JR8FJBFYQ35NFS3M97RV":182},{"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":159,"commitSha":160,"skillDirectory":161,"forksCount":162,"repositoryHtmlUrl":163,"repositoryHomepageUrl":6,"ownerHtmlUrl":164,"ownerBlogUrl":165,"ownerDescription":166,"updatedAt":167,"install":168,"resources":181},"01M6K1JR8FJBFYQ35NFS3M97RV","ai-generation-persistence",null,"AI generation persistence patterns — unique IDs, addressable URLs, database storage, and cost tracking for every LLM generation","NagyVikt\u002Fcodex-plugins","NagyVikt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F137165288?v=4","01M6K0SJ3R2DAZRJKJJS10VN87","Viktor Nagy","01M6K0SJ9HXN0GBD91QDQ9WNVV",2,"MIT","https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fai-generation-persistence\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000010","后端与接口","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000016","图像与多媒体",[27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],"persistence","generation","ai generation persistence","messages","URL","loading","app","db","text","access","api","ids","image","ai gateway","github actions","ci","actions","database","auth","workflow","2026-11-10 10:12:30",false,"---\nname: ai-generation-persistence\ndescription: \"AI generation persistence patterns — unique IDs, addressable URLs, database storage, and cost tracking for every LLM generation\"\nsummary: \"Persist every AI generation: unique ID, save to DB\u002FBlob, addressable URL \u002Fchat\u002F[id], track token cost\"\nmetadata:\n  priority: 6\n  docs:\n    - \"https:\u002F\u002Fsdk.vercel.ai\u002Fdocs\u002Fai-sdk-ui\u002Fstoring-messages\"\n  sitemap: \"https:\u002F\u002Fsdk.vercel.ai\u002Fsitemap.xml\"\n  pathPatterns:\n    - \"app\u002Fapi\u002Fgenerate\u002F**\"\n    - \"app\u002Fapi\u002Fgenerations\u002F**\"\n    - \"src\u002Fapp\u002Fapi\u002Fgenerate\u002F**\"\n    - \"src\u002Fapp\u002Fapi\u002Fgenerations\u002F**\"\n    - \"app\u002Fchat\u002F[id]\u002F**\"\n    - \"app\u002Fgenerate\u002F[id]\u002F**\"\n    - \"src\u002Fapp\u002Fchat\u002F[id]\u002F**\"\n    - \"src\u002Fapp\u002Fgenerate\u002F[id]\u002F**\"\n    - \"lib\u002Fgenerations\u002F**\"\n    - \"src\u002Flib\u002Fgenerations\u002F**\"\n  bashPatterns: []\n  importPatterns:\n    - \"ai\"\n    - \"@ai-sdk\u002F*\"\n    - \"@vercel\u002Fblob\"\n    - \"nanoid\"\n    - \"@paralleldrive\u002Fcuid2\"\n  promptSignals:\n    phrases:\n      - \"save generations\"\n      - \"persist generations\"\n      - \"generation history\"\n      - \"chat history\"\n      - \"save chat\"\n      - \"generation id\"\n      - \"ai chat\"\n      - \"chat app\"\n      - \"chatbot\"\n      - \"image generation\"\n      - \"text generation\"\n      - \"ai app\"\n    allOf:\n      - [generate, save]\n      - [generate, persist]\n      - [generate, store]\n      - [ai, persist]\n      - [ai, history]\n      - [ai, database]\n      - [chat, persist]\n      - [chat, database]\n      - [chat, url]\n      - [generation, url]\n      - [generation, id]\n      - [image, generate]\n      - [stream, save]\n      - [stream, persist]\n    anyOf:\n      - \"shareable\"\n      - \"retrievable\"\n      - \"permalink\"\n      - \"cost tracking\"\n      - \"token usage\"\n      - \"nanoid\"\n      - \"cuid\"\n      - \"openai\"\n      - \"anthropic\"\n      - \"llm\"\n      - \"gpt\"\n      - \"claude\"\n    noneOf:\n      - \"github actions\"\n      - \"ci workflow\"\n    minScore: 6\nvalidate:\n  -\n    pattern: \"streamText\\\\(|generateText\\\\(\"\n    message: \"Ensure this AI generation is persisted with a unique ID (nanoid\u002Fcuid2) — generations are expensive assets that should be saved and addressable via URL\"\n    severity: warn\n    skipIfFileContains: \"nanoid|cuid|createId|randomUUID|uuid\"\nretrieval:\n  aliases:\n    - ai storage\n    - generation history\n    - llm persistence\n    - ai audit\n  intents:\n    - save ai generations\n    - track llm costs\n    - store completions\n    - persist ai output\n  entities:\n    - generation ID\n    - addressable URL\n    - cost tracking\n    - LLM generation\nchainTo:\n  -\n    pattern: 'streamText\\s*\\(|generateText\\s*\\('\n    targetSkill: ai-gateway\n    message: 'AI generation call without cost tracking — loading AI Gateway guidance for OIDC auth, usage attribution, and per-generation cost visibility.'\n    skipIfFileContains: 'gateway\\(|@ai-sdk\u002Fgateway|ai-gateway|providerOptions.*gateway|usage.*cost|trackUsage'\n  -\n    pattern: 'from\\s+[''\"]@vercel\u002Fblob[''\"\"]'\n    targetSkill: vercel-storage\n    message: 'Vercel Blob import detected for generation persistence — loading Storage guidance for blob upload patterns, ETags, and client upload helpers.'\n    skipIfFileContains: 'put\\(\\s*.*\\{.*access|del\\(\\s*.*url'\n\n---\n\n# AI Generation Persistence\n\n**AI generations are expensive, non-reproducible assets. Never discard them.**\n\nEvery call to an LLM costs real money and produces unique output that cannot be exactly reproduced. Treat generations like database records — assign an ID, persist immediately, and make them retrievable.\n\n## Core Rules\n\n1. **Generate an ID before the LLM call** — use `nanoid()` or `createId()` from `@paralleldrive\u002Fcuid2`\n2. **Persist every generation** — text and metadata to database, images and files to Vercel Blob\n3. **Make every generation addressable** — URL pattern: `\u002Fchat\u002F[id]`, `\u002Fgenerate\u002F[id]`, `\u002Fimage\u002F[id]`\n4. **Track metadata** — model name, token usage, estimated cost, timestamp, user ID\n5. **Never stream without saving** — if the user refreshes, the generation must survive\n\n## Generate-Then-Redirect Pattern\n\nThe standard UX flow for AI features: create the resource first, then redirect to its page.\n\n```ts\n\u002F\u002F app\u002Fapi\u002Fchat\u002Froute.ts\nimport { nanoid } from \"nanoid\";\nimport { db } from \"@\u002Flib\u002Fdb\";\nimport { redirect } from \"next\u002Fnavigation\";\n\nexport async function POST(req: Request) {\n  const { prompt, model } = await req.json();\n  const id = nanoid();\n\n  \u002F\u002F Create the record BEFORE generation starts\n  await db.insert(generations).values({\n    id,\n    prompt,\n    model,\n    status: \"pending\",\n    createdAt: new Date(),\n  });\n\n  \u002F\u002F Redirect to the generation page — it handles streaming\n  redirect(`\u002Fchat\u002F${id}`);\n}\n```\n\n```tsx\n\u002F\u002F app\u002Fchat\u002F[id]\u002Fpage.tsx\nimport { db } from \"@\u002Flib\u002Fdb\";\nimport { notFound } from \"next\u002Fnavigation\";\n\nexport default async function ChatPage({ params }: { params: Promise\u003C{ id: string }> }) {\n  const { id } = await params;\n  const generation = await db.query.generations.findFirst({\n    where: eq(generations.id, id),\n  });\n  if (!generation) notFound();\n\n  \u002F\u002F Render with streaming if still pending, or show saved result\n  return \u003CChatView generation={generation} \u002F>;\n}\n```\n\nThis gives you: shareable URLs, back-button support, multi-tab sessions, and generation history for free.\n\n## Persistence Schema\n\n```ts\n\u002F\u002F lib\u002Fdb\u002Fschema.ts\nimport { pgTable, text, integer, timestamp, jsonb } from \"drizzle-orm\u002Fpg-core\";\n\nexport const generations = pgTable(\"generations\", {\n  id: text(\"id\").primaryKey(),            \u002F\u002F nanoid\n  userId: text(\"user_id\"),                \u002F\u002F auth user\n  model: text(\"model\").notNull(),         \u002F\u002F \"openai\u002Fgpt-5.4\"\n  prompt: text(\"prompt\"),                 \u002F\u002F input text\n  result: text(\"result\"),                 \u002F\u002F generated output\n  imageUrls: jsonb(\"image_urls\"),         \u002F\u002F Blob URLs for generated images\n  tokenUsage: jsonb(\"token_usage\"),       \u002F\u002F { promptTokens, completionTokens }\n  estimatedCostCents: integer(\"estimated_cost_cents\"),\n  status: text(\"status\").default(\"pending\"), \u002F\u002F pending | streaming | complete | error\n  createdAt: timestamp(\"created_at\").defaultNow(),\n});\n```\n\n## Storage Strategy\n\n| Data Type | Storage | Why |\n|-----------|---------|-----|\n| Text, metadata, history | Neon Postgres via Drizzle | Queryable, relational, supports search |\n| Generated images & files | Vercel Blob (`@vercel\u002Fblob`) | Permanent URLs, CDN-backed, no expiry |\n| Prompt dedup cache | Upstash Redis | Fast lookup, TTL-based expiry |\n\n## Image Persistence\n\nNever serve generated images as ephemeral base64 or temporary URLs. Save to Blob immediately:\n\n```ts\nimport { put } from \"@vercel\u002Fblob\";\nimport { generateText } from \"ai\";\n\nconst result = await generateText({ model, prompt });\n\n\u002F\u002F Save every generated image to permanent storage\nconst imageUrls: string[] = [];\nfor (const file of result.files ?? []) {\n  if (file.mediaType?.startsWith(\"image\u002F\")) {\n    const ext = file.mediaType.split(\"\u002F\")[1] || \"png\";\n    const blob = await put(`generations\u002F${generationId}.${ext}`, file.uint8Array, {\n      access: \"public\",\n      contentType: file.mediaType,\n    });\n    imageUrls.push(blob.url);\n  }\n}\n\n\u002F\u002F Update the generation record with permanent URLs\nawait db.update(generations)\n  .set({ imageUrls, status: \"complete\" })\n  .where(eq(generations.id, generationId));\n```\n\n## Cost Tracking\n\nExtract usage from every generation and store it. This enables billing, budgeting, and abuse detection:\n\n```ts\nconst result = await generateText({ model, prompt });\n\nconst usage = result.usage; \u002F\u002F { promptTokens, completionTokens, totalTokens }\nconst estimatedCostCents = estimateCost(model, usage);\n\nawait db.update(generations).set({\n  result: result.text,\n  tokenUsage: usage,\n  estimatedCostCents,\n  status: \"complete\",\n}).where(eq(generations.id, generationId));\n```\n\n## Prompt Dedup \u002F Caching\n\nAvoid paying for identical generations. Cache by content hash:\n\n```ts\nimport { Redis } from \"@upstash\u002Fredis\";\nimport { createHash } from \"crypto\";\n\nconst redis = Redis.fromEnv();\n\nfunction hashPrompt(model: string, prompt: string): string {\n  return createHash(\"sha256\").update(`${model}:${prompt}`).digest(\"hex\");\n}\n\n\u002F\u002F Check cache before generating\nconst cacheKey = `gen:${hashPrompt(model, prompt)}`;\nconst cached = await redis.get\u003Cstring>(cacheKey);\nif (cached) return cached; \u002F\u002F Return cached generation ID\n\n\u002F\u002F After generation, cache the result\nawait redis.set(cacheKey, generationId, { ex: 3600 }); \u002F\u002F 1hr TTL\n```\n\n## Anti-Patterns\n\n- **Streaming to client without saving** — generation lost on page refresh. Always write to DB as tokens arrive or on completion.\n- **Routes without `[id]` segments** — `\u002Fapi\u002Fchat` with no ID means generations aren't addressable. Use `\u002Fchat\u002F[id]`.\n- **Re-generating identical prompts** — check cache first. Same prompt + same model = same cost for no new value.\n- **Ephemeral base64 images** — generated images served inline are lost when the component unmounts. Save to Vercel Blob.\n- **Missing metadata** — always store model name, token counts, and timestamp. You need this for cost tracking and debugging.\n- **Client-only state** — storing generations only in React state or localStorage. Use a database — generations must survive across devices and sessions.\n","# AI Generation Persistence\n\n**AI generations are expensive, non-reproducible assets. Never discard them.**\n\nEvery call to an LLM costs real money and produces unique output that cannot be exactly reproduced. Treat generations like database records — assign an ID, persist immediately, and make them retrievable.\n\n## Core Rules\n\n1. **Generate an ID before the LLM call** — use `nanoid()` or `createId()` from `@paralleldrive\u002Fcuid2`\n2. **Persist every generation** — text and metadata to database, images and files to Vercel Blob\n3. **Make every generation addressable** — URL pattern: `\u002Fchat\u002F[id]`, `\u002Fgenerate\u002F[id]`, `\u002Fimage\u002F[id]`\n4. **Track metadata** — model name, token usage, estimated cost, timestamp, user ID\n5. **Never stream without saving** — if the user refreshes, the generation must survive\n\n## Generate-Then-Redirect Pattern\n\nThe standard UX flow for AI features: create the resource first, then redirect to its page.\n\n```ts\n\u002F\u002F app\u002Fapi\u002Fchat\u002Froute.ts\nimport { nanoid } from \"nanoid\";\nimport { db } from \"@\u002Flib\u002Fdb\";\nimport { redirect } from \"next\u002Fnavigation\";\n\nexport async function POST(req: Request) {\n  const { prompt, model } = await req.json();\n  const id = nanoid();\n\n  \u002F\u002F Create the record BEFORE generation starts\n  await db.insert(generations).values({\n    id,\n    prompt,\n    model,\n    status: \"pending\",\n    createdAt: new Date(),\n  });\n\n  \u002F\u002F Redirect to the generation page — it handles streaming\n  redirect(`\u002Fchat\u002F${id}`);\n}\n```\n\n```tsx\n\u002F\u002F app\u002Fchat\u002F[id]\u002Fpage.tsx\nimport { db } from \"@\u002Flib\u002Fdb\";\nimport { notFound } from \"next\u002Fnavigation\";\n\nexport default async function ChatPage({ params }: { params: Promise\u003C{ id: string }> }) {\n  const { id } = await params;\n  const generation = await db.query.generations.findFirst({\n    where: eq(generations.id, id),\n  });\n  if (!generation) notFound();\n\n  \u002F\u002F Render with streaming if still pending, or show saved result\n  return \u003CChatView generation={generation} \u002F>;\n}\n```\n\nThis gives you: shareable URLs, back-button support, multi-tab sessions, and generation history for free.\n\n## Persistence Schema\n\n```ts\n\u002F\u002F lib\u002Fdb\u002Fschema.ts\nimport { pgTable, text, integer, timestamp, jsonb } from \"drizzle-orm\u002Fpg-core\";\n\nexport const generations = pgTable(\"generations\", {\n  id: text(\"id\").primaryKey(),            \u002F\u002F nanoid\n  userId: text(\"user_id\"),                \u002F\u002F auth user\n  model: text(\"model\").notNull(),         \u002F\u002F \"openai\u002Fgpt-5.4\"\n  prompt: text(\"prompt\"),                 \u002F\u002F input text\n  result: text(\"result\"),                 \u002F\u002F generated output\n  imageUrls: jsonb(\"image_urls\"),         \u002F\u002F Blob URLs for generated images\n  tokenUsage: jsonb(\"token_usage\"),       \u002F\u002F { promptTokens, completionTokens }\n  estimatedCostCents: integer(\"estimated_cost_cents\"),\n  status: text(\"status\").default(\"pending\"), \u002F\u002F pending | streaming | complete | error\n  createdAt: timestamp(\"created_at\").defaultNow(),\n});\n```\n\n## Storage Strategy\n\n| Data Type | Storage | Why |\n|-----------|---------|-----|\n| Text, metadata, history | Neon Postgres via Drizzle | Queryable, relational, supports search |\n| Generated images & files | Vercel Blob (`@vercel\u002Fblob`) | Permanent URLs, CDN-backed, no expiry |\n| Prompt dedup cache | Upstash Redis | Fast lookup, TTL-based expiry |\n\n## Image Persistence\n\nNever serve generated images as ephemeral base64 or temporary URLs. Save to Blob immediately:\n\n```ts\nimport { put } from \"@vercel\u002Fblob\";\nimport { generateText } from \"ai\";\n\nconst result = await generateText({ model, prompt });\n\n\u002F\u002F Save every generated image to permanent storage\nconst imageUrls: string[] = [];\nfor (const file of result.files ?? []) {\n  if (file.mediaType?.startsWith(\"image\u002F\")) {\n    const ext = file.mediaType.split(\"\u002F\")[1] || \"png\";\n    const blob = await put(`generations\u002F${generationId}.${ext}`, file.uint8Array, {\n      access: \"public\",\n      contentType: file.mediaType,\n    });\n    imageUrls.push(blob.url);\n  }\n}\n\n\u002F\u002F Update the generation record with permanent URLs\nawait db.update(generations)\n  .set({ imageUrls, status: \"complete\" })\n  .where(eq(generations.id, generationId));\n```\n\n## Cost Tracking\n\nExtract usage from every generation and store it. This enables billing, budgeting, and abuse detection:\n\n```ts\nconst result = await generateText({ model, prompt });\n\nconst usage = result.usage; \u002F\u002F { promptTokens, completionTokens, totalTokens }\nconst estimatedCostCents = estimateCost(model, usage);\n\nawait db.update(generations).set({\n  result: result.text,\n  tokenUsage: usage,\n  estimatedCostCents,\n  status: \"complete\",\n}).where(eq(generations.id, generationId));\n```\n\n## Prompt Dedup \u002F Caching\n\nAvoid paying for identical generations. Cache by content hash:\n\n```ts\nimport { Redis } from \"@upstash\u002Fredis\";\nimport { createHash } from \"crypto\";\n\nconst redis = Redis.fromEnv();\n\nfunction hashPrompt(model: string, prompt: string): string {\n  return createHash(\"sha256\").update(`${model}:${prompt}`).digest(\"hex\");\n}\n\n\u002F\u002F Check cache before generating\nconst cacheKey = `gen:${hashPrompt(model, prompt)}`;\nconst cached = await redis.get\u003Cstring>(cacheKey);\nif (cached) return cached; \u002F\u002F Return cached generation ID\n\n\u002F\u002F After generation, cache the result\nawait redis.set(cacheKey, generationId, { ex: 3600 }); \u002F\u002F 1hr TTL\n```\n\n## Anti-Patterns\n\n- **Streaming to client without saving** — generation lost on page refresh. Always write to DB as tokens arrive or on completion.\n- **Routes without `[id]` segments** — `\u002Fapi\u002Fchat` with no ID means generations aren't addressable. Use `\u002Fchat\u002F[id]`.\n- **Re-generating identical prompts** — check cache first. Same prompt + same model = same cost for no new value.\n- **Ephemeral base64 images** — generated images served inline are lost when the component unmounts. Save to Vercel Blob.\n- **Missing metadata** — always store model name, token counts, and timestamp. You need this for cost tracking and debugging.\n- **Client-only state** — storing generations only in React state or localStorage. Use a database — generations must survive across devices and sessions.\n",{"name":5,"chainTo":52,"summary":63,"metadata":64,"validate":139,"retrieval":145,"description":7},[53,58],{"message":54,"pattern":55,"targetSkill":56,"skipIfFileContains":57},"AI generation call without cost tracking — loading AI Gateway guidance for OIDC auth, usage attribution, and per-generation cost visibility.","streamText\\s*\\(|generateText\\s*\\(","ai-gateway","gateway\\(|@ai-sdk\u002Fgateway|ai-gateway|providerOptions.*gateway|usage.*cost|trackUsage",{"message":59,"pattern":60,"targetSkill":61,"skipIfFileContains":62},"Vercel Blob import detected for generation persistence — loading Storage guidance for blob upload patterns, ETags, and client upload helpers.","from\\s+['\"]@vercel\u002Fblob['\"\"]","vercel-storage","put\\(\\s*.*\\{.*access|del\\(\\s*.*url","Persist every AI generation: unique ID, save to DB\u002FBlob, addressable URL \u002Fchat\u002F[id], track token cost",{"docs":65,"sitemap":67,"priority":68,"bashPatterns":69,"pathPatterns":70,"promptSignals":81,"importPatterns":135},[66],"https:\u002F\u002Fsdk.vercel.ai\u002Fdocs\u002Fai-sdk-ui\u002Fstoring-messages","https:\u002F\u002Fsdk.vercel.ai\u002Fsitemap.xml",6,[],[71,72,73,74,75,76,77,78,79,80],"app\u002Fapi\u002Fgenerate\u002F**","app\u002Fapi\u002Fgenerations\u002F**","src\u002Fapp\u002Fapi\u002Fgenerate\u002F**","src\u002Fapp\u002Fapi\u002Fgenerations\u002F**","app\u002Fchat\u002F[id]\u002F**","app\u002Fgenerate\u002F[id]\u002F**","src\u002Fapp\u002Fchat\u002F[id]\u002F**","src\u002Fapp\u002Fgenerate\u002F[id]\u002F**","lib\u002Fgenerations\u002F**","src\u002Flib\u002Fgenerations\u002F**",{"allOf":82,"anyOf":107,"noneOf":120,"phrases":122,"minScore":68},[83,86,88,90,92,94,95,97,98,100,101,103,104,106],[84,85],"generate","save",[84,87],"persist",[84,89],"store",[91,87],"ai",[91,93],"history",[91,44],[96,87],"chat",[96,44],[96,99],"url",[28,99],[28,102],"id",[39,84],[105,85],"stream",[105,87],[108,109,110,111,112,113,114,115,116,117,118,119],"shareable","retrievable","permalink","cost tracking","token usage","nanoid","cuid","openai","anthropic","llm","gpt","claude",[41,121],"ci workflow",[123,124,125,126,127,128,129,130,131,132,133,134],"save generations","persist generations","generation history","chat history","save chat","generation id","ai chat","chat app","chatbot","image generation","text generation","ai app",[91,136,137,113,138],"@ai-sdk\u002F*","@vercel\u002Fblob","@paralleldrive\u002Fcuid2",[140],{"message":141,"pattern":142,"severity":143,"skipIfFileContains":144},"Ensure this AI generation is persisted with a unique ID (nanoid\u002Fcuid2) — generations are expensive assets that should be saved and addressable via URL","streamText\\(|generateText\\(","warn","nanoid|cuid|createId|randomUUID|uuid",{"aliases":146,"intents":150,"entities":155},[147,125,148,149],"ai storage","llm persistence","ai audit",[151,152,153,154],"save ai generations","track llm costs","store completions","persist ai output",[156,157,111,158],"generation ID","addressable URL","LLM generation","main","9a4409c8751439c3aeeea2bc3940ba05dc3cd3b5","plugins\u002Fvercel\u002Fskills\u002Fai-generation-persistence",0,"https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins","https:\u002F\u002Fgithub.com\u002FNagyVikt","https:\u002F\u002Fwebu.hu\u002F","Codex is a tool they said...\r\n\r\nCreator of GitGuardex, CueCards. Tech stack: Next.js · TypeScript · Rust · Linux. ","2026-03-30 02:19:53",{"source":8,"skillName":5,"commands":169,"prompt":179,"zipAvailable":180},[170,173,176],{"tool":171,"command":172},"npx","npx skills add NagyVikt\u002Fcodex-plugins --skill ai-generation-persistence",{"tool":174,"command":175},"bunx","bunx skills add NagyVikt\u002Fcodex-plugins --skill ai-generation-persistence",{"tool":177,"command":178},"pnpm","pnpm dlx skills add NagyVikt\u002Fcodex-plugins --skill ai-generation-persistence","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fai-generation-persistence\u002FSKILL.md",true,[],[183,220,250,272,301,323],{"skillNo":184,"name":46,"nameZh":6,"description":185,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":186,"categories":187,"keywords":200,"publishedAt":47},"01M6K1ZEN8P9R2S6NPNJNJ8JVH","Vercel Workflow DevKit (WDK) expert guidance. Use when building durable workflows, long-running tasks, API routes or agents that need pause\u002Fresume, retries, step-based execution, or crash-safe orchestration with Vercel Workflow.","https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fworkflow\u002FSKILL.md",[188,189,192,197],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":190,"categoryName":191,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",{"categoryNo":193,"categoryName":194,"taxonomyType":195,"taxonomyTypeDesc":196},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",{"categoryNo":198,"categoryName":199,"taxonomyType":195,"taxonomyTypeDesc":196},"01JBSEEDCAT000000000000038","人力资源",[46,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219],"workflows","create","run","streaming","logs","start","why","loop","wait for","branch","auto","log","conversation","human","lib","condition","rendering","retries","sleep",{"skillNo":221,"name":222,"nameZh":6,"description":223,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":224,"categories":225,"keywords":236,"publishedAt":47},"01M6K1Z71NWFSPHK2VJJ73MVSY","verification","Full-story verification — infers what the user is building, then verifies the complete flow end-to-end: browser → API → data → response. Triggers on dev server start and 'why isn't this working' signals.","https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fverification\u002FSKILL.md",[226,229,230,233],{"categoryNo":227,"categoryName":228,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000008","测试与质量",{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":231,"categoryName":232,"taxonomyType":195,"taxonomyTypeDesc":196},"01JBSEEDCAT000000000000031","产品经理",{"categoryNo":234,"categoryName":235,"taxonomyType":195,"taxonomyTypeDesc":196},"01JBSEEDCAT000000000000033","数据分析师",[222,45,204,237,37,238,210,239,240,241,242,243,244,33,245,246,247,248,32,249],"routing middleware","projects","user story","full stack","jest","local","project","end","false","unit","error","middleware","unit test",{"skillNo":251,"name":61,"nameZh":6,"description":252,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":253,"categories":254,"keywords":256,"publishedAt":47},"01M6K1YPRYJS3BQEDP8HKBHPEJ","Vercel storage expert guidance — Blob, Edge Config, and Marketplace storage (Neon Postgres, Upstash Redis). Use when choosing, configuring, or using data storage with Vercel applications.","https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fvercel-storage\u002FSKILL.md",[255],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[257,258,259,260,203,261,262,211,263,264,265,266,267,268,33,215,269,270,31,271],"storage","vercel storage","vercel","config","supabase","migrate","router","clerk","expert","prisma","connection pooling","neon","turso","upstash","auth0",{"skillNo":273,"name":274,"nameZh":6,"description":275,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":276,"categories":277,"keywords":285,"publishedAt":47},"01M6K1YFEP0GPPGMQ3D0FPTS27","vercel-services","Vercel Services — deploy multiple services within a single Vercel project. Use for monorepo layouts or when combining a backend (Python, Go) with a frontend (Next.js, Vite) in one deployment.","https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fvercel-services\u002FSKILL.md",[278,281,282],{"categoryNo":279,"categoryName":280,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000009","前端开发",{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":283,"categoryName":284,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000011","运维与部署",[286,287,259,288,289,290,291,292,293,294,295,159,296,297,243,298,33,299,247,300],"vercel services","services","frontend","docker compose","SET","configure","monorepo","go api","fastapi","up","aws lambda","go backend","get","apps","python backend",{"skillNo":302,"name":303,"nameZh":6,"description":304,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":305,"categories":306,"keywords":307,"publishedAt":47},"01M6K1Y8S3CRD43DPKX0PK1MTT","vercel-sandbox","Vercel Sandbox guidance — ephemeral Firecracker microVMs for running untrusted code safely. Supports AI agents, code generation, and experimentation. Use when executing user-generated or AI-generated code in isolation.","https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fvercel-sandbox\u002FSKILL.md",[],[308,309,259,310,311,202,203,312,313,314,315,316,317,318,319,320,32,321,303,322],"sandbox","vercel sandbox","safe","ai agents","code","ai sdk","Code Generation","playground","generated","spawn","install","runner","io","child","student",{"skillNo":324,"name":325,"nameZh":6,"description":326,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":327,"categories":328,"keywords":330,"publishedAt":47},"01M6K1Y1J8S7AN97H75SHBGF7J","vercel-queues","Vercel Queues guidance (public beta) — durable event streaming with topics, consumer groups, retries, and delayed delivery. $0.60\u002F1M ops. Powers Workflow DevKit. Use when building async processing, fan-out patterns, or event-driven architectures.","https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fvercel-queues\u002FSKILL.md",[329],{"categoryNo":190,"categoryName":191,"taxonomyType":21,"taxonomyTypeDesc":22},[331,259,46,201,204,332,290,37,291,295,333,334,335,336,33,215,337,218,32,338],"vercel queues","beta","message","delivery","across","worker","processing","at"]