# Explore Schema

> Explore the Directus schema — list all collections or get detailed field info for a specific collection Arguments: collection-name.

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

---


# Explore Schema

Explore the Directus data model.

## Process

1. If this is the first call in the session, call `system-prompt` tool first (no params)

2. **No argument provided:**
   - Call `schema` tool with no parameters (discovery mode)
   - Display all collections as a table: name, icon, notes
   - Group by collection folders if present
   - Show total collection count

3. **Collection name provided:**
   - Call `schema` tool with `keys: ["<collection-name>"]`
   - Display fields as a table: name, type, interface, required, notes
   - List relations: field → related collection (type)
   - Show display template if set

## Output Format

**Discovery mode:**
```
| Collection | Icon | Notes |
|-----------|------|-------|
| posts     | article | Blog posts |
| authors   | person  | Content authors |
```

**Detailed mode:**
```
## posts

| Field | Type | Interface | Required |
|-------|------|-----------|----------|
| title | string | input | Yes |
| content | text | rich-text-md | No |

Relations:
- author → authors (M2O)
- tags ↔ tags (M2M via posts_tags)
```
