sink-parity
Skill by finos
Guides changes to GitProxy's fs, mongo and postgres sink backends so they stay at feature parity. It is for developers changing the Sink interface, entity classes, backend adapters or postgres schema.
Install sink-parity
Built from the published package, never by AI.
git clone --depth 1 https://github.com/finos/git-proxy /tmp/git-proxy && mkdir -p ~/.claude/skills && cp -r /tmp/git-proxy/.agents/skills/sink-parity ~/.claude/skills/sink-parityRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/finos/git-proxy /tmp/git-proxy && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/git-proxy/.agents/skills/sink-parity ~/.gemini/antigravity-cli/skills/sink-parityAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides an AI assistant when a change touches the Sink interface, the entity classes, any of the three GitProxy storage backends, or the migration framework and postgres schema. GitProxy stores its state through interchangeable backends: src/db/file (NeDB), src/db/mongo and src/db/postgres, chosen through the sink config. The skill treats src/db/types.ts as the single source of truth for behaviour.
It gives a checklist for adding Sink members and entity fields, rules for append-only postgres migrations, and parity rules for defaults, case handling, projections and error behaviour. It also asks for unit and integration tests across backends and lists the commands to run before pushing. It is aimed at developers contributing to the GitProxy repository.
Written from the project's SKILL.md and checked against it.
What it can do
- Sink interface changesAdds a new Sink member with a doc comment, then implements it in the fs, mongo and postgres backends.
- Entity field changesWalks through updating the class, postgres schema, create defaults, update allowlist and read mapping.
- Postgres schema migrationsRequires append-only migrations registered in src/db/migrations and run through the Sink hooks.
- Semantic parity rulesCovers matching defaults, case handling, list projections and error behaviour across backends.
- Aligned test scenariosAsks for unit tests per backend and integration tests with the same inputs and expected outputs.
- Pre-push verificationLists the type check, vitest, lint and format commands to run before pushing.
What you need
- Node.js and npm for the repository scripts
- A reachable PostgreSQL database for postgres integration tests
- A reachable MongoDB service for mongo integration tests
Try asking
- Add a new Sink method and implement it in fs, mongo and postgres
- Add a new field to the Repo entity and update the postgres mapping
- Check that my postgres migration keeps parity with mongo and fs
Good to know
- Integration tests are skipped when no external service is reachable.
- The fs backend has no external service, so unit coverage is enough there.
- The type check cannot detect semantic drift between backends.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/sink-parity/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md5 KB
Alternatives to sink-parity
All alternatives →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.
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.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
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.
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.
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.
Compare with hugging-face-datasets, db-repair or alloydb-basics
sink-parity: common questions
Which storage backends must stay in sync in GitProxy?
The skill names three: src/db/file (NeDB), src/db/mongo and src/db/postgres. They all implement the Sink interface in src/db/types.ts.
Do I need a database to run the sink tests?
Unit tests mock the driver, and fs runs in memory. Postgres and mongo integration tests need a reachable service and are skipped otherwise.
Does deriveCreatedAt return a value on every backend?
No. Mongo derives a timestamp from the ObjectId, while fs and postgres return undefined, so callers must fall back.
How do I install sink-parity?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is sink-parity free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is sink-parity safe to use?
It scores 74 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-parity?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
