Token导航 LogoToken导航TokenDH.com
开发需要联网github未标认证来源可访问许可证需确认审计通过

vtex-io-service-configuration-appsvtex io 服务配置应用程序

Agent Skill

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

总安装

675

周安装

29

GitHub Stars

25

下载量

237
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/vtexdocs/ai-skills --skill vtex-io-service-configuration-apps

简介

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

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

SKILL.md

Service Configuration Apps

When this skill applies

Use this skill when a VTEX IO service should receive structured configuration from another app through the configuration builder instead of relying only on local app settings.

  • Creating a configuration app with the configuration builder
  • Exposing configuration entrypoints from a service app
  • Sharing one configuration contract across multiple services or apps
  • Separating configuration lifecycle from runtime app lifecycle
  • Reading injected configuration through ctx.vtex.settings

Do not use this skill for:

  • simple app-local configuration managed only through settingsSchema
  • Store Framework block settings through contentSchemas.json
  • generic service runtime wiring unrelated to configuration
  • policy design beyond the configuration-specific permissions required

Decision rules

  • Treat the service app and the configuration app as separate responsibilities.
  • The service app owns runtime (node, graphql, etc.), declares the configuration builder in manifest.json, defines configuration/schema.json, and reads injected values through ctx.vtex.settings.
  • The configuration app does not own the service runtime. It should not declare node or graphql builders and usually has only the configuration builder.
  • The configuration app points to the target service in the configuration field and provides concrete values in <service-app>/configuration.json.
  • Use a configuration app when the configuration contract should live independently from the app that consumes it.
  • Prefer a configuration app when multiple apps or services need to share the same configuration model.
  • In service apps, expose configuration entrypoints explicitly through settingsType: "workspace" in node/service.json routes or events, or through @settings in GraphQL when the service should receive configuration from a configuration app.
  • In configuration apps, the folder name under configuration/ and the key in the configuration field should match the target service app ID, for example shipping-service in vendor.shipping-service.
  • The shape of configuration.json must respect the JSON Schema declared by the service app.
  • Read received configuration from ctx.vtex.settings inside the service runtime instead of making your own HTTP call just to fetch those values.
  • Handlers and resolvers should cast or validate ctx.vtex.settings to match the configuration schema and apply defaults consistent with that schema.
  • Treat configuration apps as a way to inject structured runtime configuration through VTEX IO context, not as a replacement for arbitrary operational data storage.
  • Use settingsSchema when configuration is local to one app and should be edited directly in Apps > App Settings. Use configuration apps when the contract should be shared, versioned, or decoupled from the consuming app lifecycle.
  • If a service configured through a configuration app fails to resolve workspace app configuration due to permissions, explicitly evaluate whether the manifest needs the read-workspace-apps policy for that scenario. Do not add this policy by default to unrelated services.
  • For service configuration contracts, prefer closed schemas with additionalProperties: false and use definitions plus $ref when the structure becomes more complex.

Hard constraints

Constraint: Service apps must explicitly opt in to receiving configuration

A service app MUST declare where configuration can be injected, using settingsType: "workspace" in node/service.json routes or events, or the @settings directive in GraphQL.

Why this matters

Configuration apps do not magically apply to all service entrypoints. The service must explicitly mark which routes, events, or queries resolve runtime configuration.

Detection

If a service is expected to receive configuration but its routes, events, or GraphQL queries do not declare settingsType or @settings, STOP and expose the configuration boundary first.

Correct

{
  "routes": {
    "status": {
      "path": "/_v/status/:code",
      "public": true,
      "settingsType": "workspace"
    }
  }
}

Wrong

{
  "routes": {
    "status": {
      "path": "/_v/status/:code",
      "public": true
    }
  }
}

Constraint: Configuration shape must be defined with explicit schema files

Configuration apps and the services they configure MUST use explicit schema files instead of implicit or undocumented payloads.

Why this matters

Without configuration/schema.json and matching configuration.json contracts, shared configuration becomes ambiguous and error-prone across apps.

Detection

If a configuration app is introduced without a clear schema file or the service accepts loosely defined configuration payloads, STOP and define the schema first.

Correct

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$ref": "#/definitions/ServiceConfiguration",
  "definitions": {
    "ServiceConfiguration": {
      "type": "object",
      "properties": {
        "bank": {
          "type": "object",
          "properties": {
            "account": { "type": "string" },
            "workspace": { "type": "string", "default": "master" },
            "version": { "type": "string" },
            "kycVersion": { "type": "string" },
            "payoutVersion": { "type": "string" },
            "host": { "type": "string" }
          },
          "required": ["account", "version", "kycVersion", "payoutVersion", "host"],
          "additionalProperties": false
        }
      },
      "required": ["bank"],
      "additionalProperties": false
    }
  }
}

Wrong

{
  "anything": true
}

Constraint: Consuming apps must read injected configuration from runtime context, not by inventing extra fetches

When a service is configured through a configuration app, it MUST consume the injected values from ctx.vtex.settings instead of creating its own ad hoc HTTP call just to retrieve the same configuration.

Why this matters

The purpose of configuration apps is to let VTEX IO inject the structured configuration directly into service context. Adding a custom fetch layer on top creates unnecessary complexity and loses the main runtime advantage of the builder.

