Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

vtex-io-masterdata-strategyVTEX IO 主数据策略

Agent Skill

用于辅助数据整理、表格处理、CSV/Excel 分析、指标计算和图表准备。它适合让 Agent 清洗字段、汇总数据、发现异常、生成统计口径或把分析结果转成可读说明。使用时需要确认数据来源、字段含义和时间范围,避免把样本数据当全量事实;涉及敏感数据、导出文件或批量写回时,应先确认权限和脱敏边界。

总安装

706

周安装

30

GitHub Stars

25

下载量

247
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:vtex-io-masterdata-strategy(VTEX IO 主数据策略)
来源仓库:https://github.com/vtexdocs/ai-skills
仓库路径:skills/vtex-io-masterdata-strategy
安装命令:
npx skills add https://github.com/vtexdocs/ai-skills --skill vtex-io-masterdata-strategy
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/vtexdocs/ai-skills --skill vtex-io-masterdata-strategy

简介

用于辅助数据整理、表格处理和指标计算。vtex-io-masterdata-strategy 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

  • 适合清洗字段、汇总数据、发现异常或生成统计口径。
  • 通过 npx skills add 命令从指定仓库安装并使用该技能。
  • 需确认数据来源和时间范围,避免将样本当作全量事实;涉及敏感数据时应先确认脱敏边界。
  • 建议结合具体业务语义验证分析结果的准确性。

SKILL.md

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"],
  "v-indexed": ["productId", "userId", "approved"]
}

Wrong

{
  "title": "everything-schema",
  "type": "object"
}

Constraint: Indexed fields must match real query behavior

Fields used in filters or lookups MUST be indexed intentionally.

Why this matters

Missing indexes lead to poor query behavior and unnecessary operational risk.

Detection

If queries depend on fields that are not represented in indexing strategy, STOP and align schema and access patterns.

Correct

{
  "v-indexed": ["productId", "approved"]
}

Wrong

{
  "v-indexed": []
}

Constraint: Schema lifecycle must be managed explicitly

Master Data schema evolution MUST be planned with cleanup and versioning in mind.

Why this matters

Unmanaged schema growth creates long-term operational pain and can run into platform limits.

Detection

If schema versions are added with no lifecycle or cleanup plan, STOP and define that plan.

Correct

review-schema-v1 -> review-schema-v2 with cleanup plan

Wrong

review-schema-v1, v2, v3, v4, v5 with no cleanup strategy

Remember that changing indexed fields or field types can affect how existing documents are indexed and queried. When schema evolution is coupled to frequent app version changes, this risk increases.

Constraint: Entity and schema names must remain stable across environments

Entity names and schema identifiers MUST remain stable across accounts, workspaces, and environments. Do not encode account names, workspaces, or rollout flags into the entity or schema name itself.

Why this matters

Per-account or per-workspace schema naming leads to schema sprawl, harder lifecycle management, and operational limits that are difficult to clean up later.

Detection

If the design proposes one entity or schema per workspace, per account, or per environment, STOP and redesign around stable names with scoped fields or records instead.

Correct

review-schema-v1
RV

Wrong

review-schema-brazil-master
RV_US_MASTER

Using one clearly managed schema for development and one for production can be acceptable when there is a deliberate plan to keep them synchronized. Avoid generating schema names per workspace, per account, or per feature flag.

Preferred pattern

Use Master Data for structured custom records, index only what you query, and plan schema evolution deliberately.

Example: app owning a schema through the masterdata builder

  • masterdata/review-schema-v1.json declares the schema and indexes for the RV entity.
  • The app then uses a dedicated Master Data client to create and query RV documents.
{
  "title": "review-schema-v1",
  "v-entity": "RV",
  "type": "object",
  "properties": {
    "productId": { "type": "string" },
    "userId": { "type": "string" },
    "rating": { "type": "number" },
    "approved": { "type": "boolean" }
  },
  "required": ["productId", "userId", "rating"],
  "v-indexed": ["productId", "userId", "approved"]
}

Example: app consuming an existing schema through the client only

  • This app declares no masterdata builder files.
  • It uses the Master Data client against an existing, stable RV entity managed elsewhere.
await ctx.clients.masterdata.createDocument({
  dataEntity: 'RV',
  fields: {
    productId,
    userId,
    rating,
    approved: false,
  },
})

Example: app owning a stable schema in code and ensuring it exists through the client

  • The app keeps a stable schema definition in code.
  • A controlled setup path ensures the schema exists instead of relying on the masterdata builder for every rollout.
const schema = {
  title: 'review-schema-v1',
  'v-entity': 'RV',
}

const existing = await ctx.clients.masterdata.getSchema('review-schema-v1')

if (!existing) {
  await ctx.clients.masterdata.createOrUpdateSchema('review-schema-v1', schema)
}

Common failure modes

  • Creating entities that are too broad.
  • Querying on fields that are not indexed.
  • Accumulating schema versions with no lifecycle plan.
  • Using Master Data as a high-volume log or event sink without retention or archival strategy.
  • Storing configuration, secrets, or cross-app shared settings in Master Data instead of using configuration-specific mechanisms.
  • Generating per-account or per-workspace entities such as RV_storeA_master instead of using a stable entity like RV with scoped record fields.
  • Relying on the masterdata builder for frequent schema changes tied to every app version, causing excessive schema updates and indexing side effects over time.

Review checklist

  • Is Master Data the right storage mechanism for this use case?
  • Should this app own the schema through the masterdata builder, or just consume an existing stable schema through the client?
  • Would a stable schema in code plus a controlled setup path be safer than coupling schema rollout to every app version?
  • Does each entity represent a clear business concept?
  • Are entity and schema names stable across workspaces and accounts?
  • Are filtered fields indexed intentionally?
  • Is there a schema lifecycle plan?
  • If different schemas are used for development and production, is there a clear plan to keep them synchronized without creating schema sprawl?

Related skills

Reference

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.11%
按下载量换算89

Claude

27.91%
按下载量换算69

Cursor

17.75%
按下载量换算44

Gemini CLI

9.2%
按下载量换算23

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills