/data-engineering-skills:masking-pii-datafrom data-engineering-skills
Guides classifying PII, choosing masking vs tokenization vs hashing vs encryption, implementing dynamic masking and column-level access control, and handling deletion/right-to-be-forgotten requests.
Ships in data-engineering-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
| Technique | Reversible | Keeps analytics utility | Use for |
|---|---|---|---|
| Masking / redaction | No | Low | Display, lower envs (j***@x.com) |
| Hashing (salted) | No | Join/match only | Pseudonymous keys, dedup |
| Tokenization | Yes (via vault) | Referential joins | Reversible pseudonymization |
| Encryption | Yes (with key) | None until decrypt | At-rest protection, restricted fields |
- [ ] Classify columns: what is PII/sensitive and its risk level
- [ ] Pick technique per column by whether you need reversibility/joins
- [ ] Apply as early as possible (mask on ingest for lower environments)
- [ ] Enforce column-level access / dynamic masking for raw data
- [ ] Support deletion: know every location a subject's data lives
designing-data-contracts to declare PII fields.Snowflake dynamic masking policy (unmask only for a privileged role):
CREATE MASKING POLICY email_mask AS (val string) RETURNS string ->
CASE WHEN CURRENT_ROLE() IN ('PII_READER') THEN val
ELSE REGEXP_REPLACE(val, '^[^@]+', '***') END;
ALTER TABLE customers MODIFY COLUMN email SET MASKING POLICY email_mask;
Salted hash for pseudonymous joins — hash with a secret salt so the same person matches across tables without exposing the raw identifier; keep the salt in a secrets manager.
Tokenization — replace the value with a token and store the mapping in a restricted vault; analytics use the token, authorized systems detokenize.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
pii-masking, data-anonymization, data-privacy, column-level-security, gdpr, hipaa
36 skills in this plugin
/authoring-airflow-dagsWrite production-grade Apache Airflow DAGs using the TaskFlow API — idempotent tasks, correct scheduling and catchup, retries/SLAs, connections/variables, and avoiding top-level code. Use when creating or reviewing Airflow DAGs, scheduling pipelines, wiring task dependencies, configuring retries/backfills, or fixing non-idempotent tasks./building-dagster-assetsBuild Dagster pipelines using software-defined assets — asset dependencies, partitions, resources and IO managers, asset checks, and schedules/sensors. Use when creating Dagster assets or jobs, modeling data as assets, adding partitions or backfills, wiring resources/IO managers, or migrating from task-based orchestration to assets./building-dbt-modelsBuild well-structured dbt models — staging/intermediate/marts layers, ref() and source(), materializations, and incremental models with the right strategy. Use when creating or refactoring dbt models, choosing table vs view vs incremental, structuring a dbt project, or writing incremental logic./building-feature-pipelinesBuild ML feature pipelines and feature stores — point-in-time-correct joins to avoid label leakage, offline/online parity, feature freshness and backfills, and materialization with tools like Feast. Use when engineering features for ML, preventing train/serve skew or data leakage, building a feature store, or backfilling historical features for training./building-iceberg-tablesDesign and operate Apache Iceberg tables — partitioning and hidden partitioning, partition/schema evolution, snapshots and time travel, compaction and small-file cleanup, and MERGE/upsert for lakehouse tables on Spark, Flink, Trino, or Snowflake. Use when creating or maintaining Iceberg tables, choosing partitioning, evolving schema/partitions, or fixing small-file and metadata bloat./building-ingestion-pipelinesBuild batch and incremental data ingestion (extract-load) pipelines — full vs incremental extraction, change data capture (CDC), watermarks and high-water marks, API pagination and rate limits, and choosing managed EL tools (Fivetran, Airbyte) vs custom code. Use when ingesting data from databases, APIs, files, or SaaS into a warehouse/lake, or designing incremental extraction and CDC.npx claudepluginhub unknown-333/awesome-data-engineering-skills --plugin data-engineering-skillsOther plugins' skills for the same job