Token导航 LogoToken导航

Agent Skill · 前端设计

vtex-io-auth-and-policies(vtex io 身份验证和策略)

用于辅助安全审计、权限检查、凭据风险、认证流程和常见漏洞排查。它适合让 Agent 梳理敏感配置、检查依赖风险、分析鉴权逻辑或生成安全复核清单。使用时不能把工具输出直接当最终结论,涉及密钥、令牌、用户数据或生产系统时,应先确认最小权限、脱敏方式和操作边界。

vtex-io-auth-and-policies 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为调用外部服务;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 1,869。

总安装 3,491周安装 144GitHub Stars 25下载 1,140核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/vtex/skills --skill vtex-io-auth-and-policies

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

用于辅助安全审计、权限检查和认证流程分析。vtex-io-auth-and-policies 属于前端设计类 Skill,可作为该场景下的辅助能力补充。适合梳理敏感配置、检查依赖风险或生成安全复核清单。通过 npx skills add 命令从指定仓库安装并使用该技能。

不能将工具输出直接作为最终结论,涉及密钥或生产系统时需确认最小权限。建议结合项目实际环境评估操作边界和脱敏方式。

来源仓库内路径:skills/vtex-io-auth-and-policies

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/vtex/skills --skill vtex-io-auth-and-policies;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要调用外部服务,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

vtex-io-auth-and-policies 怎么安装?

在终端执行 npx skills add https://github.com/vtex/skills --skill vtex-io-auth-and-policies。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

vtex-io-auth-and-policies 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

vtex-io-auth-and-policies 需要什么权限?

权限级别是调用外部服务。该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

vtex-io-auth-and-policies 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

vtex-io-auth-and-policies 用的人多吗?

公开数据是累计安装 3,491 次,近一周安装 144 次,下载 1,140 次,GitHub 25 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

vtex-io-auth-and-policies 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
vtex-io-auth-and-policies

vtex io 身份验证和策略 · 本页

3,49125调用外部服务未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Authorization & Policy Design

When this skill applies

Use this skill when a VTEX IO app needs explicit permissions to call external services, consume VTEX resources, or expose access-controlled behavior.

  • Adding an external API integration
  • Consuming VTEX resources that require declared permissions
  • Reviewing whether a route or client needs policy changes
  • Tightening app permissions around an existing integration

Do not use this skill for:

  • service runtime tuning
  • HTTP handler structure
  • frontend UI authorization behavior
  • broader trust-boundary or sensitive-data modeling
  • choosing between AUTH_TOKEN, STORE_TOKEN, and ADMIN_TOKEN

Decision rules

  • Treat manifest.json policies as explicit declarations of what the app is allowed to access.
  • Use this skill to decide what the app is authorized to do, not which runtime token identity should make the call.
  • Add only the policies required for the integrations and resources the app actually uses.
  • Use License Manager policies when the app needs access to VTEX platform resources protected by LM resource keys.
  • Use app policies such as "vendor.app-name:policy-name" when the app consumes resources or operations exposed by another VTEX IO app through role-based policies.
  • Use outbound-access when the app needs to call external HTTP services or URLs that are not covered by License Manager or app policies.
  • Prefer narrowly scoped outbound-access declarations over wildcard hosts or paths.
  • When exposing your own routes or operations, define access on the server side through resource-based policies, route protections, or auth directives instead of assuming consumers will declare something in their own manifest.
  • A VRN (VTEX Resource Name) is the internal identifier format VTEX uses for resources and identities. Role-based policies use resources expressed as VRNs, and resource-based policies use principals expressed as VRNs.
  • Use VRNs only where the platform expects them, especially in service.json resource-based policies or when interpreting authorization errors. Do not generate VRNs in manifest.json for consumer-side policy declarations.
  • In resource-based policies, multiple principals are evaluated as alternatives, and explicit deny rules override allow rules.
  • When exposing your own role-based policies, keep them minimal and operation-specific rather than broad catch-all permissions.
  • Review policy requirements when adding a new client, external integration, or service route that depends on protected access.
  • Keep route implementation and policy declaration aligned: if a route depends on a protected integration, make sure the permission boundary is visible and intentional.

Policy types at a glance:

  • License Manager policy:
{
  "policies": [
    { "name": "Sku.aspx" }
  ]
}
  • App policy:
{
  "policies": [
    { "name": "vtex.messages:graphql-translate-messages" }
  ]
}
  • Outbound-access policy:
{
  "policies": [
    {
      "name": "outbound-access",
      "attrs": {
        "host": "partner.example.com",
        "path": "/api/*"
      }
    }
  ]
}
  • Resource-based route policy with app principal VRN:
{
  "routes": {
    "privateStatus": {
      "path": "/_v/private/status/:code",
      "public": false,
      "policies": [
        {
          "effect": "allow",
          "actions": ["POST"],
          "principals": [
            "vrn:apps:*:my-sponsor-account:*:app/vendor.partner-app@0.x"
          ]
        }
      ]
    }
  }
}

