Agent skill

Cookie Consent Ab Audit

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

Methodology for auditing A/B testing of consent banners to ensure compliance with equal ease of acceptance and rejection.

Apache-2.0Auto-check passedLegal & Compliance

Install Cookie Consent Ab Audit

skills CLI
$ npx skills add mukul975/Privacy-Data-Protection-Skills --skill cookie-consent-ab-audit -a claude-code

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

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

At a glance

Methodology for auditing A/B testing of consent banners to ensure compliance with equal ease of acceptance and rejection.

  • Works in 4 steps: Capture All A/B Variants → Apply Dark Pattern Assessment → Compare Consent Rates Across Variants → …
  • Tasks that involve A/B testing
  • SKILL.md covers Overview, Regulatory Framework for…, Dark Pattern Detection… and A/B Test Compliance Boundaries, plus 2 more sections
  • Runs Python scripts from its folder

What it does

Cookie Consent Ab Audit is an agent skill from mukul975/Privacy-Data-Protection-Skills. Methodology for auditing A/B testing of consent banners to ensure compliance with equal ease of acceptance and rejection. Covers CNIL enforcement patterns including the EUR 150M Google fine, dark pattern detection methodology, manipulative design identification, and regulatory-compliant experimentation boundaries.

Its SKILL.md is about 2k 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 A/B testing and Privacy and GDPR. 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 A/B testing
  • Tasks that involve Privacy and GDPR

Example prompts

  • “/cookie-consent-ab-audit”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Capture All A/B Variants
  2. Apply Dark Pattern Assessment
  3. Compare Consent Rates Across Variants
  4. Document and Report

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

Cookie Consent Ab Audit loads about 2k tokens when it runs, and up to ~4.5k if it reads all its reference files. Until then it costs about 85 tokens; SKILL.md has 956 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
~2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~4.5k

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). 956 words, ~1,957 tokens.

Download SKILL.mdSave it as .claude/skills/cookie-consent-ab-audit/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
cookie-consent-ab-audit
description
Methodology for auditing A/B testing of consent banners to ensure compliance with equal ease of acceptance and rejection. Covers CNIL enforcement patterns including the EUR 150M Google fine, dark pattern detection methodology, manipulative design identification, and regulatory-compliant experimentation boundaries.
license
Apache-2.0
metadata.author
mukul975
metadata.version
1.0
metadata.domain
privacy
metadata.subdomain
consent-management
metadata.tags
cookie-consent-ab-testing, dark-patterns, cnil-enforcement, consent-banner, deceptive-design

Overview

A/B testing consent banners is a common practice to optimize consent rates. However, when these experiments manipulate users into consenting through design asymmetry, deceptive patterns, or unequal ease of acceptance versus rejection, they violate GDPR Article 7 and ePrivacy Directive Article 5(3). The CNIL has been the most active enforcer, issuing a EUR 150 million fine to Google (January 2022) and a EUR 60 million fine to Meta (January 2022) specifically for consent banner design violations.

Equal Prominence Requirement

CNIL Deliberation No. 2020-091 (September 17, 2020) and EDPB Guidelines 05/2020 establish:

  1. Equal Visual Weight: The "Accept" and "Reject" options must have the same visual prominence — same size, same color treatment, same font, same position hierarchy.
  2. Equal Interaction Cost: Rejecting cookies must require the same number of clicks/steps as accepting.
  3. No Pre-Selection: No purposes or vendors may be pre-selected.
  4. No Cookie Walls: Access to content must not be conditioned on cookie acceptance.
  5. Neutral Language: Neither option should use encouraging or discouraging language asymmetrically.
Key Enforcement Actions
AuthorityTargetFineDateKey Finding
CNILGoogle LLCEUR 150,000,000January 6, 2022google.fr: accepting cookies required 1 click; rejecting required multiple clicks through secondary menu
CNILMeta Platforms IrelandEUR 60,000,000January 6, 2022facebook.com: "Accept Cookies" button prominently displayed; "Refuse" buried in secondary layer
CNILMicrosoft IrelandEUR 60,000,000December 22, 2022bing.com: "Accept" button displayed without equally visible "Refuse"
CNILTikTokEUR 5,000,000December 29, 2022tiktok.com: rejecting cookies more complex than accepting; insufficient information
Italian GaranteClearview AIEUR 20,000,000March 9, 2022No valid consent mechanism for biometric data processing

