[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BWEYP3EZXDYK7QMJ9PMAMF":3,"skill-same:01M7BWEYP3EZXDYK7QMJ9PMAMF":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7BWEYP3EZXDYK7QMJ9PMAMF","gdpr-data-handling",null,"Implement GDPR-compliant data handling with consent management, data subject rights, and privacy by design. Use when building systems that process EU personal data, implementing privacy controls, or conducting GDPR compliance reviews.","YYC-Cube\u002FYYC3-Knowledge-Base","YYC-Cube","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F235006543?v=4","01M79J2PH4SWD2X0825X6PN748","yyc3","01M79J2PHVK3F6ZBYT8K2SCZCW",1,"MIT","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Plugin-插件协议\u002FYYC3-Plugin-插件协议-plugins-claude\u002Fhr-legal-compliance\u002Fskills\u002Fgdpr-data-handling\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: gdpr-data-handling\ndescription: Implement GDPR-compliant data handling with consent management, data subject rights, and privacy by design. Use when building systems that process EU personal data, implementing privacy controls, or conducting GDPR compliance reviews.\n---\n\n# GDPR Data Handling\n\nPractical implementation guide for GDPR-compliant data processing, consent management, and privacy controls.\n\n## When to Use This Skill\n\n- Building systems that process EU personal data\n- Implementing consent management\n- Handling data subject requests (DSRs)\n- Conducting GDPR compliance reviews\n- Designing privacy-first architectures\n- Creating data processing agreements\n\n## Core Concepts\n\n### 1. Personal Data Categories\n\n| Category               | Examples                    | Protection Level   |\n| ---------------------- | --------------------------- | ------------------ |\n| **Basic**              | Name, email, phone          | Standard           |\n| **Sensitive (Art. 9)** | Health, religion, ethnicity | Explicit consent   |\n| **Criminal (Art. 10)** | Convictions, offenses       | Official authority |\n| **Children's**         | Under 16 data               | Parental consent   |\n\n### 2. Legal Bases for Processing\n\n```\nArticle 6 - Lawful Bases:\n├── Consent: Freely given, specific, informed\n├── Contract: Necessary for contract performance\n├── Legal Obligation: Required by law\n├── Vital Interests: Protecting someone's life\n├── Public Interest: Official functions\n└── Legitimate Interest: Balanced against rights\n```\n\n### 3. Data Subject Rights\n\n```\nRight to Access (Art. 15)      ─┐\nRight to Rectification (Art. 16) │\nRight to Erasure (Art. 17)       │ Must respond\nRight to Restrict (Art. 18)      │ within 1 month\nRight to Portability (Art. 20)   │\nRight to Object (Art. 21)       ─┘\n```\n\n## Implementation Patterns\n\n### Pattern 1: Consent Management\n\n```javascript\n\u002F\u002F Consent data model\nconst consentSchema = {\n  userId: String,\n  consents: [\n    {\n      purpose: String, \u002F\u002F 'marketing', 'analytics', etc.\n      granted: Boolean,\n      timestamp: Date,\n      source: String, \u002F\u002F 'web_form', 'api', etc.\n      version: String, \u002F\u002F Privacy policy version\n      ipAddress: String, \u002F\u002F For proof\n      userAgent: String, \u002F\u002F For proof\n    },\n  ],\n  auditLog: [\n    {\n      action: String, \u002F\u002F 'granted', 'withdrawn', 'updated'\n      purpose: String,\n      timestamp: Date,\n      source: String,\n    },\n  ],\n};\n\n\u002F\u002F Consent service\nclass ConsentManager {\n  async recordConsent(userId, purpose, granted, metadata) {\n    const consent = {\n      purpose,\n      granted,\n      timestamp: new Date(),\n      source: metadata.source,\n      version: await this.getCurrentPolicyVersion(),\n      ipAddress: metadata.ipAddress,\n      userAgent: metadata.userAgent,\n    };\n\n    \u002F\u002F Store consent\n    await this.db.consents.updateOne(\n      { userId },\n      {\n        $push: {\n          consents: consent,\n          auditLog: {\n            action: granted ? \"granted\" : \"withdrawn\",\n            purpose,\n            timestamp: consent.timestamp,\n            source: metadata.source,\n          },\n        },\n      },\n      { upsert: true },\n    );\n\n    \u002F\u002F Emit event for downstream systems\n    await this.eventBus.emit(\"consent.changed\", {\n      userId,\n      purpose,\n      granted,\n      timestamp: consent.timestamp,\n    });\n  }\n\n  async hasConsent(userId, purpose) {\n    const record = await this.db.consents.findOne({ userId });\n    if (!record) return false;\n\n    const latestConsent = record.consents\n      .filter((c) => c.purpose === purpose)\n      .sort((a, b) => b.timestamp - a.timestamp)[0];\n\n    return latestConsent?.granted === true;\n  }\n\n  async getConsentHistory(userId) {\n    const record = await this.db.consents.findOne({ userId });\n    return record?.auditLog || [];\n  }\n}\n```\n\n```html\n\u003C!-- GDPR-compliant consent UI -->\n\u003Cdiv class=\"consent-banner\" role=\"dialog\" aria-labelledby=\"consent-title\">\n  \u003Ch2 id=\"consent-title\">Cookie Preferences\u003C\u002Fh2>\n\n  \u003Cp>\n    We use cookies to improve your experience. Select your preferences below.\n  \u003C\u002Fp>\n\n  \u003Cform id=\"consent-form\">\n    \u003C!-- Necessary - always on, no consent needed -->\n    \u003Cdiv class=\"consent-category\">\n      \u003Cinput type=\"checkbox\" id=\"necessary\" checked disabled \u002F>\n      \u003Clabel for=\"necessary\">\n        \u003Cstrong>Necessary\u003C\u002Fstrong>\n        \u003Cspan>Required for the website to function. Cannot be disabled.\u003C\u002Fspan>\n      \u003C\u002Flabel>\n    \u003C\u002Fdiv>\n\n    \u003C!-- Analytics - requires consent -->\n    \u003Cdiv class=\"consent-category\">\n      \u003Cinput type=\"checkbox\" id=\"analytics\" name=\"analytics\" \u002F>\n      \u003Clabel for=\"analytics\">\n        \u003Cstrong>Analytics\u003C\u002Fstrong>\n        \u003Cspan>Help us understand how you use our site.\u003C\u002Fspan>\n      \u003C\u002Flabel>\n    \u003C\u002Fdiv>\n\n    \u003C!-- Marketing - requires consent -->\n    \u003Cdiv class=\"consent-category\">\n      \u003Cinput type=\"checkbox\" id=\"marketing\" name=\"marketing\" \u002F>\n      \u003Clabel for=\"marketing\">\n        \u003Cstrong>Marketing\u003C\u002Fstrong>\n        \u003Cspan>Personalized ads based on your interests.\u003C\u002Fspan>\n      \u003C\u002Flabel>\n    \u003C\u002Fdiv>\n\n    \u003Cdiv class=\"consent-actions\">\n      \u003Cbutton type=\"button\" id=\"accept-all\">Accept All\u003C\u002Fbutton>\n      \u003Cbutton type=\"button\" id=\"reject-all\">Reject All\u003C\u002Fbutton>\n      \u003Cbutton type=\"submit\">Save Preferences\u003C\u002Fbutton>\n    \u003C\u002Fdiv>\n\n    \u003Cp class=\"consent-links\">\n      \u003Ca href=\"\u002Fprivacy-policy\">Privacy Policy\u003C\u002Fa> |\n      \u003Ca href=\"\u002Fcookie-policy\">Cookie Policy\u003C\u002Fa>\n    \u003C\u002Fp>\n  \u003C\u002Fform>\n\u003C\u002Fdiv>\n```\n\n### Pattern 2: Data Subject Access Request (DSAR)\n\n```python\nfrom datetime import datetime, timedelta\nfrom typing import Dict, List, Optional\nimport json\n\nclass DSARHandler:\n    \"\"\"Handle Data Subject Access Requests.\"\"\"\n\n    RESPONSE_DEADLINE_DAYS = 30\n    EXTENSION_ALLOWED_DAYS = 60  # For complex requests\n\n    def __init__(self, data_sources: List['DataSource']):\n        self.data_sources = data_sources\n\n    async def submit_request(\n        self,\n        request_type: str,  # 'access', 'erasure', 'rectification', 'portability'\n        user_id: str,\n        verified: bool,\n        details: Optional[Dict] = None\n    ) -> str:\n        \"\"\"Submit a new DSAR.\"\"\"\n        request = {\n            'id': self.generate_request_id(),\n            'type': request_type,\n            'user_id': user_id,\n            'status': 'pending_verification' if not verified else 'processing',\n            'submitted_at': datetime.utcnow(),\n            'deadline': datetime.utcnow() + timedelta(days=self.RESPONSE_DEADLINE_DAYS),\n            'details': details or {},\n            'audit_log': [{\n                'action': 'submitted',\n                'timestamp': datetime.utcnow(),\n                'details': 'Request received'\n            }]\n        }\n\n        await self.db.dsar_requests.insert_one(request)\n        await self.notify_dpo(request)\n\n        return request['id']\n\n    async def process_access_request(self, request_id: str) -> Dict:\n        \"\"\"Process a data access request.\"\"\"\n        request = await self.get_request(request_id)\n\n        if request['type'] != 'access':\n            raise ValueError(\"Not an access request\")\n\n        # Collect data from all sources\n        user_data = {}\n        for source in self.data_sources:\n            try:\n                data = await source.get_user_data(request['user_id'])\n                user_data[source.name] = data\n            except Exception as e:\n                user_data[source.name] = {'error': str(e)}\n\n        # Format response\n        response = {\n            'request_id': request_id,\n            'generated_at': datetime.utcnow().isoformat(),\n            'data_categories': list(user_data.keys()),\n            'data': user_data,\n            'retention_info': await self.get_retention_info(),\n            'processing_purposes': await self.get_processing_purposes(),\n            'third_party_recipients': await self.get_recipients()\n        }\n\n        # Update request status\n        await self.update_request(request_id, 'completed', response)\n\n        return response\n\n    async def process_erasure_request(self, request_id: str) -> Dict:\n        \"\"\"Process a right to erasure request.\"\"\"\n        request = await self.get_request(request_id)\n\n        if request['type'] != 'erasure':\n            raise ValueError(\"Not an erasure request\")\n\n        results = {}\n        exceptions = []\n\n        for source in self.data_sources:\n            try:\n                # Check for legal exceptions\n                can_delete, reason = await source.can_delete(request['user_id'])\n\n                if can_delete:\n                    await source.delete_user_data(request['user_id'])\n                    results[source.name] = 'deleted'\n                else:\n                    exceptions.append({\n                        'source': source.name,\n                        'reason': reason  # e.g., 'legal retention requirement'\n                    })\n                    results[source.name] = f'retained: {reason}'\n            except Exception as e:\n                results[source.name] = f'error: {str(e)}'\n\n        response = {\n            'request_id': request_id,\n            'completed_at': datetime.utcnow().isoformat(),\n            'results': results,\n            'exceptions': exceptions\n        }\n\n        await self.update_request(request_id, 'completed', response)\n\n        return response\n\n    async def process_portability_request(self, request_id: str) -> bytes:\n        \"\"\"Generate portable data export.\"\"\"\n        request = await self.get_request(request_id)\n        user_data = await self.process_access_request(request_id)\n\n        # Convert to machine-readable format (JSON)\n        portable_data = {\n            'export_date': datetime.utcnow().isoformat(),\n            'format_version': '1.0',\n            'data': user_data['data']\n        }\n\n        return json.dumps(portable_data, indent=2, default=str).encode()\n```\n\n### Pattern 3: Data Retention\n\n```python\nfrom datetime import datetime, timedelta\nfrom enum import Enum\n\nclass RetentionBasis(Enum):\n    CONSENT = \"consent\"\n    CONTRACT = \"contract\"\n    LEGAL_OBLIGATION = \"legal_obligation\"\n    LEGITIMATE_INTEREST = \"legitimate_interest\"\n\nclass DataRetentionPolicy:\n    \"\"\"Define and enforce data retention policies.\"\"\"\n\n    POLICIES = {\n        'user_account': {\n            'retention_period_days': 365 * 3,  # 3 years after last activity\n            'basis': RetentionBasis.CONTRACT,\n            'trigger': 'last_activity_date',\n            'archive_before_delete': True\n        },\n        'transaction_records': {\n            'retention_period_days': 365 * 7,  # 7 years for tax\n            'basis': RetentionBasis.LEGAL_OBLIGATION,\n            'trigger': 'transaction_date',\n            'archive_before_delete': True,\n            'legal_reference': 'Tax regulations require 7 year retention'\n        },\n        'marketing_consent': {\n            'retention_period_days': 365 * 2,  # 2 years\n            'basis': RetentionBasis.CONSENT,\n            'trigger': 'consent_date',\n            'archive_before_delete': False\n        },\n        'support_tickets': {\n            'retention_period_days': 365 * 2,\n            'basis': RetentionBasis.LEGITIMATE_INTEREST,\n            'trigger': 'ticket_closed_date',\n            'archive_before_delete': True\n        },\n        'analytics_data': {\n            'retention_period_days': 365,  # 1 year\n            'basis': RetentionBasis.CONSENT,\n            'trigger': 'collection_date',\n            'archive_before_delete': False,\n            'anonymize_instead': True\n        }\n    }\n\n    async def apply_retention_policies(self):\n        \"\"\"Run retention policy enforcement.\"\"\"\n        for data_type, policy in self.POLICIES.items():\n            cutoff_date = datetime.utcnow() - timedelta(\n                days=policy['retention_period_days']\n            )\n\n            if policy.get('anonymize_instead'):\n                await self.anonymize_old_data(data_type, cutoff_date)\n            else:\n                if policy.get('archive_before_delete'):\n                    await self.archive_data(data_type, cutoff_date)\n                await self.delete_old_data(data_type, cutoff_date)\n\n            await self.log_retention_action(data_type, cutoff_date)\n\n    async def anonymize_old_data(self, data_type: str, before_date: datetime):\n        \"\"\"Anonymize data instead of deleting.\"\"\"\n        # Example: Replace identifying fields with hashes\n        if data_type == 'analytics_data':\n            await self.db.analytics.update_many(\n                {'collection_date': {'$lt': before_date}},\n                {'$set': {\n                    'user_id': None,\n                    'ip_address': None,\n                    'device_id': None,\n                    'anonymized': True,\n                    'anonymized_date': datetime.utcnow()\n                }}\n            )\n```\n\n### Pattern 4: Privacy by Design\n\n```python\nclass PrivacyFirstDataModel:\n    \"\"\"Example of privacy-by-design data model.\"\"\"\n\n    # Separate PII from behavioral data\n    user_profile_schema = {\n        'user_id': str,  # UUID, not sequential\n        'email_hash': str,  # Hashed for lookups\n        'created_at': datetime,\n        # Minimal data collection\n        'preferences': {\n            'language': str,\n            'timezone': str\n        }\n    }\n\n    # Encrypted at rest\n    user_pii_schema = {\n        'user_id': str,\n        'email': str,  # Encrypted\n        'name': str,   # Encrypted\n        'phone': str,  # Encrypted (optional)\n        'address': dict,  # Encrypted (optional)\n        'encryption_key_id': str\n    }\n\n    # Pseudonymized behavioral data\n    analytics_schema = {\n        'session_id': str,  # Not linked to user_id\n        'pseudonym_id': str,  # Rotating pseudonym\n        'events': list,\n        'device_category': str,  # Generalized, not specific\n        'country': str,  # Not city-level\n    }\n\nclass DataMinimization:\n    \"\"\"Implement data minimization principles.\"\"\"\n\n    @staticmethod\n    def collect_only_needed(form_data: dict, purpose: str) -> dict:\n        \"\"\"Filter form data to only fields needed for purpose.\"\"\"\n        REQUIRED_FIELDS = {\n            'account_creation': ['email', 'password'],\n            'newsletter': ['email'],\n            'purchase': ['email', 'name', 'address', 'payment'],\n            'support': ['email', 'message']\n        }\n\n        allowed = REQUIRED_FIELDS.get(purpose, [])\n        return {k: v for k, v in form_data.items() if k in allowed}\n\n    @staticmethod\n    def generalize_location(ip_address: str) -> str:\n        \"\"\"Generalize IP to country level only.\"\"\"\n        import geoip2.database\n        reader = geoip2.database.Reader('GeoLite2-Country.mmdb')\n        try:\n            response = reader.country(ip_address)\n            return response.country.iso_code\n        except:\n            return 'UNKNOWN'\n```\n\n### Pattern 5: Breach Notification\n\n```python\nfrom datetime import datetime\nfrom enum import Enum\n\nclass BreachSeverity(Enum):\n    LOW = \"low\"\n    MEDIUM = \"medium\"\n    HIGH = \"high\"\n    CRITICAL = \"critical\"\n\nclass BreachNotificationHandler:\n    \"\"\"Handle GDPR breach notification requirements.\"\"\"\n\n    AUTHORITY_NOTIFICATION_HOURS = 72\n    AFFECTED_NOTIFICATION_REQUIRED_SEVERITY = BreachSeverity.HIGH\n\n    async def report_breach(\n        self,\n        description: str,\n        data_types: List[str],\n        affected_count: int,\n        severity: BreachSeverity\n    ) -> dict:\n        \"\"\"Report and handle a data breach.\"\"\"\n        breach = {\n            'id': self.generate_breach_id(),\n            'reported_at': datetime.utcnow(),\n            'description': description,\n            'data_types_affected': data_types,\n            'affected_individuals_count': affected_count,\n            'severity': severity.value,\n            'status': 'investigating',\n            'timeline': [{\n                'event': 'breach_reported',\n                'timestamp': datetime.utcnow(),\n                'details': description\n            }]\n        }\n\n        await self.db.breaches.insert_one(breach)\n\n        # Immediate notifications\n        await self.notify_dpo(breach)\n        await self.notify_security_team(breach)\n\n        # Authority notification required within 72 hours\n        if self.requires_authority_notification(severity, data_types):\n            breach['authority_notification_deadline'] = (\n                datetime.utcnow() + timedelta(hours=self.AUTHORITY_NOTIFICATION_HOURS)\n            )\n            await self.schedule_authority_notification(breach)\n\n        # Affected individuals notification\n        if severity.value in [BreachSeverity.HIGH.value, BreachSeverity.CRITICAL.value]:\n            await self.schedule_individual_notifications(breach)\n\n        return breach\n\n    def requires_authority_notification(\n        self,\n        severity: BreachSeverity,\n        data_types: List[str]\n    ) -> bool:\n        \"\"\"Determine if supervisory authority must be notified.\"\"\"\n        # Always notify for sensitive data\n        sensitive_types = ['health', 'financial', 'credentials', 'biometric']\n        if any(t in sensitive_types for t in data_types):\n            return True\n\n        # Notify for medium+ severity\n        return severity in [BreachSeverity.MEDIUM, BreachSeverity.HIGH, BreachSeverity.CRITICAL]\n\n    async def generate_authority_report(self, breach_id: str) -> dict:\n        \"\"\"Generate report for supervisory authority.\"\"\"\n        breach = await self.get_breach(breach_id)\n\n        return {\n            'organization': {\n                'name': self.config.org_name,\n                'contact': self.config.dpo_contact,\n                'registration': self.config.registration_number\n            },\n            'breach': {\n                'nature': breach['description'],\n                'categories_affected': breach['data_types_affected'],\n                'approximate_number_affected': breach['affected_individuals_count'],\n                'likely_consequences': self.assess_consequences(breach),\n                'measures_taken': await self.get_remediation_measures(breach_id),\n                'measures_proposed': await self.get_proposed_measures(breach_id)\n            },\n            'timeline': breach['timeline'],\n            'submitted_at': datetime.utcnow().isoformat()\n        }\n```\n\n## Compliance Checklist\n\n```markdown\n## GDPR Implementation Checklist\n\n### Legal Basis\n\n- [ ] Documented legal basis for each processing activity\n- [ ] Consent mechanisms meet GDPR requirements\n- [ ] Legitimate interest assessments completed\n\n### Transparency\n\n- [ ] Privacy policy is clear and accessible\n- [ ] Processing purposes clearly stated\n- [ ] Data retention periods documented\n\n### Data Subject Rights\n\n- [ ] Access request process implemented\n- [ ] Erasure request process implemented\n- [ ] Portability export available\n- [ ] Rectification process available\n- [ ] Response within 30-day deadline\n\n### Security\n\n- [ ] Encryption at rest implemented\n- [ ] Encryption in transit (TLS)\n- [ ] Access controls in place\n- [ ] Audit logging enabled\n\n### Breach Response\n\n- [ ] Breach detection mechanisms\n- [ ] 72-hour notification process\n- [ ] Breach documentation system\n\n### Documentation\n\n- [ ] Records of processing activities (Art. 30)\n- [ ] Data protection impact assessments\n- [ ] Data processing agreements with vendors\n```\n\n## Best Practices\n\n### Do's\n\n- **Minimize data collection** - Only collect what's needed\n- **Document everything** - Processing activities, legal bases\n- **Encrypt PII** - At rest and in transit\n- **Implement access controls** - Need-to-know basis\n- **Regular audits** - Verify compliance continuously\n\n### Don'ts\n\n- **Don't pre-check consent boxes** - Must be opt-in\n- **Don't bundle consent** - Separate purposes separately\n- **Don't retain indefinitely** - Define and enforce retention\n- **Don't ignore DSARs** - 30-day response required\n- **Don't transfer without safeguards** - SCCs or adequacy decisions\n","# GDPR Data Handling\n\nPractical implementation guide for GDPR-compliant data processing, consent management, and privacy controls.\n\n## When to Use This Skill\n\n- Building systems that process EU personal data\n- Implementing consent management\n- Handling data subject requests (DSRs)\n- Conducting GDPR compliance reviews\n- Designing privacy-first architectures\n- Creating data processing agreements\n\n## Core Concepts\n\n### 1. Personal Data Categories\n\n| Category               | Examples                    | Protection Level   |\n| ---------------------- | --------------------------- | ------------------ |\n| **Basic**              | Name, email, phone          | Standard           |\n| **Sensitive (Art. 9)** | Health, religion, ethnicity | Explicit consent   |\n| **Criminal (Art. 10)** | Convictions, offenses       | Official authority |\n| **Children's**         | Under 16 data               | Parental consent   |\n\n### 2. Legal Bases for Processing\n\n```\nArticle 6 - Lawful Bases:\n├── Consent: Freely given, specific, informed\n├── Contract: Necessary for contract performance\n├── Legal Obligation: Required by law\n├── Vital Interests: Protecting someone's life\n├── Public Interest: Official functions\n└── Legitimate Interest: Balanced against rights\n```\n\n### 3. Data Subject Rights\n\n```\nRight to Access (Art. 15)      ─┐\nRight to Rectification (Art. 16) │\nRight to Erasure (Art. 17)       │ Must respond\nRight to Restrict (Art. 18)      │ within 1 month\nRight to Portability (Art. 20)   │\nRight to Object (Art. 21)       ─┘\n```\n\n## Implementation Patterns\n\n### Pattern 1: Consent Management\n\n```javascript\n\u002F\u002F Consent data model\nconst consentSchema = {\n  userId: String,\n  consents: [\n    {\n      purpose: String, \u002F\u002F 'marketing', 'analytics', etc.\n      granted: Boolean,\n      timestamp: Date,\n      source: String, \u002F\u002F 'web_form', 'api', etc.\n      version: String, \u002F\u002F Privacy policy version\n      ipAddress: String, \u002F\u002F For proof\n      userAgent: String, \u002F\u002F For proof\n    },\n  ],\n  auditLog: [\n    {\n      action: String, \u002F\u002F 'granted', 'withdrawn', 'updated'\n      purpose: String,\n      timestamp: Date,\n      source: String,\n    },\n  ],\n};\n\n\u002F\u002F Consent service\nclass ConsentManager {\n  async recordConsent(userId, purpose, granted, metadata) {\n    const consent = {\n      purpose,\n      granted,\n      timestamp: new Date(),\n      source: metadata.source,\n      version: await this.getCurrentPolicyVersion(),\n      ipAddress: metadata.ipAddress,\n      userAgent: metadata.userAgent,\n    };\n\n    \u002F\u002F Store consent\n    await this.db.consents.updateOne(\n      { userId },\n      {\n        $push: {\n          consents: consent,\n          auditLog: {\n            action: granted ? \"granted\" : \"withdrawn\",\n            purpose,\n            timestamp: consent.timestamp,\n            source: metadata.source,\n          },\n        },\n      },\n      { upsert: true },\n    );\n\n    \u002F\u002F Emit event for downstream systems\n    await this.eventBus.emit(\"consent.changed\", {\n      userId,\n      purpose,\n      granted,\n      timestamp: consent.timestamp,\n    });\n  }\n\n  async hasConsent(userId, purpose) {\n    const record = await this.db.consents.findOne({ userId });\n    if (!record) return false;\n\n    const latestConsent = record.consents\n      .filter((c) => c.purpose === purpose)\n      .sort((a, b) => b.timestamp - a.timestamp)[0];\n\n    return latestConsent?.granted === true;\n  }\n\n  async getConsentHistory(userId) {\n    const record = await this.db.consents.findOne({ userId });\n    return record?.auditLog || [];\n  }\n}\n```\n\n```html\n\u003C!-- GDPR-compliant consent UI -->\n\u003Cdiv class=\"consent-banner\" role=\"dialog\" aria-labelledby=\"consent-title\">\n  \u003Ch2 id=\"consent-title\">Cookie Preferences\u003C\u002Fh2>\n\n  \u003Cp>\n    We use cookies to improve your experience. Select your preferences below.\n  \u003C\u002Fp>\n\n  \u003Cform id=\"consent-form\">\n    \u003C!-- Necessary - always on, no consent needed -->\n    \u003Cdiv class=\"consent-category\">\n      \u003Cinput type=\"checkbox\" id=\"necessary\" checked disabled \u002F>\n      \u003Clabel for=\"necessary\">\n        \u003Cstrong>Necessary\u003C\u002Fstrong>\n        \u003Cspan>Required for the website to function. Cannot be disabled.\u003C\u002Fspan>\n      \u003C\u002Flabel>\n    \u003C\u002Fdiv>\n\n    \u003C!-- Analytics - requires consent -->\n    \u003Cdiv class=\"consent-category\">\n      \u003Cinput type=\"checkbox\" id=\"analytics\" name=\"analytics\" \u002F>\n      \u003Clabel for=\"analytics\">\n        \u003Cstrong>Analytics\u003C\u002Fstrong>\n        \u003Cspan>Help us understand how you use our site.\u003C\u002Fspan>\n      \u003C\u002Flabel>\n    \u003C\u002Fdiv>\n\n    \u003C!-- Marketing - requires consent -->\n    \u003Cdiv class=\"consent-category\">\n      \u003Cinput type=\"checkbox\" id=\"marketing\" name=\"marketing\" \u002F>\n      \u003Clabel for=\"marketing\">\n        \u003Cstrong>Marketing\u003C\u002Fstrong>\n        \u003Cspan>Personalized ads based on your interests.\u003C\u002Fspan>\n      \u003C\u002Flabel>\n    \u003C\u002Fdiv>\n\n    \u003Cdiv class=\"consent-actions\">\n      \u003Cbutton type=\"button\" id=\"accept-all\">Accept All\u003C\u002Fbutton>\n      \u003Cbutton type=\"button\" id=\"reject-all\">Reject All\u003C\u002Fbutton>\n      \u003Cbutton type=\"submit\">Save Preferences\u003C\u002Fbutton>\n    \u003C\u002Fdiv>\n\n    \u003Cp class=\"consent-links\">\n      \u003Ca href=\"\u002Fprivacy-policy\">Privacy Policy\u003C\u002Fa> |\n      \u003Ca href=\"\u002Fcookie-policy\">Cookie Policy\u003C\u002Fa>\n    \u003C\u002Fp>\n  \u003C\u002Fform>\n\u003C\u002Fdiv>\n```\n\n### Pattern 2: Data Subject Access Request (DSAR)\n\n```python\nfrom datetime import datetime, timedelta\nfrom typing import Dict, List, Optional\nimport json\n\nclass DSARHandler:\n    \"\"\"Handle Data Subject Access Requests.\"\"\"\n\n    RESPONSE_DEADLINE_DAYS = 30\n    EXTENSION_ALLOWED_DAYS = 60  # For complex requests\n\n    def __init__(self, data_sources: List['DataSource']):\n        self.data_sources = data_sources\n\n    async def submit_request(\n        self,\n        request_type: str,  # 'access', 'erasure', 'rectification', 'portability'\n        user_id: str,\n        verified: bool,\n        details: Optional[Dict] = None\n    ) -> str:\n        \"\"\"Submit a new DSAR.\"\"\"\n        request = {\n            'id': self.generate_request_id(),\n            'type': request_type,\n            'user_id': user_id,\n            'status': 'pending_verification' if not verified else 'processing',\n            'submitted_at': datetime.utcnow(),\n            'deadline': datetime.utcnow() + timedelta(days=self.RESPONSE_DEADLINE_DAYS),\n            'details': details or {},\n            'audit_log': [{\n                'action': 'submitted',\n                'timestamp': datetime.utcnow(),\n                'details': 'Request received'\n            }]\n        }\n\n        await self.db.dsar_requests.insert_one(request)\n        await self.notify_dpo(request)\n\n        return request['id']\n\n    async def process_access_request(self, request_id: str) -> Dict:\n        \"\"\"Process a data access request.\"\"\"\n        request = await self.get_request(request_id)\n\n        if request['type'] != 'access':\n            raise ValueError(\"Not an access request\")\n\n        # Collect data from all sources\n        user_data = {}\n        for source in self.data_sources:\n            try:\n                data = await source.get_user_data(request['user_id'])\n                user_data[source.name] = data\n            except Exception as e:\n                user_data[source.name] = {'error': str(e)}\n\n        # Format response\n        response = {\n            'request_id': request_id,\n            'generated_at': datetime.utcnow().isoformat(),\n            'data_categories': list(user_data.keys()),\n            'data': user_data,\n            'retention_info': await self.get_retention_info(),\n            'processing_purposes': await self.get_processing_purposes(),\n            'third_party_recipients': await self.get_recipients()\n        }\n\n        # Update request status\n        await self.update_request(request_id, 'completed', response)\n\n        return response\n\n    async def process_erasure_request(self, request_id: str) -> Dict:\n        \"\"\"Process a right to erasure request.\"\"\"\n        request = await self.get_request(request_id)\n\n        if request['type'] != 'erasure':\n            raise ValueError(\"Not an erasure request\")\n\n        results = {}\n        exceptions = []\n\n        for source in self.data_sources:\n            try:\n                # Check for legal exceptions\n                can_delete, reason = await source.can_delete(request['user_id'])\n\n                if can_delete:\n                    await source.delete_user_data(request['user_id'])\n                    results[source.name] = 'deleted'\n                else:\n                    exceptions.append({\n                        'source': source.name,\n                        'reason': reason  # e.g., 'legal retention requirement'\n                    })\n                    results[source.name] = f'retained: {reason}'\n            except Exception as e:\n                results[source.name] = f'error: {str(e)}'\n\n        response = {\n            'request_id': request_id,\n            'completed_at': datetime.utcnow().isoformat(),\n            'results': results,\n            'exceptions': exceptions\n        }\n\n        await self.update_request(request_id, 'completed', response)\n\n        return response\n\n    async def process_portability_request(self, request_id: str) -> bytes:\n        \"\"\"Generate portable data export.\"\"\"\n        request = await self.get_request(request_id)\n        user_data = await self.process_access_request(request_id)\n\n        # Convert to machine-readable format (JSON)\n        portable_data = {\n            'export_date': datetime.utcnow().isoformat(),\n            'format_version': '1.0',\n            'data': user_data['data']\n        }\n\n        return json.dumps(portable_data, indent=2, default=str).encode()\n```\n\n### Pattern 3: Data Retention\n\n```python\nfrom datetime import datetime, timedelta\nfrom enum import Enum\n\nclass RetentionBasis(Enum):\n    CONSENT = \"consent\"\n    CONTRACT = \"contract\"\n    LEGAL_OBLIGATION = \"legal_obligation\"\n    LEGITIMATE_INTEREST = \"legitimate_interest\"\n\nclass DataRetentionPolicy:\n    \"\"\"Define and enforce data retention policies.\"\"\"\n\n    POLICIES = {\n        'user_account': {\n            'retention_period_days': 365 * 3,  # 3 years after last activity\n            'basis': RetentionBasis.CONTRACT,\n            'trigger': 'last_activity_date',\n            'archive_before_delete': True\n        },\n        'transaction_records': {\n            'retention_period_days': 365 * 7,  # 7 years for tax\n            'basis': RetentionBasis.LEGAL_OBLIGATION,\n            'trigger': 'transaction_date',\n            'archive_before_delete': True,\n            'legal_reference': 'Tax regulations require 7 year retention'\n        },\n        'marketing_consent': {\n            'retention_period_days': 365 * 2,  # 2 years\n            'basis': RetentionBasis.CONSENT,\n            'trigger': 'consent_date',\n            'archive_before_delete': False\n        },\n        'support_tickets': {\n            'retention_period_days': 365 * 2,\n            'basis': RetentionBasis.LEGITIMATE_INTEREST,\n            'trigger': 'ticket_closed_date',\n            'archive_before_delete': True\n        },\n        'analytics_data': {\n            'retention_period_days': 365,  # 1 year\n            'basis': RetentionBasis.CONSENT,\n            'trigger': 'collection_date',\n            'archive_before_delete': False,\n            'anonymize_instead': True\n        }\n    }\n\n    async def apply_retention_policies(self):\n        \"\"\"Run retention policy enforcement.\"\"\"\n        for data_type, policy in self.POLICIES.items():\n            cutoff_date = datetime.utcnow() - timedelta(\n                days=policy['retention_period_days']\n            )\n\n            if policy.get('anonymize_instead'):\n                await self.anonymize_old_data(data_type, cutoff_date)\n            else:\n                if policy.get('archive_before_delete'):\n                    await self.archive_data(data_type, cutoff_date)\n                await self.delete_old_data(data_type, cutoff_date)\n\n            await self.log_retention_action(data_type, cutoff_date)\n\n    async def anonymize_old_data(self, data_type: str, before_date: datetime):\n        \"\"\"Anonymize data instead of deleting.\"\"\"\n        # Example: Replace identifying fields with hashes\n        if data_type == 'analytics_data':\n            await self.db.analytics.update_many(\n                {'collection_date': {'$lt': before_date}},\n                {'$set': {\n                    'user_id': None,\n                    'ip_address': None,\n                    'device_id': None,\n                    'anonymized': True,\n                    'anonymized_date': datetime.utcnow()\n                }}\n            )\n```\n\n### Pattern 4: Privacy by Design\n\n```python\nclass PrivacyFirstDataModel:\n    \"\"\"Example of privacy-by-design data model.\"\"\"\n\n    # Separate PII from behavioral data\n    user_profile_schema = {\n        'user_id': str,  # UUID, not sequential\n        'email_hash': str,  # Hashed for lookups\n        'created_at': datetime,\n        # Minimal data collection\n        'preferences': {\n            'language': str,\n            'timezone': str\n        }\n    }\n\n    # Encrypted at rest\n    user_pii_schema = {\n        'user_id': str,\n        'email': str,  # Encrypted\n        'name': str,   # Encrypted\n        'phone': str,  # Encrypted (optional)\n        'address': dict,  # Encrypted (optional)\n        'encryption_key_id': str\n    }\n\n    # Pseudonymized behavioral data\n    analytics_schema = {\n        'session_id': str,  # Not linked to user_id\n        'pseudonym_id': str,  # Rotating pseudonym\n        'events': list,\n        'device_category': str,  # Generalized, not specific\n        'country': str,  # Not city-level\n    }\n\nclass DataMinimization:\n    \"\"\"Implement data minimization principles.\"\"\"\n\n    @staticmethod\n    def collect_only_needed(form_data: dict, purpose: str) -> dict:\n        \"\"\"Filter form data to only fields needed for purpose.\"\"\"\n        REQUIRED_FIELDS = {\n            'account_creation': ['email', 'password'],\n            'newsletter': ['email'],\n            'purchase': ['email', 'name', 'address', 'payment'],\n            'support': ['email', 'message']\n        }\n\n        allowed = REQUIRED_FIELDS.get(purpose, [])\n        return {k: v for k, v in form_data.items() if k in allowed}\n\n    @staticmethod\n    def generalize_location(ip_address: str) -> str:\n        \"\"\"Generalize IP to country level only.\"\"\"\n        import geoip2.database\n        reader = geoip2.database.Reader('GeoLite2-Country.mmdb')\n        try:\n            response = reader.country(ip_address)\n            return response.country.iso_code\n        except:\n            return 'UNKNOWN'\n```\n\n### Pattern 5: Breach Notification\n\n```python\nfrom datetime import datetime\nfrom enum import Enum\n\nclass BreachSeverity(Enum):\n    LOW = \"low\"\n    MEDIUM = \"medium\"\n    HIGH = \"high\"\n    CRITICAL = \"critical\"\n\nclass BreachNotificationHandler:\n    \"\"\"Handle GDPR breach notification requirements.\"\"\"\n\n    AUTHORITY_NOTIFICATION_HOURS = 72\n    AFFECTED_NOTIFICATION_REQUIRED_SEVERITY = BreachSeverity.HIGH\n\n    async def report_breach(\n        self,\n        description: str,\n        data_types: List[str],\n        affected_count: int,\n        severity: BreachSeverity\n    ) -> dict:\n        \"\"\"Report and handle a data breach.\"\"\"\n        breach = {\n            'id': self.generate_breach_id(),\n            'reported_at': datetime.utcnow(),\n            'description': description,\n            'data_types_affected': data_types,\n            'affected_individuals_count': affected_count,\n            'severity': severity.value,\n            'status': 'investigating',\n            'timeline': [{\n                'event': 'breach_reported',\n                'timestamp': datetime.utcnow(),\n                'details': description\n            }]\n        }\n\n        await self.db.breaches.insert_one(breach)\n\n        # Immediate notifications\n        await self.notify_dpo(breach)\n        await self.notify_security_team(breach)\n\n        # Authority notification required within 72 hours\n        if self.requires_authority_notification(severity, data_types):\n            breach['authority_notification_deadline'] = (\n                datetime.utcnow() + timedelta(hours=self.AUTHORITY_NOTIFICATION_HOURS)\n            )\n            await self.schedule_authority_notification(breach)\n\n        # Affected individuals notification\n        if severity.value in [BreachSeverity.HIGH.value, BreachSeverity.CRITICAL.value]:\n            await self.schedule_individual_notifications(breach)\n\n        return breach\n\n    def requires_authority_notification(\n        self,\n        severity: BreachSeverity,\n        data_types: List[str]\n    ) -> bool:\n        \"\"\"Determine if supervisory authority must be notified.\"\"\"\n        # Always notify for sensitive data\n        sensitive_types = ['health', 'financial', 'credentials', 'biometric']\n        if any(t in sensitive_types for t in data_types):\n            return True\n\n        # Notify for medium+ severity\n        return severity in [BreachSeverity.MEDIUM, BreachSeverity.HIGH, BreachSeverity.CRITICAL]\n\n    async def generate_authority_report(self, breach_id: str) -> dict:\n        \"\"\"Generate report for supervisory authority.\"\"\"\n        breach = await self.get_breach(breach_id)\n\n        return {\n            'organization': {\n                'name': self.config.org_name,\n                'contact': self.config.dpo_contact,\n                'registration': self.config.registration_number\n            },\n            'breach': {\n                'nature': breach['description'],\n                'categories_affected': breach['data_types_affected'],\n                'approximate_number_affected': breach['affected_individuals_count'],\n                'likely_consequences': self.assess_consequences(breach),\n                'measures_taken': await self.get_remediation_measures(breach_id),\n                'measures_proposed': await self.get_proposed_measures(breach_id)\n            },\n            'timeline': breach['timeline'],\n            'submitted_at': datetime.utcnow().isoformat()\n        }\n```\n\n## Compliance Checklist\n\n```markdown\n## GDPR Implementation Checklist\n\n### Legal Basis\n\n- [ ] Documented legal basis for each processing activity\n- [ ] Consent mechanisms meet GDPR requirements\n- [ ] Legitimate interest assessments completed\n\n### Transparency\n\n- [ ] Privacy policy is clear and accessible\n- [ ] Processing purposes clearly stated\n- [ ] Data retention periods documented\n\n### Data Subject Rights\n\n- [ ] Access request process implemented\n- [ ] Erasure request process implemented\n- [ ] Portability export available\n- [ ] Rectification process available\n- [ ] Response within 30-day deadline\n\n### Security\n\n- [ ] Encryption at rest implemented\n- [ ] Encryption in transit (TLS)\n- [ ] Access controls in place\n- [ ] Audit logging enabled\n\n### Breach Response\n\n- [ ] Breach detection mechanisms\n- [ ] 72-hour notification process\n- [ ] Breach documentation system\n\n### Documentation\n\n- [ ] Records of processing activities (Art. 30)\n- [ ] Data protection impact assessments\n- [ ] Data processing agreements with vendors\n```\n\n## Best Practices\n\n### Do's\n\n- **Minimize data collection** - Only collect what's needed\n- **Document everything** - Processing activities, legal bases\n- **Encrypt PII** - At rest and in transit\n- **Implement access controls** - Need-to-know basis\n- **Regular audits** - Verify compliance continuously\n\n### Don'ts\n\n- **Don't pre-check consent boxes** - Must be opt-in\n- **Don't bundle consent** - Separate purposes separately\n- **Don't retain indefinitely** - Define and enforce retention\n- **Don't ignore DSARs** - 30-day response required\n- **Don't transfer without safeguards** - SCCs or adequacy decisions\n",{"name":5,"description":7},"main","87afe6ce96220accf50a345dea46784c8c9f210e","YYC3-Plugin-插件协议\u002FYYC3-Plugin-插件协议-plugins-claude\u002Fhr-legal-compliance\u002Fskills\u002Fgdpr-data-handling",0,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base","https:\u002F\u002Fkb.yyc3.top\u002F","https:\u002F\u002Fgithub.com\u002FYYC-Cube","万象归元于云枢 | 深栈智启新纪元","2026-11-10 10:37:32",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill gdpr-data-handling",{"tool":39,"command":40},"bunx","bunx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill gdpr-data-handling",{"tool":42,"command":43},"pnpm","pnpm dlx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill gdpr-data-handling","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Plugin-插件协议\u002FYYC3-Plugin-插件协议-plugins-claude\u002Fhr-legal-compliance\u002Fskills\u002Fgdpr-data-handling\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7CTDWHERCXPQCP0K03A86AS","vercel-sandbox","Run agent-browser + Chrome inside Vercel Sandbox microVMs for browser automation from any Vercel-deployed app. Use when the user needs browser automation in a Vercel app (Next.js, SvelteKit, Nuxt, Remix, Astro, etc.), wants to run headless Chrome without binary size limits, needs persistent browser sessions across commands, or wants ephemeral isolated browser environments. Triggers include \"Vercel Sandbox browser\", \"microVM Chrome\", \"agent-browser in sandbox\", \"browser automation on Vercel\", or any task requiring Chrome in a Vercel Sandbox.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fvercel-sandbox\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7CTD8D2BNJY54S65M47HEJA","slack","Interact with Slack workspaces using browser automation. Use when the user needs to check unread channels, navigate Slack, send messages, extract data, find information, search conversations, or automate any Slack task. Triggers include \"check my Slack\", \"what channels have unreads\", \"send a message to\", \"search Slack for\", \"extract from Slack\", \"find who said\", or any task requiring programmatic Slack interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fslack\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7CTCSSB8ZP3Q58C3YZDZK1W","electron","Automate Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify, etc.) using agent-browser via Chrome DevTools Protocol. Use when the user needs to interact with an Electron app, automate a desktop app, connect to a running app, control a native app, or test an Electron application. Triggers include \"automate Slack app\", \"control VS Code\", \"interact with Discord app\", \"test this Electron app\", \"connect to desktop app\", or any task requiring automation of a native Electron application.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Felectron\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7CTCBJY76688V4DCZGWFHGQ","dogfood","Systematically explore and test a web application to find bugs, UX issues, and other problems. Use when asked to \"dogfood\", \"QA\", \"exploratory test\", \"find issues\", \"bug hunt\", \"test this app\u002Fsite\u002Fplatform\", or review the quality of a web application. Produces a structured report with full reproduction evidence -- step-by-step screenshots, repro videos, and detailed repro steps for every issue -- so findings can be handed directly to the responsible teams.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fdogfood\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7CTC4H0FFGVEAQR9PA4GA1A","agent-browser","Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to \"open a website\", \"fill out a form\", \"click a button\", \"take a screenshot\", \"scrape data from a page\", \"test this web app\", \"login to a site\", \"automate browser actions\", or any task requiring programmatic web interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fagent-browser\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7CTBKVFYBG78FDSABSDJTTQ","shadcn","Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn\u002Fui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for \"shadcn init\", \"create an app with --preset\", \"switch to --preset\", and for building a design system or applying a DESIGN.md or brand spec to shadcn\u002Fui.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-UI-界面组件\u002FYYC3-UI-界面组件-ui\u002Fskills\u002Fshadcn\u002FSKILL.md",[],[]]