web-security — Claude Code skill for web security
The web-security Claude Code skill checks web code for common security flaws and adds relevant safeguards. It activates as login, API, upload, and other web features are built.
LicenseRef-Proprietary ★ 326 updated 2026-11-01
npx skills add mrhlaingbwardev/agentic-hacking-skills --skill web-security -a claude-codeWhat web-security does
The skill identifies web features in code and adds matching security measures as they are developed. It covers authentication, API routes, and file uploads, with risks such as exposed secrets, XSS, SQL injection, and access to another user’s data.
For authentication, it includes password hashing, login rate limiting, and session-cookie settings. API examples check the session and validate input with Zod. The upload example checks MIME type and extension, caps file size at 10 MB, and creates a safe filename. JPEG, PNG, WebP, GIF, and PDF are accepted.
The upload example saves files under public/uploads. The listed frameworks are Next.js, React, Express, Remix, and SvelteKit.
What it helps with
- check a login form for password-guessing safeguards
- add session checks and input validation to an API route
- validate uploaded files by type, size, and filename
- spot exposed secrets and SQL injection in web code
Example prompts for the agent
- Add a sign-up form and check how it handles passwords.
- Protect the API route that reads a user’s data.
- Review avatar uploads for unsafe filenames and file types.
How to install web-security
1Skills CLI (Vercel)
npx skills add mrhlaingbwardev/agentic-hacking-skills --skill web-security -a claude-code2Manually: put the files in place
~/.claude/skills/web-security-advanced/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/web-security-advanced/
1Skills CLI (Vercel)
npx skills add mrhlaingbwardev/agentic-hacking-skills --skill web-security -a codex2Manually: put the files in place
.agents/skills/web-security-advanced/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add mrhlaingbwardev/agentic-hacking-skills --skill web-security -a cursor2Manually: put the files in place
.cursor/skills/web-security-advanced/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install mrhlaingbwardev/agentic-hacking-skills skills/web-security-advanced2Manually: put the files in place
.github/skills/web-security-advanced/SKILL.md1Skills CLI (Vercel)
npx skills add mrhlaingbwardev/agentic-hacking-skills --skill web-security -a gemini-cli2Platform CLI
gemini skills install https://github.com/mrhlaingbwardev/agentic-hacking-skills --path skills/web-security-advancedManually: put the files in place
.devin/skills/web-security-advanced/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about web-security
How do I install web-security in Claude Code?
Run npx skills add mrhlaingbwardev/agentic-hacking-skills --skill web-security -a claude-code. The skill file path is ~/.claude/skills/web-security-advanced/SKILL.md.
What does web-security do?
It detects web features in code and adds security checks for them. The listed risks include XSS, SQL injection, CSRF, and SSRF.
Which file types does web-security allow for uploads?
The upload example accepts JPEG, PNG, WebP, GIF, and PDF files. It sets a 10 MB size limit.