Skip to main content
skill CX Codex

vtex-io-service-apps — Claude Code skill: install and usage

Guides backend service development under node/ in VTEX IO apps. Configures routes, middleware chains, and @vtex/api clients for background tasks or APIs.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add vtex/skills --skill vtex-io-service-apps -a claude-code
Open on GitHub

What vtex-io-service-apps does

This skill configures the backend entry point in node/index.ts with the Service class. It connects HTTP routes from service.json, event handlers, and GraphQL resolvers to the ctx execution context.

Network requests rely on specialized classes. Use JanusClient for internal VTEX gateways and ExternalClient for third-party endpoints. Queries to Master Data v2 go through MasterDataClient. Custom connectors register inside an IOClients class, where getOrSet instantiates them on first access.

Direct calls via fetch or axios fail because the platform firewall drops raw outbound connections. All traffic must pass through @vtex/api clients. Instantiating client classes with new is also prohibited; handlers must access them via ctx.clients to keep authentication tokens and metric tracking intact.

What it helps with

  • Define backend routes and middleware chains in service.json
  • Integrate third-party REST services with ExternalClient
  • Register custom API connectors inside IOClients using lazy loading
  • Replace forbidden fetch or axios calls with @vtex/api wrappers

Example prompts for the agent

  • Write a middleware handler that fetches catalog items through ctx.clients.catalog
  • Create an ExternalClient subclass to query an external shipping API with custom headers
  • Set up the node/index.ts file with typed Service configuration and client declarations

How to install vtex-io-service-apps

1Skills CLI (Vercel)

npx skills add vtex/skills --skill vtex-io-service-apps -a claude-code

2Manually: put the files in place

~/.claude/skills/vtex-io-service-apps/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/vtex-io-service-apps/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about vtex-io-service-apps

How do I install vtex-io-service-apps in Claude Code?

Run npx skills add vtex/skills --skill vtex-io-service-apps -a claude-code. This copies the skill file to ~/.claude/skills/vtex-io-service-apps/SKILL.md.

What does the vtex-io-service-apps skill do?

It provides architecture patterns for VTEX IO Node.js services. The skill directs assistants to build middlewares, lifecycle handlers, and @vtex/api clients according to platform requirements.

Why are axios and fetch prohibited in VTEX IO services?

Platform infrastructure firewalls unmanaged outbound traffic, blocking direct HTTP libraries. Official @vtex/api clients handle automatic token injection, request retries, and latency tracking.

Similar skills

All skills for Backend and APIs →

From the same set38

vtex-io-app-settings Helps an agent define settingsSchema for a VTEX IO app and read the values safely in code. Useful when merchants should change app behavior themselves. CX Codex +1 1,200installs vtex-io-storefront-react Guides coding of shopper-facing VTEX IO React components. Enforces vtex.css-handles, localized strings, and storefront hooks while preventing Node-only runtime calls. CX Codex +1 1,200installs vtex-io-graphql-api Guides GraphQL schema and resolver work in VTEX IO apps. Use it when exposing app data through queries or mutations. CX Codex +1 1,200installs vtex-io-masterdata Walks you through Master Data v2 in VTEX IO apps and pushes back when the data belongs somewhere else. CX Codex +1 1,200installs headless-caching-strategy Sets caching rules and TTL values for headless VTEX storefronts. Keeps public endpoints fast while preventing accidental caching of sensitive shopper data. CX Codex +1 1,100installs headless-intelligent-search Build VTEX Intelligent Search into a headless storefront, with facets, autocomplete and search analytics. Useful when a custom frontend needs product discovery. CX Codex +1 1,100installs payment-idempotency A skill for payment connector code that keeps Gateway retries from hitting the acquirer twice and charging the customer again. CX Codex +1 1,100installs headless-checkout-proxy Guides agents when building cart and checkout flows for headless VTEX via a BFF. Ensures safe OrderForm proxying and strict PCI DSS compliance. CX Codex +1 1,100installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor