csrf-protection

22

Implement Cross-Site Request Forgery (CSRF) protection for API routes. Use this skill when you need to protect POST/PUT/DELETE endpoints, implement token validation, prevent cross-site attacks, or secure form submissions. Triggers include "CSRF", "cross-site request forgery", "protect form", "token validation", "withCsrf", "CSRF token", "session fixation".

Third-Party Agent Skill: Review the code before installing. Agent skills execute in your AI assistant's environment and can access your files. Learn more about security

Installation for Agentic Skill

View all platforms →
skilz install harperaa/secure-claude-skills/csrf-protection
skilz install harperaa/secure-claude-skills/csrf-protection --agent opencode
skilz install harperaa/secure-claude-skills/csrf-protection --agent codex
skilz install harperaa/secure-claude-skills/csrf-protection --agent gemini

First time? Install Skilz: pip install skilz

Works with 22+ AI coding assistants

Cursor, Aider, Copilot, Windsurf, Qwen, Kimi, and more...

View All Agents
Download Agent Skill ZIP

Extract and copy to ~/.claude/skills/ then restart Claude Desktop

1. Clone the repository:
git clone https://github.com/harperaa/secure-claude-skills
2. Copy the agent skill directory:
cp -r secure-claude-skills/csrf-protection ~/.claude/skills/

Need detailed installation help? Check our platform-specific guides:

Related Agentic Skills

Agentic Skill Details

Type
Non-Technical
Meta-Domain
general
Primary Domain
general
Sub-Domain
api patterns skill
Market Score
22

Report Security Issue

Found a security vulnerability in this agent skill?