GDPR Cookie Consent Banner
Adds a GDPR compliant cookie banner with equal accept and reject buttons, and holds analytics until users agree.
Claude's review
7/10 Working cookie consent build with equal reject button, Consent Mode v2 defaults, GPC in Next 16 proxy.ts, consent records and current TCF notes; not legal advice and simple basic mode gating.
We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.
In detail
Implement GDPR and ePrivacy-compliant cookie consent: a banner with equal Accept and Reject buttons, per-category choices, stored consent records, consent-gated analytics with Google Consent Mode v2, and Global Privacy Control. Use when adding a cookie banner, managing marketing consent, achieving GDPR compliance for EU users, or integrating consent with analytics platforms.
How you use it
- Add it to your pack, then download your pack (1 credit).
- In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
- Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide
Safety check
Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: cookie-consent
description: >-
Implement GDPR and ePrivacy-compliant cookie consent: a banner with equal Accept and Reject
buttons, per-category choices, stored consent records, consent-gated analytics with Google
Consent Mode v2, and Global Privacy Control. Use when adding a cookie banner, managing marketing
consent, achieving GDPR compliance for EU users, or integrating consent with analytics platforms.
license: Apache-2.0
compatibility: "JavaScript/TypeScript. Works with React, Next.js 13+ (App Router) and vanilla JS."
metadata:
author: terminal-skills
version: "1.1.0"
category: development
tags: "cookie-consent, gdpr, privacy, eprivacy, consent-management"
use-cases: "Add a GDPR-compliant cookie banner to a Next.js app, Implement consent-gated Google Analytics loading, Detect and honor Global Privacy Control (GPC) signal"
agents: "claude-code, openai-codex, gemini-cli, cursor"
---
# Cookie Consent
## Overview
The ePrivacy Directive (implemented in national law; the UK has PECR) requires prior consent before storing or reading non-essential data on a user's device, and the GDPR defines what valid consent is. GDPR fines reach EUR 20 million or 4% of global annual turnover, whichever is higher; national regulators (CNIL, the Italian Garante, the Dutch AP and others) actively fine cookie banners that make rejecting harder than accepting.
**Strictly necessary** storage needs no consent: login session, CSRF token, shopping cart, load balancing, and a preference the user explicitly set (for example a language switch they just clicked). **Everything else needs consent first**: analytics, advertising, personalization, embedded third-party media.
This skill is engineering guidance, not legal advice; have counsel check the wording and your cookie list.
| Category | Examples | Consent needed |
|----------|----------|----------------|
| Strictly necessary | Auth session, CSRF token, cart | No |
| Functional | Remembered preferences not explicitly chosen, chat widgets | Yes |
| Analytics | Google Analytics 4, Mixpanel, Hotjar | Yes |
| Marketing | Meta Pixel, Google Ads, retargeting | Yes |
## Instructions
Valid consent (GDPR Art. 4(11) and 7) is **freely given, specific, informed, unambiguous and withdrawable**. In practice:
1. Inventory every cookie, local-storage key and third-party script by category (scan with a browser's devtools or a crawler).
...From TerminalSkills's repository, Apache-2.0 licence.
Related skills
-
Checked
Netlify forms setup
Adds contact, signup and upload forms to a Netlify site with no backend, and fixes lost or spammed entries.
8/101 credit -
Checked
Web design builder
Builds polished web pages, dashboards and prototypes in HTML, CSS and React, then checks them in a browser.
7/101 credit -
Checked
WordPress to Payload Migration
Moves a WordPress site to Next.js and Payload CMS with a checked plan, so no posts, links or rankings get lost.
8/101 credit -
Checked
Netlify Deploy Setup
Writes correct netlify.toml files, functions, redirects and environment settings so your site deploys cleanly.
7/101 credit -
Checked
Instant Pages With Turbo
Makes a server rendered site feel instant with Turbo and Stimulus, no JavaScript framework needed.
8/101 credit -
Checked
Horizontal scroll chapters
Builds scenes that slide sideways as visitors scroll down, landing on the right frame even after fast skips.
7/101 credit