Individual skill
frontend-security
Browser-side hardening: XSS and safe text binding, per-sink URL policy, DOM clobbering, nonce-based CSP, Trusted Types, subresource integrity, iframe capability minimization, postMessage validation, and where client state may live. Use when generating HTML, JSX, Vue, or Svelte templates, setting response headers in a web app, embedding third-party scripts or frames, or storing anything client-side.
skills/frontend-security/SKILL.md
Source commit eaba88102d91df65a9aa6397e8507c315c018f5e
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Not checked yet
- Last checked
- Nov 6, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
Standard SKILL.md format has not been attested at this commit. No installation command is available; inspect the source.
Repository context
- Repository stars (not skill ratings)
- 23
- Repository last updated
- Aug 14, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- claude-skills Repository topic
- llm Repository topic
- security Repository topic
- skills Repository topic
- engineering Derived category
- security Derived category
- security-application Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 9,899 bytesSKILL.mdcore · 9,899 bytesreferences/browser-controls.mddoc · 6,071 bytesreferences/verifying-findings.mddoc · 3,363 bytesrules/csp_defaults.jsonasset · 1,426 bytesrules/xss_sinks.jsonasset · 3,184 bytestests/corpus.jsonasset · 4,256 bytes
Read excerpt
# Frontend Security
## Rules (for AI agents)
### ALWAYS
- Render untrusted data through the framework's ordinary text interpolation, which
escapes for the output context. Do not reach for a raw-HTML API merely to display
user data. Where rich HTML genuinely must be rendered, put it through a maintained
sanitizer (DOMPurify) with an explicit allowlist first.
- Validate URL-bearing attributes **per sink**, not against one global scheme list. A
navigation target (`href`, `action`, `formaction`, an `<iframe src>`) and an image
source do not share a trust model: `javascript:` is never acceptable anywhere, while
a narrowly constrained `data:image/…` or `blob:` may be exactly what an image sink
requires. Decide the permitted schemes for each sink and check against that list.