Consent Pref Center logo

Consent Pref Center

Community
mukul975
consent-pref-center

Technical architecture guide for building a multi-purpose consent preference center. Covers per-purpose granularity, easy withdrawal under Article 7(3), version history, audit trails, and IAB Transparency and Consent Framework v2.2 integration. Includes database schema, API design, and UI component specifications.

Overview

Publishermukul975
RepositoryPrivacy-Data-Protection-Skills
Skill nameconsent-pref-center
Stars
279
Forks
59
Bundled files
4
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 4 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by mukul975 on GitHub. Read the source before you install it.

Installation

Install the Consent Pref Center AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mukul975/Privacy-Data-Protection-Skills.git /tmp/Privacy-Data-Protection-Skills
mkdir -p .claude/skills
cp -r /tmp/Privacy-Data-Protection-Skills/plugins/consent-management-skills/skills/consent-pref-center .claude/skills/consent-pref-center
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Consent Pref Center in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Consent Pref Center on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Consent Pref Center is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Building a Consent Preference Center

Overview

A consent preference center is the centralized interface through which data subjects manage their consent choices across all processing purposes. Under GDPR Article 7(3), withdrawal of consent must be as easy as giving it, making a well-designed preference center critical for compliance. The IAB Europe Transparency and Consent Framework (TCF) v2.2 provides a standardized approach for advertising-related consent that integrates with this architecture.

Architecture Components

1. Data Model

The consent preference center requires four core data entities:

Consent Purpose Registry Stores all processing purposes for which consent is the lawful basis.

FieldTypeDescription
purpose_idUUIDUnique identifier for the processing purpose
purpose_nameVARCHAR(256)Human-readable purpose name
purpose_descriptionTEXTPlain-language description (Flesch-Kincaid grade 8 or below)
legal_basisENUM"consent" or "explicit_consent"
data_categoriesJSONBArray of personal data categories processed
recipientsJSONBArray of named third-party recipients
retention_periodVARCHAR(128)Data retention period for this purpose
tcf_purpose_idINTEGERMapped IAB TCF v2.2 purpose ID (1-11) if applicable
is_activeBOOLEANWhether this purpose is currently offered
created_atTIMESTAMPWhen the purpose was registered
updated_atTIMESTAMPLast modification timestamp

Consent Text Version Immutable records of consent text presented to users.

FieldTypeDescription
version_idUUIDUnique version identifier
purpose_idUUIDFK to purpose registry
consent_textTEXTExact text displayed to the user
text_hashCHAR(64)SHA-256 hash of consent_text
effective_fromTIMESTAMPWhen this version went live
effective_untilTIMESTAMPWhen this version was superseded (NULL if current)
approved_byVARCHAR(256)Name of DPO or legal reviewer who approved

Consent Decision Records each consent decision made by a data subject.

FieldTypeDescription
decision_idUUIDUnique decision identifier
subject_idUUIDData subject identifier
purpose_idUUIDFK to purpose registry
version_idUUIDFK to consent text version shown
decisionENUM"granted" or "withdrawn"
mechanismVARCHAR(64)"checkbox_tick", "toggle_switch", "api_call"
timestampTIMESTAMPISO 8601 UTC timestamp
ip_addressINETIP address at time of decision
user_agentTEXTBrowser user agent string
sourceVARCHAR(64)"signup_flow", "preference_center", "cookie_banner", "api"

Consent Propagation Log Tracks downstream system notifications after consent changes.

FieldTypeDescription
propagation_idUUIDUnique propagation event ID
decision_idUUIDFK to consent decision that triggered this
target_systemVARCHAR(256)Name of downstream system notified
statusENUM"pending", "delivered", "acknowledged", "failed"
sent_atTIMESTAMPWhen notification was dispatched
acknowledged_atTIMESTAMPWhen downstream system confirmed receipt

2. API Design

GET /api/v1/consent/preferences/{subject_id} Returns current consent state for all purposes for a given data subject.

Response:

json
{
  "subject_id": "usr_7f3a9b2e-41d8-4c76-b5e3-9a8d1c2f4e60",
  "preferences": [
    {
      "purpose_id": "pur_analytics_001",
      "purpose_name": "Service Improvement Analytics",
      "decision": "granted",
      "granted_at": "2026-01-15T10:30:00Z",
      "version_id": "ver_a1b2c3d4"
    },
    {
      "purpose_id": "pur_marketing_002",
      "purpose_name": "Product Update Emails",
      "decision": "withdrawn",
      "withdrawn_at": "2026-02-20T14:45:00Z",
      "version_id": "ver_e5f6g7h8"
    }
  ],
  "last_updated": "2026-02-20T14:45:00Z"
}