Dark Pattern Detection Methodology

Category 1: Visual Asymmetry

What to check:

  • Accept button: color, size, font weight, border, shadow, position
  • Reject button: color, size, font weight, border, shadow, position
  • Are they visually equal? A bright green "Accept All" next to a grey text-link "Manage Preferences" fails this test.

Measurement:

  • Button area (width x height in pixels)
  • Color contrast ratio against background (WCAG calculation)
  • Font size and weight
  • Visual hierarchy position (above vs below the fold, left vs right)
Category 2: Interaction Asymmetry

What to check:

  • Clicks to accept all: typically 1 (click "Accept All")
  • Clicks to reject all: should be 1 (click "Reject All") — NOT 2+ (click "Manage" then toggle then "Save")
  • Is a "Reject All" button present on the first layer?

CNIL standard: A "Refuse All" button must be available on the same layer and with the same prominence as the "Accept All" button.

Category 3: Language Manipulation

What to check:

  • Accept text: neutral or encouraging? ("Accept and continue enjoying our site")
  • Reject text: neutral or discouraging? ("I don't want a personalized experience")
  • Is the reject option framed as losing something?

Examples of non-compliant language:

  • Accept: "Accept and enjoy personalized content" / Reject: "Continue with limited experience" — FAIL
  • Accept: "OK, I agree" / Reject: "Reject all cookies" — PASS (both neutral)
Category 4: Timing and Delay Manipulation

What to check:

  • Does the accept button appear before the reject button?
  • Is there a loading delay on the reject path?
  • Does dismissing the banner (X button) default to accepting?
Category 5: Repeated Prompting (Nagging)

What to check:

  • After rejecting, does the banner reappear on the next page?
  • How frequently is reconsent requested?
  • CNIL recommends no more than every 6 months.
Show full SKILL.md (402 more words)Show less

A/B Test Compliance Boundaries

What can be legitimately tested:

Permitted TestsProhibited Tests
Banner position (top vs bottom)Accept button larger than reject button
Color scheme (both buttons same treatment)Accept button more prominent than reject
Text wording (both options equally neutral)Additional clicks required to reject
Layout arrangement (if equal prominence maintained)Pre-selecting consent purposes in one variant
Icon usage (same for both options)Cookie wall in any variant
Animation/transition styleAccept-only first layer with reject buried
Privacy information presentation formatDiscouraging language for reject option

Audit Procedure

Step 1: Capture All A/B Variants

For each active consent banner experiment:

  • Screenshot all variants across desktop and mobile
  • Record the HTML/CSS for accept and reject elements
  • Document the user flow for accepting and rejecting in each variant
  • Note the traffic split (what percentage of users see each variant)
Step 2: Apply Dark Pattern Assessment

For each variant, score against the 5 categories:

CategoryWeightScore (0-10)Notes
Visual Asymmetry25%0 = equal, 10 = extreme asymmetry
Interaction Asymmetry30%0 = equal clicks, 10 = many more clicks to reject
Language Manipulation20%0 = neutral, 10 = strongly manipulative
Timing/Delay15%0 = no delays, 10 = significant delays on reject
Repeated Prompting10%0 = respects choice, 10 = constant nagging

Overall Risk Score: Weighted sum. Score above 3.0 requires remediation. Score above 5.0 requires immediate removal.

If a variant achieves significantly higher consent rates through design asymmetry rather than improved information, this is evidence of manipulation:

  • Baseline comparison: Compare consent rates between fully symmetric designs
  • Red flag threshold: If a variant achieves >20% higher consent rate AND has asymmetric design elements, flag for review
  • Statistical significance: Use standard A/B testing statistical methods (chi-squared or Bayesian) but apply the regulatory lens — statistical significance of manipulation is evidence of violation