This route allows a specific IO app principal. Other apps remain denied by default because they do not match any allow rule.

  • Resource-based route policy with VTEX ID principal VRN:
{
  "routes": {
    "status": {
      "path": "/_v/status/:code",
      "public": false,
      "policies": [
        {
          "effect": "allow",
          "actions": ["POST"],
          "principals": [
            "vrn:vtex.vtex-id:-:bibi:-:user/vtexappkey-mcc77-HBXYAE"
          ]
        },
        {
          "effect": "deny",
          "actions": ["POST"],
          "principals": [
            "vrn:vtex.vtex-id:-:bibi:-:user/*@vtex.com"
          ]
        }
      ]
    }
  }
}

This is an advanced pattern for integrations that identify callers through a specific VTEX ID principal, including appkey-based contracts. Prefer app VRNs for IO-to-IO access when the caller is another VTEX IO app. VTEX IO auth tokens such as AUTH_TOKEN, STORE_TOKEN, and ADMIN_TOKEN play a different role: they authenticate requests to VTEX services and help preserve requester context, but they do not automatically replace route-level resource policies based on VRN principals.

Hard constraints

Constraint: Every protected integration must have an explicit supporting policy

If a client or route depends on access controlled by License Manager policies, role-based app policies, or outbound-access, the app MUST declare the corresponding permission explicitly in manifest.json. Resources protected by resource-based policies define access on the server side and do not require consumer apps to declare additional policies just for that server-side enforcement.

Why this matters

Without the required policy, the code may be correct but the platform will still block the access at runtime, leading to failures that are hard to debug from handler code alone.

Detection

If you see a new external host, VTEX resource, or protected capability being consumed, STOP and verify that the required consumer-side policy exists before merging the code. If the app is exposing a protected route or operation, STOP and confirm that the access rule is also enforced on the server side.

Correct

{
  "policies": [
    {
      "name": "outbound-access",
      "attrs": {
        "host": "partner.example.com",
        "path": "/api/*"
      }
    }
  ]
}

Wrong

{
  "policies": []
}

Constraint: Outbound policies must follow least privilege

Outbound-access policies MUST be scoped as narrowly as practical for the target host and path.

Why this matters

Broad outbound rules increase risk, make reviews harder, and allow integrations to expand silently beyond their intended surface.

Detection

If you see wildcard hosts or overly broad paths when the integration uses a much smaller surface, STOP and narrow the declaration.

Correct

{
  "name": "outbound-access",
  "attrs": {
    "host": "partner.example.com",
    "path": "/orders/*"
  }
}

Wrong

{
  "name": "outbound-access",
  "attrs": {
    "host": "*",
    "path": "/*"
  }
}

Constraint: Policy changes must be reviewed together with the behavior they enable

When a policy is added or widened, the route or integration behavior that depends on it MUST be reviewed in the same change.

Why this matters

Permissions are meaningful only in context. Reviewing a policy change without the code that consumes it makes overreach and hidden side effects easier to miss.

Detection

If a PR changes manifest.json permissions without showing the relevant route, client, or integration code, STOP and request the linked behavior before approving.

Correct

{
  "policies": [
    {
      "name": "outbound-access",
      "attrs": {
        "host": "partner.example.com",
        "path": "/orders/*"
      }
    }
  ]
}

Wrong

{
  "policies": [
    {
      "name": "outbound-access",
      "attrs": {
        "host": "partner.example.com",
        "path": "/api/*"
      }
    }
  ]
}

This broader policy alone does not explain why the app needs the expanded access.

Preferred pattern

Start from the client or route behavior, identify the minimal access needed, and declare only that permission in manifest.json. When the app exposes protected routes or operations, define the resource-based access rule on the server side as part of the same review.

Example pattern:

{
  "policies": [
    {
      "name": "outbound-access",
      "attrs": {
        "host": "partner.example.com",
        "path": "/orders/*"
      }
    }
  ]
}

Review permissions whenever integrations change, not only when policy errors appear in runtime.

Common failure modes

  • Forgetting the outbound-access policy for a new external integration.
  • Using an outbound-access policy when the real requirement is a License Manager resource key or an app policy exposed by another VTEX IO app.
  • Using wildcard hosts or paths when a narrower declaration would work.
  • Assuming consumer apps must declare manifest policies for resources that are actually enforced through resource-based policies on the server side.
  • Adding permissions without reviewing the route or client behavior they enable.
  • Treating policy failures as code bugs instead of permission bugs.
  • Treating a 403 that names a VRN resource or principal as a handler bug instead of an authorization or policy-mapping problem.

Review checklist

  • Does every protected integration have an explicit policy?
  • Is the policy type correct for the access pattern: License Manager, app policy, or outbound-access?
  • Are outbound-access rules narrow enough for the real integration surface?
  • If the app exposes protected routes or operations, is server-side access control defined explicitly as well?
  • Is the policy change reviewed together with the route or client that needs it?
  • Are wildcard permissions avoided unless strictly necessary?

Reference

平台分布

Codex

36.38%
按下载量换算415

Claude

28.78%
按下载量换算328

Cursor

19.68%
按下载量换算224

Gemini CLI

10.65%
按下载量换算121

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

调用外部服务

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

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

继续浏览同类 Skills