tuning-incremental-sync-config
What it does
This skill lets an agent adjust the sync settings of a table that is already connected to PostHog's data warehouse. It is for people whose table syncs too often, too slowly or with the wrong tracking field.
When to use it
- ✓When you want to switch a table from a full refresh to an incremental sync.
- ✓When a table syncs too slowly or too often and you want to change its schedule.
- ✓When the source table changed and its sync settings need to catch up.
Skill link
https://github.com/PostHog/posthog/blob/master/products/warehouse_sources/skills/tuning-incremental-sync-config/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Please switch my orders table to sync only new rows and change the schedule so it runs once a day.”
5 new skills a week. 1 minute to read.
How it works
The agent reads the table's current settings and updates the ones you ask for. Most changes take effect on the next sync, but a few, such as changing primary keys, need extra care to avoid corrupting data.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Tuning incremental sync config
A sync's configuration lives on the ExternalDataSchema and can be changed any time via
external-data-schemas-partial-update. Most changes are non-destructive (take effect on the next sync), but a few
(switching sync_type, changing primary keys) require careful handling to avoid corrupting the synced data.
When to use this skill
- The user wants to change how an already-connected table is synced
- A diagnosis flagged the incremental field or primary key as wrong
- The table is syncing too often / not often enough
- Switching an incremental table to CDC (or vice versa)
- The source table was changed on the other side (new columns, dropped columns) and the sync config needs to catch up
If the user is setting up a brand-new source, use setting-up-a-data-warehouse-source instead — configuration is
chosen at creation time there.
Available tools
| Tool | Purpose |
|---|---|
external-data-schemas-retrieve |
Current sync_type, incremental_field, PKs, sync_frequency |
external-data-schemas-incremental-fields-create |
Refresh candidate incremental fields from the live source |
external-data-schemas-partial-update |
Apply the config change |
external-data-schemas-reload |
Trigger a sync with the new config |
external-data-schemas-resync |
Wipe and re-import from scratch when the change invalidates existing data |
external-data-schemas-delete-data |
Drop the synced table while keeping the schema entry |
external-data-sources-check-cdc-prerequisites-create |
Pre-flight Postgres CDC (only when switching to/from CDC) |
external-data-sources-webhook-info-retrieve |
Current webhook state (when switching to/from sync_type=webhook) |
external-data-sources-create-webhook-create |
Register a webhook after switching a schema to sync_type=webhook |
external-data-sources-update-webhook-inputs-create |
Rotate a webhook signing secret |
external-data-sources-delete-webhook-create |
Unregister webhook when switching schemas off sync_type=webhook |
The fields you can tune
From the partial-update endpoint:
| Field | Values | Notes |
|---|---|---|
sync_type |
full_refresh, incremental, append, cdc, webhook |
Source must support the target type — check via incremental-fields |
incremental_field |
Column name from the source | Must appear in incremental_fields list for the schema |
incremental_field_type |
datetime, date, timestamp, integer, numeric, objectid |
Must match the column's real type |
primary_key_columns |
Array of column names | Required for CDC. Used for upsert dedup on incremental |
cdc_table_mode |
consolidated, cdc_only, both |
Only meaningful when sync_type=cdc |
sync_frequency |
5min, 15min, 30min, 1hour, 6hour, 12hour, 24hour, 7day, 30day, never |
How often the table syncs. CDC: how often changes load, 7day max |
sync_time_of_day |
HH:MM:SS |
When sync_frequency is daily/weekly-scale |
should_sync |
true / false |
FAQ
Will changing sync settings erase my data?
Most changes are safe and apply on the next sync. A few changes need careful handling to avoid damaging the data already synced.
Can I switch a table to change data capture?
Yes, the skill covers switching between incremental and change data capture sync modes.
Should I use this for a brand-new source?
No. For a new source, settings are chosen at setup, so the source setup skill is the right one.
Details
Original description by the author
Change the sync configuration of an existing data warehouse schema — switch sync_type, pick a different incremental_field, set primary_key_columns, choose cdc_table_mode, or change sync_frequency. Use when the user asks "switch my orders table from full refresh to incremental", "this table is syncing too slowly / too frequently", "I need to pick a different incremental column", "set up CDC for this Postgres table", or when diagnosis of a failing sync pointed to an incremental-field or PK misconfiguration.
repo: PostHog/posthog
Popularity
- GitHub stars
- 41k
- Ranking position
- #6971
- License
- —
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
depot-ci
41kHelps your agent set up and run Depot CI workflows, a GitHub Actions alternative, including migrating existing workflows and reading run logs.
depot-container-builds
41kHelps your agent build Docker images on Depot's remote builders, including multi-platform images, pushing to registries, and fixing build failures.
depot-github-runners
41kHelps your agent move GitHub Actions jobs to Depot-managed runners, choosing runner sizes and labels, and troubleshooting runner setup issues.
editing-agents-md
41kHelps your agent decide whether a rule belongs in an AGENTS.md or CLAUDE.md file, and write it so it sticks without bloating the file.
Similar skills
discrawl
394kLets your agent search and summarize a saved local archive of Discord messages, check how fresh it is, and read direct messages.
clickhouse-io
280kHelps your agent optimize queries and schemas in ClickHouse databases. It applies best practices for high-performance analytical workloads. Use when analytical queries are too slow.
scientific-db-pubmed-database
280kHelps your agent search for scientific articles in the biomedical field. It's useful for research needing specific medical information.