Agent skill

Global Privacy Control

by mukul975 in mukul975/Privacy-Data-Protection-Skills

Implementation guide for Global Privacy Control (GPC) automated opt-out signal per CPRA Section 1798.135(e).

Apache-2.0Auto-check passedLegal & Compliance

Install Global Privacy Control

skills CLI
$ npx skills add mukul975/Privacy-Data-Protection-Skills --skill global-privacy-control -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mukul975/Privacy-Data-Protection-Skills global-privacy-control --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mukul975/Privacy-Data-Protection-Skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/privacy/global-privacy-control .claude/skills/global-privacy-control && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
global-privacy-control
GitHub stars
301
Token cost
~2.1k tokens
SKILL.md length
975 words
Files
5 (incl. scripts, references, assets)
Skills in repo
280
Repo updated
First seen
Licence
Apache-2.0

At a glance

Implementation guide for Global Privacy Control (GPC) automated opt-out signal per CPRA Section 1798.135(e).

  • Works in 2 steps: Page Load: Before initializing any… → Consent Banner Interaction: If GPC is…
  • Tasks that involve Privacy and GDPR
  • SKILL.md covers Overview, Legal Requirements by State, GPC Technical Specification and Implementation Architecture at…, plus 2 more sections
  • Runs Python scripts from its folder

What it does

Global Privacy Control is an agent skill from mukul975/Privacy-Data-Protection-Skills. Implementation guide for Global Privacy Control (GPC) automated opt-out signal per CPRA Section 1798.135(e). Covers Sec-GPC HTTP header detection, JavaScript navigator.globalPrivacyControl API, and state-specific requirements for CA, CO, CT, MT, TX, and OR. Includes server-side detection code and compliance mapping.

Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including scripts, reference files and assets (for example `assets/template.md`, `references/standards.md` and `references/workflows.md`).

It sits in Legal & Compliance, covering Privacy and GDPR and Backend development. It works with JavaScript. The repository describes itself as: 282+ structured privacy & data protection skills for AI agents. GDPR, CCPA, EU AI Act, HIPAA, LGPD, PIPL, DPDP Act. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Privacy and GDPR
  • Tasks that involve Backend development

Example prompts

  • “/global-privacy-control”

Requirements

  • Python 3

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. Page Load: Before initializing any analytics or advertising SDKs, check navigator.globalPrivacyControl. If true, suppress non-essential…
  2. Consent Banner Interaction: If GPC is detected, pre-select the "Opt Out of Sale/Sharing" option in the cookie consent banner and display a…

What it can do on your machine

Read from SKILL.md and the folder at commit 9b2ef9e. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Global Privacy Control loads about 2.1k tokens when it runs, and up to ~4.4k if it reads all its reference files. Until then it costs about 85 tokens; SKILL.md has 975 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~85
When it runs · the whole SKILL.md, loaded when a task matches
~2.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~4.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from mukul975/Privacy-Data-Protection-Skills at commit 9b2ef9e, republished under its Apache-2.0 licence (© mukul975). 975 words, ~2,087 tokens.

Download SKILL.mdSave it as .claude/skills/global-privacy-control/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
global-privacy-control
description
Implementation guide for Global Privacy Control (GPC) automated opt-out signal per CPRA Section 1798.135(e). Covers Sec-GPC HTTP header detection, JavaScript navigator.globalPrivacyControl API, and state-specific requirements for CA, CO, CT, MT, TX, and OR. Includes server-side detection code and compliance mapping.
license
Apache-2.0
metadata.author
mukul975
metadata.version
1.0
metadata.domain
privacy
metadata.subdomain
consent-management
metadata.tags
global-privacy-control, gpc, cpra, opt-out-signal, browser-privacy

Implementing Global Privacy Control (GPC)

Overview

Global Privacy Control (GPC) is a browser-level signal that communicates a user's privacy preference to opt out of the sale or sharing of their personal information. The GPC specification defines both an HTTP header (Sec-GPC: 1) and a JavaScript API (navigator.globalPrivacyControl) for transmitting this signal.

Under California Privacy Rights Act (CPRA) Section 1798.135(e), businesses must treat GPC signals as valid opt-out requests. The California Attorney General confirmed this enforcement position in the Sephora settlement (August 2022, $1.2 million fine), which was the first enforcement action involving GPC signals.

