Skip to content
Get Friday PicksSubmit

xss-audit: a 14-layer XSS review of your front-end code

A security skill that walks your agent through 14 layers of cross-site scripting checks on React, TypeScript and JavaScript code, from innerHTML and unsafe links to Markdown sanitizers and postMessage, and writes the findings to a report.

In short: A security skill that walks your agent through 14 layers of cross-site scripting checks on React, TypeScript and JavaScript code, from innerHTML and unsafe links to Markdown sanitizers and postMessage, and writes the findings to a report. It is a free skill for people who use Claude Code or Codex and want help with coding agent skills.

Checked on · Added

Open on GitHub · ★ 526

Works with

Agent / toolAccess / costLink
Claude CodePaid Claude plan or APIclaude.com/claude-code
CodexChatGPT plan or APIopenai.com/codex
GitHub repoOpen source · ★ 526songjianyang/xss-audit

Try it in 60 seconds

git clone https://github.com/songjianyang/xss-audit ~/.claude/skills/xss-audit
/xss-audit src/

Install command copied from the project README. Check the README for the latest version.

What it does

A security skill that walks your agent through 14 layers of cross-site scripting checks on React, TypeScript and JavaScript code, from innerHTML and unsafe links to Markdown sanitizers and postMessage, and writes the findings to a report.

xss-audit gives your coding agent a step-by-step cross-site scripting review for front-end code. It walks 14 layers: raw HTML sinks and dangerouslySetInnerHTML, risky attributes and event handlers, URL and redirect…

Short excerpt from the README of songjianyang/xss-audit. Read the full README on GitHub.

Inside the repo

BackgroundInstallationUsageWhat it checksOutputLimitationsDisclaimerLicense

A prompt to try

Run xss-audit on src/ and list the three findings most likely to be real, with the file and line for each.

Written by us so you can reuse it. Replace each [bracket] with your details.

Step by step

  1. Open the GitHub repo and read what it checks.
  2. Copy the repo folder into your agent's skills folder (for Claude Code: git clone https://github.com/songjianyang/xss-audit ~/.claude/skills/xss-audit).
  3. Run /xss-audit src/ (or $xss-audit in agents that use $).
  4. Read xss-audit-report.md and confirm each finding by hand before you fix or report it.

Watch out for

Static reading only: a match is a lead, not a confirmed bug, and it never runs exploits. Only test sites and code you own or are allowed to audit. Built by a bug-bounty researcher from his own workflow; pairs with Cloudflare's broader security-audit skill, which covers more than XSS.

Docs, demos & materials

Common questions

What does xss-audit do?

A security skill that walks your agent through 14 layers of cross-site scripting checks on React, TypeScript and JavaScript code, from innerHTML and unsafe links to Markdown sanitizers and postMessage, and writes the findings to a report.

Which AI agents can use xss-audit?

It works with Claude Code and Codex. The code is on GitHub at songjianyang/xss-audit.

Is xss-audit free?

Free & open source (MIT). One SKILL.md, no install script, no API key.

How do I install xss-audit?

Run the install command from the README: “git clone https://github.com/songjianyang/xss-audit ~/.claude/skills/xss-audit”. Check the README on GitHub for the latest version, then follow the steps on this page.

Is xss-audit safe to install?

We read 4 instruction and code files in the repo and found no red flags. That is not a guarantee, so review anything that runs commands on your machine.

Sources & credit

All credit to the original authors. We rewrite in our own words and link back. Something wrong? Report it.

Related skills and use cases in Coding Agent Skills

See all Coding Agent Skills entries →

Related

CleanYourTV: your agent removes the ads from your TV thumbnailSKILL

CleanYourTV: your agent removes the ads from your TV

Your coding agent connects to an Android or Google TV over Wi-Fi, switches off the ad and tracking apps, and puts in a clean, Apple TV-style home screen. Nothing is uninstalled.

Claude Code logoCodex logoGemini logoClaude Code +2★ 14.8k
unslop: turn AI-looking UI into a designed interface thumbnailSKILL

unslop: turn AI-looking UI into a designed interface

A Claude skill that reviews a vibecoded screen like a designer: it lists the tell-tale AI touches, proposes a direction from your own product, then fixes spacing, colour, icons, copy, type and layout pass by pass. Works on dashboards, apps, landing pages, or a live site from a link.

Claude Code logoClaude Code★ 540
ECC: a full work system for your coding agent thumbnailSKILL

ECC: a full work system for your coding agent

One install gives your agent a plan, test, build, review and remember routine, with 71 helper agents, about 300 skills, memory between sessions and a built-in scanner for risky agent settings.

Claude Code logoCodex logoCursor logoClaude Code +3★ 285.3k
Superpowers: plan, test and debug before coding thumbnailSKILL

Superpowers: plan, test and debug before coding

A skills framework that makes agents brainstorm, plan, test and debug systematically.

Claude Code logoCodex logoClaude Code +1★ 299.2k
Matt Pocock's engineering skills thumbnailSKILL

Matt Pocock's engineering skills

Real engineering skills from a well-known TypeScript educator's own .agents folder.

Claude Code logoCodex logoClaude Code +1★ 291.4k
Ponytail: make your agent write less code thumbnailSKILL

Ponytail: make your agent write less code

A skill that pushes coding agents to act like a lazy senior: fewer lines, more tests, lower cost — without skipping the hard checks.

Claude Code logoCodex logoCursor logoClaude Code +2★ 164.8k

Free newsletter

Friday Picks

New AI tools you can use right away, in plain words. Every Friday.

Free. No spam. Unsubscribe anytime.