cookie-privacy-scan
Skill13 starsChanged 20 days agoApache-2.0View on GitHub
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.
In this repository35 other files it gives its agents.
- accessibility-checkSkill
- agentic-app-risk-reviewSkill
- api-security-scanSkill
- broken-link-scanSkill
- cold-load-waterfallSkill
- complexity-hotspotsSkill
- console-error-scanSkill
- core-web-vitalsSkill
- dead-code-scanSkill
- dependency-auditSkill
- diff-risk-reviewSkill
- error-handling-auditSkill
- evidence-code-auditSkill
- exploited-vulnerability-watchSkill
- flaky-selector-scanSkill
- form-validation-scanSkill
- i18n-rtl-auditSkill
- iac-misconfig-scanSkill
- invisible-inkSkill
- license-compliance-scanSkill
- mixed-content-scanSkill
- mr-nullSkill
- page-weight-budgetSkill
- railway-exposure-auditSkill
- responsive-screenshotsSkill
- script-quality-reviewSkill
- scunthorpe-checkSkill
- secret-scanSkill
- security-advisory-triageSkill
- security-auditSkill
- security-headers-checkSkill
- seo-checkSkill
- test-quality-reviewSkill
- third-party-bloatSkill
- ui-ux-scanSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 39
If a consent banner is present, accept it (mcp__playwright__browser_click), then re-capture to compare before/after.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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
- Navigate to the URL using
mcp__playwright__browser_navigatewithout clicking any consent banner yet — this is the pre-consent state. - Capture pre-consent cookies and storage with
mcp__playwright__browser_evaluate:
() => ({
cookies: document.cookie,
localStorage: Object.keys(localStorage),
sessionStorage: Object.keys(sessionStorage),
})- Capture network requests with
mcp__playwright__browser_network_requestsand flag any third-party calls to known tracker/analytics/ad domains that fired before consent. - 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 theset-cookieresponse headers in the network log (JS-readable cookies are by definition not HttpOnly). - 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) |
- 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.ioDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