California — CPRA (effective January 1, 2023)
  • Section 1798.135(e): A business that collects consumers' personal information shall treat the consumer's use of an opt-out preference signal as a valid request to opt out of sale/sharing under Section 1798.120.
  • AG Regulation 11 CCR 7025(b): If a business collects personal information from consumers online, the business shall treat an opt-out preference signal as a valid request to opt-out of sale/sharing for that browser or device and any consumer profile associated with that browser or device.
  • Sephora Settlement (August 2022): California AG fined Sephora $1.2 million for failing to honor GPC signals, among other violations.
Colorado — Colorado Privacy Act (CPA, effective July 1, 2024)
  • Section 6-1-1306(1)(a)(IV)(A): Consumers may exercise the right to opt out through an opt-out preference signal sent by a platform, technology, or mechanism on behalf of the consumer, to the extent technically feasible.
  • CPA Rules 4.6: Controllers must recognize universal opt-out mechanisms by July 1, 2024.
Connecticut — Connecticut Data Privacy Act (CTDPA, effective July 1, 2023)
  • Section 42-520(b)(5): Beginning January 1, 2025, controllers must recognize universal opt-out mechanisms for the sale of personal data and targeted advertising.
Montana — Montana Consumer Data Privacy Act (effective October 1, 2024)
  • Section 30-14-2807: Controllers must recognize opt-out preference signals as valid opt-out requests for the sale of personal data and targeted advertising.
Texas — Texas Data Privacy and Security Act (TDPSA, effective July 1, 2024)
  • Section 541.055: Controllers must allow consumers to opt out of the sale of personal data and targeted advertising. Universal opt-out mechanisms must be honored beginning January 1, 2025.
Oregon — Oregon Consumer Privacy Act (effective July 1, 2024)
  • Section 646A.578: Controllers shall provide a method by which consumers can opt out that includes recognition of opt-out preference signals.

GPC Technical Specification

HTTP Header Detection

The GPC signal is transmitted as an HTTP request header:

Sec-GPC: 1

This header is set by the browser (or browser extension) on every HTTP request when the user has enabled GPC. The header is absent (not set to 0) when GPC is not enabled.

JavaScript API Detection

The GPC signal is also available via the JavaScript DOM API:

javascript
// Check if GPC is supported and enabled
if (navigator.globalPrivacyControl === true) {
    // User has opted out — do not sell/share personal information
    // Do not load non-essential tracking scripts
    // Set internal opt-out flag for this user
}

Key considerations:

  • navigator.globalPrivacyControl returns true when GPC is enabled
  • navigator.globalPrivacyControl returns false or undefined when GPC is not enabled or not supported
  • Check should occur before loading any tracking or advertising scripts
Server-Side Detection (HTTP Header)

On the server side, check for the Sec-GPC header in incoming requests:

If Sec-GPC header is present AND equals "1":
    → Set opt-out flag for this session/user
    → Do not initiate sale or sharing of personal information
    → Do not load third-party tracking pixels
    → Log GPC signal receipt for compliance records

Implementation Architecture at CloudVault SaaS Inc.

Client-Side Detection

CloudVault SaaS Inc. checks GPC at two points:

  1. Page Load: Before initializing any analytics or advertising SDKs, check navigator.globalPrivacyControl. If true, suppress non-essential tracking.

  2. Consent Banner Interaction: If GPC is detected, pre-select the "Opt Out of Sale/Sharing" option in the cookie consent banner and display a notice: "We detected your Global Privacy Control signal. Your opt-out preference has been applied."

Show full SKILL.md (410 more words)Show less
Server-Side Processing

The CloudVault SaaS Inc. backend middleware:

  1. Inspects every incoming HTTP request for the Sec-GPC: 1 header.
  2. If detected, sets a session-level flag gpc_opt_out = true.
  3. If the request is associated with an authenticated user, propagates the opt-out to the user's consent record for applicable purposes (sale/sharing).
  4. Returns a Sec-GPC response header echoing the signal (transparency).
  5. Logs the GPC signal receipt with timestamp, user agent, and associated user ID (if authenticated).

GPC is a binary signal (opt out of sale/sharing). CloudVault SaaS Inc. maps it to specific consent purposes:

GPC SignalInternal PurposeAction
Sec-GPC: 1pur_benchmarking_003 (Third-party data sharing)Withdraw consent / opt out
Sec-GPC: 1pur_advertising_004 (Targeted advertising)Withdraw consent / opt out
Sec-GPC: 1pur_analytics_001 (Service improvement)No change (internal use, not sale/sharing)
Sec-GPC: 1pur_marketing_002 (Product emails)No change (direct marketing, not sale/sharing)
Conflict Resolution

