agentleFS
moh-obaidamoh-obaida/ReadyVibe-Skills/skills/compliance/consent-management/SKILL.md

consent-management

Skill2 starsChanged 2 months agoApache-2.0View on GitHub

Use when a site has analytics, advertising, session replay, or other optional trackers and a consent control exists or may be needed. It determines whether gating is applicable by looking up the current rule at an official source, then verifies the behavior of reject, accept, and withdraw, not the appearance of the banner. Do not use it to add a cookie banner to a site with nothing to gate, to decide legal applicability from memory, or to design a dark-pattern consent flow.

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 6 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not default to "add a cookie banner".

    line 16
  2. Very specific:

    Not when the inventory shows no non-essential storage or trackers (say so and stop), or for deciding which laws apply …

    line 22
  3. Very specific:

    Inventory and timing: Use the inventory from cookie-and-storage-audit.

    line 32
  4. Very specific:

    Behavior, in a fresh browser context per path: Write a steps file (a JSON array) and run node scripts/observe-runtime.mjs --url <site> …

    line 35
  5. Distinctive:

    Withdraw/change: after accept, use the preferences/withdraw control.

    line 49
  6. Distinctive:

    If runtime proof is unavailable (no Playwright, staging inaccessible), say "reject/accept/withdraw behavior not verified" and list it under …

    line 59
  7. Distinctive:

    Add a control only if gating is applicable or the owner requires it, using the project's components, with reject as prominent as accept, …

    line 69
  8. Distinctive:

    Never invent categories or purposes you did not verify.

    line 71
  9. Distinctive:

    No non-essential storage or trackers are observed and none are planned: "consent gating not currently applicable based on observed behavior.

    line 89

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

consent-management

Do not default to "add a cookie banner". Ask, in order: what loads, is a choice applicable, and does the choice actually change behavior?

Activate when

  • cookie-and-storage-audit (or your own pass) found non-essential storage or trackers, or a consent control already exists.
  • Someone asks for a banner, a preference center, or "fix consent".
  • Not when the inventory shows no non-essential storage or trackers (say so and stop), or for deciding which laws apply (jurisdiction-applicability).

Working alone

This skill is self-contained. Its companions (declared in its metadata) are skills whose method it may need to do its own promised work. Use of a companion can be conditional: declaring one does not mean running it. When a companion's lane applies, use the skill if it is installed; if not, follow its short entry in references/companion-methods.md and say in your report which lanes ran inline at reduced depth. Never skip an applicable lane silently. Skills mentioned here only for escalation, referral, documentation, or optional deeper follow-up are not dependencies: report the hand-off and finish honestly.

Companions: cookie-and-storage-audit, design-system-reconnaissance.

