Token导航 LogoToken导航TokenDH.com
待分类操作浏览器github未标认证来源可访问许可证需确认审计通过

vtex-io-service-paths-and-cdnvtex io 服务路径和 cdn

Agent Skill

vtex-io-service-paths-and-cdn 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,588

周安装

148

GitHub Stars

25

下载量

1,172
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:vtex-io-service-paths-and-cdn(vtex io 服务路径和 cdn)
来源仓库:https://github.com/vtex/skills
仓库路径:skills/vtex-io-service-paths-and-cdn
安装命令:
npx skills add https://github.com/vtex/skills --skill vtex-io-service-paths-and-cdn
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/vtex/skills --skill vtex-io-service-paths-and-cdn

简介

vtex-io-service-paths-and-cdn 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理。
  • 通过 npx skills add 命令从指定仓库安装并使用该技能。
  • 安装前需确认权限范围、维护状态,避免触发联网或文件读写操作。
  • 建议结合原始 README 进一步核验具体用法和功能边界。

SKILL.md

VTEX IO service paths and CDN behavior

When this skill applies

Use this skill when you define or change service.json routes for a VTEX IO backend and need the edge (CDN) to pass the right cookies and apply the right caching for that endpoint’s data.

  • Choosing between public, segment (/_v/segment/...), and private (/_v/private/...) path prefixes for a route
  • Setting Cache-Control (and related headers) on HTTP responses so public cache behavior matches data scope (anonymous vs segment vs authenticated shopper)
  • Explaining why a route does not receive vtex_session or vtex_segment cookies
  • Troubleshooting CloudFront or edge behavior when cookies are missing (see official troubleshooting)

Do not use this skill for:

  • Application-level LRU caches, VBase, or stale-while-revalidate orchestration → use vtex-io-application-performance
  • GraphQL field-level @cacheControl only → use vtex-io-graphql-api alongside this skill

Decision rules

  • Paths are declared in service.json under routes. The prefix you choose (/yourPath, /_v/segment/yourPath, /_v/private/yourPath) controls cookie forwarding and whether VTEX may cache the service response at the edge—see the Service path patterns table.
  • Public ({yourPath}): No guarantee the app receives request cookies. The edge may cache responses when possible. Use for non-user-specific data (e.g. static reference data that is safe to share across shoppers).
  • Segment (/_v/segment/{yourPath}): The app receives vtex_segment. The edge caches per segment. Use when the response depends on segment (currency, region, sales channel, etc.) but not on authenticated identity.
  • Private (/_v/private/{yourPath}): The app receives vtex_segment and vtex_session. The edge does not cache the service response. Use for identity- or session-scoped data (orders, addresses, profile).
  • Cache-Control on responses must align with classification: never signal CDN/shared cache for payloads that embed secrets, per-user data, or authorization decisions unless the contract is explicitly designed for that (e.g. immutable public assets). When in doubt, prefer private paths and no-store / private cache directives for shopper-specific JSON.
  • Read Sessions System overview for how cookies relate to paths and sessions.

Hard constraints

Constraint: Do not use a public or segment-cached path for private or auth-scoped payloads

Routes that return authenticated shopper data, PII, or authorization-sensitive JSON must not rely on public paths or edge-cached responses that could serve one user’s data to another.

Why this matters — The edge may cache or route without the session context you expect; misclassified data can leak across users or segments.

Detection — A route under a public path returns order history, addresses, tokens, or account-specific fields; or Cache-Control suggests long-lived public caching for such payloads.

Correct — Use /_v/private/... for the route (or a pattern that receives vtex_session), and set appropriate Cache-Control (e.g. private, no-store for JSON APIs that are not cacheable). Note: the path prefix (/_v/private/) controls CDN and cookie behavior; the "public": true field controls whether VTEX auth tokens are required to call the route—these are orthogonal.

{
  "routes": {
    "myOrders": {
      "path": "/_v/private/my-app/orders",
      "public": true
    }
  }
}

Wrong — Exposing GET /my-app/orders as a public path (no /_v/private/ or /_v/segment/ prefix) and returning per-user JSON while assuming the browser session is always visible to the service.

Preferred pattern

  1. Classify the response (anonymous, segment, authenticated) before picking the path prefix.
  2. Map to public / segment / private per Service path patterns.
  3. Set response headers explicitly where the platform allows: align Cache-Control with the same classification (public immutable vs private vs no-store).
  4. Document any path that must stay private for security or compliance so storefronts and BFFs do not link-cache it incorrectly.

Common failure modes

  • Assuming cookies on public routes — Services do not reliably receive vtex_session on public paths; identity logic fails intermittently.
  • Caching personalized JSON at the edge — Long max-age on user-specific responses without private path + correct cache policy.
  • Mixing concerns — One route returns both public catalog and private account data; split endpoints or use private + server-side auth checks.
  • Ignoring segment — Price or promo that varies by currency or segment is served on a public path and cached for the wrong segment.

Review checklist

  • Is each route’s path prefix (public / /_v/segment / /_v/private) justified by cookie and Caching behavior in the official table?
  • For shopper-specific or auth responses, is the route private (or otherwise protected) and not edge-cacheable inappropriately?
  • Do Cache-Control (and related) headers match data sensitivity?
  • Are parallel calls from the client using the correct path for each payload type?

Related skills

Reference

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.36%
按下载量换算414

Claude

28.74%
按下载量换算337

Cursor

18.97%
按下载量换算222

Gemini CLI

10.24%
按下载量换算120

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills