Map personal data in SQL schemas: parse CREATE TABLE, classify columns by name, flag special categories and tables linked to people by foreign keys. Use when the user asks for a personal data inventory or privacy review of a schema.
94%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Low
Low-risk findings worth noting
Rules are checked in this priority order; the first match wins for a column.
| Category | Name tokens (phrases match contiguous tokens of the column name) |
|---|---|
special_category | health, diagnosis, religion, ethnicity, sexual orientation, biometric, political, union member, genetic |
direct_identifier | email, phone, mobile, ssn, national id, passport, tax id, dni |
name | first name, last name, full name, surname, given name |
date_of_birth | dob, birth date, date of birth, birthdate |
contact_address | address, street, city, postal code, zip, zipcode |
online_identifier | ip, ip address, device id, cookie id, user agent |
financial | iban, card number, account number, salary |
location | latitude, longitude, lat, lng |
_, -, spaces and camelCase boundaries: FirstName and first_name both give first name.user_email_verified matches email; emailing does not.ip_address is classified contact_address (it contains address) before online_identifier is considered.| Role | Meaning |
|---|---|
subject | The table has at least one direct_identifier or name column: it describes people. |
linked | Not a subject, but its foreign keys reach a subject table. via lists the shortest reference path ending at that subject, for example orders via users. |
none | No reachable subject table. |
Foreign keys are followed through column-level REFERENCES and table-level FOREIGN KEY (...) REFERENCES t. Table names are compared case-insensitively; a schema prefix is ignored.
Any table with a special_category column is listed in special_category_tables, whatever its role.
markdown: one row per classified column with Table | Column | Category | Role, tables in order of appearance. Unclassified columns are not listed.json: columns (every column, category may be null), roles (role and via per table) and special_category_tables; sorted keys, two-space indent.overrides in classify) exist in the Python API; the bundled command line does not expose them.CREATE TABLE (for example ALTER TABLE ... ADD COLUMN) are not applied.