# masterdata-storage-strategy

Guides data architecture decisions in VTEX, helping configure Master Data JSON schemas with indexing, security, and caching rules before creating entities.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 719 installs · ★ 46
- Author: vtex
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/vtex/skills/tree/HEAD/skills/masterdata-storage-strategy/SKILL.md
- Updated: 2026-10-14
- HTML: https://affpapa.org/en/nevibecode/skills/masterdata-storage-strategy

## What it does

The skill establishes architectural rules for VTEX storage. It evaluates whether a workload belongs in Master Data or requires Catalog, OMS, VBase, or an external database. Master Data cannot sustain sub-10ms response times, so placing it in checkout or payment critical paths will hurt conversion rates.

Guidance covers VTEX-specific schema extensions, including `v-indexed`, `v-cache`, `v-default-fields`, and `v-security`. Only query filter fields belong in `v-indexed`. Every secondary index forces updates on every write, driving up latency and consuming storage.

Implementation code for VTEX IO clients is out of scope here; other repository skills handle client integration.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add vtex/skills --skill masterdata-storage-strategy -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/masterdata-storage-strategy/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/masterdata-storage-strategy/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add vtex/skills --skill masterdata-storage-strategy -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/masterdata-storage-strategy/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add vtex/skills --skill masterdata-storage-strategy -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/masterdata-storage-strategy/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install vtex/skills masterdata-storage-strategy
```

2. **Manually: put the files in place**
- File: `.github/skills/masterdata-storage-strategy/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add vtex/skills --skill masterdata-storage-strategy -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/vtex/skills --path skills/masterdata-storage-strategy
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/masterdata-storage-strategy/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add vtex/skills --skill masterdata-storage-strategy -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/vtex/skills/tree/HEAD/skills/masterdata-storage-strategy/SKILL.md

## When to use it
- select between Master Data, VBase, Catalog, and external SQL storage
- configure JSON schemas using `v-indexed` and `v-security`
- determine caching behavior via `v-cache` for high-write entities
- audit existing entity schemas to remove unnecessary secondary indexes

## Example prompts
- Evaluate whether Master Data or VBase is better for storing user session flags
- Design a JSON Schema with `v-indexed` and `v-security` for a product wishlist entity
- Check if my schema indexes too many fields for write-heavy workloads

## Similar
- [mongodb](https://affpapa.org/en/nevibecode/skills/mongodb.md) — skill · 1700 installs
- [catalyst-nosql](https://affpapa.org/en/nevibecode/skills/catalyst-nosql.md) — skill · 991 installs
- [firestore-data](https://affpapa.org/en/nevibecode/skills/firestore-data.md) — skill · 892 installs
- [nosql-database-design](https://affpapa.org/en/nevibecode/skills/nosql-database-design.md) — skill · 486 installs
- [database-management-patterns](https://affpapa.org/en/nevibecode/skills/database-management-patterns.md) — skill · 466 installs
- [design-database-schema](https://affpapa.org/en/nevibecode/commands/design-database-schema.md) — command · 1021 installs

From the same set: [vtex/skills](https://affpapa.org/en/nevibecode/by/vtex/skills.md) — 43 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