When a user has manually opted in via the preference center but their browser sends GPC:

  • CPRA approach: GPC takes precedence. Per AG regulation 11 CCR 7025(c), if a conflict exists between the opt-out preference signal and the consumer's participation in a financial incentive program, the business shall respect the opt-out preference signal but may notify the consumer of the conflict and give the consumer the choice to confirm their participation.
  • CloudVault SaaS Inc. policy: Display a notification: "Your browser is sending a Global Privacy Control signal to opt out of data sharing. This overrides your previous opt-in. To continue sharing data for industry benchmarking, you can confirm your preference in Settings > Privacy."

Compliance Verification

To verify GPC implementation:

  1. Install a GPC-enabled browser or extension (Firefox with Enhanced Tracking Protection, DuckDuckGo browser, Brave browser, or the OptMeowt extension for Chrome)
  2. Navigate to CloudVault SaaS Inc. application
  3. Verify that Sec-GPC: 1 header is sent in network requests
  4. Confirm that tracking scripts are not loaded
  5. Confirm that the consent banner reflects the opt-out preference
  6. Verify server-side logs record the GPC signal
  7. Confirm that authenticated users have their consent record updated

Key Regulatory References

  • CPRA Section 1798.135(e) — Opt-out preference signal requirement
  • California AG Regulation 11 CCR 7025 — GPC implementation details
  • GPC Specification (globalprivacycontrol.org) — Technical standard
  • Colorado Privacy Act Section 6-1-1306(1)(a)(IV)(A) — Universal opt-out
  • Connecticut CTDPA Section 42-520(b)(5) — Universal opt-out mechanism
  • Montana MCDPA Section 30-14-2807 — Opt-out preference signals
  • Texas TDPSA Section 541.055 — Opt-out methods
  • Oregon OCPA Section 646A.578 — Opt-out preference signals
  • Sephora Settlement (California AG, August 2022) — First GPC enforcement

© mukul975, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (scripts, references, assets) in skills/privacy/global-privacy-control of mukul975/Privacy-Data-Protection-Skills.

  • SKILL.md
  • assets/template.md
  • references/standards.md
  • references/workflows.md
  • scripts/process.py

Open the folder on GitHubat commit 9b2ef9e

Compare with similar skills

Global Privacy Control next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Global Privacy Control compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Global Privacy Control this skillmukul975/Privacy-Data-Protection-Skills301—~2.1kAutomated safety check: PassApache-2.0
C15tc15t/c15t1.9k1 repos~1.6kAutomated safety check: PassApache-2.0
Sentry Data Handlingjeremylongshore/tons-of-skills-marketplace2.8k—~4.2kAutomated safety check: PassMIT
Dr Jskilljdubois/dr-jskill342—~4.6kAutomated safety check: NotesApache-2.0
HIPAA Safe Harbor Coverage Auditmaziyarpanahi/openmed5.5k—~1.7kAutomated safety check: PassApache-2.0
Korean Privacy Termskimlawtech/korean-privacy-terms587—~2.9kAutomated safety check: PassApache-2.0

Similar skills

  • C15t

    c15t/c15t

    Work with c15t consent management docs, APIs, and integrations for Next.js, React, and JavaScript.

    1.9k GitHub starsUsed in 1 repo~1.6k tokens
    Legal & ComplianceAuto-check passed
  • Sentry Data Handling

    jeremylongshore/tons-of-skills-marketplace

    Configure GDPR-compliant data handling, PII scrubbing, and data retention policies in Sentry.

    2.8k GitHub stars~4.2k tokensUpdated today
    Legal & ComplianceAuto-check passed
  • Dr Jskill

    jdubois/dr-jskill

    Creates Java + Spring Boot projects: Web applications, full-stack apps with Vue.js or Angular or React or vanilla JS, PostgreSQL, REST APIs, and Docker.

    342 GitHub stars~4.6k tokensUpdated 10 days ago
    Backend & APIsAuto-check: notes
  • Checks OpenMed de-identified clinical text against the 18 HIPAA Safe Harbor identifier categories and reports gaps and residual re-identification risk.

    5.5k GitHub stars~1.7k tokensUpdated today
    Legal & ComplianceAuto-check passed
  • Korean Privacy Terms

    kimlawtech/korean-privacy-terms

    처리방침·이용약관 자동 생성 스킬 패키지 (v4.0). An agent skill from kimlawtech/korean-privacy-terms.

    587 GitHub stars~2.9k tokensUpdated 1 mo ago
    Legal & ComplianceAuto-check passed
  • Gdpr Compliance

    Sushegaad/Claude-Skills-Governance-Risk-and-Compliance

    Expert GDPR compliance assistant covering all four core workflows: (1) auditing code and systems for GDPR violations, (2) drafting GDPR-compliant documents such as privacy policies, Data Processing…

    946 GitHub starsUsed in 1 repo~3.9k tokens
    Legal & ComplianceAuto-check passed

