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

jurisdictions/th-pdpa/obligations/03-purpose.md

View on GitHub
# Sections 21–23, 25 — Purpose Limitation, Data Minimization, Notification of Purpose

> ⚠ **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.

## Section 21 — Purpose limitation

**Rule:** *"The Data Controller shall collect, use, or disclose Personal Data according to the purpose notified to the data subject prior to or at the time of such collection."*

**No new purpose** without:
1. Informing the data subject of the new purpose AND obtaining consent prior to the new use, OR
2. Permission under the Act or other law.

**Implementation layer:** [06 Disclosure](../../../layers/06-disclosure.md) (privacy policy purposes table).

**Operationalisation:**
- Maintain a privacy policy purposes table with one row per purpose and the lawful basis (s24 reference) for each
- Every new feature touching Personal Data: map its uses to existing purposes, OR update the policy to add a new purpose **before** launching
- No re-purposing of existing data without fresh consent

## Section 22 — Data minimization

**Rule (verbatim):** *"The collection of Personal Data shall be limited to the extent necessary in relation to the lawful purpose of the Data Controller."*

**Implementation layer:** [03 Data model](../../../layers/03-data-model.md), [05 Feature/UX](../../../layers/05-feature-ux.md).

**Operationalisation:**
- For each new field collected: justify against a stated purpose. If you can't articulate why you need it, you probably can't lawfully collect it.
- Periodic data-inventory audits to identify fields collected but not actually used — these should be removed
- Default to less: short retention, shorter precision (city instead of GPS coordinates), aggregate instead of identifying where possible

## Section 23 — Notification of purpose

**Rule:** the Data Controller must inform the data subject **prior to or at the time of collection** of:

1. **Purpose** of the collection / use / disclosure (including any s24 exception relied on)
2. **Notification** of cases where the data subject must provide the data for compliance with a law / contract, with the **possible effect** of not providing
3. **Categories of Personal Data** collected and the **retention period** (or expected retention if exact period not possible)
4. **Categories of recipients** to whom data may be disclosed
5. **Contact details** of the Data Controller (and representative / DPO where applicable)
6. **Rights of the data subject** under s19 paragraph 5, s30, s31, s32, s33, s34, s36, s73 paragraph 1

**Implementation layer:** [06 Disclosure](../../../layers/06-disclosure.md).

**Operationalisation:**
- Privacy policy covers all six items
- Per-feature contextual notices when new data is collected (camera permission, location access, etc.)
- The DPO contact must be exposed proactively (publishing satisfies "on request")

**Exception:** notice not required where the data subject already knows the details.

## Section 25 — Notice when collecting from other sources

See [02-consent.md](02-consent.md) for the consent / lawful basis aspect. The s23 notification requirement applies mutatis mutandis to data collected from third-party sources, with the **30-day window** for notification (and exceptions for impossibility, urgency, professional confidentiality).

## What this looks like in practice

The privacy policy purposes table is the canonical artifact. A typical Thai-PDPA-aligned table:

| Purpose | Lawful basis (s24) | Categories of data |
|---|---|---|
| Account creation and authentication | (3) Contractual necessity | Email, password hash, name |
| Providing the service | (3) Contractual necessity | All service-related data |
| Country / language detection | (1) Consent at signup OR (5) Legitimate interests | IP-derived locale |
| Notification delivery | (1) Consent | Push token, contact details |
| Crash reporting / performance | (5) Legitimate interests | Anonymised crash data |
| Abuse moderation | (5) Legitimate interests | Reports, content metadata |
| Compliance with law (court orders, regulatory requests) | (6) Legal obligation | As required |
| Sensitive data (health, biometrics, etc.) | (1) Explicit consent under s26 | Per-category |

**Update discipline:** when a layer 03–05 change introduces a new purpose, the table updates in the **same PR**. Drift between code and the purposes table is one of the most common audit findings.

## Penalty exposure (this Part)

| Failure | Maximum administrative fine | Source |
|---|---|---|
| Fails s23 notification | THB 1M | s82 |
| Violates s21 (purpose limitation) | THB 3M | s83 |
| Violates s22 (data minimization) | THB 3M | s83 |
| Violates s25 paragraph 1 (collection from other source without notification / consent) | THB 3M | s83 |
| Obtains consent by deceiving about purpose | THB 3M | s83 |
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