Detection

If a service already exposes settingsType or @settings but still performs its own backend fetch to retrieve the same configuration, STOP and move the read to ctx.vtex.settings.

Correct

export async function handleStatus(ctx: Context) {
  const settings = ctx.vtex.settings
  const code = ctx.vtex.route.params.code

  const status = resolveStatus(code, settings)
  ctx.body = { status }
}

Wrong

export async function handleStatus(ctx: Context) {
  const settings = await ctx.clients.partnerApi.getSettings()
  ctx.body = settings
}

Preferred pattern

Model the service and the configuration app as separate contracts:

  1. The service app exposes where configuration can be resolved.
  2. The service app defines accepted structure in configuration/schema.json.
  3. The configuration app declares the service as a builder and supplies values in configuration.json.
  4. The service reads the injected configuration through ctx.vtex.settings.

Example: service app vendor.shipping-service

manifest.json:

{
  "vendor": "vendor",
  "name": "shipping-service",
  "version": "1.0.0",
  "builders": {
    "node": "7.x",
    "configuration": "1.x"
  }
}

configuration/schema.json:

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$ref": "#/definitions/ShippingConfiguration",
  "definitions": {
    "ShippingConfiguration": {
      "type": "object",
      "properties": {
        "carrierApi": {
          "type": "object",
          "properties": {
            "baseUrl": { "type": "string" },
            "apiKey": { "type": "string", "format": "password" },
            "timeoutMs": { "type": "integer", "default": 3000 }
          },
          "required": ["baseUrl", "apiKey"],
          "additionalProperties": false
        }
      },
      "required": ["carrierApi"],
      "additionalProperties": false
    }
  }
}

Example: configuration app vendor.shipping-config

manifest.json:

{
  "vendor": "vendor",
  "name": "shipping-config",
  "version": "1.0.0",
  "builders": {
    "configuration": "1.x"
  },
  "configuration": {
    "shipping-service": "1.x"
  }
}

configuration/shipping-service/configuration.json:

{
  "carrierApi": {
    "baseUrl": "https://api.carrier.com",
    "apiKey": "secret-api-key-here",
    "timeoutMs": 5000
  }
}

Example: Node service consuming injected configuration

export async function createShipment(ctx: Context, next: () => Promise<void>) {
  const settings = ctx.vtex.settings as {
    carrierApi: {
      baseUrl: string
      apiKey: string
      timeoutMs?: number
    }
  }

  const timeoutMs = settings.carrierApi.timeoutMs ?? 3000

  const response = await ctx.clients.carrier.createShipment({
    baseUrl: settings.carrierApi.baseUrl,
    apiKey: settings.carrierApi.apiKey,
    timeoutMs,
    payload: ctx.state.shipmentPayload,
  })

  ctx.body = response
  await next()
}

Example: GraphQL query using @settings

type ShippingStatus {
  orderId: ID!
  status: String!
}

type Query {
  shippingStatus(orderId: ID!): ShippingStatus
    @settings(type: "workspace")
}
export const resolvers = {
  Query: {
    shippingStatus: async (_: unknown, args: { orderId: string }, ctx: Context) => {
      const settings = ctx.vtex.settings as {
        carrierApi: { baseUrl: string; apiKey: string }
      }

      return ctx.clients.carrier.getStatus({
        baseUrl: settings.carrierApi.baseUrl,
        apiKey: settings.carrierApi.apiKey,
        orderId: args.orderId,
      })
    },
  },
}

Minimum working checklist for service configuration apps:

  • The service app declares the configuration builder in manifest.json.
  • The service app defines a valid configuration/schema.json.
  • The configuration app provides <service-app>/configuration.json with values compatible with the schema.
  • Service routes or events that need configuration declare settingsType: "workspace".
  • When the flow depends on workspace app resolution, the service manifest evaluates whether read-workspace-apps is required.

Use this approach when configuration should be shared, versioned, and injected by VTEX IO runtime rather than fetched ad hoc by service code.

Common failure modes

  • Using app settings when the real need is a shared configuration contract across apps.
  • Creating configuration apps without explicit schema files.
  • Forgetting settingsType or @settings in the service that should receive configuration.
  • Fetching configuration over HTTP even though it is already injected in ctx.vtex.settings.
  • Treating configuration apps as general-purpose operational storage.

Review checklist

  • Is a configuration app really needed instead of plain settingsSchema?
  • Could this case be solved with local app settings and settingsSchema instead of a separate configuration app?
  • Does the service explicitly opt in to configuration resolution with settingsType or @settings?
  • When configuration is injected through service routes or events, is settingsType: "workspace" declared where needed?
  • Is the configuration contract defined through configuration/schema.json and matched by configuration.json?
  • Does the service read configuration from ctx.vtex.settings instead of inventing extra fetches?
  • If the flow depends on reading installed workspace apps or their configuration, was read-workspace-apps evaluated intentionally instead of added by default?
  • Does the configuration schema stay closed and explicit enough for a shared contract?
  • Is the configuration contract clearly separate from operational data storage?

Reference

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

38.56%
按下载量换算91

Claude

29.72%
按下载量换算70

Cursor

19.95%
按下载量换算47

Gemini CLI

9.27%
按下载量换算22

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills