Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add kws-projects/react-boilerplate --skill consent-managementgit clone --depth 1 https://github.com/kws-projects/react-boilerplateWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/kws-projects/react-boilerplate/consent-management)<a href="https://agentmods.dev/skills/kws-projects/react-boilerplate/consent-management"><img src="https://agentmods.dev/badge/skills/kws-projects/react-boilerplate/consent-management/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/kws-projects/react-boilerplate/consent-management"><img src="https://agentmods.dev/badge/skills/kws-projects/react-boilerplate/consent-management.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.01317 |
| Opus 5.5 | $0.00000 | $0.00527 |
| Sonnet 5.5 | $0.00000 | $0.00263 |
| Haiku 4.5 | $0.00000 | $0.00132 |
Grade A, and why
consent-management scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 173 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Consent Management
Integrate or modify consent handling for GA4 Consent Mode v2. Use when launching in a consent-required market (EU/EEA, UK, Brazil LGPD, etc.), integrating a Consent Management Platform (CMP), or modifying the default consent posture.
Current state
Consent defaults to granted in src/lib/analytics.ts. No CMP is
integrated. This is appropriate when the target market has no legal requirement
for prior user consent before analytics tracking.
When to change
You must switch to a consent-denied default when any of these apply:
- Launching in the EU/EEA or UK (GDPR / ePrivacy Directive)
- Launching in Brazil (LGPD)
- Launching in a jurisdiction with similar consent-before-tracking laws
- Your organisation's privacy policy requires opt-in consent regardless of market
Migration guide — adding consent management
Step 1: Change the default consent posture
In src/lib/analytics.ts, inside init(), replace the granted defaults:
// Before (current — consent granted by default)
gtag('consent', 'default', {
analytics_storage: 'granted',
ad_storage: 'granted',
ad_user_data: 'granted',
ad_personalization: 'granted',
})
// After (consent denied until user grants)
gtag('consent', 'default', {
analytics_storage: 'denied',
ad_storage: 'denied',
ad_user_data: 'denied',
ad_personalization: 'denied',
wait_for_update: 500, // ms to wait for CMP to load
})
Step 2: Integrate a CMP
Choose one of the following approaches:
Option A: Third-party CMP (recommended for production)
Popular CMPs with Google Consent Mode v2 support:
- Cookiebot — automatic geo-detection, plug-and-play script tag
- OneTrust — enterprise-grade, geo-specific banner rules
- Usercentrics — strong EU compliance, Google CMP partner
- Cookie Information — simple setup, Google-certified
These CMPs automatically call gtag('consent', 'update', {...}) when the user
interacts with the banner. No custom code needed beyond loading their script.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 173 lines · 0 tokens per session scan A 27e0bdcadc9e
consent-management is a skill published in the GitHub repository kws-projects/react-boilerplate (3 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,317 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
consent-management compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| consent-managementkws-projects/react-boilerplate | Skill | 3 | 5mo ago | MIT | A | 0 | Cursor |
| anvil-adsense-auditPNGTRID/AnvilWiki | Skill | 239 | today | MIT | A | 136 | Claude Code, Codex |
| thai-government-formBoom-Vitt/claude-thai-skills | Skill | 68 | 1mo ago | MIT | A | 0 | Claude Code |
| full-after-careellmos-ai/skills | Skill | 10 | yesterday | MIT | A | 196 | Claude Code, Codex |
| thai-pdpaBoom-Vitt/claude-thai-skills | Skill | 68 | 1mo ago | MIT | A | 0 | Claude Code |
| thai-invoiceBoom-Vitt/claude-thai-skills | Skill | 68 | 1mo ago | MIT | A | 0 | Claude Code |
| Risk Factor Reviewzgbrenner/agentcounsel | Skill | 21 | 3mo ago | MIT | A | 67 | Claude Code, Codex |