Agent skill

Universal Opt Out

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

Universal opt-out mechanism implementation across US state privacy laws.

Apache-2.0Auto-check passedLegal & Compliance

Install Universal Opt Out

skills CLI
$ npx skills add mukul975/Privacy-Data-Protection-Skills --skill universal-opt-out -a claude-code

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

GitHub CLI
$ gh skill install mukul975/Privacy-Data-Protection-Skills universal-opt-out --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/universal-opt-out .claude/skills/universal-opt-out && 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
universal-opt-out
GitHub stars
297
Token cost
~2.3k tokens
SKILL.md length
907 words
Files
5 (incl. scripts, references, assets)
Skills in repo
280
Repo updated
First seen
Licence
Apache-2.0

At a glance

Universal opt-out mechanism implementation across US state privacy laws.

  • Works in 3 steps: Suppress third-party advertising tags… → Allow first-party processing → Update server-side systems
  • Tasks that involve Privacy and GDPR
  • SKILL.md covers Overview, State-by-State Requirements, GPC Technical Specification and Implementation Architecture, plus 4 more sections
  • Runs Python scripts from its folder

What it does

Universal Opt Out is an agent skill from mukul975/Privacy-Data-Protection-Skills. Universal opt-out mechanism implementation across US state privacy laws. Covers Global Privacy Control (GPC) signal technical implementation, state-by-state recognition requirements, browser detection methods, authenticated vs unauthenticated handling, and compliance testing.

Its SKILL.md is about 2.3k 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. 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

Example prompts

  • “/universal-opt-out”

Requirements

  • Python 3
  • Node.js

Workflow steps

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

  1. Suppress third-party advertising tags before page render
  2. Allow first-party processing
  3. Update server-side systems

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

Universal Opt Out loads about 2.3k tokens when it runs, and up to ~4k if it reads all its reference files. Until then it costs about 74 tokens; SKILL.md has 907 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~74
When it runs · the whole SKILL.md, loaded when a task matches
~2.3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~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). 907 words, ~2,260 tokens.

Download SKILL.mdSave it as .claude/skills/universal-opt-out/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
universal-opt-out
description
Universal opt-out mechanism implementation across US state privacy laws. Covers Global Privacy Control (GPC) signal technical implementation, state-by-state recognition requirements, browser detection methods, authenticated vs unauthenticated handling, and compliance testing.
license
Apache-2.0
metadata.author
mukul975
metadata.version
1.0
metadata.domain
privacy
metadata.subdomain
us-state-privacy-laws
metadata.tags
universal-opt-out, gpc, global-privacy-control, opt-out-signal, browser-signal

Universal Opt-Out Mechanism Implementation

Overview

A universal opt-out mechanism is a browser or device-level signal that communicates a consumer's privacy preferences to websites and online services. The Global Privacy Control (GPC) is the leading universal opt-out mechanism, supported by major browsers (Firefox, Brave, DuckDuckGo) and browser extensions (Privacy Badger, Disconnect). Multiple US state privacy laws now require businesses to recognize and honor these signals.

GPC is defined in the Global Privacy Control specification (published by the GPC project), transmitted via the Sec-GPC: 1 HTTP header and the navigator.globalPrivacyControl JavaScript API.

State-by-State Requirements

StateLawSignal RequiredEffective DateScope
CaliforniaCCPA/CPRAYesJan 1, 2023Sale + Sharing
ColoradoCPAYesJul 1, 2024Targeted ads + Sale
ConnecticutCTDPAYesJan 1, 2025Targeted ads + Sale
MontanaMTDPAYesOct 1, 2025Targeted ads + Sale
TexasTDPSANot requiredN/AN/A
VirginiaVCDPANot requiredN/AN/A
OregonOCPANot requiredN/AN/A
KentuckyKPPANot requiredN/AN/A

GPC Technical Specification

HTTP Header
Sec-GPC: 1

The Sec-GPC header is a structured header with a bare item value of 1 (true) or absent (no preference expressed). The Sec- prefix indicates it is a fetch metadata header set by the browser, not by JavaScript.

JavaScript API
javascript
navigator.globalPrivacyControl  // boolean: true or undefined

The navigator.globalPrivacyControl property returns true if the user has enabled GPC in their browser or extension, or undefined if GPC is not active.

Detection Code
javascript
function detectGPC() {
    // Check JavaScript API
    const jsGPC = navigator.globalPrivacyControl === true;

    // The HTTP header is checked server-side
    // This function covers client-side detection only

    return {
        gpcEnabled: jsGPC,
        timestamp: new Date().toISOString(),
        userAgent: navigator.userAgent,
    };
}
Server-Side Detection (Node.js/Express example)
javascript
function checkGPCHeader(req) {
    const gpcHeader = req.headers['sec-gpc'];
    return gpcHeader === '1';
}

