vtex-io-service-configuration-apps

Inject schema-validated workspace configuration into VTEX IO service apps.

Updated Mar 27, 2026
One-click install
npx skills add https://github.com/exilonX/ap2 --skill vtex-io-service-configuration-apps-exilonx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vtex-io-service-configuration-apps
Source: https://github.com/exilonX/ap2/tree/main/.agents/skills/vtex-io-service-configuration-apps
Command: npx skills add https://github.com/exilonX/ap2 --skill vtex-io-service-configuration-apps-exilonx

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you avoid fragile, ad hoc configuration handling in VTEX IO by using configuration apps to inject a structured, verifiable contract into service apps at runtime.

Core Features & Use Cases

  • Service vs. configuration app separation: Model runtime services separately from injected configuration contracts.
  • Schema-driven configuration contracts: Define configuration/schema.json in the service and provide matching configuration.json in the configuration app.
  • Runtime injection via ctx.vtex.settings: Consume injected settings directly from runtime context, not via extra HTTP fetches.

Use cases include sharing one configuration model across multiple services, decoupling configuration lifecycle from runtime lifecycle, and reviewing whether a service should be explicitly opted-in to configuration resolution.

Quick Start

Ask an AI to "create a VTEX IO configuration app that injects validated workspace configuration into a service app using configuration/schema.json, configuration.json, and ctx.vtex.settings, including the required settingsType or @settings opt-in."

Frequently Asked Questions about vtex-io-service-configuration-apps

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I inject shared configuration into a VTEX IO service app?

You inject shared configuration into a VTEX IO service app by using a configuration app to provide a matching configuration.json file, which is then consumed at runtime via ctx.vtex.settings. This approach replaces ad hoc fetching with a structured, schema-validated contract.

What is a VTEX IO configuration app and when do I need one?

A VTEX IO configuration app is a separate app that defines and injects structured runtime settings into service apps. You need one when you want to share a single configuration model across multiple services or decouple configuration lifecycle from runtime lifecycle.

How do I define a schema-driven configuration contract for VTEX IO?

To define a schema-driven configuration contract, you create a configuration/schema.json file inside your VTEX IO service app, then supply a matching configuration.json file inside the configuration app to ensure schema-consistent validation and defaults.

Does a VTEX IO service app need to opt in to receive workspace configuration?

Yes, a VTEX IO service app must explicitly opt in to receive workspace configuration by declaring settingsType="workspace" or using the @settings directive across its node and GraphQL service entrypoints.

Why should I use ctx.vtex.settings instead of fetching configuration directly?

Using ctx.vtex.settings avoids fragile, ad hoc configuration handling by consuming injected settings directly from the runtime context without extra HTTP fetches. This ensures your VTEX IO app receives structured, verifiable configuration contracts safely.

Can I use one VTEX IO configuration app to inject settings into multiple services?

Yes, you can share one configuration app across multiple VTEX IO service apps. By defining a schema-driven contract in configuration/schema.json, you ensure all opted-in services consume consistent, validated settings through ctx.vtex.settings.