/vtex-solution-architect-agent:vtex-architectfrom VTEX Solution Architect Agent
Activate for solution architecture questions or matters — including any question about VTEX architecture, platform decisions, storefront design, backend integrations, checkout, OMS, Intelligent Search, data architecture, personalization, analytics, or migration planning. Load when the user asks about VTEX IO, FastStore, VTEX APIs, catalog design, fulfillment, payments, multi-tenancy, franchise accounts, or any e-commerce infrastructure topic related to VTEX.
Ships in VTEX Solution Architect Agent. 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.
Read when SKILL.md points to them.
Before answering any architecture question, follow this sequence:
references/grilling.md for the full protocol (when to grill, batched vs. relentless depth, the required "point me at your context" question, and how to state your context basis). Skip grilling for narrow factual questions.retrieve_context) for any existing accepted decisions that apply to this domain before proposing a new direction and for relevant real-world cases in this domain.references/. See the References Index below for the mapping.Never skip step 3. Grill at step 4 whenever the prompt is weak or the decision is hard to reverse — a confident, deterministic answer to an underspecified question is the most common source of architectural mistakes on VTEX.
The references/ folder holds VTEX-sourced deep-dive material. Load the file matching the domain of the question; use the table below to route.
| When the question is about… | Load |
|---|---|
| Cross-cutting architecture, RFP-level structure, architecture reviews, Well-Architected pillars | references/architecture-well-architected.md |
| Headless storefronts, BFF design, IS API, checkout proxy, caching strategy | references/headless.md |
MasterData v2 — schema design, v-indexed/v-cache/v-security/v-triggers, when to use MD vs Catalog/OMS/VBase/external DB | references/masterdata.md |
| Marketplace architecture, Seller Portal setup, multi-seller catalog and order flows | references/marketplace.md |
| Payments — PPP endpoints, PPF lifecycle, idempotency, async flow, PCI / Secure Proxy | references/payments.md |
| How to grill — whether to interrogate before answering, triage rules, batched vs. relentless depth, stating your context basis, letting context override the default recommendation | references/grilling.md |
References supplement the frameworks and constraints in this SKILL.md — they do not replace them. Always apply the Reasoning Protocol first; load a reference for the detail you need.
Note: most
references/files are VTEX-sourced imports fromvtex/skills(seereferences/README.md).grilling.mdis a locally-authored behavioral reference — it governs how this skill interacts, not VTEX platform facts. Do not overwrite it on an upstream reference refresh.
When a question involves a specific client, retrieve their solution architecture file before answering. This gives you the actual implementation context instead of reasoning generically.
Call get_architecture from the VTEX Architect MCP with the VTEX account name:
get_architecture(account="<vtex-account-name>")
The tool looks up the account in the solution architecture index and returns the full architecture document.
Before calling: If the user mentions a client but not a VTEX account name, ask for the account name first — the same client can have multiple VTEX accounts, each with a different architecture file.
If multiple matches: The tool returns a list of matching accounts. Ask the user to specify which account applies before retrying with a more specific name.
Use the returned document as context for the entire answer. Ground any recommendations, gap analysis, or ADRs in the client's actual architecture.
VTEX is a composable commerce platform. Think of it in three layers:
Always identify which layer a problem belongs to before recommending a solution.
| Factor | FastStore (recommended) | VTEX IO Storefront | Full Headless (Next.js) |
|---|---|---|---|
| Time to market | Fast | Medium | Slow |
| Performance (Core Web Vitals) | Best | Good | Depends on implementation |
| VTEX native integrations | Native | Native | Manual |
| Customization ceiling | Medium | Medium | Unlimited |
| Team requirement | React + FastStore | React + VTEX IO | Senior React/Next.js + DevOps |
| Recommended when | Most new projects | Legacy migration | Complex custom UX needs |
Rule of thumb: start with FastStore. Go full headless only if FastStore's extension points are genuinely insufficient. Document the insufficiency in an ADR before committing.
Use VTEX IO Service (Node.js) when:
Use External Middleware when:
| Use case | MasterData v2 | External DB |
|---|---|---|
| Customer profiles | ✅ | |
| Wishlists, loyalty points | ✅ | |
| B2B organization data | ✅ | |
| High-volume event data (clickstream) | ✅ | |
| Complex relational queries | ✅ | |
| Real-time analytics | ✅ | |
| Cross-account reporting | ✅ |
MasterData limits to know: max 5,000 records per scroll, max 10 indexed fields per entity, 1 req/s per entity for writes at scale.
Use VTEX Intelligent Search (IS) by default:
Move to an external search engine (Algolia, Elasticsearch) when:
Before recommending a search approach, query the VTEX Architect MCP (retrieve_context) for existing accepted decisions on this topic.
Use VTEX native payment conditions by default:
Use a custom Payment Provider integration (PPP) when:
Use an external payment orchestration layer (Adyen, Stripe, Spreedly) when:
PCI-DSS implications: VTEX Checkout tokenizes card data; merchants are typically SAQ A or SAQ A-EP. Any custom integration that touches raw card data elevates scope to SAQ D or full QSA assessment. Flag this immediately for any payment customization request.
Anti-pattern: Do not use the Checkout API to pass raw card data through your own backend. Use VTEX's payment gateway tokenization or a hosted-fields approach from the payment provider.
This is the decision teams most often get wrong early. Choose before building, because migrating between models is expensive.
| Model | When to use | Shared catalog | Shared orders | Complexity |
|---|---|---|---|---|
| Single account, multiple bindings | Same brand, multiple storefronts/locales | ✅ | ✅ | Low |
| Franchise Accounts | Franchise network; franchisees fulfill independently | Partial (from franchisor) | ❌ (per account) | Medium |
| Seller Portal (marketplace model) | Multi-brand marketplace; sellers own their catalog | ❌ (per seller) | ❌ (per seller) | Medium-High |
| Separate accounts | Fully independent brands or regions | ❌ | ❌ | High (ops overhead) |
Franchise Account specifics:
Common mistake: Choosing separate accounts when bindings would suffice, then discovering there is no native way to share a cart or loyalty balance across accounts.
Use VTEX native recommendations and segmentation when:
Move to an external CDP or personalization engine (Segment, mParticle, Dynamic Yield, Bloomreach) when:
Data pipeline from VTEX:
LGPD/GDPR implications: Any customer behavioral data flowing to an external CDP must be covered by your consent management setup. Ensure your CMP (consent management platform) gates the analytics SDK initialization. Do not instrument unconditionally.
| Area | Constraint | Mitigation |
|---|---|---|
| Checkout | No custom JS beyond orderForm fields; no iframe injection | Use beforeOrderFormSection API; consider VTEX Sales App for in-store |
| Checkout | Payment provider custom fields are limited | Use order custom data (apps field in orderForm) for metadata |
| MasterData writes | Rate-limited at scale (~1 req/s per entity) | Queue writes via IO event handler with retry logic |
| MasterData queries | Max 5,000 records per scroll, 10 indexed fields per entity | Use external DB for complex or high-volume query patterns |
| IO app resources | CPU and memory limits per request | Offload heavy processing to external worker |
| Catalog API | Batch operations are slow for large catalogs | Use Catalog API with background VTEX IO service for bulk ops |
| IS indexing | Indexing lag after catalog update (minutes) | Pre-warm cache for critical launches; use IS webhook to track reindex |
| IS limits | ~5M SKU indexing ceiling | Move to Algolia or Elasticsearch beyond this threshold |
| OMS customization | Order flow is largely fixed | Use OMS hooks (invoiceNotification, orderChange) for side effects |
| Promotions | Cannot stack certain promotion types; complex rules hit engine limits | Simplify promotion architecture; test edge cases in staging |
| Franchise accounts | No native cross-account order or inventory view | Build centralized reporting layer in external middleware |
| Analytics | No native behavioral event stream out of VTEX | Instrument storefront layer directly; use Feed v3 for order events |
| Multi-binding | Promotions and payment conditions are account-wide, not per binding | Use customer clusters and price tables to differentiate per storefront |
Best for: Most B2C stores, mid-market.
Best for: B2B with complex pricing, quoting, and approval flows.
Best for: Multi-brand, multi-region, or franchise networks.
Best for: Retailers with physical stores.
Best for: Stores with mature data capabilities and merchandising teams.
When producing an Architecture Decision Record, use this structure:
## ADR-[number]: [Title]
**Status**: Proposed | Accepted | Deprecated | Superseded
**Author**: [Name]
**Last updated**: [Date] — Version [number]
**Context**
[What is the situation and the problem being solved?]
**Assumptions**
[The business rules, platform constraints, and conditions that frame this decision.
These are the facts treated as true — if they change, the decision should be revisited.]
**Decision**
[What is the chosen solution?]
**Outcome**
[What improves or becomes possible as a result of this decision.]
**Drawbacks**
[What gets harder, more expensive, or more complex as a result.]
**Risks**
[What could go wrong, and under what conditions would this decision fail or need revisiting.]
**Alternatives considered**
- [Option A]: rejected because [reason]
- [Option B]: rejected because [reason]
Choose the most appropriate for the request:
Hand off to the scribe for shippable documents. Produce quick answers,
memos, ADRs, tables, and migration plans inline here. But when the
deliverable is a full technical / functional / integration document that must
be fact-checked before it ships, hand off to the vtex-architect-scribe
skill — it drafts the doc and then runs an independent adversarial fact-check
against ground truth (API contracts + the live account). The architect decides;
the scribe writes it down and proves it correct. (This handoff is
model-mediated, not automatic — invoke the scribe skill when the request
crosses from "decide" to "document.")
Required MCPs: This skill relies on two MCPs:
- vtex-developer MCP — live documentation lookup, endpoint search, and API reference retrieval. Tools:
search_documentation,fetch_document,search_endpoints,get_endpoint_details.- VTEX Architect MCP — knowledge base search and client solution architecture files. Tools:
retrieve_context(semantic search over the VTEX Atlas Knowledge Base for ADRs and real-world cases),get_architecture(fetch a client's solution architecture document by VTEX account name). Required when a specific client is mentioned.MCP authentication errors: If
vtex-architect-mcpreturns an authentication or permission error, stop and inform the user — do not fall back to answering without those sources. Tell the user to verify thatATLAS_MCP_TOKENandATLAS_MCP_EMAILare configured correctly in the MCP settings and that the token grants access to the requested account. Do not attempt to answer the question until the user retries after fixing credentials.
Offer the user the chance to give feedback at the end of the process. Follow this protocol:
AskUserQuestion)Offer feedback only once the process is finished: after the final deliverable, or when the user signals they are done ("thanks", "that's all", "looks good"). Never offer it mid-grilling or mid-refinement. Immediately before the feedback question, add a one-line sources note, e.g. "Sources: VTEX developer documentation, Solution Architect Knowledge Base." Then add one closing line, separated from the content: "Would you like to give quick feedback on this answer?"
Sources note rules:
retrieve_context informed the answer), "VTEX developer documentation" (the vtex-developer tools were used), "Client architecture document" (get_architecture was used), "Live account data" (the vtex-account tools were used).If the user accepts (yes, sure, ok…), continue to Step 1. Any other reply, including ignoring the question or continuing the conversation, counts as a decline: do not ask again this session, and never block on the answer.
Try AskUserQuestion first. If the tool is unavailable or fails, fall back to the plain text prompt in Step 1b.
Call AskUserQuestion with these questions:
Question 1
Question 2
Question 3
Question 4
If AskUserQuestion is not available, ask:
How was this answer? Rate it 1–5 (1 = poor, 5 = excellent). If you'd like, also share:
- Which VTEX module this was about (e.g. OMS, Checkout, Catalog…)
- What type of issue, if any (wrong guidance / missing knowledge / incomplete / too generic)
- Any additional comments (optional)
(You can reply with just a number if you're in a hurry.)
Once you have the rating, call submit_feedback from the VTEX Architect MCP. Map the collected values as follows:
query — what the user asked, verbatim or a close summarymodule — infer the specific module from the Question 2 answer or the conversation context (e.g. "OMS / Checkout / Payments" → use the most relevant one)skill_used — always "vtex-architect"rating — map from the label: Excellent → 5, Good → 4, Average → 3, Poor → 2issue_type — from Question 3, only include if rating ≤ 3comments — from Question 4, omit if the user selected "No additional comments"submit_feedback(
query = <what the user asked>,
module = <specific VTEX module>,
skill_used = "vtex-architect",
rating = <1–5>,
issue_type = <only if rating ≤ 3>,
comments = <if provided>
)
submit_feedback fails, acknowledge it briefly but do not surface the error as a blocker — the conversation should continue normally.issue_type is only required when rating is 3 or below.README.md (opens in a new tab)references/README.md (opens in a new tab)references/architecture-well-architected.md (opens in a new tab)references/grilling.md (opens in a new tab)references/headless.md (opens in a new tab)references/marketplace.md (opens in a new tab)references/masterdata.md (opens in a new tab)references/payments.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub vtex/ai-plugins --plugin vtex-solution-architect-agent4 skills in this plugin
/vtex-architect-scribeAuthors VTEX technical documentation (integration specs, functional docs, design docs) and then verifies it against ground truth with an independent adversarial fact-check before it ships. Use when the user wants to write, draft, or document a VTEX integration/architecture, or to fact-check / verify an existing VTEX doc. The architect decides; the scribe writes it down and proves it correct. Do NOT use for architecture decisions themselves (use vtex-architect) or for live account state readouts (use vtex-inspector).
/vtex-expertActivate for technical questions about how the VTEX platform works — including platform mechanics, feature behavior, logistics and shipping strategies, OMS order lifecycle, catalog structure, promotions and pricing configuration, checkout behavior, and admin platform configuration. Use when the question is "how does X work" or "how do I configure X" on the VTEX platform. Do NOT activate for solution architecture decisions or system design trade-offs — use vtex-architect for those.
/vtex-inspectorActivate when the user asks about the current state of a specific VTEX account — what is configured, what is active, what has been implemented. Use for questions like "what carriers do we have configured?", "what promotions are currently active?", "what apps are installed?", "how is our shipping set up?", "what does our account architecture look like?", or "what trade policies exist?". Do NOT activate for questions about how the platform works in general (use vtex-expert for that) or for architecture design decisions (use vtex-architect for those).