Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

Frontend security and XSS subagent v1.0.0

Use this resource to write secure frontend code and prevent XSS flaws

New

  • 60 downloads
  • 16 likes
  • 132 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install frontend-security-subagent

First time: connect the CLI with

npx --yes palatekit@latest login

A frontend security expert: safe DOM manipulation, sanitization with DOMPurify, context-aware encoding, template security and Content Security Policy. Your main agent calls it to fix a client-side flaw or write safe interactions, as distinct from an audit.

Mostly picked by

Updated November 2, 2026

Card for “Frontend security and XSS subagent”

Details

Install guides
Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • The subagent file itself: secure coding rules and use cases
  • XSS fixes and a CSP configuration

Good fit for

  • A page that shows unfiltered user content
  • An application that needs a CSP policy in place

Not for

    Tags

    • frontend security
    • xss
    • csp
    • dom

    About

    You say

    “Fix the comment display so it cannot be used for XSS injection.”

    Card for “Frontend security and XSS subagent”

    Subagent published by wshobson under the MIT license, delivered in its original version.

    Show more

    How to use it

    1. Copy the file into .claude/agents/ (project) or ~/.claude/agents/ (all your projects)
    2. Ask your agent to write secure frontend code and prevent XSS flaws, or call the subagent by name
    3. Review its work

    Content preview

    Files

    • frontend-security-subagent.md10.9 KB
    • LICENSE1.1 KB
    • NOTICE-PALATEKIT.md0.5 KB

    Origin and licence

    Listed unmodified

    Author
    wshobson
    Source
    github.com/wshobson/agents/blob/0874a27b17a22e2b7c2e2bcd725768e0803cad06/plugins/frontend-mobile-security/agents/frontend-security-coder.md
    Licence
    MIT

    Notice

    « frontend-security-coder » (wshobson, MIT) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.