rules-web-security
Skill1 starsChanged 42 days agoNo licenceView on GitHub
Frontend and full-stack web security rules for React, Next.js and TypeScript. Covers XSS sinks, CSP and security headers, SOP, CORS, postMessage, WebSocket, CSRF, cookies, sessions, JWT, OAuth/PKCE, and secrets leaked to the browser. Distilled from Securitum's 'Bezpieczeństwo aplikacji webowych' and checked against current OWASP and MDN. Use it when building or reviewing any code that renders user data, handles auth or tokens, sets headers or cookies, or talks cross-origin. Triggers on: security, XSS, dangerouslySetInnerHTML, innerHTML, eval, sanitize, DOMPurify, CSP, Content-Security-Policy, nonce, security headers, HSTS, clickjacking, CORS, Access-Control-Allow-Origin, same-origin, postMessage, WebSocket, CSRF, SameSite, cookie flags, HttpOnly, session, login, logout, password reset, authorization, IDOR, JWT, OAuth, PKCE, token storage, localStorage token, NEXT_PUBLIC, secrets, source maps, .env, Server Actions security.
- Reads credentials
In this repository33 other files it gives its agents.
- find-animations-mobileSkill
- find-library-mobileSkill
- find-librarySkill
- find-skillSkill
- fix-animation-mobileSkill
- fix-z-indexSkill
- make-animation-plan-mobileSkill
- make-commit-planSkill
- make-fidgetableSkill
- make-motion-brief-mobileSkill
- make-prototype-mobileSkill
- make-skill-mapSkill
- make-skillSkill
- make-ticketSkill
- review-animations-mobileSkill
- review-cognitive-loadSkill
- review-effectsSkill
- review-interface-mobileSkill
- review-worst-caseSkill
- rules-accessibility-mobileSkill
- rules-animation-performance-mobileSkill
- rules-apple-mobileSkill
- rules-appleSkill
- rules-color-mobileSkill
- rules-design-engineering-mobileSkill
- rules-easingSkill
- rules-gestures-mobileSkill
- rules-gitSkill
- rules-layout-mobileSkill
- rules-polish-mobileSkill
- rules-react-stateSkill
- rules-reduced-motion-mobileSkill
- rules-typography-mobileSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 7 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
No licence file, so all rights are reserved — read it at the source. We count its rules but don't quote them. Read them on GitHub.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

