# setting-up-data-catalog

setting-up-data-catalog fills a project's data catalog: canonical metric definitions, trust marks on warehouse tables, and reviewed join proposals.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 182 installs · ★ 101 repo stars
- Author: PostHog
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/PostHog/ai-plugin/tree/HEAD/skills/setting-up-data-catalog/SKILL.md
- Updated: 2026-10-24
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/setting-up-data-catalog

## What it does

The skill keeps a per-project inventory of three things: what a metric means, which of several similar tables can be trusted, and how tables join. Your data stays where it is. Reads go through SQL against `system.information_schema`; writes go through the data-catalog MCP tools.

Setup runs top-down. It proposes certifications for the tables your team leans on and deprecation for stale or duplicate copies, samples candidate keys with `posthog:execute-sql` before any join is proposed, and builds metrics out of the project's most-used insights, linking each to its `source_insight_short_id` so later drift can be detected.

Nothing an agent writes counts until a person approves it. Promotion tools come in pairs: the `-prepare` call shows a confirmation message, you type `confirm`, then the `-execute` call takes the returned hash. Without the data-catalog MCP tools there is no write path at all — plain SQL only reads.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill setting-up-data-catalog -a claude-code
```

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

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill setting-up-data-catalog -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/setting-up-data-catalog/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill setting-up-data-catalog -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/setting-up-data-catalog/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install PostHog/ai-plugin skills/setting-up-data-catalog
```

2. **Manually: put the files in place**
- File: `.github/skills/setting-up-data-catalog/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill setting-up-data-catalog -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/PostHog/ai-plugin --path skills/setting-up-data-catalog
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/setting-up-data-catalog/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill setting-up-data-catalog -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/PostHog/ai-plugin/tree/HEAD/skills/setting-up-data-catalog/SKILL.md

## When to use it
- certify the warehouse tables the team actually relies on
- measure a join key's match rate before proposing the relationship
- turn a heavily used insight into a canonical metric
- clear the review queue of pending certifications and joins
- catch a metric that drifted from its source query

## Example prompts
- Seed the data catalog: propose certifications for the main tables and the joins between them
- Show the pending relationship proposals with their match-rate evidence and wait for my confirmation
- Create a metric from the project's most-used insight and record its grain

## Similar
- [managing-data-catalog](https://affpapa.org/en/nevibecode/skills/managing-data-catalog.md) — skill · 890 installs
- [Marmot Data Catalog](https://affpapa.org/en/nevibecode/mcp/marmot-data-catalog.md) — MCP server · ★ 640 repo stars
- [data-catalog](https://affpapa.org/en/nevibecode/skills/data-catalog.md) — skill · ★ 1627 repo stars
- [create-data-context](https://affpapa.org/en/nevibecode/skills/create-data-context.md) — skill · 1 install
- [setting-up-a-data-warehouse-source](https://affpapa.org/en/nevibecode/skills/setting-up-a-data-warehouse-source.md) — skill · 405 installs
- [ktx-context-layer-data-agents](https://affpapa.org/en/nevibecode/skills/ktx-context-layer-data-agents.md) — skill · 133 installs

From the same set: [posthog/ai-plugin](https://affpapa.org/en/nevibecode/by/posthog/ai-plugin.md) — 82 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
