Skip to content

hashgraph-online/awesome-codex-plugins / plugins/AltByteSG/personal-data-protection-skill/skills/personal-data-protection

personal-data-protection

Verified

Personal-data-protection compliance reference for engineers building applications subject to Singapore PDPA, Indonesia UU PDP, Thailand PDPA, Malaysia PDPA, Philippines DPA (RA 10173), or Vietnam PDPL (91/2025/QH15). Use when reviewing or modifying code that touches personal data — signup/auth/consent, data export, account deletion, retention/purging, admin access to personal-data stores, third-party processors, breach response, or privacy/T&C documents.

FileKindSize
SKILL.mdskill md14.5 KB
checklists/breach-response.mdmarkdown5.6 KB
checklists/new-data-field.mdmarkdown6.8 KB
checklists/new-feature.mdmarkdown11.2 KB
checklists/new-vendor.mdmarkdown7.1 KB
jurisdictions/_index.mdmarkdown12.6 KB
jurisdictions/id-pdp/README.mdmarkdown8.7 KB
jurisdictions/id-pdp/obligations/01-accountability.mdmarkdown12.4 KB
jurisdictions/id-pdp/obligations/02-consent.mdmarkdown7.5 KB
jurisdictions/id-pdp/obligations/03-purpose.mdmarkdown7.0 KB
jurisdictions/id-pdp/obligations/04-access-correction.mdmarkdown8.9 KB
jurisdictions/id-pdp/obligations/05-care.mdmarkdown7.1 KB
jurisdictions/id-pdp/obligations/06-breach-notification.mdmarkdown7.4 KB
jurisdictions/id-pdp/obligations/07-offences.mdmarkdown7.6 KB
jurisdictions/id-pdp/statute-map.mdmarkdown12.5 KB
jurisdictions/my-pdpa/README.mdmarkdown10.2 KB
jurisdictions/my-pdpa/obligations/01-accountability.mdmarkdown6.5 KB
jurisdictions/my-pdpa/obligations/02-consent.mdmarkdown10.0 KB
jurisdictions/my-pdpa/obligations/03-purpose.mdmarkdown9.1 KB
jurisdictions/my-pdpa/obligations/04-access-correction.mdmarkdown11.1 KB
jurisdictions/my-pdpa/obligations/05-care.mdmarkdown11.5 KB
jurisdictions/my-pdpa/obligations/06-breach-notification.mdmarkdown7.6 KB
jurisdictions/my-pdpa/obligations/07-offences.mdmarkdown8.1 KB
jurisdictions/my-pdpa/statute-map.mdmarkdown10.4 KB
jurisdictions/ph-dpa/README.mdmarkdown12.8 KB
jurisdictions/ph-dpa/obligations/01-accountability.mdmarkdown8.3 KB
jurisdictions/ph-dpa/obligations/02-consent.mdmarkdown12.0 KB
jurisdictions/ph-dpa/obligations/03-purpose.mdmarkdown8.7 KB
jurisdictions/ph-dpa/obligations/04-access-correction.mdmarkdown13.4 KB
jurisdictions/ph-dpa/obligations/05-care.mdmarkdown13.6 KB
jurisdictions/ph-dpa/obligations/06-breach-notification.mdmarkdown11.2 KB
jurisdictions/ph-dpa/obligations/07-offences.mdmarkdown11.3 KB
jurisdictions/ph-dpa/statute-map.mdmarkdown10.9 KB
jurisdictions/sg-pdpa/README.mdmarkdown5.4 KB
jurisdictions/sg-pdpa/obligations/01-accountability.mdmarkdown4.0 KB
jurisdictions/sg-pdpa/obligations/02-consent.mdmarkdown6.9 KB
jurisdictions/sg-pdpa/obligations/03-purpose.mdmarkdown4.4 KB
jurisdictions/sg-pdpa/obligations/04-access-correction.mdmarkdown6.5 KB
jurisdictions/sg-pdpa/obligations/05-care.mdmarkdown6.9 KB
jurisdictions/sg-pdpa/obligations/06-breach-notification.mdmarkdown10.5 KB
jurisdictions/sg-pdpa/obligations/07-offences.mdmarkdown6.6 KB
jurisdictions/sg-pdpa/statute-map.mdmarkdown8.0 KB
jurisdictions/th-pdpa/README.mdmarkdown7.3 KB
jurisdictions/th-pdpa/obligations/01-accountability.mdmarkdown7.1 KB
jurisdictions/th-pdpa/obligations/02-consent.mdmarkdown8.5 KB
jurisdictions/th-pdpa/obligations/03-purpose.mdmarkdown4.9 KB
jurisdictions/th-pdpa/obligations/04-access-correction.mdmarkdown7.0 KB
jurisdictions/th-pdpa/obligations/05-care.mdmarkdown7.3 KB
jurisdictions/th-pdpa/obligations/06-breach-notification.mdmarkdown7.0 KB
jurisdictions/th-pdpa/obligations/07-offences.mdmarkdown8.5 KB
jurisdictions/th-pdpa/statute-map.mdmarkdown8.1 KB
jurisdictions/vn-pdpl/README.mdmarkdown9.9 KB
jurisdictions/vn-pdpl/obligations/01-accountability.mdmarkdown5.0 KB
jurisdictions/vn-pdpl/obligations/02-consent.mdmarkdown5.1 KB
jurisdictions/vn-pdpl/obligations/03-purpose.mdmarkdown6.7 KB
jurisdictions/vn-pdpl/obligations/04-access-correction.mdmarkdown4.9 KB
jurisdictions/vn-pdpl/obligations/05-care.mdmarkdown5.0 KB
jurisdictions/vn-pdpl/obligations/06-breach-notification.mdmarkdown5.6 KB
jurisdictions/vn-pdpl/obligations/07-offences.mdmarkdown3.0 KB
jurisdictions/vn-pdpl/obligations/08-sector-specific.mdmarkdown4.4 KB
jurisdictions/vn-pdpl/statute-map.mdmarkdown9.5 KB
layers/01-non-technical.mdmarkdown4.9 KB
layers/02-architecture.mdmarkdown8.0 KB
layers/03-data-model.mdmarkdown8.4 KB
layers/04-controls-and-processes.mdmarkdown9.1 KB
layers/05-feature-ux.mdmarkdown9.0 KB
layers/06-disclosure.mdmarkdown6.5 KB
layers/07-operational.mdmarkdown9.5 KB
templates/INCIDENT_RESPONSE.md.templateother13.2 KB
templates/pdp-nudge.sh.templateother4.5 KB