app.use((req, res, next) => {
    if (checkGPCHeader(req)) {
        req.gpcOptOut = true;
        // Apply opt-out before rendering page
        res.locals.suppressThirdPartyTags = true;
        res.locals.suppressCrossSiteBehavioralAds = true;
    }
    next();
});

Implementation Architecture

Layer 1: Signal Detection
HTTP Request Arrives
  │
  ├─► Server-Side Check
  │     └─ Parse Sec-GPC header from request
  │
  ├─► Client-Side Check (for SPAs)
  │     └─ Read navigator.globalPrivacyControl
  │
  └─► Combined Result
        ├─ GPC detected = true → Apply opt-out
        └─ GPC not detected → Normal processing
Layer 2: Scope Determination
StateSale Opt-OutSharing Opt-OutTargeted Ads Opt-OutProfiling Opt-Out
CaliforniaYesYesImplied (sharing = cross-context behavioral ads)No (separate)
ColoradoYesN/AYesNo (separate)
ConnecticutYesN/AYesNo (separate)
MontanaYesN/AYesNo (separate)
Layer 3: Consumer Identity Resolution

Authenticated Consumer (logged in):

  • Associate GPC opt-out with consumer account
  • Set persistent flag: sale_opt_out = true, targeted_ads_opt_out = true
  • Override any prior opt-in (most recent preference per CO Rule 5.13)
  • Persist across sessions and devices (account-level)

Unauthenticated Consumer (not logged in):

  • Apply opt-out to current browsing session
  • Set first-party session cookie to maintain state during session
  • Apply on each new session when GPC signal is present
  • Do not require identity verification
Layer 4: Enforcement

Upon detecting GPC signal, the system must:

  1. Suppress third-party advertising tags before page render:

    • AdReach Network pixel — BLOCKED
    • Cross-context behavioral advertising tags — BLOCKED
    • Retargeting/remarketing pixels — BLOCKED
    • Social media tracking widgets — BLOCKED
  2. Allow first-party processing:

    • First-party analytics (where data stays with controller or service provider under contract)
    • Essential functionality cookies (session, cart, security)
    • Contextual advertising (based on current page content, not behavioral profile)
  3. Update server-side systems:

    • Data sharing pipeline: suppress outbound feeds to third-party ad partners
    • CMP state: update consent management platform to reflect opt-out
    • Consumer profile: flag account (if authenticated) for persistent opt-out

Compliance Rules by State

California (CPPA Regulations §7025)
  • §7025(a): Must process opt-out preference signals as valid opt-out requests
  • §7025(b): Two-step opt-out process prohibited
  • §7025(c): Must not require consumer to verify identity
  • §7025(d): Must not display pop-up or notification questioning the signal
  • §7025(e): If consumer not identifiable, apply to browser/device
  • §7025(f): If authenticated user has different prior setting, GPC takes precedence as most recent expression
  • Scope: Sale AND sharing (cross-context behavioral advertising)
Show full SKILL.md (384 more words)Show less
Colorado (4 CCR 904-3, Rule 5.11)
  • Rule 5.10: Must recognize universal opt-out mechanisms
  • Rule 5.11: Must not display pop-up, interstitial, or other mechanism questioning signal
  • Rule 5.12: Authenticated = account-level; unauthenticated = session-level
  • Rule 5.13: Most recently expressed preference prevails on conflict
  • Rule 5.14: AG biennial review of recognized mechanisms
  • Scope: Targeted advertising AND sale
  • Requirement: Mechanism must be affirmatively selected by consumer (not default)
Connecticut (§42-520(a)(6))
  • Must recognize universal opt-out mechanisms starting January 1, 2025
  • Same principles as Colorado: no verification, no pop-ups
  • Scope: Targeted advertising AND sale
Montana (§30-14-2808(3))
  • Must recognize universal opt-out mechanisms starting October 1, 2025
  • Same principles as Colorado and Connecticut
  • Scope: Targeted advertising AND sale

Testing Protocol

Test 1: GPC Signal Detection
  • Install GPC-enabled browser (Brave, Firefox with GPC extension)
  • Visit website
  • Verify server logs show Sec-GPC: 1 header detected
  • Verify client-side navigator.globalPrivacyControl === true
Test 2: Tag Suppression
  • With GPC enabled: verify third-party advertising tags do NOT fire
  • Without GPC: verify third-party advertising tags fire normally
  • Inspect network requests to confirm suppression
Test 3: Authenticated vs. Unauthenticated
  • Visit with GPC while logged out: verify session-level opt-out
  • Log in with GPC: verify account-level opt-out persists
  • Log in without GPC after prior GPC opt-out: verify prior opt-out persists (account-level)
Test 4: No Pop-Up or Interstitial
  • Visit with GPC: verify no pop-up asks to confirm or modify signal
  • Verify consent banner does not override or question GPC signal