More from mukul975/Privacy-Data-Protection-Skills

All 280 skills in this repo
  • Age Gating Services

    mukul975/Privacy-Data-Protection-Skills

    Implements age-gating mechanisms for online services to restrict access based on user age.

    301 GitHub stars~3.7k tokensUpdated 6 mo ago
    Auto-check passed
  • AI Data Retention

    mukul975/Privacy-Data-Protection-Skills

    Manages AI model retention and machine unlearning requirements.

    301 GitHub stars~1.9k tokensUpdated 6 mo ago
    Auto-check passed
  • AI Dpia

    mukul975/Privacy-Data-Protection-Skills

    Conducts Data Protection Impact Assessments for AI and ML systems per EDPB Guidelines 04/2025 on AI processing.

    301 GitHub stars~3.4k tokensUpdated 6 mo ago
    Auto-check passed
  • Dpia Mitigation Plan

    mukul975/Privacy-Data-Protection-Skills

    Structures risk mitigation planning and residual risk tracking for Data Protection Impact Assessments under GDPR Article 35(7)(d).

    301 GitHub stars~846 tokensUpdated 6 mo ago
    Auto-check passed
  • Gdpr Accountability

    mukul975/Privacy-Data-Protection-Skills

    Guides implementation of the GDPR accountability principle under Articles 5(2) and 24, including documentation requirements for policies, DPIAs, RoPA, training records, and breach logs.

    301 GitHub stars~1.9k tokensUpdated 6 mo ago
    Auto-check passed
  • Pia Threshold Screening

    mukul975/Privacy-Data-Protection-Skills

    Conducts pre-DPIA threshold screening to determine whether a full Data Protection Impact Assessment is required under GDPR Article 35.

    301 GitHub stars~880 tokensUpdated 6 mo ago
    Auto-check passed

Works with

Questions about Global Privacy Control

What does Global Privacy Control do?

Implementation guide for Global Privacy Control (GPC) automated opt-out signal per CPRA Section 1798.135(e). Global Privacy Control is an agent skill from mukul975/Privacy-Data-Protection-Skills.135(e).

When should I use Global Privacy Control?

Global Privacy Control fits situations like: tasks that involve Privacy and GDPR; tasks that involve Backend development.

How do I install Global Privacy Control in Claude Code?

Run `npx skills add mukul975/Privacy-Data-Protection-Skills --skill global-privacy-control -a claude-code`. Or copy the skill folder (skills/privacy/global-privacy-control in mukul975/Privacy-Data-Protection-Skills) into .claude/skills/global-privacy-control in your project. Claude Code loads it when a task matches its description.

How do I install Global Privacy Control in Codex?

Run `npx skills add mukul975/Privacy-Data-Protection-Skills --skill global-privacy-control -a codex`. Or copy the skill folder (skills/privacy/global-privacy-control in mukul975/Privacy-Data-Protection-Skills) into .agents/skills/global-privacy-control in your project. Codex loads it when a task matches its description.

Can I use Global Privacy Control in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mukul975/Privacy-Data-Protection-Skills --skill global-privacy-control -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/global-privacy-control, .gemini/skills/global-privacy-control, .github/skills/global-privacy-control and .opencode/skills/global-privacy-control in your project.

What does Global Privacy Control need to run?

Going by SKILL.md and its folder, Global Privacy Control needs Python for the scripts in its folder. Our summary lists: Python 3.

Does Global Privacy Control access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Global Privacy Control safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Global Privacy Control use?

Global Privacy Control is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Global Privacy Control use?

About 2.1k tokens (SKILL.md is roughly 8.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.3k tokens, read only when the agent opens those files.

What are the alternatives to Global Privacy Control?

Skills that share tags, products or a category with Global Privacy Control: C15t (c15t/c15t, 1.9k stars), Sentry Data Handling (jeremylongshore/tons-of-skills-marketplace, 2.8k stars), Dr Jskill (jdubois/dr-jskill, 342 stars) and HIPAA Safe Harbor Coverage Audit (maziyarpanahi/openmed, 5.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Global Privacy Control?

mukul975 (a GitHub user) maintains it in mukul975/Privacy-Data-Protection-Skills, which has 301 GitHub stars. The repository holds 280 skills in this directory. The repository was last updated on March 16, 2026.

Source: mukul975/Privacy-Data-Protection-Skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.