GDPR同意管理器Skill gdpr-consent-manager

GDPR同意管理器是一款专为桌面应用程序设计的合规工具,实现GDPR数据保护法规要求的用户同意管理功能。该工具提供同意对话框生成、用户偏好存储、数据导出与删除处理、多类别同意配置等核心功能,支持Electron、WPF、Qt、SwiftUI等多种开发框架,帮助开发者快速构建符合GDPR合规要求的桌面应用。关键词:GDPR合规,数据隐私,同意管理,桌面应用,用户数据保护,合规工具,数据治理,隐私设计。

前端开发 0 次安装 0 次浏览 更新于 2/25/2026

name: gdpr-consent-manager description: 为桌面应用程序实现符合GDPR的同意管理 allowed-tools: Read, Write, Edit, Bash, Glob, Grep tags: [privacy, gdpr, consent, compliance, desktop]

gdpr-consent-manager

为桌面应用程序实现符合GDPR的同意管理,包含用户偏好设置与数据处理功能。

功能

  • 生成同意对话框界面
  • 存储同意偏好设置
  • 实现同意状态检查
  • 处理数据导出请求
  • 实现数据删除功能
  • 配置同意类别

输入模式

{
  "type": "object",
  "properties": {
    "projectPath": { "type": "string" },
    "consentCategories": { "type": "array" },
    "framework": { "enum": ["electron", "wpf", "qt", "swiftui"] }
  },
  "required": ["projectPath"]
}

同意类别

const consentCategories = {
  necessary: {
    title: '必要功能',
    description: '基础功能所必需',
    required: true
  },
  analytics: {
    title: '分析统计',
    description: '帮助我们改进应用',
    required: false
  },
  crashReporting: {
    title: '崩溃报告',
    description: '帮助我们修复错误',
    required: false
  }
};

同意存储

const Store = require('electron-store');
const consentStore = new Store({ name: 'consent' });

function getConsent(category) {
  return consentStore.get(`consent.${category}`, null);
}

function setConsent(category, granted) {
  consentStore.set(`consent.${category}`, granted);
  consentStore.set(`consent.timestamp`, Date.now());
}

相关技能

  • amplitude-desktop-integration
  • sentry-desktop-setup