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 Lonsdale201/wp-agent-skills --skill lw-cookie-consent-integrationgit clone --depth 1 https://github.com/Lonsdale201/wp-agent-skillsWrote 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/lonsdale201/wp-agent-skills/lw-cookie-consent-integration)<a href="https://agentmods.dev/skills/lonsdale201/wp-agent-skills/lw-cookie-consent-integration"><img src="https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/lw-cookie-consent-integration/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/lonsdale201/wp-agent-skills/lw-cookie-consent-integration"><img src="https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/lw-cookie-consent-integration.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.00116 | $0.02574 |
| Opus 5.5 | $0.00046 | $0.01030 |
| Sonnet 5.5 | $0.00023 | $0.00515 |
| Haiku 4.5 | $0.00012 | $0.00257 |
Grade A, and why
lw-cookie-consent-integration 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 2mo 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 — 215 lines — stays where its author put it; the contents beside it link to each section on GitHub.
LW Cookie 1.8: consent integration and operations
Use LW Cookie's public hooks, browser API, REST routes, CLI, and abilities. Do not patch the plugin or infer legal compliance from a technical setting. Consent requirements depend on the site's processing, jurisdiction, vendor behavior, and legal basis.
Binding requirements and storage
Read the plugin header rather than old README badges:
| Contract | Version 1.8.3 |
|---|---|
| WordPress | 6.6 or newer |
| PHP | 8.2 or newer |
| Main option | lw_cookie_options |
| Categories | necessary, functional, analytics, marketing |
| Site Manager namespace | lw-cookie/* |
| Public shortcode | [lw_cookie_declaration] |
necessary is always required. The three optional categories default to denied until consent is saved.
Do not write lw_cookie_options directly. The admin REST settings controller and the 1.8.3 lw-cookie/set-options ability both use the sanitized partial-update path for field types, enums, colors, IDs, multilingual locks, and declared-cookie rows.
Read consent through the public filters
$categories = apply_filters( 'lw_cookie_consent_categories', [] );
$has_choice = apply_filters( 'lw_cookie_has_consent', false );
$analytics = apply_filters( 'lw_cookie_is_category_allowed', false, 'analytics' );
$consent_id = apply_filters( 'lw_cookie_consent_id', null );
Pass both documented arguments to lw_cookie_is_category_allowed. Treat an unknown category as denied.
These filters read the visitor's consent cookie. Do not let a full-page cache share consent-dependent HTML between visitors. A cache-safe integration renders the blocked form for everyone and lets the browser restore content after consent.
Browser API and event
Use the global API after the plugin's frontend assets load:
window.LWCookie.openPreferences();
window.LWCookie.acceptCategory( 'marketing' );
const state = window.LWCookie.getConsent();
const analyticsAllowed = window.LWCookie.isAllowed( 'analytics' );
window.addEventListener( 'lwCookieConsent', ( event ) => {
const categories = event.detail.categories;
const action = event.detail.action;
} );
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.
- 2mo ago First seen · 215 lines · 116 tokens per session scan A efc58977840d
lw-cookie-consent-integration is a skill published in the GitHub repository Lonsdale201/wp-agent-skills (26 stars, last pushed 9d ago), licensed MIT. It adds 116 tokens to every session and 2,574 once invoked, about $0.0005 per session on Opus 5.5. 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-09-27.
lw-cookie-consent-integration compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| lw-cookie-consent-integrationLonsdale201/wp-agent-skills | Skill | 26 | 9d ago | MIT | A | 116 | Claude Code, Codex |
| azure-health-data-servicesMicrosoftDocs/Agent-Skills | Skill | 824 | 21d ago | CC-BY-4.0 | A | 125 | Claude Code |
| wp-plugin-developmentfernandotellado/ai-skills | Skill | 44 | 3d ago | GPL-3.0 | A | 141 | Claude Code, Codex |
| wp-plugin-performancefernandotellado/ai-skills | Skill | 44 | 3d ago | GPL-3.0 | A | 55 | Claude Code, Codex |
| compliance-rgigreen-code-initiative/ai-green-skills | Skill | 2 | 6mo ago | none | B | 20 | Claude Code, Codex |
| data-manager-api-troubleshootinggoogle/skills | Skill | 25k | today | Apache-2.0 | A | 179 | Claude Code, Codex |
| data-manager-api-setupgoogle/skills | Skill | 25k | today | Apache-2.0 | A | 118 | Claude Code, Codex |