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/id-pdp/obligations/03-purpose.md

View on GitHub
# Pasal 16, 21, 27, 28 — Purpose Limitation, Processing Principles, Notification

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

## Contents

- Pasal 16(2) — Personal Data protection principles
- Pasal 27 — Limited, specific, lawful, transparent
- Pasal 28 — Purpose limitation
- Pasal 21 — Notification at consent
- Pasal 17 — Public-area visual processing systems (CCTV-style)
- Pasal 18 — Joint Controllers
- What this looks like in practice
- Penalty exposure (this Part)

## Pasal 16(2) — Personal Data protection principles

**Rule:** Personal Data processing must observe these principles:

a. **Limited and specific** — collected for limited and specific purposes, lawfully and transparently
b. **Aligned with purpose** — processed in accordance with the notified purpose
c. **Guaranteeing Subject's rights** — processing guarantees the Data Subject's rights
d. **Accurate, complete, not misleading, current, accountable** — quality standard
e. **Secured** — protected from unauthorised access, disclosure, alteration, loss
f. **Transparent** — purpose, processing activities, AND any failure of Personal Data protection are notified
g. **Retained per schedule** — destroyed / erased after retention period or on Data Subject request, unless otherwise provided
h. **Responsible and demonstrable** — accountable + provable

**Implementation layers:** [02 Architecture](../../../layers/02-architecture.md), [04 Controls](../../../layers/04-controls-and-processes.md), [03 Data model](../../../layers/03-data-model.md), [06 Disclosure](../../../layers/06-disclosure.md), [05 Feature/UX](../../../layers/05-feature-ux.md).

This is the foundational principles list — every more specific obligation in BAB VI flows from one of these. When designing a feature, the principles serve as a checklist: which of the 8 does this feature implicate, and does the design satisfy each?

## Pasal 27 — Limited, specific, lawful, transparent

**Rule:** the Controller must process Personal Data in a **limited and specific** manner, **lawfully**, and **transparently**.

This restates Pasal 16(2)(a) as a binding obligation on the Controller specifically. Notable for the **specificity** requirement — generic "we may use your data for various purposes" wording in privacy policies is non-compliant.

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

## Pasal 28 — Purpose limitation

**Rule:** the Controller must process Personal Data **in accordance with the purpose of the processing**.

This is the "no re-purposing without fresh consent" rule. New uses of existing data require:
- Either a new consent under Pasal 20(2)(a), OR
- Reliance on a different Pasal 20 lawful basis that covers the new use

**Implementation layer:** [06 Disclosure](../../../layers/06-disclosure.md), [05 Feature/UX](../../../layers/05-feature-ux.md).

**Operationalisation:**
- Maintain a privacy policy purposes table mapping each purpose to the chosen Pasal 20 basis
- New feature → identify whether its data uses fit existing purposes, or require updating the policy + (where relying on consent) re-consenting users
- Document in a lawful-basis register

## Pasal 21 — Notification at consent

See [02-consent.md](02-consent.md). Briefly: when processing is based on consent (Pasal 20(2)(a)), the Controller must inform the Subject of 7 items at the time of consent — covering lawful basis, purpose, data categories, retention, information collected, processing duration, and Subject rights.

**Update on change (Pasal 21(2)):** the Controller must **notify before** any of this information changes. This is a positive obligation — silent change is non-compliant.

## Pasal 17 — Public-area visual processing systems (CCTV-style)

**Rule:** installation of visual data processing systems in public areas / public service facilities is permitted with these conditions:

a. **Only for** security, disaster prevention, **traffic information** collection / analysis / management
b. **Must display information** that the area has visual processing systems (signage)
c. **Not used for personal identification** of individuals

**Exceptions** (Pasal 17(2)): conditions (b) and (c) can be waived for crime prevention and law enforcement.

This is uncommon in privacy statutes — Indonesia explicitly addresses CCTV. **If your application involves any kind of visual capture in public spaces** (smart city sensors, public-facing cameras, etc.), Pasal 17 binds you regardless of consent.

**Implementation layer:** [05 Feature/UX](../../../layers/05-feature-ux.md), [06 Disclosure](../../../layers/06-disclosure.md) (signage requirement).

## Pasal 18 — Joint Controllers

**Rule:** Personal Data processing may be done by 2 or more Controllers jointly. When so, the Controllers must minimum:

a. Have an **agreement** specifying roles, responsibilities, and the relationship between Controllers
b. Have **interrelated purposes** and jointly determined processing methods
c. Have a **jointly-appointed contact**

**Implementation layer:** [01 Non-technical](../../../layers/01-non-technical.md) (joint-controller agreement).

This is similar to GDPR Article 26. Common scenario: a marketing partner where both your company and the partner determine the processing.

## What this looks like in practice

A canonical privacy policy purposes table for an Indonesia-targeting application:

| Purpose | Lawful basis (Pasal 20) | Categories of data | Retention |
|---|---|---|---|
| Account creation, authentication | (b) Contractual necessity | Email, password hash, name | Until account deletion |
| Service delivery | (b) Contractual necessity | All service-related data | Until account deletion + retention period |
| Country / language detection | (a) Consent at signup, OR (f) Legitimate interests | IP-derived locale | Discarded after detection |
| Notification delivery | (a) Consent | Push token, contact details | Until consent withdrawn |
| Crash reporting | (f) Legitimate interests | Anonymised stack traces | 90 days (typical vendor retention) |
| Sensitive ("specific") data — when applicable | (a) Explicit consent under Pasal 20(2)(a) + Pasal 22 | Per category | Per retention schedule |
| Compliance with legal orders | (c) Legal obligation | As required | As required |
| Security incident investigation | (f) Legitimate interests OR (c) Legal obligation | Logs, account metadata | 30–90 days typical |

**Update discipline:** a layer 03–05 change introduces a new purpose → 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 | Source |
|---|---|
| Pasal 27 (limited, specific, lawful, transparent) | Pasal 57 administrative sanctions — ceiling 2% revenue |
| Pasal 28 (purpose limitation) | Pasal 57 |
| Pasal 21 (notification at consent) | Pasal 57 |
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