Skip to main content
skill CX Codex

vtex-io-events-and-workers — Claude Code skill

Guides the agent in writing VTEX IO event handlers and workers that survive duplicate delivery. Useful when slow work should leave your HTTP routes.

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

What vtex-io-events-and-workers does

This skill steers an agent through async processing in VTEX IO services: event handlers, workers and background jobs. Anything slow, retry-prone or unnecessary for an HTTP response gets moved out of the route. The starting assumption is that the same event can arrive more than once.

The rules come with TypeScript examples. A handler that writes data or calls an external API without first checking whether the job is done counts as a bug, and the skill tells the agent to stop and fix it. Processing markers live in VBase or Master Data. Input comes from the event body, never from route params or request headers. Failures are recorded and rethrown rather than swallowed. Events and workers are declared in service.json, and publishing events often requires the colossus-fire-event policy in manifest.json.

The suggested layout is node/events/ holding index.ts, catalog.ts and orders.ts, plus node/workers/sync.ts. For batches, status is stored per item, so one bad element doesn't hide the rest. HTTP route contracts, GraphQL schemas, app policy decisions and client construction are out of scope.

What it helps with

  • move a heavy catalog sync out of an HTTP route
  • stop a partner from receiving the same order twice after a redelivered event
  • record status per batch item to see which ones failed
  • keep processed markers in VBase or Master Data
  • publish events to other apps instead of hand-rolled HTTP callbacks

Example prompts for the agent

  • Write a VTEX IO handler for the order-created event so a redelivery doesn't send the order to the partner again
  • Move the catalog sync out of the route into a worker and register it in service.json
  • Review my handlers in node/events/ for idempotency and swallowed errors

How to install vtex-io-events-and-workers

1Skills CLI (Vercel)

npx skills add vtex/skills --skill vtex-io-events-and-workers -a claude-code

2Manually: put the files in place

~/.claude/skills/vtex-io-events-and-workers/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/vtex-io-events-and-workers/

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

Questions about vtex-io-events-and-workers

How do I install vtex-io-events-and-workers in Claude Code?

Run npx skills add vtex/skills --skill vtex-io-events-and-workers -a claude-code. The skill file ends up at ~/.claude/skills/vtex-io-events-and-workers/SKILL.md.

What does vtex-io-events-and-workers do?

It tells the agent how to build VTEX IO event handlers and workers that tolerate duplicates, record failures and don't depend on HTTP request data. Expensive work is moved out of routes.

Does publishing events need a policy in manifest.json?

An app that publishes through the VTEX IO event bus often needs the colossus-fire-event policy. Other policies are added only when the app uses the protected resources they cover.

Similar skills

All skills for Backend and APIs →

From the same set38

faststore-storefront Guides AI coding agents through VTEX FastStore storefront development: React 18 components, section overrides, SCSS styling constraints, and CMS schema sync. CX Codex +1 1,100installs vtex-io-service-paths-and-cdn Picks the right path prefix in service.json and matches Cache-Control to the data, so edge caching does not serve one shopper's payload to another. CX Codex +1 1,100installs vtex-io-messages-and-i18n Keeps user-facing copy in the VTEX IO messages infrastructure instead of hardcoded strings in JSX and resolvers. CX Codex +1 1,100installs vtex-io-security-boundaries Guides coding assistants when auditing route exposure and data boundaries in VTEX IO apps. Prevents tenant leaks and enforces payload validation. CX Codex +1 1,100installs vtex-io-service-configuration-apps Guides the agent through building VTEX IO configuration apps using the configuration builder. Helps inject decoupled workspace settings into service runtimes. CX Codex +1 1,100installs vtex-io-app-contract Checks the VTEX IO app contract in manifest.json, including builders and dependency links. Use it when creating, splitting, or publishing apps. CX Codex +1 1,100installs vtex-io-service-runtime Guides the runtime layout of a VTEX IO backend app: the Service entrypoint, typed context, and service.json execution settings. CX Codex +1 1,100installs vtex-io-data-access-patterns Guides AI coding agents on picking the right storage layer across VTEX IO apps. It helps design read pipelines, caching strategies, and data boundaries. 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