Step 4: Document and Report

Generate audit report with:

  • Screenshots of all variants
  • Dark pattern scores per variant
  • Consent rate analysis
  • Recommendations for non-compliant variants
  • Remediation timeline

Key Regulatory References

  • GDPR Article 7 — Conditions for consent (equal ease, freely given)
  • ePrivacy Directive Article 5(3) — Consent for cookies and similar technologies
  • CNIL Deliberation No. 2020-091 — Cookie and tracker guidelines
  • CNIL Deliberation No. 2022-013 — Google fine (EUR 150M)
  • CNIL Deliberation No. 2022-014 — Meta fine (EUR 60M)
  • EDPB Guidelines 05/2020 — Consent under Regulation 2016/679
  • EDPB Guidelines 3/2022 — Dark patterns in social media platform interfaces
  • FTC Report on Dark Patterns (September 2022) — US perspective on manipulative design

© 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/cookie-consent-ab-audit 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

Cookie Consent Ab Audit 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.

Cookie Consent Ab Audit compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Cookie Consent Ab Audit this skillmukul975/Privacy-Data-Protection-Skills301—~2kAutomated safety check: PassApache-2.0
Analyticsericrisco/rsc-harness180—~2.8kAutomated safety check: PassMIT
SEO Analiticaricneves-ai/flowgrammers-skills115—~2.3kAutomated safety check: PassMIT
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-terms587—~2.9kAutomated safety check: PassApache-2.0

Similar skills

  • Analytics

    ericrisco/rsc-harness

    A skill your agent uses when instrumenting product or web analytics — GA4/PostHog SDK wiring, event taxonomy, funnels, double-counted events, consent gating, PII scrubbing.

    180 GitHub stars~2.8k tokensUpdated yesterday
    Marketing & SEOAuto-check passed
  • SEO Analitica

    ricneves-ai/flowgrammers-skills

    Skills para otimização de SEO técnico, análise de dados, criação de dashboards e inteligência de negócio para empresas brasileiras.

    115 GitHub stars~2.3k tokensUpdated 15 days ago
    Legal & ComplianceAuto-check passed
  • 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.

    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

Questions about Cookie Consent Ab Audit

What does Cookie Consent Ab Audit do?

Methodology for auditing A/B testing of consent banners to ensure compliance with equal ease of acceptance and rejection. Cookie Consent Ab Audit is an agent skill from mukul975/Privacy-Data-Protection-Skills. Methodology for auditing A/B testing of consent banners to ensure compliance with equal ease of acceptance and rejection.

When should I use Cookie Consent Ab Audit?

Cookie Consent Ab Audit fits situations like: tasks that involve A/B testing; tasks that involve Privacy and GDPR.

How do I install Cookie Consent Ab Audit in Claude Code?

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

How do I install Cookie Consent Ab Audit in Codex?

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

Can I use Cookie Consent Ab Audit 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 cookie-consent-ab-audit -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cookie-consent-ab-audit, .gemini/skills/cookie-consent-ab-audit, .github/skills/cookie-consent-ab-audit and .opencode/skills/cookie-consent-ab-audit in your project.

What does Cookie Consent Ab Audit need to run?

Going by SKILL.md and its folder, Cookie Consent Ab Audit needs Python for the scripts in its folder. Our summary lists: Python 3.

Does Cookie Consent Ab Audit 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 Cookie Consent Ab Audit 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 Cookie Consent Ab Audit use?

Cookie Consent Ab Audit 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 Cookie Consent Ab Audit use?

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

What are the alternatives to Cookie Consent Ab Audit?

Skills that share tags, products or a category with Cookie Consent Ab Audit: Analytics (ericrisco/rsc-harness, 180 stars), SEO Analitica (ricneves-ai/flowgrammers-skills, 115 stars), C15t (c15t/c15t, 1.9k 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 Cookie Consent Ab Audit?

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.