mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-05 16:33:36 +00:00
The single most important thing to understand about a web Nostr client is that nsec keys live in plaintext in localStorage, so any XSS = permanent, unrecoverable key theft. The previous framing led with author filtering (important but lower-stakes) and only mentioned XSS implicitly via URL sanitization. Restructures both the AGENTS.md section and the nostr-security skill so the key-storage reality and XSS mitigations come first, CSP is explained as defense-in-depth (with a walkthrough of the existing index.html policy), and author filtering becomes section 3 — still important, but secondary to script-injection prevention. Also adds a 'no dangerouslySetInnerHTML' rule and a CSP hygiene rule to the top-level checklist so those blockers surface before any sanitization detail.