# Snapshot Schema

> Get a schema snapshot — shows complete data model for one or more collections Arguments: collection1 collection2 ....

- Skill: `agents-store/snapshot-schema` (Agent Skill)
- Install (CLI): `npx get-skill add agents-store/snapshot-schema`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agents-store/snapshot-schema/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: agents-store (https://skillmd.com/u/agents-store)
- Updated: 2026-11-16
- Page: https://skillmd.com/skills/agents-store/snapshot-schema

---


# Snapshot Schema

Get a detailed view of the Directus data model.

## Arguments

- `collection1 collection2 ...` (optional) — Specific collections to snapshot. If omitted, shows discovery overview.

## Process

1. **No arguments:**
   - Call `schema` tool (discovery mode) to list all collections
   - Display collections grouped by folders
   - Show collection count and notes

2. **With collection names:**
   - Call `schema` tool with `keys: ["collection1", "collection2", ...]`
   - For each collection, display:
     - Fields table: name, type, interface, required, default, notes
     - Relations: field → target collection (type, on_delete)
     - Meta: icon, display_template, singleton, versioning, archive settings
   - Call `relations` tool with `action: "read"` for full relation details

3. Format output for easy reading — this is useful for understanding what to migrate or document.

## Example

Input: `posts authors categories`

Shows detailed schema for posts, authors, and categories including all fields, relations, and meta configuration.