checklists/new-data-field.md

View on GitHub
# Checklist — Adding a New Personal-Data Field

> ⚠ **Reference material only — not legal advice.** See [DISCLAIMER.md](https://github.com/AltByteSG/personal-data-protection-skill/blob/main/DISCLAIMER.md). Verify against the official statute and consult a qualified DPO / lawyer.

Use when adding a column, JSON field, or storage path that holds personal data about a user.

## 1. Classify the field

What kind of personal data is this?

- [ ] Identifier (UUID, email, phone, username) — already covered by your existing patterns
- [ ] Profile attribute (name, birthday, country, bio) — already covered
- [ ] Location (lat/lng, city, region) — **sensitive**
- [ ] Health (allergies, medical conditions) — **sensitive when paired with identity**
- [ ] Authentication credential (token, hash, secret) — **sensitive**
- [ ] User-generated content (post, message, photo) — covered
- [ ] Behaviour / activity (likes, saves, RSVPs) — covered
- [ ] Children's data (DOB indicating minor, parental info) — **extra-sensitive**
- [ ] Financial information — **sensitive**
- [ ] Other (specify)

If **sensitive** or **other**, also flag in the PR description so reviewers know to apply heightened scrutiny.

## 2. Jurisdiction check

**Do this before the data model and disclosure steps** — the lawful basis, consent
mechanics, and sensitive-data classification below all change what you build.

For each active jurisdiction, confirm:

- [ ] **Singapore PDPA** — does the field fit the existing s17 / 1st-Schedule lawful basis, or does it need explicit consent? If consent: when is it recorded?
- [ ] **Thailand PDPA** — six-base structure (s24); chosen lawful basis documented. If the field is sensitive (s26 broad list), explicit consent dialog required.
- [ ] **Indonesia UU PDP** — six-base structure (Pasal 20); chosen lawful basis documented. If the field is "Specific" Personal Data (Pasal 4: health, biometric, genetic, criminal, children's, financial), explicit consent + **DPIA trigger check** (Pasal 34). RoPA updated (Pasal 31).
- [ ] **Malaysia PDPA** — basis under s6 (consent default + s6(2) carve-outs); s6(3) data-minimisation test (lawful purpose + necessity + non-excessive). If sensitive (s4 incl. **biometric data**), explicit consent under s40(1)(a) + separate consent screen. Recipients list update (s44).
- [ ] **Philippines DPA** — lawful criteria under § 12 (personal information) or § 13 (sensitive personal information); SPI is a **closed statutory list** (race, marital status, age, religion, health, education, genetic, government-issued identifiers, and proceedings) — if the field lands in it, § 13 consent must be **written, electronic-signed, and obtained before processing**. Confirm the field is covered by the NPC-registered processing system description (§ 24 IRR).
- [ ] **Vietnam PDPL** — classify against **Decree Điều 4** (sensitive, closed list) first; anything identifying that is not listed is **basic** by Điều 3(11). Watch four that are sensitive in VN and not elsewhere: **positioning-service location**, **e-ID credentials and ID-card images**, **bank credentials / card / transaction / credit data**, and **behaviour-tracking data on telecom, social and online services** — i.e. ordinary product analytics. If sensitive, Decree Điều 4(2) requires access-limiting permissions, a documented processing procedure and security measures. Consent is per-purpose and cannot be bundled or inferred from silence (Điều 9(4)).

If you flagged the field **sensitive** in step 1:

- [ ] Recorded in your runbook's breach-assessment matrix as a "deemed significant harm" category — exposure of even a single record may be notifiable. Confirm the threshold against each active jurisdiction's `obligations/06-breach-notification.md`.

## 3. Data model ([layer 03](../layers/03-data-model.md))

- [ ] Per-user isolation is enabled on the table (RLS or equivalent).
- [ ] Default value chosen deliberately:
  - `NULL` if optional and the user must opt in
  - `false` for boolean opt-in toggles (no auto-grant)
  - `true` only for transactional / essential defaults that match user expectation at signup
- [ ] If storage-backed: path naming follows the convention `{userId}/...` if user-owned, `{containerId}/...` if shared.
- [ ] **If sensitive (step 1):** encrypted at rest column-level, where the platform supports it. Decide this now — retrofitting encryption means a second migration.

## 4. Lifecycle

For each phase, verify:

- [ ] **Creation** — when is this field first populated? Is consent recorded if appropriate?
- [ ] **Update** — can the user correct it (Correction obligation)? Is there a self-service edit surface, or a documented channel?
- [ ] **Deletion** — what happens on account deletion? CASCADE (owned) or SET NULL (shared)?
- [ ] **Export** — included in the data-export response? **If not, must be added** (Access obligation requires *all* held PII).
- [ ] **Retention** — does it have a TTL? If yes, where does the cleanup run?

## 5. Disclosure ([layer 06](../layers/06-disclosure.md))

- [ ] Privacy policy data-categories section lists the new field with the exact category.
- [ ] Privacy policy purposes table updated if there's a new purpose.
- [ ] Privacy policy retention table updated if a TTL applies.
- [ ] If the field flows to a sub-processor (e.g. push token to FCM, OAuth token to Apple): privacy policy sub-processor table row updated.
- [ ] OS permission usage string updated if a new prompt fires.
- [ ] Jurisdiction-specific notice requirements from step 2 are satisfied (e.g. MY s7(3) bilingual notice).

## 6. Logging hygiene ([layer 04](../layers/04-controls-and-processes.md))

- [ ] No `console.log` / `print` / `debugPrint` includes the raw field value in any server-side function or admin tooling.
- [ ] If logged for ops, run through `redactPII` (or your equivalent helper).

## 7. Admin visibility

- [ ] If this field appears in any admin read endpoint: that endpoint is audit-logged via the throttled read logger.
- [ ] If admin can edit it: that mutation calls the audit logger.
- [ ] **If sensitive (step 1):** access tightened beyond default — even authenticated users may not need it; consider service-only access via a function that strips it on read.

## 8. Sub-processor flow

If the field is **transmitted** to a third party (push body, OAuth token, email content, webhook payload, etc.):

- [ ] Vendor is in the privacy policy sub-processor table.
- [ ] Vendor's DPA covers this category of data.
- [ ] If new vendor: run [`new-vendor.md`](new-vendor.md).

## 9. Backwards compatibility

- [ ] Adding the column doesn't break older clients (they ignore unknown response fields).
- [ ] Adding it to the data-export endpoint is a JSON addition — safe.
- [ ] Adding it as a required parameter to an existing function is a breaking change — coordinate with client version pinning / force-update.
receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementationStars: 322kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 322kUpdated Claude CodeCodexVerifiedInstall
using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallbackStars: 322kUpdated Claude CodeCodexVerifiedInstall
verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions alwaysStars: 322kUpdated Claude CodeCodexVerifiedInstall