PUT /api/v1/consent/preferences/{subject_id} Updates consent for one or more purposes. Triggers downstream propagation.

Request:

json
{
  "decisions": [
    {
      "purpose_id": "pur_marketing_002",
      "decision": "granted",
      "mechanism": "toggle_switch"
    }
  ]
}

GET /api/v1/consent/history/{subject_id} Returns full consent history for audit purposes per Article 7(1).

GET /api/v1/consent/receipt/{decision_id} Returns a single consent receipt in Kantara Initiative Consent Receipt format.

3. TCF v2.2 Integration

The IAB Transparency and Consent Framework v2.2 (released September 2023) requires:

  • TC String Generation: Encode consent signals into the IAB TC String format. The TC String is a base64url-encoded bitfield that captures consent for TCF-defined purposes (1-11) and legitimate interest assertions.
  • CMP Registration: Register with the IAB Europe as a Consent Management Platform. Each registered CMP receives a unique CMP ID used in TC String generation.
  • Vendor List Integration: Consume the IAB Global Vendor List (GVL) to display vendor-level consent options. The GVL is published at vendorlist.consensu.org and updated weekly.
  • Purpose Mapping: Map internal CloudVault SaaS Inc. purposes to TCF v2.2 purposes:
    • TCF Purpose 1 (Store and/or access information on a device) → Cookie consent
    • TCF Purpose 3 (Create profiles for personalised advertising) → If applicable
    • TCF Purpose 7 (Measure ad performance) → Analytics consent
  • Publisher Restrictions: Configure publisher-level restrictions to limit vendors to consent-only legal basis where CloudVault SaaS Inc. policy requires it.

4. UI Component Specification

The preference center interface at CloudVault SaaS Inc. follows these design principles:

Layout:

  • Accessible at Settings > Privacy > Manage Consent (maximum 2 clicks from any page)
  • Also accessible via direct URL: app.cloudvault-saas.eu/settings/privacy
  • Persistent "Privacy Choices" link in the page footer on every page

Per-Purpose Toggle:

  • Each purpose displays: purpose name, 1-sentence description, current state (on/off toggle)
  • "Learn More" expandable section with: full description, data categories, recipients, retention period
  • Toggle change triggers immediate API call and visual confirmation

Consent History:

  • "View History" link per purpose showing: date, action (granted/withdrawn), consent text version
  • Downloadable consent receipt in JSON format (Kantara Consent Receipt specification v1.1)

Withdrawal Flow:

  • Single toggle click to withdraw (matching the single click to grant during sign-up)
  • Confirmation dialog: "Are you sure you want to withdraw consent for [purpose]? This will stop [specific processing]. You can re-enable this at any time."
  • Post-withdrawal confirmation: "Consent withdrawn. Processing will stop within 24 hours."

Version History and Audit Trail

Every consent text change creates a new version record. The preference center always displays the current version but retains all historical versions. Audit queries can reconstruct:

  • What text was shown to a specific user at a specific time
  • When consent was given and withdrawn for each purpose
  • Whether downstream systems were notified of consent changes
  • The propagation status and timing for each consent change

Key Regulatory References

  • GDPR Article 7(1) — Demonstrating consent
  • GDPR Article 7(3) — Right to withdraw consent, equal ease requirement
  • GDPR Article 12(1) — Transparent, intelligible, easily accessible information
  • IAB TCF v2.2 Specification (September 2023) — TC String encoding, CMP requirements
  • Kantara Initiative Consent Receipt Specification v1.1 — Standard consent receipt format
  • EDPB Guidelines 05/2020 — Consent under Regulation 2016/679

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Consent Pref Center AI skill do?

Technical architecture guide for building a multi-purpose consent preference center. Covers per-purpose granularity, easy withdrawal under Article 7(3), version history, audit trails, and IAB Transparency and Consent Framework v2.2 integration. Includes database schema, API design, and UI component specifications.

Why use Consent Pref Center on TypingMind?

Because you install it once and use it with any model. Consent Pref Center is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Consent Pref Center in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/mukul975/Privacy-Data-Protection-Skills/tree/main/plugins/consent-management-skills/skills/consent-pref-center. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Consent Pref Center?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Consent Pref Center?

As many as you like. As long as a model supports skills, you can use Consent Pref Center with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Consent Pref Center AI skill free?

Yes. It is published on GitHub by mukul975 under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