Test 5: Conflict Resolution
  • Set account preference to opt-in to sale/targeted ads
  • Visit with GPC enabled
  • Verify GPC takes precedence (opt-out applied)

Liberty Commerce Inc. Implementation

Technology stack: Consent management platform (CMP) with GPC signal handler, tag management system (TMS) with server-side control, privacy operations dashboard.

Architecture:

  1. Edge proxy detects Sec-GPC: 1 header on incoming requests
  2. Request metadata includes gpc_opt_out: true flag
  3. TMS evaluates flag before injecting any tags
  4. CMP state updated for session/account
  5. Server-side data sharing pipeline checks flag before transmitting to third parties
  6. Compliance dashboard reports GPC detection rates and opt-out volume

Key Regulatory References

  • CPPA Regulations §7025 — Opt-out preference signals
  • Colorado AG Regulations 4 CCR 904-3, Rule 5 — Universal opt-out mechanism
  • Conn. Gen. Stat. §42-520(a)(6) — Universal opt-out recognition
  • MCA §30-14-2808(3) — Universal opt-out recognition
  • Global Privacy Control Specification v1.0 (globalprivacycontrol.org)
  • W3C Community Group: GPC specification
  • In re Sephora Inc. (2022) — $1.2M settlement for failure to honor GPC

© 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/universal-opt-out 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

Universal Opt Out 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.

Universal Opt Out compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Universal Opt Out this skillmukul975/Privacy-Data-Protection-Skills297—~2.3kAutomated safety check: PassApache-2.0
C15tc15t/c15t1.9k1 repos~1.6kAutomated safety check: PassApache-2.0
HIPAA Safe Harbor Coverage Auditmaziyarpanahi/openmed5.5k—~1.7kAutomated safety check: PassApache-2.0
Korean Privacy Termskimlawtech/korean-privacy-terms586—~2.9kAutomated safety check: PassApache-2.0
Gdpr ComplianceSushegaad/Claude-Skills-Governance-Risk-and-Compliance9431 repos~3.9kAutomated safety check: PassMIT
Hipaa ComplianceSushegaad/Claude-Skills-Governance-Risk-and-Compliance9431 repos~2.3kAutomated safety check: PassMIT

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
  • 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 yesterday
    Legal & ComplianceAuto-check passed
  • Korean Privacy Terms

    kimlawtech/korean-privacy-terms

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

    586 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…

    943 GitHub starsUsed in 1 repo~3.9k tokens
    Legal & ComplianceAuto-check passed
  • Hipaa Compliance

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

    Expert HIPAA compliance assistant for healthcare and software contexts.

    943 GitHub starsUsed in 1 repo~2.3k tokens
    Legal & ComplianceAuto-check passed
  • Pii Contract Analyze

    gregmos/PII-Shield

    Universal legal document processor with PII anonymization. An agent skill from gregmos/PII-Shield.

    149 GitHub stars~8.9k tokensUpdated 3 mo ago
    Legal & ComplianceAuto-check: notes

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.

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

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

    297 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).

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

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

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

Works with

Questions about Universal Opt Out

What does Universal Opt Out do?

Universal opt-out mechanism implementation across US state privacy laws. Universal Opt Out is an agent skill from mukul975/Privacy-Data-Protection-Skills. Universal opt-out mechanism implementation across US state privacy laws.

When should I use Universal Opt Out?

Universal Opt Out fits situations like: tasks that involve Privacy and GDPR.

How do I install Universal Opt Out in Claude Code?

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

How do I install Universal Opt Out in Codex?

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

Can I use Universal Opt Out 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 universal-opt-out -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/universal-opt-out, .gemini/skills/universal-opt-out, .github/skills/universal-opt-out and .opencode/skills/universal-opt-out in your project.

What does Universal Opt Out need to run?

Going by SKILL.md and its folder, Universal Opt Out needs Python for the scripts in its folder. Our summary lists: Python 3; Node.js.

Does Universal Opt Out 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 Universal Opt Out 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 Universal Opt Out use?

Universal Opt Out 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 Universal Opt Out use?

About 2.3k tokens (SKILL.md is roughly 9k 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 1.7k tokens, read only when the agent opens those files.

What are the alternatives to Universal Opt Out?

Skills that share tags, products or a category with Universal Opt Out: C15t (c15t/c15t, 1.9k stars), HIPAA Safe Harbor Coverage Audit (maziyarpanahi/openmed, 5.5k stars), Korean Privacy Terms (kimlawtech/korean-privacy-terms, 586 stars) and Gdpr Compliance (Sushegaad/Claude-Skills-Governance-Risk-and-Compliance, 943 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Universal Opt Out?

mukul975 (a GitHub user) maintains it in mukul975/Privacy-Data-Protection-Skills, which has 297 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.