# setting-up-warehouse-properties

The setting-up-warehouse-properties Claude Code skill maps warehouse columns to person or group properties in PostHog. It runs for reverse ETL setup or when replacing a recurring identify job.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 148 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-warehouse-properties/SKILL.md
- Updated: 2026-10-24
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/setting-up-warehouse-properties

## What it does

The skill sets up property sync from a table or materialized view that is already connected to PostHog. It identifies the source and the column holding a distinct ID or group key, then drafts one complete column-to-property mapping for approval. Existing property names are checked for collisions before the source is created.

The identifier column, `$`-prefixed fields, and `email`, `name`, and `username` are left out of the proposed mapping. Null values leave current properties unchanged, and rows with no matching PostHog person are skipped; the sync does not create profiles. Person and group targets require the `warehouse-person-properties` feature. Group targets also need the `group:write` scope. A materialized view must already be materialized.

## Requirements
- Works with: PostgreSQL

## Install

### Claude Code (native platform)

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

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

### Codex

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

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

### Cursor

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

2. **Manually: put the files in place**
- File: `.cursor/skills/setting-up-warehouse-properties/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-warehouse-properties
```

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

### Gemini CLI

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

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

### Windsurf (Devin Desktop)

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

### OpenCode

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

## When to use it
- copy warehouse table columns into PostHog person properties
- replace a recurring identify job with warehouse property sync
- spot mapped names that collide with existing properties
- populate existing people or groups from historical warehouse rows

## Example prompts
- Map `postgres.customer_attributes` columns to PostHog person properties.
- Set up warehouse property sync to replace our recurring identify job.
- Prepare a column mapping from a materialized view to group properties.

## Similar
- [setting-up-a-data-warehouse-source](https://affpapa.org/en/nevibecode/skills/setting-up-a-data-warehouse-source.md) — skill · 405 installs
- [diagnosing-failed-warehouse-syncs](https://affpapa.org/en/nevibecode/skills/diagnosing-failed-warehouse-syncs.md) — skill · 401 installs
- [warehouse-init](https://affpapa.org/en/nevibecode/skills/warehouse-init.md) — skill · 865 installs
- [cleanup-properties](https://affpapa.org/en/nevibecode/skills/cleanup-properties.md) — skill · ★ 81 repo stars
- [data-warehouse-experimentation](https://affpapa.org/en/nevibecode/skills/data-warehouse-experimentation.md) — skill · 283 installs
- [setting-up-astro-project](https://affpapa.org/en/nevibecode/skills/setting-up-astro-project.md) — skill · 1100 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
