Blocks cross-site request forgery with SameSite cookies, per-session anti-CSRF tokens, and strict HTTP method discipline. Use when building state-changing endpoints authenticated by cookies.
Cross-site request forgery abuses the browser's habit of attaching your cookies to every request to your site, including one triggered by a malicious page. The user is authenticated, so the forged request succeeds. The defense proves a request came from your own application, not merely from a browser that happens to hold a valid cookie.
SameSite=Lax stops
the cookie from riding along on cross-site POSTs, which kills most CSRF
outright. Use Strict for high-value sessions where following a link
should require re-establishing context. This is your baseline, not your
only layer.Origin (or Referer)
header matches your host, and reject a mismatch. It is a cheap second
signal that costs an attacker a header the browser will not let them
forge.Authorization header are not CSRF-prone, because the
browser does not attach that header automatically. Confirm the endpoint
truly requires the header and does not also accept the cookie, or the
exemption reopens the hole.SameSite=Lax or stricter, confirmed in the
response headers?CSRF defense assumes the session itself is sound; it does nothing against a stolen token or an XSS payload running on your own origin, which bypasses same-origin protections entirely. Login and logout forms need CSRF protection too. For pure token-in-header APIs with no cookie auth, these controls are unnecessary rather than optional.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
csrf, same-site, anti-csrf-token, http-methods, origin-header
Not loaded · from ai-skills-commands
Claude Code won't load this skill
It ships in ai-skills-commands at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
npx claudepluginhub amey-thakur/ai-skills --plugin ai-skills-commands1,000 skills in this plugin
/ab-test-designDesign product experiments with real hypotheses, honest sample-size math, guardrails, and peeking discipline. Use when validating a change by experiment or reviewing a test before believing its result./accessibility-reviewAudit a UI for real accessibility, keyboard-first, with concrete failures and fixes rather than checkbox compliance. Use when reviewing or building any user interface./accessibility-specialist-roleOperate as an accessibility specialist who audits against WCAG, trains teams to stop shipping the same defects, and owns the compliance sign-off. Use when a product needs to be usable with a keyboard, a screen reader, or magnification and someone must certify it before launch.Other plugins' skills for the same job