Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

vtex-io-masterdata-strategy

БесплатноБез исполняемых скриптовНе проверен

Apply when deciding whether and how VTEX IO apps should use Master Data v2 for custom data. Covers entity boundaries, schema lifecycle, indexing strategy, and…

vtexот vtex★ 47 звёзд на GitHub

Об этом скилле

Master Data Strategy

When this skill applies

Use this skill when deciding whether Master Data v2 is the right mechanism for custom data in a VTEX IO app.

  • Modeling reviews, wishlists, forms, or custom app records
  • Choosing entity boundaries
  • Planning schema indexing and lifecycle
  • Reviewing long-term Master Data design

Do not use this skill for:

  • low-level client usage details
  • runtime or route structure
  • app settings schemas
  • frontend UI behavior

Decision rules

  • Use this skill once Master Data is a serious candidate storage mechanism. For the broader choice between Master Data, VBase, VTEX core APIs, and external stores, use vtex-io-data-access-patterns.
  • Use Master Data for structured custom data that needs validation, indexing, and query support.
  • Use the masterdata builder when this app introduces a new business entity, owns the data model, and wants the schema to be created and versioned as part of the app contract.
  • Prefer using only the Master Data client when the entity and schema already exist and are shared or centrally managed, and this app only needs to read or write records without redefining the schema itself.
  • For stable schemas that the app owns but should not be recreated or updated on every app version, keep the schema definition in code and use the Master Data client in a controlled setup path to create or update the schema only when needed.
  • Remember that Master Data entities are account-scoped. Changing a shared entity or schema affects every app in that account that depends on it, so prefer client-only consumption when the schema is centrally managed.
  • Keep entity boundaries intentional and aligned with the business concept being stored.
  • Index fields that are actually used for filtering and search.
  • Plan schema lifecycle explicitly to avoid schema sprawl.
  • Consider data volume and retention from the start. If the dataset will grow unbounded and there is no retention or archival strategy, Master Data is likely not the right storage mechanism.
  • Do not treat Master Data as an unbounded dumping ground for arbitrary payloads.
  • Do not use Master Data as an unbounded log or event store for high-volume append-only data. Prefer dedicated logging or storage mechanisms when the main need is raw history rather than structured queries.
  • Do not store secrets, credentials, or global app configuration in Master Data. Use app settings or configuration apps instead.
  • Do not generate one entity or schema per account, workspace, or feature flag. Keep a stable entity name and distinguish tenants or environments through record fields when necessary.
  • Be careful when tying schema evolution directly to app versioning through the masterdata builder. Frequent schema changes coupled to app releases can generate excessive schema updates, indexing changes, and long-term schema sprawl.

Choosing between the masterdata builder and the Master Data client

There are three main ways for a VTEX IO app to work with Master Data:

  • Owning the schema via the masterdata builder:

    • The app declares entities and schemas under masterdata/ in the repository.
    • Schema fields, validation, and indexing evolve together with the app code.
    • Use this when the app is the primary owner of the data model, schema changes are relatively infrequent, and the schema should be rolled out as part of the app contract.
  • Consuming an existing schema via the Master Data client only:

    • The app uses a Master Data client, but does not declare entities or schemas through the masterdata builder.
    • The app assumes a stable schema managed elsewhere and only reads or writes records that follow that contract.
    • Use this when the entity is shared across multiple apps or managed centrally, and this app should not redefine or fragment the schema across environments.
  • Owning a stable schema definition in code and applying it through the client:

    • The app keeps a stable schema definition in code instead of masterdata/ builder files.
    • A controlled setup path checks whether the schema exists and creates or updates it only when needed.
    • Use this when the app truly owns the schema, but should not couple schema rollout to every app version or every release pipeline step.

Hard constraints

Constraint: Master Data entities must have explicit schema boundaries

Each entity MUST represent a clear business concept and have a schema that matches its intended usage.

Why this matters

Weak entity boundaries create confusing queries, poor indexing choices, and schema drift.

Detection

If one entity mixes unrelated concepts or stores many unrelated record shapes, STOP and split the design.

Correct

{
  "title": "review-schema-v1",
  "type": "object",
  "properties": {
    "productId": { "type": "string" },
    "userId": { "type": "string" },
    "rating": { "type": "number" },
    "approved": { "type": "boolean" }
  },
  "required": ["productId", "userId", "rating"
Полный SKILL.md на GitHub

Установить vtex-io-masterdata-strategy в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл vtex-io-masterdata-strategy?

Apply when deciding whether and how VTEX IO apps should use Master Data v2 for custom data. Covers entity boundaries, schema lifecycle, indexing strategy, and when Master Data is the right storage mechanism versus another data approach. Use for reviews, wishlists, forms, or other custom data modeling decisions in VTEX IO apps.

Как установить скилл vtex-io-masterdata-strategy?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл vtex-io-masterdata-strategy запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить vtex-io-masterdata-strategy с