[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ED1AMFZNX46RYF6G2MMN0V":3,"skill-same:01M7ED1AMFZNX46RYF6G2MMN0V":70},{"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":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M7ED1AMFZNX46RYF6G2MMN0V","netlify-edge-functions",null,"编写 Netlify Edge Functions 的指南。在构建中间件、基于地理位置的逻辑、请求\u002F响应处理、身份验证检查、A\u002FB 测试，或任何低延迟边缘计算场景时使用。涵盖 Deno 运行时、`context.next()` 中间件模式、地理位置，以及何时选择边缘函数而非 Serverless 函数。","kael-odin\u002Fcodex-plugins-zh","kael-odin","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F166499071?v=4","01M7EBHJT87XN88WT3PEQ8ZGZK","Kael Odin","01M7EBHJVC91GD7PGJN3ZB14SG",37,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fkael-odin\u002Fcodex-plugins-zh\u002Fblob\u002Fmain\u002Fplugins\u002Fnetlify\u002Fskills\u002Fnetlify-edge-functions\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fkael-odin\u002Fcodex-plugins-zh\u002Fblob\u002Fmain\u002Fplugins\u002Fnetlify\u002Fskills\u002Fnetlify-edge-functions\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\r\nname: netlify-edge-functions\ndescription: \"编写 Netlify Edge Functions 的指南。在构建中间件、基于地理位置的逻辑、请求\u002F响应处理、身份验证检查、A\u002FB 测试，或任何低延迟边缘计算场景时使用。涵盖 Deno 运行时、`context.next()` 中间件模式、地理位置，以及何时选择边缘函数而非 Serverless 函数。\"\r\n---\r\n\r\n# Netlify Edge Functions\r\n\r\nEdge functions run on Netlify's globally distributed edge network (Deno runtime), providing low-latency responses close to users.\r\n\r\n## Syntax\r\n\r\n```typescript\r\nimport type { Config, Context } from \"@netlify\u002Fedge-functions\";\r\n\r\nexport default async (req: Request, context: Context) => {\r\n  return new Response(\"Hello from the edge!\");\r\n};\r\n\r\nexport const config: Config = {\r\n  path: \"\u002Fhello\",\r\n};\r\n```\r\n\r\nPlace files in `netlify\u002Fedge-functions\u002F`. Uses `.ts`, `.js`, `.tsx`, or `.jsx` extensions.\r\n\r\n## Config Object\r\n\r\n```typescript\r\nexport const config: Config = {\r\n  path: \"\u002Fapi\u002F*\",                    \u002F\u002F URLPattern path(s)\r\n  excludedPath: \"\u002Fapi\u002Fpublic\u002F*\",     \u002F\u002F Exclusions\r\n  method: [\"GET\", \"POST\"],           \u002F\u002F HTTP methods\r\n  onError: \"bypass\",                 \u002F\u002F \"fail\" (default), \"bypass\", or \"\u002Ferror-page\"\r\n  cache: \"manual\",                   \u002F\u002F Enable response caching\r\n};\r\n```\r\n\r\n## Middleware Pattern\r\n\r\nUse `context.next()` to invoke the next handler in the chain and optionally modify the response:\r\n\r\n```typescript\r\nexport default async (req: Request, context: Context) => {\r\n  \u002F\u002F Before: modify request or short-circuit\r\n  if (!isAuthenticated(req)) {\r\n    return new Response(\"Unauthorized\", { status: 401 });\r\n  }\r\n\r\n  \u002F\u002F Continue to origin\u002Fnext function\r\n  const response = await context.next();\r\n\r\n  \u002F\u002F After: modify response\r\n  response.headers.set(\"x-custom-header\", \"value\");\r\n  return response;\r\n};\r\n```\r\n\r\nReturn `undefined` to pass through without modification:\r\n\r\n```typescript\r\nexport default async (req: Request, context: Context) => {\r\n  if (!shouldHandle(req)) return; \u002F\u002F continues to next handler\r\n  return new Response(\"Handled\");\r\n};\r\n```\r\n\r\n## Geolocation and IP\r\n\r\n```typescript\r\nexport default async (req: Request, context: Context) => {\r\n  const { city, country, subdivision, timezone } = context.geo;\r\n  const ip = context.ip;\r\n\r\n  if (country?.code === \"DE\") {\r\n    return Response.redirect(new URL(\"\u002Fde\", req.url));\r\n  }\r\n};\r\n```\r\n\r\nLocal dev with mocked geo: `netlify dev --geo=mock --country=US`\r\n\r\n## Environment Variables\r\n\r\nUse `Netlify.env` (not `process.env` or `Deno.env`):\r\n\r\n```typescript\r\nconst secret = Netlify.env.get(\"API_SECRET\");\r\n```\r\n\r\n## Module Support\r\n\r\n- **Node.js builtins**: `import { randomBytes } from \"node:crypto\";`\r\n- **npm packages**: Install via npm and import by name\r\n- **Deno modules**: URL imports (e.g., `import X from \"https:\u002F\u002Fesm.sh\u002Fpackage\"`)\r\n\r\nFor URL imports, use an import map:\r\n\r\n```json\r\n\u002F\u002F import_map.json\r\n{ \"imports\": { \"html-rewriter\": \"https:\u002F\u002Fghuc.cc\u002Fworker-tools\u002Fhtml-rewriter\u002Findex.ts\" } }\r\n```\r\n\r\n```toml\r\n# netlify.toml\r\n[functions]\r\n  deno_import_map = \".\u002Fimport_map.json\"\r\n```\r\n\r\n## When to Use Edge vs Serverless\r\n\r\n| Use Edge Functions for | Use Serverless Functions for |\r\n|---|---|\r\n| Low-latency responses | Long-running operations (up to 15 min) |\r\n| Request\u002Fresponse manipulation | Complex Node.js dependencies |\r\n| Geolocation-based logic | Database-heavy operations |\r\n| Auth checks and redirects | Background\u002Fscheduled tasks |\r\n| A\u002FB testing, personalization | Tasks needing > 512 MB memory |\r\n\r\n## Limits\r\n\r\n| Resource | Limit |\r\n|---|---|\r\n| CPU time | 50 ms per request |\r\n| Memory | 512 MB per deployed set |\r\n| Response header timeout | 40 seconds |\r\n| Code size | 20 MB compressed |\r\n","# Netlify Edge Functions\r\n\r\nEdge functions run on Netlify's globally distributed edge network (Deno runtime), providing low-latency responses close to users.\r\n\r\n## Syntax\r\n\r\n```typescript\r\nimport type { Config, Context } from \"@netlify\u002Fedge-functions\";\r\n\r\nexport default async (req: Request, context: Context) => {\r\n  return new Response(\"Hello from the edge!\");\r\n};\r\n\r\nexport const config: Config = {\r\n  path: \"\u002Fhello\",\r\n};\r\n```\r\n\r\nPlace files in `netlify\u002Fedge-functions\u002F`. Uses `.ts`, `.js`, `.tsx`, or `.jsx` extensions.\r\n\r\n## Config Object\r\n\r\n```typescript\r\nexport const config: Config = {\r\n  path: \"\u002Fapi\u002F*\",                    \u002F\u002F URLPattern path(s)\r\n  excludedPath: \"\u002Fapi\u002Fpublic\u002F*\",     \u002F\u002F Exclusions\r\n  method: [\"GET\", \"POST\"],           \u002F\u002F HTTP methods\r\n  onError: \"bypass\",                 \u002F\u002F \"fail\" (default), \"bypass\", or \"\u002Ferror-page\"\r\n  cache: \"manual\",                   \u002F\u002F Enable response caching\r\n};\r\n```\r\n\r\n## Middleware Pattern\r\n\r\nUse `context.next()` to invoke the next handler in the chain and optionally modify the response:\r\n\r\n```typescript\r\nexport default async (req: Request, context: Context) => {\r\n  \u002F\u002F Before: modify request or short-circuit\r\n  if (!isAuthenticated(req)) {\r\n    return new Response(\"Unauthorized\", { status: 401 });\r\n  }\r\n\r\n  \u002F\u002F Continue to origin\u002Fnext function\r\n  const response = await context.next();\r\n\r\n  \u002F\u002F After: modify response\r\n  response.headers.set(\"x-custom-header\", \"value\");\r\n  return response;\r\n};\r\n```\r\n\r\nReturn `undefined` to pass through without modification:\r\n\r\n```typescript\r\nexport default async (req: Request, context: Context) => {\r\n  if (!shouldHandle(req)) return; \u002F\u002F continues to next handler\r\n  return new Response(\"Handled\");\r\n};\r\n```\r\n\r\n## Geolocation and IP\r\n\r\n```typescript\r\nexport default async (req: Request, context: Context) => {\r\n  const { city, country, subdivision, timezone } = context.geo;\r\n  const ip = context.ip;\r\n\r\n  if (country?.code === \"DE\") {\r\n    return Response.redirect(new URL(\"\u002Fde\", req.url));\r\n  }\r\n};\r\n```\r\n\r\nLocal dev with mocked geo: `netlify dev --geo=mock --country=US`\r\n\r\n## Environment Variables\r\n\r\nUse `Netlify.env` (not `process.env` or `Deno.env`):\r\n\r\n```typescript\r\nconst secret = Netlify.env.get(\"API_SECRET\");\r\n```\r\n\r\n## Module Support\r\n\r\n- **Node.js builtins**: `import { randomBytes } from \"node:crypto\";`\r\n- **npm packages**: Install via npm and import by name\r\n- **Deno modules**: URL imports (e.g., `import X from \"https:\u002F\u002Fesm.sh\u002Fpackage\"`)\r\n\r\nFor URL imports, use an import map:\r\n\r\n```json\r\n\u002F\u002F import_map.json\r\n{ \"imports\": { \"html-rewriter\": \"https:\u002F\u002Fghuc.cc\u002Fworker-tools\u002Fhtml-rewriter\u002Findex.ts\" } }\r\n```\r\n\r\n```toml\r\n# netlify.toml\r\n[functions]\r\n  deno_import_map = \".\u002Fimport_map.json\"\r\n```\r\n\r\n## When to Use Edge vs Serverless\r\n\r\n| Use Edge Functions for | Use Serverless Functions for |\r\n|---|---|\r\n| Low-latency responses | Long-running operations (up to 15 min) |\r\n| Request\u002Fresponse manipulation | Complex Node.js dependencies |\r\n| Geolocation-based logic | Database-heavy operations |\r\n| Auth checks and redirects | Background\u002Fscheduled tasks |\r\n| A\u002FB testing, personalization | Tasks needing > 512 MB memory |\r\n\r\n## Limits\r\n\r\n| Resource | Limit |\r\n|---|---|\r\n| CPU time | 50 ms per request |\r\n| Memory | 512 MB per deployed set |\r\n| Response header timeout | 40 seconds |\r\n| Code size | 20 MB compressed |\r\n",{"name":5,"description":7},"main","e3091d1b371a9dcd9455d333175f948b286fdfcf","plugins\u002Fnetlify\u002Fskills\u002Fnetlify-edge-functions",1,"https:\u002F\u002Fgithub.com\u002Fkael-odin\u002Fcodex-plugins-zh","https:\u002F\u002Fkael-odin.github.io\u002Fcodex-plugins-zh\u002F","https:\u002F\u002Fgithub.com\u002Fkael-odin","https:\u002F\u002Fkael-odin.github.io\u002Fodin-valhalla\u002F","Full-stack development • Open-source • System engineering\r\nTurning ideas into repositories.","2026-11-08 17:05:36",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add kael-odin\u002Fcodex-plugins-zh --skill netlify-edge-functions",{"tool":41,"command":42},"bunx","bunx skills add kael-odin\u002Fcodex-plugins-zh --skill netlify-edge-functions",{"tool":44,"command":45},"pnpm","pnpm dlx skills add kael-odin\u002Fcodex-plugins-zh --skill netlify-edge-functions","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkael-odin\u002Fcodex-plugins-zh\u002Fblob\u002Fmain\u002Fplugins\u002Fnetlify\u002Fskills\u002Fnetlify-edge-functions\u002FSKILL.md",true,[49,55,61,65],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"agents\u002Fopenai.yaml","REFERENCE","参考文档",358,"https:\u002F\u002Fgithub.com\u002Fkael-odin\u002Fcodex-plugins-zh\u002Fblob\u002Fmain\u002Fplugins\u002Fnetlify\u002Fskills\u002Fnetlify-edge-functions\u002Fagents\u002Fopenai.yaml",{"path":56,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":60},"assets\u002Fnetlify-small.svg","ASSET","资产文件",1302,"https:\u002F\u002Fgithub.com\u002Fkael-odin\u002Fcodex-plugins-zh\u002Fblob\u002Fmain\u002Fplugins\u002Fnetlify\u002Fskills\u002Fnetlify-edge-functions\u002Fassets\u002Fnetlify-small.svg",{"path":62,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":63,"sourceHtmlUrl":64},"assets\u002Fnetlify.png",2686,"https:\u002F\u002Fgithub.com\u002Fkael-odin\u002Fcodex-plugins-zh\u002Fblob\u002Fmain\u002Fplugins\u002Fnetlify\u002Fskills\u002Fnetlify-edge-functions\u002Fassets\u002Fnetlify.png",{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":16},"LICENSE.txt","LICENSE","许可证",10977,[71,79,87,95,102,109],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":75,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":20},"01M7EDVCKB89EF755PQMKV1BZA","android-emulator-qa","Use when validating Android feature flows in an emulator with adb-driven launch, input, UI-tree inspection, screenshots, and logcat capture.","https:\u002F\u002Fgithub.com\u002Fkael-odin\u002Fcodex-plugins-zh\u002Fblob\u002Fmain\u002Fplugins\u002Ftest-android-apps\u002Fskills\u002Fandroid-emulator-qa\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fkael-odin\u002Fcodex-plugins-zh\u002Fblob\u002Fmain\u002Fplugins\u002Ftest-android-apps\u002Fskills\u002Fandroid-emulator-qa\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":83,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":20},"01M7EDPX7WHN6HQZ0QKWB0BGVZ","supabase-postgres-best-practices","Postgres performance optimization and best practices from Supabase. Use this skill when writing, reviewing, or optimizing Postgres queries, schema designs, or database configurations.","MIT","https:\u002F\u002Fgithub.com\u002Fkael-odin\u002Fcodex-plugins-zh\u002Fblob\u002Fmain\u002Fplugins\u002Fsupabase\u002Fskills\u002Fsupabase-postgres-best-practices\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":91,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":20},"01M7EDHHD98T8ZH09F40Q973G3","sentry","Use when the user asks to inspect Sentry issues or events, summarize recent production errors, or pull basic Sentry health data via the Sentry API; perform read-only queries with the bundled script and require `SENTRY_AUTH_TOKEN`.","https:\u002F\u002Fgithub.com\u002Fkael-odin\u002Fcodex-plugins-zh\u002Fblob\u002Fmain\u002Fplugins\u002Fsentry\u002Fskills\u002Fsentry\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fkael-odin\u002Fcodex-plugins-zh\u002Fblob\u002Fmain\u002Fplugins\u002Fsentry\u002Fskills\u002Fsentry\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":83,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":20},"01M7EDH3SGVMS1AFS6Q40B5J48","render-workflows","搭建、开发、测试和部署 Render Workflows。涵盖首次脚手架搭建（通过 CLI 或手动方式）、SDK 安装（Python 或 TypeScript）、任务模式（重试、子任务、扇出）、本地开发、控制台部署和故障排查。适用于用户首次搭建 Render Workflows、构建工作流服务、添加或修改工作流任务、本地测试工作流或部署到 Render 的场景。","https:\u002F\u002Fgithub.com\u002Fkael-odin\u002Fcodex-plugins-zh\u002Fblob\u002Fmain\u002Fplugins\u002Frender\u002Fskills\u002Frender-workflows\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":83,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":20},"01M7EDH0CYEKQ4VVARHZAQ43S8","render-web-services","配置 Render web service——端口绑定、TLS、健康检查、自定义域名、自动部署、PR 预览、持久化磁盘及部署生命周期。当用户需要搭建 web service、修复健康检查失败、添加自定义域名、配置零停机部署，或排查端口绑定问题时使用。","https:\u002F\u002Fgithub.com\u002Fkael-odin\u002Fcodex-plugins-zh\u002Fblob\u002Fmain\u002Fplugins\u002Frender\u002Fskills\u002Frender-web-services\u002FSKILL.md",[],[],{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":83,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":20},"01M7EDGVDYFBG1CKSNMQ2DD336","render-static-sites","在 Render 全球 CDN 上部署并配置静态站点——构建命令、发布路径、SPA 路由、重定向、自定义 header 及 PR 预览。当用户需要部署静态站点、搭建 React\u002FVue\u002FHugo\u002FGatsby 前端、配置 SPA 回退路由、添加重定向规则、自定义响应 header，或在静态站点与 web service 之间为前端做选择时使用。触发词:static site、CDN、SPA、single-page app、React deploy、Vue deploy、Hugo、Gatsby、Docusaurus、Jekyll、staticPublishPath。","https:\u002F\u002Fgithub.com\u002Fkael-odin\u002Fcodex-plugins-zh\u002Fblob\u002Fmain\u002Fplugins\u002Frender\u002Fskills\u002Frender-static-sites\u002FSKILL.md",[],[]]