data-parity
Installation
SKILL.md
Data Parity (Table Diff)
CRITICAL: Regulated / Sensitive Data
data_diff includes up to 5 sample diff rows in the tool output so you can see which values differ. Those rows are part of the conversation and are sent to the LLM provider you're using.
Before running data_diff against a table that might contain PII, PHI, PCI, or other regulated data:
- Ask the user whether the target contains regulated columns.
- If yes, prefer
algorithm: "profile"— it compares column-level statistics (count, nulls, min/max, distinct count) without any row values leaving the database. - If a row-level diff is genuinely required, tell the user that up to 5 sample rows will be sent to the LLM and get explicit approval before calling the tool.
- Consider scoping with
where_clauseto exclude sensitive customers/accounts first.
Default to profile mode whenever the table name suggests regulated data (customers, patients, orders, payments, accounts, users, etc.) unless the user explicitly requests row-level comparison.