Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计通过

vtex-io-data-access-patternsvtex io 数据访问模式

Agent Skill

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

总安装

742

周安装

30

GitHub Stars

25

下载量

233
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/vtexdocs/ai-skills --skill vtex-io-data-access-patterns

简介

用于数据整理、CSV/Excel 分析和指标计算支持。

  • 适合清洗字段、汇总数据或发现异常值。
  • 可生成统计口径或将分析结果转为可读说明。
  • 使用时需确认数据来源与字段含义。vtex-io-data-access-patterns 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 涉及敏感数据导出时应先确认权限与脱敏边界。

SKILL.md

Data Access & Storage Patterns

When this skill applies

Use this skill when the main question is where data should live and how a VTEX IO app should read or write it.

  • Designing new data flows for an IO app
  • Deciding whether to use app settings, configuration apps, Master Data, VBase, or VTEX core APIs
  • Reviewing code that reads or writes large, duplicated, or critical datasets
  • Introducing caching layers or derived local views around existing APIs

Do not use this skill for:

  • detailed Master Data schema or entity modeling
  • app settings or configuration app schema design
  • auth tokens or policies such as AUTH_TOKEN, STORE_TOKEN, or manifest permissions
  • service runtime sizing or concurrency tuning

Decision rules

Choose the right home for each kind of data

  • Use app settings or configuration apps for stable configuration managed by merchants or operators, such as feature flags, credentials, external base URLs, and behavior toggles.
  • Use Master Data for structured custom business records that belong to the account and need validation, filtering, search, pagination, or lifecycle management.
  • Use VBase for simple keyed documents, auxiliary snapshots, or cache-like JSON payloads that are usually read by key rather than searched broadly.
  • Use VTEX core APIs when the data already belongs to a VTEX core domain such as orders, catalog, pricing, or logistics.
  • Use external stores or external APIs when the data belongs to another system and VTEX IO is only integrating with it.

Keep source of truth explicit

  • Treat VTEX core APIs as the source of truth for core commerce domains such as orders, products, prices, inventory, and similar platform-owned data.
  • Do not mirror complete orders, catalog records, prices, or inventories into Master Data or VBase unless there is a narrow derived use case with clear ownership.
  • If an IO app needs a local copy, store only the minimal fields or derived view required for that app and rehydrate full details from the authoritative source when needed.
  • Do not use app settings or configuration apps as generic operational data stores.

Design reads and caches intentionally

  • Prefer API-level filtering, pagination, field selection, and bounded reads instead of loading full datasets into Node and filtering in memory.
  • Use caching only when repeated reads justify it and the cached view has clear invalidation or freshness rules.
  • When a background job or event pipeline needs persistent processing state, store only the status and correlation data required for retries and idempotency.
  • Keep long-lived logs, traces, or unbounded histories out of Master Data and VBase unless the use case explicitly requires a durable app-owned audit trail.

Hard constraints

Constraint: Configuration stores must not be used as operational data storage

App 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"
      }
    }
  }
}

Constraint: Core systems must remain the source of truth for their domains

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

Constraint: Data-heavy reads must avoid full scans and in-memory filtering

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')

Preferred pattern

Start every data design with four questions:

  1. Whose data is this?
  2. Who is the source of truth?
  3. How will the app query it?
  4. Does the app really need to store a local copy?

Then choose intentionally:

  • app settings or configuration apps for stable configuration
  • Master Data for structured custom records owned by the app domain
  • VBase for simple keyed documents or cache-like payloads
  • VTEX core APIs for authoritative commerce data
  • external stores or APIs for data owned outside VTEX

If the app stores a local copy, keep it small, derived, and clearly secondary to the authoritative source.

Common failure modes

  • Using app settings as generic storage for records, histories, or large lists.
  • Mirroring complete orders, products, or prices from VTEX core into Master Data or VBase as a parallel source of truth.
  • Fetching entire datasets only to filter, sort, or aggregate them in memory for normal request flows.
  • Using Master Data or VBase for unbounded debug logs or event dumps.
  • Adding caches without clear freshness, invalidation, or ownership rules.
  • Spreading ad hoc data access decisions across handlers instead of keeping source-of-truth and storage decisions explicit.

Review checklist

  • Is this data truly configuration, or should it live in Master Data, VBase, a core API, or an external system?
  • Is the authoritative source of truth explicit?
  • Is VTEX core being treated as authoritative for orders, catalog, prices, inventory, and similar domains?
  • Is local storage limited to data the app truly owns or a narrow derived view?
  • Are reads bounded with filters, field selection, and pagination where appropriate?
  • Does any cache or local copy have clear freshness and invalidation rules?

Related skills

Reference

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

37.55%
按下载量换算87

Claude

28.73%
按下载量换算67

Cursor

19.9%
按下载量换算46

Gemini CLI

9.96%
按下载量换算23

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

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

来源信息

继续浏览同类 Skills