LeadUp PII Risk Reviewer
Purpose
Take a project (codebase, schema, admin panel, automation, AI feature)
and produce a structured PII risk review that the LeadUp team can act
on: what PII exists, where it lives, who can see it, how risky it is,
how to mask / encrypt / retain / delete it, and what to put in the
privacy policy / consent flow.
When to use
Use when the user wants privacy / PII risk assessed. Do not trigger
for security review only (use leadup-security-review), pure deploy
gating (use leadup-deploy-checker), or admin panel design only (use
leadup-admin-panel-planner).
Trigger phrases: "PII review", "personal data", "privacy risk",
"customer data", "data protection", "sensitive data", "GDPR", "India
DPDP", "privacy audit", "consent flow".
Inputs needed
- Project context (stack, schema if available, sample data shape).
- Industry (regulated? clinic / finance / kids / real estate).
- Markets served (India, EU, US, Middle East, global).
- Tenant model (single / multi-tenant).
- Existing privacy policy / consent flow (link or text).
- Sub-processors (Razorpay, BSP, email, analytics, AI providers,
hosting).
- Any past incident or audit findings.
Ask at most 2 clarifying questions if industry or markets are unclear.
Tools/resources to use
references/pii-risk-framework.md — categories, scoring, defaults.
assets/pii-risk-review.template.md — output shape.
leadup-security-review — for sensitive scopes / secrets handling.
leadup-admin-panel-planner — to wire masking + audit log.
leadup-api-research-builder — for sub-processor DPA / data flow
questions.
leadup-saas-mvp-planner / leadup-feature-option-planner — when
the review feeds back into product design.
leadup-human-content-editor — for the public-facing privacy
policy + consent copy.
Step-by-step workflow
- Restate the project + markets + tenant model + regulated
status.
- PII inventory: list every PII field (table.column or form
field), with category (Identifier / Contact / Financial / Health /
Demographic / Behavioral / Government ID / Biometric / Child).
- Data flow: where each PII field enters, where it lives, who
accesses it (role), where it leaves (sub-processors), how it's
logged.
- Risk score per field: low / med / high / critical, with one-
line reason.
- Masking rules: default mask + reveal path + audit-log event.
- Encryption rules: in transit (TLS), at rest (column-level for
sensitive, full-disk otherwise), key rotation cadence.
- Retention windows: per category; how long, why, deletion job.
- Export / delete (DSR): how a user can request export / delete;
internal SLA.
- Consent flow: where, when, what text, where stored, withdrawal
path.
- Privacy policy notes: short bullets for the policy page; pass
final copy through
leadup-human-content-editor.
- Developer checklist: concrete code-level checks for the team.
Required output format
One Markdown review with these sections, in this order:
- Brief restate — project, markets, tenant model, regulated.
- PII inventory — table: field · category · table.column /
form · scope · sensitivity.
- Data flow — per field: entry → storage → access roles →
exits (sub-processors) → logs.
- Risk scores — per field: low / med / high / critical + reason.
- Masking rules — table: field · default mask · reveal role +
audit.
- Encryption — in transit / at rest / column-level / key
management.
- Retention — per category: window + reason + deletion job.
- Export / delete — DSR flow + SLA.
- Consent flow — copy + storage + withdrawal.
- Privacy policy notes — bullets to feed
leadup-human-content-editor.
- Developer checklist — code-level checks the team must
complete.
- Hand-offs — security, admin, API research, copy editor.
Safety rules
- Do not read or print real
.env values, secrets, or production
data.
- Do not invent compliance status ("we are GDPR compliant"). State
what's covered, what's gap, what's pending.
- Do not ignore sub-processors. Each one that touches PII gets a
named row + a DPA status (signed / pending / requires action).
- For India: DPDP scope when in force, IT Rules consent, ASCI claims,
KYC for fintech / payments.
- For EU users: GDPR lawful basis named, DSR SLA defined, cookie
consent.
- For children's data: extra care — parental consent, minimal
collection, no profiling.
- For health: stricter masking, audit on every reveal, route to legal
if uncertain.
- For payments: don't store card details server-side (use Razorpay /
Stripe tokenization).
- For AI features: name the model provider, confirm data-training
opt-out, mask before send.
- Use
leadup-human-content-editor before publishing privacy /
consent copy.
Common mistakes
- Listing PII without mapping who can see it.
- "We encrypt everything" — handwave. Name the layer.
- No retention window → data piles up forever.
- No DSR flow → can't comply with deletion requests.
- Logging full phone / email in plaintext.
- Sending raw PII to an LLM without redaction.
- Cookie banner that ignores user choice.
- Privacy policy written in AI-template style → low trust.
Troubleshooting
- No schema available: work from form fields + admin screenshots;
flag as requires verification until schema is reviewed.
- Multi-region: split data flows by region; respect data-residency
if customer requires.
- Regulated industry: tighten masking and retention; route uncertain
questions to a privacy / legal pro.
- Old project with no consent record: prioritize a consent re-
collection flow before any new marketing automation.
- Sub-processor without DPA: flag as gap; pause the integration
until DPA signed.
- AI feature touching PII: route to
leadup-ai-feature-planner +
prefer providers with no-training-by-default and DPA.
Test prompts
Should trigger (5)
- "PII review for our salon booking SaaS."
- "Privacy risk audit on the clinic app (patient notes + payments)."
- "Data protection review for our hostel-management product."
- "India DPDP readiness check on our CRM."
- "GDPR review for our EU customers."
Should NOT trigger (3)
- "Run a full security audit." (→
leadup-security-review)
- "Is the deploy ready?" (→
leadup-deploy-checker)
- "Design the admin panel." (→
leadup-admin-panel-planner)
Functional test cases (2)
- Given "multi-tenant salon SaaS with phone, email, name, address,
GSTIN, Razorpay payments, WhatsApp BSP, Anthropic AI summary",
return a PII inventory with risk scores, masking rules, encryption
layers, retention windows, DSR flow, consent copy, sub-processor
list (Razorpay / BSP / Anthropic) with DPA status, and a developer
checklist.
- Given a clinic SaaS storing patient notes + insurance IDs in EU
and India, return a review with tighter masking and audit on every
reveal, residency notes, parental-consent flag if under-18 users
exist, sub-processor scrutiny including AI provider, and routes
uncertain compliance items to a privacy professional.
Success criteria
- All 12 sections present in order.
- PII inventory covers every field (no "etc.").
- Each field has risk score + reason.
- Masking rules align with admin panel design.
- Encryption layers named (in transit, at rest, column where needed).
- Retention windows named per category.
- DSR flow has a stated SLA.
- Sub-processors listed with DPA status.
- Privacy policy notes ready for
leadup-human-content-editor.
- Developer checklist is concrete (code-level).
- No invented compliance claims.
- No real secrets or PII in the output.
1---2name: leadup-pii-risk-reviewer3description: Review a LeadUp app, SaaS project, CRM, or client website for personal-data and privacy risks. Builds a PII inventory, identifies storage and access scope, scores risk levels, recommends masking and encryption, sets retention windows, designs export/delete flows, and drafts consent and privacy-policy notes aligned with India DPDP, IT Rules, and GDPR where applicable. Use when the user says "PII review", "personal data", "privacy risk", "customer data", "data protection", "sensitive data", "GDPR", or "India DPDP".4---56# LeadUp PII Risk Reviewer78## Purpose910Take a project (codebase, schema, admin panel, automation, AI feature)11and produce a structured PII risk review that the LeadUp team can act12on: what PII exists, where it lives, who can see it, how risky it is,13how to mask / encrypt / retain / delete it, and what to put in the14privacy policy / consent flow.1516## When to use1718Use when the user wants privacy / PII risk assessed. Do **not** trigger19for security review only (use `leadup-security-review`), pure deploy20gating (use `leadup-deploy-checker`), or admin panel design only (use21`leadup-admin-panel-planner`).2223Trigger phrases: "PII review", "personal data", "privacy risk",24"customer data", "data protection", "sensitive data", "GDPR", "India25DPDP", "privacy audit", "consent flow".2627## Inputs needed2829- Project context (stack, schema if available, sample data shape).30- Industry (regulated? clinic / finance / kids / real estate).31- Markets served (India, EU, US, Middle East, global).32- Tenant model (single / multi-tenant).33- Existing privacy policy / consent flow (link or text).34- Sub-processors (Razorpay, BSP, email, analytics, AI providers,35 hosting).36- Any past incident or audit findings.3738Ask at most 2 clarifying questions if industry or markets are unclear.3940## Tools/resources to use4142- `references/pii-risk-framework.md` — categories, scoring, defaults.43- `assets/pii-risk-review.template.md` — output shape.44- `leadup-security-review` — for sensitive scopes / secrets handling.45- `leadup-admin-panel-planner` — to wire masking + audit log.46- `leadup-api-research-builder` — for sub-processor DPA / data flow47 questions.48- `leadup-saas-mvp-planner` / `leadup-feature-option-planner` — when49 the review feeds back into product design.50- `leadup-human-content-editor` — for the public-facing privacy51 policy + consent copy.5253## Step-by-step workflow54551. **Restate** the project + markets + tenant model + regulated56 status.572. **PII inventory**: list every PII field (table.column or form58 field), with category (Identifier / Contact / Financial / Health /59 Demographic / Behavioral / Government ID / Biometric / Child).603. **Data flow**: where each PII field enters, where it lives, who61 accesses it (role), where it leaves (sub-processors), how it's62 logged.634. **Risk score** per field: low / med / high / critical, with one-64 line reason.655. **Masking** rules: default mask + reveal path + audit-log event.666. **Encryption** rules: in transit (TLS), at rest (column-level for67 sensitive, full-disk otherwise), key rotation cadence.687. **Retention** windows: per category; how long, why, deletion job.698. **Export / delete (DSR)**: how a user can request export / delete;70 internal SLA.719. **Consent flow**: where, when, what text, where stored, withdrawal72 path.7310. **Privacy policy notes**: short bullets for the policy page; pass74 final copy through `leadup-human-content-editor`.7511. **Developer checklist**: concrete code-level checks for the team.7677## Required output format7879One Markdown review with these sections, in this order:80811. **Brief restate** — project, markets, tenant model, regulated.822. **PII inventory** — table: field · category · table.column /83 form · scope · sensitivity.843. **Data flow** — per field: entry → storage → access roles →85 exits (sub-processors) → logs.864. **Risk scores** — per field: low / med / high / critical + reason.875. **Masking rules** — table: field · default mask · reveal role +88 audit.896. **Encryption** — in transit / at rest / column-level / key90 management.917. **Retention** — per category: window + reason + deletion job.928. **Export / delete** — DSR flow + SLA.939. **Consent flow** — copy + storage + withdrawal.9410. **Privacy policy notes** — bullets to feed95 `leadup-human-content-editor`.9611. **Developer checklist** — code-level checks the team must97 complete.9812. **Hand-offs** — security, admin, API research, copy editor.99100## Safety rules101102- Do **not** read or print real `.env` values, secrets, or production103 data.104- Do **not** invent compliance status ("we are GDPR compliant"). State105 what's covered, what's gap, what's pending.106- Do **not** ignore sub-processors. Each one that touches PII gets a107 named row + a DPA status (signed / pending / requires action).108- For India: DPDP scope when in force, IT Rules consent, ASCI claims,109 KYC for fintech / payments.110- For EU users: GDPR lawful basis named, DSR SLA defined, cookie111 consent.112- For children's data: extra care — parental consent, minimal113 collection, no profiling.114- For health: stricter masking, audit on every reveal, route to legal115 if uncertain.116- For payments: don't store card details server-side (use Razorpay /117 Stripe tokenization).118- For AI features: name the model provider, confirm data-training119 opt-out, mask before send.120- Use `leadup-human-content-editor` before publishing privacy /121 consent copy.122123## Common mistakes124125- Listing PII without mapping who can see it.126- "We encrypt everything" — handwave. Name the layer.127- No retention window → data piles up forever.128- No DSR flow → can't comply with deletion requests.129- Logging full phone / email in plaintext.130- Sending raw PII to an LLM without redaction.131- Cookie banner that ignores user choice.132- Privacy policy written in AI-template style → low trust.133134## Troubleshooting135136- **No schema available**: work from form fields + admin screenshots;137 flag as **requires verification** until schema is reviewed.138- **Multi-region**: split data flows by region; respect data-residency139 if customer requires.140- **Regulated industry**: tighten masking and retention; route uncertain141 questions to a privacy / legal pro.142- **Old project with no consent record**: prioritize a consent re-143 collection flow before any new marketing automation.144- **Sub-processor without DPA**: flag as gap; pause the integration145 until DPA signed.146- **AI feature touching PII**: route to `leadup-ai-feature-planner` +147 prefer providers with no-training-by-default and DPA.148149## Test prompts150151### Should trigger (5)1521. "PII review for our salon booking SaaS."1532. "Privacy risk audit on the clinic app (patient notes + payments)."1543. "Data protection review for our hostel-management product."1554. "India DPDP readiness check on our CRM."1565. "GDPR review for our EU customers."157158### Should NOT trigger (3)1591. "Run a full security audit." (→ `leadup-security-review`)1602. "Is the deploy ready?" (→ `leadup-deploy-checker`)1613. "Design the admin panel." (→ `leadup-admin-panel-planner`)162163### Functional test cases (2)1641. Given "multi-tenant salon SaaS with phone, email, name, address,165 GSTIN, Razorpay payments, WhatsApp BSP, Anthropic AI summary",166 return a PII inventory with risk scores, masking rules, encryption167 layers, retention windows, DSR flow, consent copy, sub-processor168 list (Razorpay / BSP / Anthropic) with DPA status, and a developer169 checklist.1702. Given a clinic SaaS storing patient notes + insurance IDs in EU171 and India, return a review with tighter masking and audit on every172 reveal, residency notes, parental-consent flag if under-18 users173 exist, sub-processor scrutiny including AI provider, and routes174 uncertain compliance items to a privacy professional.175176## Success criteria177178- All 12 sections present in order.179- PII inventory covers every field (no "etc.").180- Each field has risk score + reason.181- Masking rules align with admin panel design.182- Encryption layers named (in transit, at rest, column where needed).183- Retention windows named per category.184- DSR flow has a stated SLA.185- Sub-processors listed with DPA status.186- Privacy policy notes ready for `leadup-human-content-editor`.187- Developer checklist is concrete (code-level).188- No invented compliance claims.189- No real secrets or PII in the output.