What problem does it solve? Security scanners can flag an unverified webhook, an unvalidated file upload, or a dangerous HTML sink, but they cannot write the fix. This Skill provides tested reference implementations for the three protections scanners can only detect as missing: webhook signature verification, magic-byte file upload validation, and XSS-safe HTML handling. ## Core Features & Use Cases - Webhook Verification: HMAC-SHA256 signature verification over the raw request body with constant-time comparison, timestamp tolerance windows to block replays, and hard rejection of missing headers. - Upload Validation: File type detection by magic bytes (JPEG, PNG, GIF, PDF, WebP) instead of trusting client MIME types or extensions, with size limits, generated storage filenames, and SVG refusal. - XSS Handling: A three-tier approach covering HTML escaping, JSON-LD-safe serialization, and an allowlist HTML sanitizer that strips scripts, event handlers, and javascript:/data: URLs. - Use Case: When a security gate reports webhook-unverified, upload-no-validation, or a dangerous-html warning on your endpoint, use these reference modules to implement the actual protection and prove it with the included 32-assertion self-test. ## Quick Start Ask the agent to apply the not-get-sued-101 reference implementations to fix the webhook, upload, or HTML rendering warnings reported by the security gate, then run the self-test to confirm.