Prevents cross-site scripting by teaching contextual output encoding, template autoescaping, CSP, and cookie hardening. Use when rendering user-controlled data into HTML, attributes, JavaScript, or URLs.
Cross-site scripting happens when data the user controls is interpreted as
code by another user's browser. The defense is contextual output encoding:
the same string is safe in HTML text and dangerous in a <script> block, so
encoding depends on where the value lands. Autoescaping and a Content
Security Policy backstop the encoding you forget.
<script> needs JavaScript-string encoding; a URL needs
percent-encoding. Encoding for the wrong context still lets script
through. Encode when you write to the page, not when you store.{}), and Handlebars escape HTML by default. Audit every
bypass: |safe, mark_safe, dangerouslySetInnerHTML, v-html,
{{{ }}}. Each is a place you promised the value is already safe. Make
sure that promise holds.<script> is trivially bypassed with
<img onerror> and malformed tags.javascript: schemes. A user-supplied
href or src of javascript:alert(1) executes on click. After
canonicalizing, allow only http, https, and mailto; reject or
neutralize the rest.Content-Security-Policy with a nonce- or hash-based script-src, no
unsafe-inline, and no broad wildcards. CSP turns a missed encoding from
account takeover into a blocked script and a console error. Start in
Content-Security-Policy-Report-Only to find violations before you
enforce.HttpOnly and Secure. Even if XSS fires, the token stays out of reach
of document.cookie, shrinking what a successful injection can steal.dangerouslySetInnerHTML, |safe, and v-html turn up
only reviewed, justified uses?Output encoding defends against XSS; it is not input validation and does not
stop injection into other sinks. DOM-based XSS lives entirely in client
JavaScript (innerHTML, eval, document.write) and needs the same
contextual encoding applied in the browser. Framework defaults cover most
cases, so reach for manual encoding only where you left autoescaping behind.
What SKILL.md sets; muted values are Claude Code's defaults
Not loaded · from ai-skills-commands
Claude Code won't load this skill
It ships in ai-skills-commands at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
npx claudepluginhub amey-thakur/ai-skills --plugin ai-skills-commands1,000 skills in this plugin
/ab-test-designDesign product experiments with real hypotheses, honest sample-size math, guardrails, and peeking discipline. Use when validating a change by experiment or reviewing a test before believing its result./accessibility-reviewAudit a UI for real accessibility, keyboard-first, with concrete failures and fixes rather than checkbox compliance. Use when reviewing or building any user interface./accessibility-specialist-roleOperate as an accessibility specialist who audits against WCAG, trains teams to stop shipping the same defects, and owns the compliance sign-off. Use when a product needs to be usable with a keyboard, a screen reader, or magnification and someone must certify it before launch.Other plugins' skills for the same job