Logotipo de Consent Pref Center

Consent Pref Center

Comunidad
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.

Descripción general

Editormukul975
RepositorioPrivacy-Data-Protection-Skills
Nombre de la habilidadconsent-pref-center
Estrellas
279
Forks
59
Archivos incluidos
4
LicenciaApache-2.0
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Archivos incluidos: 4

    Scripts, plantillas y referencias que el modelo puede leer mientras trabaja. Los archivos son de solo lectura y nunca se ejecutan.

  • Código abierto

    Publicada por mukul975 en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Consent Pref Center en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/mukul975/Privacy-Data-Protection-Skills/tree/main/plugins/consent-management-skills/skills/consent-pref-center
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

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
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Consent Pref Center en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Consent Pref Center automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Consent Pref Center no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

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

Archivos incluidos

El modelo los lee según los necesita mientras la habilidad está cargada. Son archivos de solo lectura y nunca se ejecutan.

Preguntas frecuentes

¿Qué hace la habilidad de IA 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.

¿Por qué usar Consent Pref Center en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Consent Pref Center está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Consent Pref Center en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/mukul975/Privacy-Data-Protection-Skills/tree/main/plugins/consent-management-skills/skills/consent-pref-center. TypingMind lee el archivo SKILL.md de esa carpeta, empaqueta los archivos de la carpeta e instala el conjunto como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Consent Pref Center?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Consent Pref Center?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Consent Pref Center con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Consent Pref Center?

Sí. mukul975 la ha publicado en GitHub bajo la licencia Apache-2.0. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