cookie-consent-testing

cookie-consent-testing is a skill for Claude Code from mukul975/Privacy-Data-Protection-Skills. It costs 44 tokens per session (4,492 once invoked), scanned A, original, Apache-2.0.

Automated tests for checking whether a website's cookie-consent banner and tracking scripts follow the user's choices. Selenium and Playwright are tools that control a browser for testing.

In plain words
What is it for?
Use it in deployments and continuous-integration checks to test banner display, accept and reject choices, category-level consent, cookie state, and tag firing.
Why use it?
It catches cases where non-essential cookies or tags run before consent, or continue running after a user rejects them.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the cookie-consent-skills plugin — 12 skills shipped together

Good fit Use it in deployments and continuous-integration checks to test banner display, accept and reject choices, category-level consent, cookie state, and tag firing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mukul975/privacy-data-protection-skills/cookie-consent-testing
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mukul975/Privacy-Data-Protection-Skills --skill cookie-consent-testing
Clone the repo
git clone --depth 1 https://github.com/mukul975/Privacy-Data-Protection-Skills

Made for: Claude Code.

Or install cookie-consent-skills, the plugin that ships this one along with the rest of its 12 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cookie-consent-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/mukul975/privacy-data-protection-skills/cookie-consent-testing/github.svg)](https://agentmods.dev/skills/mukul975/privacy-data-protection-skills/cookie-consent-testing)
Your own site
<a href="https://agentmods.dev/skills/mukul975/privacy-data-protection-skills/cookie-consent-testing"><img src="https://agentmods.dev/badge/skills/mukul975/privacy-data-protection-skills/cookie-consent-testing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cookie-consent-testing

Your own site · 80×15
<a href="https://agentmods.dev/skills/mukul975/privacy-data-protection-skills/cookie-consent-testing"><img src="https://agentmods.dev/badge/skills/mukul975/privacy-data-protection-skills/cookie-consent-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,492 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.04492
Opus 5 $0.00022 $0.02246
Sonnet 5 $0.00009 $0.00898
Haiku 4.5 $0.00004 $0.00449

Measured 12d ago against content hash e3ddcdaf01a9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

cookie-consent-testing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/process.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/cookie-consent-skills/skills/cookie-consent-testing/SKILL.md · 584 lines

How it starts

The opening of the file, as written. The whole thing — 584 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Overview

Manual cookie consent testing is insufficient for modern web applications where deployments occur multiple times daily and third-party scripts update independently. Automated testing using browser automation frameworks — Selenium and Playwright — enables continuous verification that the cookie consent banner functions correctly, that non-essential cookies are blocked before consent, that consent choices are respected, and that tag firing aligns with the user's consent state. Integrating these tests into the CI/CD pipeline ensures that every deployment is verified for cookie compliance before reaching production.

Test Architecture

Test Categories

Category What It Tests When to Run
Banner display Banner appears on first visit; correct layout and text Every deployment
Pre-consent blocking No non-essential cookies/tags before user interaction Every deployment
Consent acceptance Accept All sets correct cookies and fires correct tags Every deployment
Consent rejection Reject All blocks all non-essential cookies and tags Every deployment
Granular consent Per-category toggles work correctly Every deployment
Consent persistence Consent state survives page navigation and browser restart Daily
Consent withdrawal Changing consent removes cookies and stops tags Weekly
Consent expiry Banner re-appears after consent expires Monthly
GPC signal GPC header triggers automatic opt-out Every deployment
Regression New cookies not introduced without documentation Every deployment

Test Environment Setup

Playwright Configuration for Pinnacle E-Commerce Ltd:

// playwright.config.js
const { defineConfig, devices } = require('@playwright/test');

module.exports = defineConfig({
  testDir: './tests/cookie-consent',
  timeout: 30000,
  retries: 1,
  use: {
    baseURL: 'https://staging.pinnacle-ecommerce.com',
    trace: 'on-first-retry',
    screenshot: 'only-on-failure',
  },
  projects: [
    {
      name: 'chromium',
      use: { ...devices['Desktop Chrome'] },
    },
    {
      name: 'firefox',
      use: { ...devices['Desktop Firefox'] },
    },
    {
      name: 'webkit',
      use: { ...devices['Desktop Safari'] },
    },
    {
      name: 'mobile-chrome',
      use: { ...devices['Pixel 5'] },
    },
    {
      name: 'mobile-safari',
      use: { ...devices['iPhone 13'] },
    },
  ],
});

Read the full file on GitHub · 584 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 584 lines · 44 tokens per session scan A e3ddcdaf01a9

Subscribe to this mod's changes

cookie-consent-testing is a skill published in the GitHub repository mukul975/Privacy-Data-Protection-Skills (272 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 44 tokens to every session and 4,492 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

privacy-compliance

Comprehensive global privacy compliance agent skill covering GDPR, CCPA/CPRA, HIPAA Privacy Rule, EU AI Act, LGPD, cross-border data transfer mechanisms (SCCs, BCRs, EU-US DPF), PII identification and classification, data minimization, consent management, privacy-by-design patterns, DPIA workflows, data subject access…

JPeetz/agent-skills · 132 tokens

test-coverage

Enforces a 90% line and branch coverage threshold and audits for meaningful integration, end-to-end, stress, and property-based tests beyond unit tests. Identifies critical paths that lack coverage, flags tests that pass without asserting, and in edit mode generates missing test scaffolds. Use when the user asks to…

Nordic-AI/production-readiness-skills · 110 tokens

browse

Drive a real browser through Aside: open a page, read it, click through a flow, take screenshots, check console errors. (gstack).

garrytan/gstack · 32 tokens

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

anthropics/skills · 35 tokens

create-verification-skill

Create a repo-local verification skill and exhaustive feature map for driving a real app through its UI, CLI, or API. Use for "create a verification skill", "make a verify skill for this repo", or "document how agents can verify this app".

get-bb/bb · 57 tokens

browser-qa

A browser-based quality check for deployed web pages and user flows. It uses browser automation to test rendering, navigation, forms, interactions, responsive behaviour, and accessibility-related issues.

hashgraph-online/awesome-codex-plugins · 58 tokens