andrassama/dsh-omp-advisor/database-anonymization-scripts
Claude Code and agent skill by andrassama/dsh-omp-advisor
- community
Checking that the SKILL.md file is still in the repository.
Equips the advisor to review database anonymization for why naive masking fails, whether k-anonymity targets are met, and how resistant outputs are to re-identification.
Install
npx vskill@latest install andrassama/dsh-omp-advisor/database-anonymization-scriptsSKILL.md
The same SKILL.md was published earlier as andrassama/dsh-omp-advisor/database-anonymization-scripts.
Database Anonymization Scripts
Swapping names for fake names is not anonymization: quasi-identifiers, correlations, and background knowledge routinely re-identify "masked" datasets. This skill reviews anonymization scripts and their outputs against re-identification reality. Findings are technical review flags; legal adequacy of anonymization is a counsel question.
Watch for
- Direct identifiers removed but quasi-identifiers (zip, birth date, sex, timestamps) left intact at full precision.
- Deterministic pseudonymization with a guessable or reused mapping — effectively a reversible encoding.
- Masking applied inconsistently: one table anonymized, joinable tables not, re-linking identities.
- No k-anonymity (or stronger model) target, or the target unverified on the actual output.
- Free-text fields (notes, descriptions) passing through untouched with embedded identifiers.
- Temporal precision retained: exact timestamps enabling linkage with external events.
- No adversary testing: output never attacked with linkage or inference attempts.
- "Anonymized" copies retained with the same access controls and retention as the original.
Best practices
- Inventory identifiers and quasi-identifiers first; classify each column by re-identification risk.
- Generalize or suppress quasi-identifiers (age bands, region prefixes, coarsened timestamps) to hit a verified k-anonymity target; consider l-diversity or t-closeness for sensitive attributes.
- Use salted, keyed, non-guessable transformations for pseudonymization and protect the mapping separately — or destroy it if re-linking is not needed.
- Apply identical treatment across all joinable tables, or break the join keys.
- Scrub free text with redaction pipelines or exclude it.
- Validate on the output: measure equivalence-class sizes and run linkage attacks against realistic auxiliary data.
- Consider synthetic data generation when analytical utility matters more than row-level fidelity — and validate it too.
- Treat released copies as permanent: apply the strictest threat model because recall is impossible.
Quick checklist
- [ ] All identifier/quasi-identifier columns inventoried.
- [ ] Quasi-identifiers generalized to a verified k target.
- [ ] Pseudonymization non-guessable, mapping protected or destroyed.
- [ ] Joinable tables treated consistently.
- [ ] Free-text fields scrubbed or excluded.
- [ ] Timestamps and rare values coarsened.
- [ ] Output attacked with linkage/inference tests.
- [ ] Release treated as permanent under the strictest threat model.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/database-anonymization-scripts/SKILL.md
Popularity
- Repository stars
- 3
- 7-day trend score
- 12
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/andrassama/dsh-omp-advisor/database-anonymization-scripts)