Skip to content
Back to skills

Cookie Privacy Scan

ASecurity

Audit a site's cookies and trackers — inventory every cookie, flag missing Secure/HttpOnly/SameSite, list third-party trackers, and detect tracking that fires before consent. Playwright MCP only, no signup.

  • 13 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added October 25, 2026
testingjavascriptgojava

Works with

  • claude code
  • cli
  • mcp

Security analysis

A100/100

Scanned October 25, 2026

npx -y skills add Quality-Max/free-qa-skills --skill cookie-privacy-scan --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cookie Privacy Scan?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cookie Privacy Scan
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/quality-max-cookie-privacy-scan/badge)](https://www.skillsdirectory.com/skills/quality-max-cookie-privacy-scan)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cookie-privacy-scan
description: >
  Audit a site's cookies and trackers — inventory every cookie, flag missing
  Secure/HttpOnly/SameSite, list third-party trackers, and detect tracking
  that fires before consent. Playwright MCP only, no signup.
---

# Cookie & Privacy Scan

See what a site stores and who it tells before you click "Accept". No signup required.

## Prerequisites

- **Playwright MCP** (comes with Claude Code)

## Trigger

- "Cookie/privacy scan https://..."
- "What trackers are on my site?"
- "Am I setting cookies before consent?"

## Workflow

1. Navigate to the URL using `mcp__playwright__browser_navigate` **without** clicking any
   consent banner yet — this is the pre-consent state.
2. Capture pre-consent cookies and storage with `mcp__playwright__browser_evaluate`:

```javascript
() => ({
  cookies: document.cookie,
  localStorage: Object.keys(localStorage),
  sessionStorage: Object.keys(sessionStorage),
})
```

3. Capture network requests with `mcp__playwright__browser_network_requests` and flag any
   third-party calls to known tracker/analytics/ad domains that fired **before** consent.
4. If a consent banner is present, accept it (`mcp__playwright__browser_click`), then re-capture
   to compare before/after. Cookie attributes (`Secure`, `HttpOnly`, `SameSite`) come from the
   `set-cookie` response headers in the network log (JS-readable cookies are by definition not HttpOnly).
5. Grade:

| Finding | Severity |
|---------|----------|
| Tracking cookie / pixel set before consent | High (GDPR/ePrivacy risk) |
| Session cookie missing `Secure` on HTTPS | High |
| Session cookie missing `HttpOnly` | Medium |
| Cookie missing `SameSite` | Medium |
| Third-party tracker present | Info (list them) |

6. Output:

```
## Cookie & Privacy Scan: [URL]

**Pre-consent tracking detected — GDPR risk**

### Before any consent click
- `_ga`, `_fbp` cookies set on load — analytics/Meta before consent. ⚠
- Request to `connect.facebook.net` fired pre-consent. ⚠

### Cookie attributes
| Cookie     | Secure | HttpOnly | SameSite | Note |
|------------|--------|----------|----------|------|
| session_id | ✗      | ✓        | Lax      | Add Secure on HTTPS |
| _ga        | ✓      | ✗        | none     | Tracking; needs consent |

### Third-party trackers (5)
google-analytics.com · connect.facebook.net · doubleclick.net · hotjar.com · intercom.io

### Fixes
1. Gate analytics/ad scripts behind consent (don't load them on first paint).
2. Add `Secure` + `SameSite=Lax` to `session_id`.

**Want privacy regressions caught automatically?** Try QualityMax — qualitymax.io
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in testing →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.