agentleFS
wormeymanwormeyman/wormeyman-skills/skills/tracker-consent-audit/SKILL.md

tracker-consent-audit

Skill4 starsChanged 11 days agoMITView on GitHub

Use when a WordPress food blogger asks whether their site needs a consent banner, whether analytics or a session recorder runs before visitors agree, whether they are exposed to the "wiretapping" (CIPA) letters bloggers are getting, or what their Raptive or Mediavine ads do with Global Privacy Control. Also use for "is my blog compliant", "do I have a cookie banner", "what trackers are on my site", and before setting up a consent plugin, so its effect can be measured before and after. Measures what loads in a real browser, names the plugin or setting behind each tracker with a probe that makes no changes itself, and produces a private report and a plain-language reply. Not legal advice.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Site internals: Ask the client (or Eric) to upload tracker-audit-probe.php to wp-content/mu-plugins/ and create an Application Password.

    line 30
  2. Distinctive:

    Delete the probe after use, and revoke the Application Password.

    line 69
  3. Very specific:

    Remove any database container with podman rm --force --volumes: without --volumes, the client's database survives in an anonymous volume.

    line 70
  4. Distinctive:

    Never write policy or legal wording.

    line 72

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Tracker and consent audit

Find out what a WordPress food blog sends to whom before a visitor agrees to anything, who put each tracker there, and what Global Privacy Control changes.

The core rule

Measure what runs before consent in a real browser. Never infer it. Plugin lists, page source and the ad network's assurances all disagree with what a browser actually loads. A consent plugin can be installed, switched on and still block nothing. A sign-up form can be dead. A session recorder can honor GPC on its own server. Only a logged run shows which.

Sequence

  1. Scaffold. uv run scripts/new_audit.py https://www.example.com ~/Projects/example-privacy-audit --ad-network Mediavine --name "Example". The folder gets its own copy of every script, so a re-test months later runs the same code.
  2. Fill scripts/site_config.py. Six real pages (home, a post, a category, search, contact, privacy policy), the fields a visitor can type into, and the trackers the site adds itself. Fetch the homepage with curl first and read the script tags: that tells you the ad network and the obvious trackers.
  3. Browser run, US. Build the container, run audit.py --visible detached (commands in the folder's README). Six pages, plain and with GPC, about 12 minutes.
  4. Analyze. analyze.py, then form_test.py, then gpc_probe.py.
  5. Site internals. Ask the client (or Eric) to upload tracker-audit-probe.php to wp-content/mu-plugins/ and create an Application Password. The person runs fetch_inventory.py in their own terminal and types the password at its hidden prompt, never on the command line. An agent's shell has no terminal for that prompt, so give the person the command. Never ask for the Application Password in chat. Then re-run analyze.py, and delete the probe file and revoke the Application Password. The probe stops answering 48 hours after upload; the password does not expire on its own and is a full admin login.
  6. Write findings. Each finding is confirmed, likely, or an evidence gap. See references/reporting.md.
  7. Report. Fill report/template.html, build it, run the accessibility audit on the built files, publish with the publishing-behind-cloudflare-access skill. The deploy folder already fails closed.
  8. Reply. Plain language, answering the client's own questions first. Run the humanizer. Say it is not legal advice.

Background for the steps: references/wordpress.md (where trackers hide, the probe, a database export, a local copy), references/ad-networks.md (Raptive, Mediavine, GPC and GPP strings, UK and EU tests), references/reporting.md (wording, outline, publishing).

Ask, do not assume

  • Whether to test UK and EU visitors (needs a VPN in an isolated VM or container, never machine-wide).
  • Whether the probe may be uploaded, or a database export used instead (references/wordpress.md).
  • Whether a report page is wanted, and who may open it.
  • What may be removed. The audit itself changes nothing on the site apart from the probe and its Application Password.

Safety

  • The audit changes nothing on the live site except uploading and deleting the probe and adding and revoking its Application Password. The probe makes no changes itself and rolls back database writes made by the head and footer code it runs. It cannot undo file writes, cache writes, outbound requests, writes to non-InnoDB tables, DDL, or code that commits its own transaction; its response lists the non-InnoDB tables and the shutdown callbacks it removed. Like any visit, each call also runs the site's own per-request code, such as a request logger, which the probe does not roll back. Single-site WordPress only. WordPress also records when the Application Password was last used. Use containers for the browser and for any database copy.
  • Delete the probe after use, and revoke the Application Password.
  • Remove any database container with podman rm --force --volumes: without --volumes, the client's database survives in an anonymous volume.
  • Never write policy or legal wording. Name what the policy misses; the wording is a lawyer's.

Hazards from real runs

SymptomCauseFix
Container sits silent foreverxvfb-run as PID 1 waits for a signalpodman run --init
Run dies when the session restartsbackground shell jobs die with itpodman run --detach --name, then podman logs --follow
Recorder uploads missing from the loggzip bodies crash post_databody_text() decompresses post_data_buffer
"Canary not found"recorder sent nothing after the typingform_test.py waits for an upload and reports the count
No sign-up field foundthe newsletter form was deleted, its script still loadstest the comment form; report the dead embed
Recorder vanishes under GPCthe vendor's server returns a stub for Sec-GPC: 1gpc_probe.py compares responses
Banner plugin active, no bannerinstalled, never configuredprobe inventory lists its option names
Analytics in no pluginpasted into theme settings (Genesis Header Scripts)probe inventory names the option
Low ad countsheadless Chrome gets an ad-blocker flag--visible under Xvfb for client numbers

Download now (ZIP)

Does 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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.