csrf-protection

csrf-protection is a plugin for Claude Code from secondsky/claude-skills. Its token cost is not measured, scanned A, original, MIT.

A security add-on that protects web forms and other state-changing requests from CSRF attacks, where another website tricks a signed-in browser into taking an unwanted action.

In plain words
What is it for?
Use it to add synchronizer tokens, double-submit cookies, and SameSite cookie settings to web applications and APIs.
Why use it?
It reduces the risk of unauthorised actions by checking that requests genuinely came from your application.

Plugin for Claude Code

Install

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.

Claude Code
/plugin marketplace add secondsky/claude-skills
agentmods
npx agentmods add plugins/secondsky/claude-skills/csrf-protection
Clone the repo
git clone --depth 1 https://github.com/secondsky/claude-skills

Made for: Claude Code.

Wrote 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.

agentmods badge for csrf-protection

README.md
[![agentmods](https://agentmods.dev/badge/plugins/secondsky/claude-skills/csrf-protection.svg)](https://agentmods.dev/plugins/secondsky/claude-skills/csrf-protection)
Your own site
<a href="https://agentmods.dev/plugins/secondsky/claude-skills/csrf-protection"><img src="https://agentmods.dev/badge/plugins/secondsky/claude-skills/csrf-protection.svg" alt="Measured on agentmods" height="20"></a>
Per session not measured What this adds to a session before it is invoked.
When invoked not measured Not applicable: nothing here is loaded into a session.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Security

Grade A, and why

csrf-protection 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 yesterday.

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.

plugins/csrf-protection/.claude-plugin/plugin.json · 22 lines

What it actually says

{
  "name": "csrf-protection",
  "description": "Implements CSRF protection using synchronizer tokens, double-submit cookies, and SameSite attributes. Use when securing web forms, protecting state-changing endpoints, or implementing defense-in-depth authentication.",
  "version": "3.8.0",
  "author": {
    "name": "Claude Skills Maintainers",
    "email": "[email protected]"
  },
  "license": "MIT",
  "repository": "https://github.com/secondsky/claude-skills",
  "keywords": [
    "csrf-protection",
    "csrf",
    "protection",
    "security",
    "vulnerability",
    "xss",
    "samesite",
    "authentication"
  ]
}
Changes

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.

  1. yesterday First seen · 22 lines scan A c5dc2f35d91c

Subscribe to this mod's changes

csrf-protection is a plugin published in the GitHub repository secondsky/claude-skills (214 stars, last pushed yesterday), licensed MIT. Its token cost is not measured: this kind of file is read by the harness, not the model. 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-03.

Related

Other plugins, from other repositories

chamnan

Makes a repository know itself and preserve the engineering context built while you work with it, so an agent stops rediscovering both. An architecture index and an impact map instead of scanning files; work state, session records and the decisions behind them instead of losing context between sessions; the procedures.

ArcticFox2029/chamnan · not measured

fewword

Context engineering plugin - tiered offloading, smart summaries, secret redaction, TOML/JSON config, command aliases, MCP allowlists, and self-diagnostics.

sheeki03/Few-Word · not measured

hyperfocus

ADHD-friendly output formatting. Restructures responses with evidence-based cognitive accessibility: chunking, visual hierarchy, front-loaded key points, and progressive disclosure.

nextor2k/hyperfocus · not measured

harnessay

Profile your Claude Code transcripts: context budget report, skill-promotion candidates, and a skill regression test harness. Local-only, stdlib-only.

nks0614/harnessay · not measured

ccx

Scratch-notebook context management for any project: per-thread STATE.md handoff docs with one-command create-or-resume (/ccx:start-thread), a compiled parallel-session-safe INDEX dashboard that recompiles itself on every STATE write (/ccx:save-state · /ccx:tidy-scratch), a Stop-hook freshness guard so working state…

shck-dev/ccx-context-system · not measured

project-manager

Turns a vague project idea into a developer-ready requirements spec and a vertical-slice build plan by interviewing you one question at a time.

senu-nk/project-manager · not measured