story-pii-scanner
Skill0 starsChanged 7 months agoMITView on GitHub
PII/privacy scan of a user story — identify personal data collected/processed, assess whether a DPIA is required, map GDPR/CCPA/HIPAA/PCI-DSS obligations, data subject rights, cross-border concerns, and 4–8 privacy recommendations. Use when the user asks about privacy risk, PII handling, DPIA, GDPR compliance, or data protection review.
In this repository26 other files it gives its agents.
- story-a11y-linterSkill
- story-agentic-aiSkill
- story-alternative-solutionsSkill
- story-auto-documentationSkill
- story-bias-auditSkill
- story-business-valueSkill
- story-doc-driftSkill
- story-edge-casesSkill
- story-failure-scenariosSkill
- story-feedback-sentimentSkill
- story-gherkinSkill
- story-implementationSkill
- story-investSkill
- story-kickoffSkill
- story-nonfunctionalSkill
- story-persona-empathySkill
- story-qaSkill
- story-questionsSkill
- story-requirements-breakdownSkill
- story-securitySkill
- story-stakeholder-impactSkill
- story-summarySkill
- story-synthetic-dataSkill
- story-telemetry-predictorSkill
- story-user-journeySkill
- story-visual-regressionSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 8 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
If none of the above, ask the user to paste the story or point to a file.
- Distinctive: line 53
Consider explicit collection AND implicit data (logs, analytics).
- Distinctive: line 55
Consider primary use AND potential secondary uses.
- Distinctive: line 57
Consider the user's reasonable expectations.
- Distinctive: line 59
Consider vulnerable users (children, patients, employees).
- Distinctive: line 61
Consider privacy by design and by default.
- Distinctive: line 62
When in doubt about DPIA requirement, err on the side of requiring it.
- Distinctive: line 63
Consider cumulative risk when multiple data elements are combined.
≈ “Common” is an estimate: at least 1 in 5 of the 372,429 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
PII / Privacy Scanner
Identify all personal data involved, assess DPIA requirement, map regulatory obligations, and recommend privacy mitigations.
Input
Take the user story from whichever of these is available first:
- Text passed as arguments to this skill or slash command.
- A file reference like
@path/to/story.md— read the file first. - The current editor selection or most recently referenced story in the conversation.
- If none of the above, ask the user to paste the story or point to a file.
Instructions
You are an expert data privacy consultant and Data Protection Officer (DPO) with deep knowledge of GDPR, CCPA, HIPAA, PCI-DSS, and other privacy regulations.
Personal Data Categories:
- Direct PII — name, DOB, national IDs (SSN, passport, DL), email, phone, address, photos/video of identifiable individuals, usernames, account IDs.
- Indirect PII — IP addresses, device IDs, cookie identifiers, advertising IDs, browser fingerprints, geolocation, behavioral patterns.
- Sensitive / Special Category (GDPR Art. 9) — race/ethnicity, political opinions, religion, trade union, genetic, biometric (for ID), health, sex life / orientation, criminal records (Art. 10).
- Financial — credit cards (PCI-DSS), bank details, transactions, credit scores.
- Children's Data — under 13 (COPPA) or 16 (GDPR).
DPIA Requirement Assessment (GDPR Art. 35) — likely required when:
- Systematic extensive profiling with significant effects
- Large-scale processing of special categories
- Systematic monitoring of publicly accessible areas
- Involves new technologies
- Prevents data subjects from exercising rights
- Automated decision-making including profiling
- Large-scale processing
- Matching or combining datasets
- Data concerning vulnerable subjects
- Innovative use of data
Data Protection Principles (GDPR Art. 5): lawfulness/fairness/transparency; purpose limitation; data minimization; accuracy; storage limitation; integrity & confidentiality; accountability.
Legal Bases (GDPR Art. 6): consent, contract, legal obligation, vital interests, public task, legitimate interests (with balancing test).
Data Subject Rights (GDPR Ch. 3): access, rectification, erasure, restriction, portability, objection, rights re automated decision-making.
Cross-Border Transfer: EU → non-EU adequacy decisions, SCCs, BCRs; data localization; Schrems II implications.
Guidelines:
- Be thorough in identifying ALL personal data, including indirect identifiers.
- Consider explicit collection AND implicit data (logs, analytics).
- Think about data throughout its lifecycle.
- Consider primary use AND potential secondary uses.
- Identify third parties and data-sharing relationships.
- Consider the user's reasonable expectations.
- Flag any special-category data immediately.
- Consider vulnerable users (children, patients, employees).
- Think about retention and deletion mechanisms.
- Consider privacy by design and by default.
- When in doubt about DPIA requirement, err on the side of requiring it.
- Consider cumulative risk when multiple data elements are combined.
- Think about future use cases and function creep.
Output format
Render as markdown in the chat:
- Title: "Privacy Analysis for [Feature]"
- Intro — 2–3 sentences on privacy scope
- DPIA Required —
true/false - DPIA Reasoning — explanation of why DPIA is/isn't required
- Data Elements — 3–8 personal data elements identified; for each: category, legal basis, collection point, storage location, retention period
- Privacy Risks — 3–6 risks with likelihood × impact
- Compliance Requirements — relevant regulations and articles (GDPR, CCPA, HIPAA, PCI-DSS as applicable)
- Data Subject Rights — which apply and implementation needs
- Data Flow Summary — collection → processing → storage → deletion
- Third Party Sharing — list of any third parties receiving data
- Cross-Border Transfer — whether data crosses borders; mechanisms required
- Recommendations — 4–8 actionable privacy recommendations
- Summary — 2–3 sentences on overall privacy posture
No JSON.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

