Cookie Policy
Draft a cookie consent policy and banner implementation guide for "$ARGUMENTS". Generate a comprehensive cookie policy with practical implementation guidance for consent management.
Note: AI-generated legal content does not constitute legal advice. Consult a qualified attorney.
Arguments. $ARGUMENTS may contain the project name and optional flags. Take the first token as <project> and treat --skip-checks as a flag; never include flags in file paths. All paths below use <project>. If --skip-checks is present, skip the prerequisite check and, before writing any artifact, append one line to .singularskills/log.jsonl: {"ts":"<ISO timestamp>","skill":"legal-cookie-policy","workflow":"legal","phase":1,"project":"<project>","event":"skipped","artifact":"01-draft.md","note":"<reason or \"none given\">"}.
Prerequisites
Part of a workflow. This skill is phase 1 (Draft) of the Legal Lifecycle workflow (legal); cross-domain workflows run it too. First check .singularskills/log.jsonl for an open run for this project: a run-started line with "project":"<project>" and no later run-finished line for the same workflow and project. If one exists, the conductor is running you: continue here. Otherwise, if the user asked to start, run, continue or resume a process or workflow rather than this one step, do not continue here: invoke the workflow skill with the workflow the user asked for, or legal when they named none, followed by <project>; it runs this phase in order, asks before it writes and records the run. Otherwise continue here: a later phase runs on its own, behind its gate.
Run this skill's gate before writing: sh <this skill's folder>/scripts/gate.sh <project> <project root>, where <project root> is the folder that contains .singularskills/ (use . when you are already there). If it exits non-zero, stop and tell the user what it printed, unless --skip-checks was given (see Arguments). On a refusal, before you stop, append this line to .singularskills/log.jsonl (create the folder and file if missing): {"ts":"<ISO timestamp>","skill":"legal-cookie-policy","workflow":"legal","phase":1,"project":"<project>","event":"refused","artifact":"01-draft.md","note":"<what the gate printed>"}. Once the gate has passed, or under --skip-checks once you have appended the skipped line, append this line before you start work: {"ts":"<ISO timestamp>","skill":"legal-cookie-policy","workflow":"legal","phase":1,"project":"<project>","event":"started","artifact":"01-draft.md","note":""}.
Check that .singularskills/legal/<project>/00-assess.md exists. If it does not exist, stop and tell the user:
"Run an Assess skill first (e.g. /legal-risk-assessment <project>) to generate the prerequisite assessment artifact."
Process
Read inputs:
- Read
.singularskills/legal/<project>/00-assess.md for jurisdiction requirements and data practice context
Draft cookie policy — explanatory sections:
- What Cookies Are — plain-language explanation of cookies and similar tracking technologies (pixels, web beacons, local storage, fingerprinting), accessible to non-technical readers
- Cookie Categories:
- Strictly Necessary — essential for site function (authentication, security, load balancing, shopping cart), cannot be disabled, no consent required
- Functional / Preferences — remember user choices (language, region, display settings), enhance user experience but not essential
- Analytics / Performance — measure site usage, traffic patterns, page performance (Google Analytics, Hotjar, etc.), used to improve the service
- Advertising / Marketing — track users across sites, build interest profiles, deliver targeted ads, measure ad campaign effectiveness
Draft cookie inventory table:
- For each cookie: name, provider (first-party or third-party with name), purpose, category, duration (session or persistent with expiry), data collected
- Organize by category
- Note: instruct the user to audit their actual cookies and update this table with real values
Draft cookie management instructions:
- How to manage cookies through the consent banner (re-access preferences)
- How to manage cookies per browser (Chrome, Firefox, Safari, Edge — link to browser documentation)
- How to opt out of specific third-party cookies (Google, Meta, etc. — link to opt-out pages)
- Impact of disabling cookies on site functionality per category
Draft third-party cookie disclosures:
- List of third-party services that set cookies
- Link to each third party's privacy/cookie policy
- Purpose of each third-party integration
- Data shared with third parties through cookies
Draft consent mechanism description:
- How consent is collected (banner, preference center)
- What constitutes valid consent (affirmative action, not pre-checked boxes)
- How consent is recorded and stored
- How users can withdraw consent
- Consent expiry and re-consent frequency
Draft policy update procedure:
- How changes to the cookie policy are communicated
- Re-consent requirements when new cookie categories are added
- Version history or changelog
Draft banner implementation guide:
Consent requirements by jurisdiction:
- EU/EEA (ePrivacy Directive + GDPR): opt-in required for non-essential cookies, prior consent before setting cookies, granular category-level consent, no cookie walls (consent cannot be condition of access)
- UK (UK GDPR + PECR): similar to EU, opt-in for non-essential
- California (CCPA/CPRA): opt-out model for sale/sharing of personal information, "Do Not Sell or Share" link
- Brazil (LGPD): consent-based, similar to GDPR approach
- Other jurisdictions: default to opt-in as safest baseline
Banner design recommendations:
- First layer: concise purpose statement, accept/reject buttons of equal prominence, link to cookie settings and full policy
- Second layer (preference center): category-level toggles with descriptions, individual cookie details, save preferences button
- Accessibility requirements: keyboard navigation, screen reader compatible, sufficient contrast
- No dark patterns: no pre-checked boxes, no confusing button hierarchy, no hidden reject option
Consent storage approach:
- Store consent state in a first-party cookie
- Record consent timestamp, version, and granular choices
- Sync consent with server-side records for audit trail
- Recommended consent management platforms (CMP) for implementation
Re-consent triggers:
- New cookie categories added
- Significant changes to data processing purposes
- Consent record older than 12 months (recommended refresh)
- Change in applicable regulations
Write the artifact — append to .singularskills/legal/<project>/01-draft.md under a ## Cookie Policy section. Create the file with a # Draft — <project> heading if it does not exist; if a ## Cookie Policy section already exists, replace only that section.
Output
The cookie policy and implementation guide draft appended to .singularskills/legal/<project>/01-draft.md. Present a summary to the user highlighting:
- Cookie categories defined and example cookies listed
- Jurisdictions addressed and consent model per jurisdiction
- Banner implementation recommendations
- Third-party cookie integrations identified
- Areas flagged for attorney review (especially consent mechanism compliance)
Record the run. After you have written your section, append this line to .singularskills/log.jsonl (the started line of Prerequisites, with "event":"finished"): {"ts":"<ISO timestamp>","skill":"legal-cookie-policy","workflow":"legal","phase":1,"project":"<project>","event":"finished","artifact":"01-draft.md","note":""}.
This artifact is shared by every skill of phase 1 (Draft). The frontmatter is written once, by whoever creates the file: if you create it, open it with the block below (skill is the phase title, started the time of that first write; gate is passed when the gate ran clean and skipped under --skip-checks); if it already exists, leave the block alone except to update finished and to set gate to the worst value among the sections (skipped over passed).
---
skill: Draft
workflow: legal
phase: 1
project: <project>
started: <ISO timestamp>
finished: <ISO timestamp>
agent: <the agent you run in, or "unknown">
gate: <passed|skipped>
---
Open your ## Cookie Policy section with one italic line, *<skill name> · <ISO timestamp> · gate: <passed|skipped>* (your skill name is legal-cookie-policy).
End your section with ### Decisions and ### Open questions (one level under your ## Cookie Policy heading, so the section stays one block), in this shape:
### Decisions
- <what was chosen> — <why> — <what was rejected>
### Open questions
- <what the next phase or a reviewer must settle>
1---2name: legal-cookie-policy3description: Draft a public cookie policy — what cookies are, categories, an inventory table, browser opt-out instructions, third-party disclosures and how consent is given and withdrawn. Use when the user needs the cookie policy page for their website or app written or updated. Not for building the consent banner itself; see /legal-cookie-consent.4metadata:5 source: https://skillmd.com/skills/bromso/legal-cookie-policy6 argument-hint: "[project] [--skip-checks]"7 workflow: legal8 phase: 19 artifact: 01-draft.md10---1112# Cookie Policy1314Draft a cookie consent policy and banner implementation guide for "$ARGUMENTS". Generate a comprehensive cookie policy with practical implementation guidance for consent management.1516> **Note:** AI-generated legal content does not constitute legal advice. Consult a qualified attorney.1718**Arguments.** `$ARGUMENTS` may contain the project name and optional flags. Take the first token as `<project>` and treat `--skip-checks` as a flag; never include flags in file paths. All paths below use `<project>`. If `--skip-checks` is present, skip the prerequisite check and, **before writing any artifact**, append one line to `.singularskills/log.jsonl`: `{"ts":"<ISO timestamp>","skill":"legal-cookie-policy","workflow":"legal","phase":1,"project":"<project>","event":"skipped","artifact":"01-draft.md","note":"<reason or \"none given\">"}`.1920## Prerequisites2122**Part of a workflow.** This skill is phase 1 (Draft) of the Legal Lifecycle workflow (`legal`); cross-domain workflows run it too. First check `.singularskills/log.jsonl` for an open run for this project: a `run-started` line with `"project":"<project>"` and no later `run-finished` line for the same `workflow` and `project`. If one exists, the conductor is running you: continue here. Otherwise, if the user asked to start, run, continue or resume a process or workflow rather than this one step, do not continue here: invoke the `workflow` skill with the workflow the user asked for, or `legal` when they named none, followed by `<project>`; it runs this phase in order, asks before it writes and records the run. Otherwise continue here: a later phase runs on its own, behind its gate.2324Run this skill's gate before writing: `sh <this skill's folder>/scripts/gate.sh <project> <project root>`, where `<project root>` is the folder that contains `.singularskills/` (use `.` when you are already there). If it exits non-zero, stop and tell the user what it printed, unless `--skip-checks` was given (see Arguments). On a refusal, before you stop, append this line to `.singularskills/log.jsonl` (create the folder and file if missing): `{"ts":"<ISO timestamp>","skill":"legal-cookie-policy","workflow":"legal","phase":1,"project":"<project>","event":"refused","artifact":"01-draft.md","note":"<what the gate printed>"}`. Once the gate has passed, or under `--skip-checks` once you have appended the `skipped` line, append this line before you start work: `{"ts":"<ISO timestamp>","skill":"legal-cookie-policy","workflow":"legal","phase":1,"project":"<project>","event":"started","artifact":"01-draft.md","note":""}`.2526Check that `.singularskills/legal/<project>/00-assess.md` exists. If it does not exist, stop and tell the user:2728> "Run an Assess skill first (e.g. `/legal-risk-assessment <project>`) to generate the prerequisite assessment artifact."2930## Process31321. **Read inputs:**33 - Read `.singularskills/legal/<project>/00-assess.md` for jurisdiction requirements and data practice context34352. **Draft cookie policy — explanatory sections:**3637 - **What Cookies Are** — plain-language explanation of cookies and similar tracking technologies (pixels, web beacons, local storage, fingerprinting), accessible to non-technical readers38 - **Cookie Categories:**39 - **Strictly Necessary** — essential for site function (authentication, security, load balancing, shopping cart), cannot be disabled, no consent required40 - **Functional / Preferences** — remember user choices (language, region, display settings), enhance user experience but not essential41 - **Analytics / Performance** — measure site usage, traffic patterns, page performance (Google Analytics, Hotjar, etc.), used to improve the service42 - **Advertising / Marketing** — track users across sites, build interest profiles, deliver targeted ads, measure ad campaign effectiveness43443. **Draft cookie inventory table:**45 - For each cookie: name, provider (first-party or third-party with name), purpose, category, duration (session or persistent with expiry), data collected46 - Organize by category47 - Note: instruct the user to audit their actual cookies and update this table with real values48494. **Draft cookie management instructions:**50 - How to manage cookies through the consent banner (re-access preferences)51 - How to manage cookies per browser (Chrome, Firefox, Safari, Edge — link to browser documentation)52 - How to opt out of specific third-party cookies (Google, Meta, etc. — link to opt-out pages)53 - Impact of disabling cookies on site functionality per category54555. **Draft third-party cookie disclosures:**56 - List of third-party services that set cookies57 - Link to each third party's privacy/cookie policy58 - Purpose of each third-party integration59 - Data shared with third parties through cookies60616. **Draft consent mechanism description:**62 - How consent is collected (banner, preference center)63 - What constitutes valid consent (affirmative action, not pre-checked boxes)64 - How consent is recorded and stored65 - How users can withdraw consent66 - Consent expiry and re-consent frequency67687. **Draft policy update procedure:**69 - How changes to the cookie policy are communicated70 - Re-consent requirements when new cookie categories are added71 - Version history or changelog72738. **Draft banner implementation guide:**7475 - **Consent requirements by jurisdiction:**76 - EU/EEA (ePrivacy Directive + GDPR): opt-in required for non-essential cookies, prior consent before setting cookies, granular category-level consent, no cookie walls (consent cannot be condition of access)77 - UK (UK GDPR + PECR): similar to EU, opt-in for non-essential78 - California (CCPA/CPRA): opt-out model for sale/sharing of personal information, "Do Not Sell or Share" link79 - Brazil (LGPD): consent-based, similar to GDPR approach80 - Other jurisdictions: default to opt-in as safest baseline8182 - **Banner design recommendations:**83 - First layer: concise purpose statement, accept/reject buttons of equal prominence, link to cookie settings and full policy84 - Second layer (preference center): category-level toggles with descriptions, individual cookie details, save preferences button85 - Accessibility requirements: keyboard navigation, screen reader compatible, sufficient contrast86 - No dark patterns: no pre-checked boxes, no confusing button hierarchy, no hidden reject option8788 - **Consent storage approach:**89 - Store consent state in a first-party cookie90 - Record consent timestamp, version, and granular choices91 - Sync consent with server-side records for audit trail92 - Recommended consent management platforms (CMP) for implementation9394 - **Re-consent triggers:**95 - New cookie categories added96 - Significant changes to data processing purposes97 - Consent record older than 12 months (recommended refresh)98 - Change in applicable regulations991009. **Write the artifact** — append to `.singularskills/legal/<project>/01-draft.md` under a `## Cookie Policy` section. Create the file with a `# Draft — <project>` heading if it does not exist; if a `## Cookie Policy` section already exists, replace only that section.101102## Output103104The cookie policy and implementation guide draft appended to `.singularskills/legal/<project>/01-draft.md`. Present a summary to the user highlighting:105- Cookie categories defined and example cookies listed106- Jurisdictions addressed and consent model per jurisdiction107- Banner implementation recommendations108- Third-party cookie integrations identified109- Areas flagged for attorney review (especially consent mechanism compliance)110111**Record the run.** After you have written your section, append this line to `.singularskills/log.jsonl` (the `started` line of Prerequisites, with `"event":"finished"`): `{"ts":"<ISO timestamp>","skill":"legal-cookie-policy","workflow":"legal","phase":1,"project":"<project>","event":"finished","artifact":"01-draft.md","note":""}`.112113This artifact is shared by every skill of phase 1 (Draft). The frontmatter is written once, by whoever creates the file: if you create it, open it with the block below (`skill` is the phase title, `started` the time of that first write; `gate` is `passed` when the gate ran clean and `skipped` under `--skip-checks`); if it already exists, leave the block alone except to update `finished` and to set `gate` to the worst value among the sections (`skipped` over `passed`).114115```yaml116---117skill: Draft118workflow: legal119phase: 1120project: <project>121started: <ISO timestamp>122finished: <ISO timestamp>123agent: <the agent you run in, or "unknown">124gate: <passed|skipped>125---126```127128Open your `## Cookie Policy` section with one italic line, `*<skill name> · <ISO timestamp> · gate: <passed|skipped>*` (your skill name is `legal-cookie-policy`).129130End your section with `### Decisions` and `### Open questions` (one level under your `## Cookie Policy` heading, so the section stays one block), in this shape:131132```markdown133### Decisions134- <what was chosen> — <why> — <what was rejected>135136### Open questions137- <what the next phase or a reviewer must settle>138```