Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

sink-connector-mysql-source-of-truth

Skill by Altinity

Reviews changes to replication between MySQL or Postgres and ClickHouse in the Altinity connector. It sets out the rule that the source database is the source of truth, with checks for column kinds, ordering and offsets.

  • Score 73
  • 352 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install sink-connector-mysql-source-of-truth

Built from the published package, never by AI.

git clone --depth 1 https://github.com/Altinity/clickhouse-sink-connector /tmp/clickhouse-sink-connector && mkdir -p ~/.claude/skills && cp -r /tmp/clickhouse-sink-connector/.claude/skills/sink-connector-mysql-source-of-truth ~/.claude/skills/sink-connector-mysql-source-of-truth

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install sink-connector-mysql-source-of-truth in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill is a review checklist for changes that touch replication semantics between MySQL or Postgres and ClickHouse in the Altinity sink connector. It states the prime directive that the source database is the absolute source of truth and that ClickHouse must conform to it. It covers column-kind handling for ALIAS, MATERIALIZED and DEFAULT columns, and the ordering and offset rules that the source says have caused correctness bugs.

It also lists known edge cases, including primary-key changes, foreign-key cascades on older MySQL versions, ADD COLUMN behavior and DST boundaries. The skill asks that behavior changes be specified in specs/ before code is written, and that value-level checks be trusted over row-count matches. It is aimed at developers and reviewers working on the connector's replication code.

Written from the project's SKILL.md and checked against it.

What it can do

  • Column-kind rulesALIAS columns are ignored, MATERIALIZED values follow the source, and ordinary columns bind source values including NULL.
  • Ordering invariantsCovers idempotent apply, ordering by binlog or WAL position, and not using the statement timestamp as an ordering key.
  • Offset invariantRequires the committed offset to lag the corresponding write, never lead it.
  • Edge-case checklistLists primary-key changes, foreign-key cascades, ADD COLUMN behavior and DST boundaries as known limits.
  • Loud failure ruleAsks reviewers to trust value-level verification over row-count matches.
  • Specify before implementingAsks that behavior changes go into specs/ before the code is written.

Try asking

  • Review this PR that changes offset commit timing in the connector
  • Check whether this fix handles MATERIALIZED column drift from the source
  • Does this change keep apply idempotent if the connector restarts mid-batch?

Good to know

  • Primary-key changes on the source are not supported for in-place replication.
  • Older MySQL versions (pre-9.6/9.7) have a known foreign-key cascade replication gap.
  • ADD COLUMN may require a connector restart in some configurations.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .claude/skills/sink-connector-mysql-source-of-truth/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to sink-connector-mysql-source-of-truth

All alternatives →
hugging-face-datasetssickn33
94

Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.

AAA Skill 50k
db-repairgarrytan
94

Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.

AAA Skill 34k
alloydb-basicsgoogle
94

Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.

AAA Skill 26k
clickhouse-logs-queriessupabase
94

Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.

AAA Skill 116k
fix-slow-queriespaperclipai
94

Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.

AAA Skill 119k
prisma-8prisma
94

Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.

AAA Skill 48k

Compare with hugging-face-datasets, db-repair or alloydb-basics

sink-connector-mysql-source-of-truth: common questions

Which databases does this skill cover?

It covers replication between MySQL or Postgres and ClickHouse in the connector. The source says MySQL or Postgres is the absolute source of truth.

Why does the skill say to order by binlog or WAL position?

The source says the statement timestamp is not the commit or visibility time, so ordering by it can apply changes out of order. Binlog or WAL position is described as the only correct ordering.

How should ALIAS columns be handled?

The source says ALIAS columns are never stored and should be ignored when comparing or replicating, because ClickHouse computes them.

How do I install sink-connector-mysql-source-of-truth?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is sink-connector-mysql-source-of-truth free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is sink-connector-mysql-source-of-truth safe to use?

It scores 73 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to sink-connector-mysql-source-of-truth?

Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.

sink-connector-mysql-source-of-truth Install

Add to stack

Loading.