/vtex-ai-skills:vtex-io-data-access-patternsfrom vtex-ai-skills
Guides VTEX IO developers on choosing the right data storage: app settings, Master Data, VBase, core APIs, or external stores. Helps avoid duplicating sources of truth and misusing config stores for operational data.
Ships in vtex-ai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill when the main question is where data should live and how a VTEX IO app should read or write it.
Do not use this skill for:
AUTH_TOKEN, STORE_TOKEN, or manifest permissionsApp settings and configuration apps MUST represent configuration, not transactional records, unbounded lists, or frequently changing operational state.
Why this matters
Using configuration stores as data storage blurs system boundaries, makes workspace behavior harder to reason about, and breaks expectations for tools and flows that depend on settings being small and stable.
Detection
If you see arrays of records, logs, histories, orders, or other growing operational payloads inside settingsSchema, configuration app payloads, or settings-related APIs, STOP and move that data to Master Data, VBase, a core API, or an external store.
Correct
{
"settingsSchema": {
"type": "object",
"properties": {
"enableModeration": {
"type": "boolean"
}
}
}
}
Wrong
{
"settingsSchema": {
"type": "object",
"properties": {
"orders": {
"type": "array"
}
}
}
}
VTEX core systems such as Orders, Catalog, Pricing, and Logistics MUST remain the primary source of truth for their own business domains.
Why this matters
Treating a local IO copy as the main store for core domains creates reconciliation drift, stale reads, and business decisions based on outdated data.
Detection
If an app stores full order payloads, product documents, inventory snapshots, or price tables in Master Data or VBase and then uses those copies as the main source for business decisions, STOP and redesign the flow around the authoritative upstream source.
Correct
const order = await ctx.clients.oms.getOrder(orderId)
ctx.body = {
orderId: order.orderId,
status: order.status,
}
Wrong
const cachedOrder = await ctx.clients.masterdata.getDocument({
dataEntity: 'ORD',
id: orderId,
})
ctx.body = cachedOrder
Large or growing datasets MUST be accessed through bounded queries, filters, pagination, or precomputed derived views instead of full scans and broad in-memory filtering.
Why this matters
Unbounded reads are inefficient, hard to scale, and easy to turn into fragile service behavior as the dataset grows.
Detection
If you see code that fetches entire collections from Master Data, VTEX APIs, or external stores and then filters or aggregates the result in Node for a normal request flow, STOP and redesign the access path.
Correct
const documents = await ctx.clients.masterdata.searchDocuments({
dataEntity: 'RV',
fields: ['id', 'status'],
where: 'status=approved',
pagination: {
page: 1,
pageSize: 20,
},
})
Wrong
const allDocuments = await ctx.clients.masterdata.scrollDocuments({
dataEntity: 'RV',
fields: ['id', 'status'],
})
const approved = allDocuments.filter((doc) => doc.status === 'approved')
Start every data design with four questions:
Then choose intentionally:
If the app stores a local copy, keep it small, derived, and clearly secondary to the authoritative source.
vtex-io-app-settings - Use when the main decision is how to model app-level configurationvtex-io-service-configuration-apps - Use when shared structured configuration should be injected through ctx.vtex.settingsvtex-io-masterdata-strategy - Use when the main decision is whether Master Data is the right storage mechanism and how to model itWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub vtex/skills --plugin vtex-ai-skills46 skills in this plugin
/architecture-well-architected-commerceApply when scoping, reviewing, or documenting cross-cutting VTEX commerce architecture across storefront, IO, headless, marketplace, payments, or any other VTEX module. Grounds work in the Well-Architected Commerce framework—Technical Foundation (reliability, trust, integrity; security, infrastructure, compliance), Future-proof (innovation, simplicity, efficiency; scalable and adaptable solutions), and Operational Excellence (accuracy, accountability, data-driven improvement; process and customer experience). Routes implementation detail to product tracks (IO caching and paths, Master Data strategy, marketplace integrations). Use for solution design, architecture reviews, and RFP-level technical structure./faststore-storefrontCore coding rules and workflow for developing VTEX FastStore storefronts. Use when starting any FastStore development task, writing TypeScript/React components, creating section overrides, extending the BFF, or styling. Covers all primary conventions, safety rules, and the development workflow used across every FastStore project./headless-bff-architectureApply when designing or modifying a BFF (Backend-for-Frontend) layer, middleware, or API proxy for a headless VTEX storefront. Covers BFF middleware architecture, public vs private API classification, VtexIdclientAutCookie management, API key protection, and secure request proxying. Use for any headless commerce project that must never expose VTEX_APP_KEY or call private VTEX APIs from the browser.Other plugins' skills for the same job