Cookie Consent
Design a cookie consent implementation for "$ARGUMENTS". Conduct a cookie audit, categorize cookies, design consent mechanisms by jurisdiction, and create an implementation checklist.
Note: AI-generated legal content does not constitute legal advice. Consult a qualified attorney.
Prerequisites
Check that .metapowers/legal/$ARGUMENTS/00-assess.md exists. If it does not exist, stop and tell the user:
"Run an Assess skill first (e.g. /legal:risk-assessment $ARGUMENTS) to generate the prerequisite assessment artifact."
If the user passes --skip-checks, bypass this check and log the skip to .metapowers/legal/$ARGUMENTS/skip-log.md with a timestamp and the reason "Prerequisite check skipped for cookie-consent".
Process
Read inputs:
- Read
.metapowers/legal/$ARGUMENTS/00-assess.md for risk, jurisdiction, and data practice context
- Read any existing cookie policy or draft artifacts in
.metapowers/legal/$ARGUMENTS/ for additional context
Conduct cookie audit:
- Scan site for all cookies and similar tracking technologies (local storage, session storage, pixels, fingerprinting)
- Document each cookie/tracker: name, provider, purpose, type (first-party vs. third-party), duration (session vs. persistent with expiry)
- Identify all third-party services that set cookies (analytics, advertising, social media, CDN, etc.)
Categorize cookies:
- Strictly necessary — essential for site functionality, no consent required (session management, authentication, security, load balancing, cookie consent preferences)
- Functional/Preferences — enable enhanced functionality and personalization (language preference, region selection, user interface customization)
- Analytics/Performance — collect information about site usage (page views, bounce rates, traffic sources, performance monitoring)
- Advertising/Marketing — track visitors across websites for advertising purposes (ad targeting, retargeting, campaign measurement, social media sharing)
Design consent mechanism by jurisdiction:
- EU (ePrivacy Directive + GDPR): opt-in required for non-essential cookies, granular category control, no cookie walls (or limited use per EDPB guidance), prior consent before cookies are set
- UK (UK GDPR + PECR): similar to EU post-Brexit, opt-in for non-essential, ICO enforcement guidance
- US (varies by state): California — opt-out for sale/sharing via cookies; Colorado, Connecticut, Virginia — opt-out mechanisms; no federal cookie law
- Other jurisdictions — document requirements for any additional applicable jurisdictions
Consent banner design:
- First layer: clear and prominent banner with Accept All, Reject All, and Customize/Manage Preferences buttons; brief explanation of cookie use
- Second layer (preference center): category toggles with descriptions, list of cookies per category, ability to accept/reject per category, save preferences button
- Design requirements: no dark patterns, equal prominence for accept and reject, no pre-ticked boxes, accessible design (WCAG AA), mobile-responsive
Consent storage:
- How consent choices are recorded (consent cookie, server-side storage)
- What information to store (timestamp, version of consent text, categories accepted/rejected, method of consent)
- How to prove consent was obtained (audit trail)
- Consent ID for record-keeping
Re-consent triggers:
- New cookies or tracking technologies added
- Change in cookie purposes or categories
- Privacy policy or cookie policy updates
- Time-based re-consent (recommended: 6-12 months)
- Change in applicable regulations
Implementation checklist:
- CMP (Consent Management Platform) selection criteria and recommendations
- Tag manager configuration (Google Tag Manager, etc.) for consent-based firing
- Consent-before-load enforcement (no non-essential cookies until consent obtained)
- Server-side consent checking for backend tracking
- Testing procedures (verify no cookies set before consent, verify categories respected)
- Integration with analytics and advertising platforms
- Documentation and training for content and marketing teams
Write the artifact to .metapowers/legal/$ARGUMENTS/03-comply.md with frontmatter:
---
description: Cookie consent implementation for $ARGUMENTS
---
Include sections:
- Cookie Audit Results — complete inventory of cookies and trackers
- Cookie Categories — categorization with justification
- Jurisdictional Requirements — consent rules per applicable jurisdiction
- Banner Design Specification — first and second layer requirements
- Consent Storage and Proof — recording and audit trail design
- Re-Consent Policy — triggers and timelines
- Implementation Checklist — step-by-step technical implementation plan
- Compliance Gaps — identified gaps with remediation recommendations
Output
The cookie consent implementation written to .metapowers/legal/$ARGUMENTS/03-comply.md. Present a summary to the user highlighting:
- Total number of cookies/trackers identified
- Breakdown by category (necessary, functional, analytics, advertising)
- Jurisdictions addressed and consent model per jurisdiction
- Key implementation steps and CMP recommendations
- Compliance gaps requiring attention
1---2name: cookie-consent3description: Design cookie consent implementation — categories, banners, tracking4---56# Cookie Consent78Design a cookie consent implementation for "$ARGUMENTS". Conduct a cookie audit, categorize cookies, design consent mechanisms by jurisdiction, and create an implementation checklist.910> **Note:** AI-generated legal content does not constitute legal advice. Consult a qualified attorney.1112## Prerequisites1314Check that `.metapowers/legal/$ARGUMENTS/00-assess.md` exists. If it does not exist, stop and tell the user:1516> "Run an Assess skill first (e.g. `/legal:risk-assessment $ARGUMENTS`) to generate the prerequisite assessment artifact."1718If the user passes `--skip-checks`, bypass this check and log the skip to `.metapowers/legal/$ARGUMENTS/skip-log.md` with a timestamp and the reason "Prerequisite check skipped for cookie-consent".1920## Process21221. **Read inputs:**23 - Read `.metapowers/legal/$ARGUMENTS/00-assess.md` for risk, jurisdiction, and data practice context24 - Read any existing cookie policy or draft artifacts in `.metapowers/legal/$ARGUMENTS/` for additional context25262. **Conduct cookie audit:**27 - Scan site for all cookies and similar tracking technologies (local storage, session storage, pixels, fingerprinting)28 - Document each cookie/tracker: name, provider, purpose, type (first-party vs. third-party), duration (session vs. persistent with expiry)29 - Identify all third-party services that set cookies (analytics, advertising, social media, CDN, etc.)30313. **Categorize cookies:**32 - **Strictly necessary** — essential for site functionality, no consent required (session management, authentication, security, load balancing, cookie consent preferences)33 - **Functional/Preferences** — enable enhanced functionality and personalization (language preference, region selection, user interface customization)34 - **Analytics/Performance** — collect information about site usage (page views, bounce rates, traffic sources, performance monitoring)35 - **Advertising/Marketing** — track visitors across websites for advertising purposes (ad targeting, retargeting, campaign measurement, social media sharing)36374. **Design consent mechanism by jurisdiction:**38 - **EU (ePrivacy Directive + GDPR):** opt-in required for non-essential cookies, granular category control, no cookie walls (or limited use per EDPB guidance), prior consent before cookies are set39 - **UK (UK GDPR + PECR):** similar to EU post-Brexit, opt-in for non-essential, ICO enforcement guidance40 - **US (varies by state):** California — opt-out for sale/sharing via cookies; Colorado, Connecticut, Virginia — opt-out mechanisms; no federal cookie law41 - **Other jurisdictions** — document requirements for any additional applicable jurisdictions42435. **Consent banner design:**44 - **First layer:** clear and prominent banner with Accept All, Reject All, and Customize/Manage Preferences buttons; brief explanation of cookie use45 - **Second layer (preference center):** category toggles with descriptions, list of cookies per category, ability to accept/reject per category, save preferences button46 - **Design requirements:** no dark patterns, equal prominence for accept and reject, no pre-ticked boxes, accessible design (WCAG AA), mobile-responsive47486. **Consent storage:**49 - How consent choices are recorded (consent cookie, server-side storage)50 - What information to store (timestamp, version of consent text, categories accepted/rejected, method of consent)51 - How to prove consent was obtained (audit trail)52 - Consent ID for record-keeping53547. **Re-consent triggers:**55 - New cookies or tracking technologies added56 - Change in cookie purposes or categories57 - Privacy policy or cookie policy updates58 - Time-based re-consent (recommended: 6-12 months)59 - Change in applicable regulations60618. **Implementation checklist:**62 - CMP (Consent Management Platform) selection criteria and recommendations63 - Tag manager configuration (Google Tag Manager, etc.) for consent-based firing64 - Consent-before-load enforcement (no non-essential cookies until consent obtained)65 - Server-side consent checking for backend tracking66 - Testing procedures (verify no cookies set before consent, verify categories respected)67 - Integration with analytics and advertising platforms68 - Documentation and training for content and marketing teams69709. **Write the artifact** to `.metapowers/legal/$ARGUMENTS/03-comply.md` with frontmatter:7172 ```73 ---74 description: Cookie consent implementation for $ARGUMENTS75 ---76 ```7778 Include sections:79 - **Cookie Audit Results** — complete inventory of cookies and trackers80 - **Cookie Categories** — categorization with justification81 - **Jurisdictional Requirements** — consent rules per applicable jurisdiction82 - **Banner Design Specification** — first and second layer requirements83 - **Consent Storage and Proof** — recording and audit trail design84 - **Re-Consent Policy** — triggers and timelines85 - **Implementation Checklist** — step-by-step technical implementation plan86 - **Compliance Gaps** — identified gaps with remediation recommendations8788## Output8990The cookie consent implementation written to `.metapowers/legal/$ARGUMENTS/03-comply.md`. Present a summary to the user highlighting:91- Total number of cookies/trackers identified92- Breakdown by category (necessary, functional, analytics, advertising)93- Jurisdictions addressed and consent model per jurisdiction94- Key implementation steps and CMP recommendations95- Compliance gaps requiring attention