Inspect

  1. Inventory and timing. Use the inventory from cookie-and-storage-audit; if none exists, run node scripts/observe-runtime.mjs --url <site> and read the initial snapshot (paths relative to this skill's folder).
  2. Applicability. Read .readyvibe/context.md if present. If a rule decides whether gating is needed, look up the current requirement at an official source while you run (references/official-sources.md), cite it with the access date, and treat whether it applies to this business as REVIEW REQUIRED. Record: markets (DECLARED/INFERRED/UNKNOWN), the source you read and what it says about these technologies. If you could not consult a source, applicability stays UNKNOWN / REVIEW REQUIRED; do not supply it from memory. You can still verify behavior.
  3. The control, if one exists. Read the implementation: where the choice is stored, what reads it, which scripts are gated and how (conditional loading vs. only hiding UI), whether default state is "off" for optional technologies, whether reject is as easy as accept (same screen, similar prominence, no pre-ticked boxes), whether the choice can be revisited.
  4. Behavior, in a fresh browser context per path. Write a steps file (a JSON array) and run node scripts/observe-runtime.mjs --url <site> --steps consent-reject.json --settle 2000. Use the button labels the first run printed ("Consent-like UI detected: ... buttons [...]"):

    [
      {"do":"click","text":"Reject"},
      {"do":"snapshot","label":"after-reject","expect":"no-new-nonessential"},
      {"do":"reload"},
      {"do":"snapshot","label":"after-reject-reload","expect":"no-new-nonessential"}
    ]

    Each run starts from a clean browser, so one choice does not contaminate another. Add --block-third-party to see what the page attempts without sending real traffic to vendors (omit it on a staging origin when follow-on behavior matters, such as a tag manager loading more tags). The paths:

    • Before choice: what fired at load? (initial snapshot)
    • Reject: click reject; snapshot with "expect":"no-new-nonessential"; reload; snapshot again. The choice must persist and stay effective.
    • Accept: click accept; snapshot with "expect":"some-tracking". Accepting should actually enable the intended behavior. A broken Accept is also a defect.
    • Withdraw/change: after accept, use the preferences/withdraw control; snapshot; reload; snapshot. Subsequent behavior must stop and any cookies set for the withdrawn purpose should be removed or expire as disclosed.
    • Include the CHOICE_NOT_HONORED, CHOICE_HAD_NO_EFFECT, and TRACKING_* findings the helper prints.

Evidence that counts

Label each claim OBSERVED, SOURCE-INDICATED, DECLARED, INFERRED, UNKNOWN, or REVIEW REQUIRED. UNKNOWN is never a pass and never a failure.

  • OBSERVED requires a runtime step you ran. A gate that exists in source is SOURCE-INDICATED; do not say it works.
  • "Banner hides after click" proves UI, not behavior. Only requests, cookies, and storage prove behavior.
  • The consent record itself (a cookie/key storing the choice) is normally not a tracker; confirm it stores only the choice.
  • If runtime proof is unavailable (no Playwright, staging inaccessible), say "reject/accept/withdraw behavior not verified" and list it under UNVERIFIED.
  • Legal specifics: never from memory. When a rule, deadline, threshold, or required wording matters, read the current text or guidance at an official source while you run (start from references/official-sources.md), cite the source and access date, and treat applicability to this business as REVIEW REQUIRED. If you cannot look it up, the answer is UNKNOWN.

May change

Only when requirements are sufficiently known (an official source you read this run, or the owner's stated rule) or the defect is behavioral regardless of rule (Reject that does nothing; a choice that is forgotten on reload; optional scripts loaded unconditionally while a control claims to gate them):

  • Move initialization of optional scripts behind the recorded choice (load-on-consent), not merely behind a hidden overlay.
  • Fix persistence and reload behavior of an existing choice.
  • Fix parity of reject vs accept in an existing control's markup/styles, in the project's design system (design-system-reconnaissance).
  • Add a control only if gating is applicable or the owner requires it, using the project's components, with reject as prominent as accept, and a way to change the choice later.

Never invent categories or purposes you did not verify; never pre-tick optional categories.

Must not claim

"Compliant", "consent is required/not required" (without a source-backed rule), "GDPR/ePrivacy/CCPA compliant", "we respect your choice" (copy) unless reject, reload, and withdraw were verified. Do not add banner copy asserting facts about purposes or retention you cannot support.

Verify

Re-run the full timeline after any change, on desktop and 375px: load → reject → reload → accept → withdraw → reload. Expected: nothing optional before a choice (where gating applies); nothing optional after reject or withdraw; the intended technology after accept; the choice persists. A fix is verified only when the CHOICE_NOT_HONORED / TRACKING_BEFORE_INTERACTION findings clear or are explained.

Escalate

  • Applicability, lawful basis, consent wording, granularity, or age thresholds: REVIEW REQUIRED.
  • Vendors you cannot gate (a tag manager whose container fires everything): the owner must change the container; report exactly what you observed.
  • Server-side tracking (server events, CAPI) is not visible in the browser: UNKNOWN; say so.

No change is valid when

No non-essential storage or trackers are observed and none are planned: "consent gating not currently applicable based on observed behavior; recheck if analytics, ads, or embeds are added." Adding a banner with nothing behind it is compliance theater and makes the site worse.

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.