Prevents XSS in Angular apps by tracing untrusted data through templates, bindings, and DomSanitizer usage. Tests rendering paths with event-handler and javascript: payloads.
Ships in ngautopilot-angular. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Trace untrusted data to its rendered context and prove it cannot become executable markup, a script URL, or a compiled Angular template. Test the actual rendering path, not just the input validator.
Use when rendering API/user/CMS content, rich text, links, third-party widgets, or SSR/hydrated markup. Record the installed Angular version and the affected components and rendering libraries before selecting version-specific controls.
<img src="invalid-image" onerror="window.__xssProbe=1"> and a javascript: link in an isolated test page. Assert the marker stays unset, event attributes are removed or rendered as text, and clicking the link does not execute code or navigate to an unsafe destination. Include ordinary text, intended formatting, and an allowed HTTPS link as positive controls so a blank page cannot pass.Use the project's browser/component suite with harmless markers, no real exfiltration, and no production data. Record the command, expected DOM/navigation, actual DOM/navigation, and browser evidence. A DOM-only mock does not prove browser execution safety.
| Case | Reproduction and required assertion | Decision on observation |
|---|---|---|
| Event-handler payload | The marker executes or an executable event attribute remains in rendered content. | FAIL |
| Script URL | Clicking an attacker-controlled javascript: link executes code. | FAIL |
| Raw DOM sink | An untrusted value reaches unsanitized HTML insertion or dynamic template compilation. | FAIL |
| Missing browser run | Only lint/build or a sanitizer stub ran; the affected rendering path was not exercised. | BLOCKED |
| Bound template | Malicious inputs are neutralized before and after applicable hydration; positive text/formatting/link controls still work. | PASS |
FAIL takes precedence over BLOCKED when an unsafe behavior is demonstrated. Report PASS only when all affected sources and sinks have evidence and the applicable negative and positive cases pass. Explain why SSR or a context is not applicable instead of silently skipping it.
Return the scoped decision, affected data flows and files, minimal patch, and before/after assertions. Include commands, redacted DOM evidence, supported Angular-version references, remaining gaps, and rollback steps.
Source: Angular security model, DOM APIs, sanitization, CSP, and Trusted Types. Verify behavior against the installed release rather than assuming current documentation applies unchanged to older majors.
What SKILL.md sets; muted values are Claude Code's defaults
/ngautopilot-angular:angular--security--angular-xss-template-safetyfrom ngautopilot-angular
npx claudepluginhub janpereira-dev/ngautopilot --plugin ngautopilot-angular350 skills in this plugin
/angular--ai--angular-v22-agent-skills-integrationAngular v22 Agent Skills IntegrationUse official Angular Agent Skills as reference material without copying them blindly or replacing NgAutoPilot routing. For Angular 22 projects and 21-to-22 upgrade planning.
/angular--ai--angular-v22-ai-tutor-safe-usageAngular v22 AI Tutor Safe UsageUse AI tutor workflows to teach Angular concepts without allowing unsafe code or secret exposure. For Angular 22 projects and 21-to-22 upgrade planning.
/angular--ai--angular-v22-angular-mcp-agent-workflowAngular v22 Angular MCP Agent WorkflowReview the workspace boundary, permissions, and runtime evidence of an Angular MCP integration. For Angular 22 projects and 21-to-22 upgrade planning.
Other plugins' skills for the same job