What problem does it solve?
Content Security Policy violation streams are noisy: browser extensions and bots generate thousands of reports while genuine script compromises or deploy regressions hide in low-volume clusters. This Skill triages $csp_violation events in PostHog, separating actionable findings from baseline noise and filing deduplicated reports only when a cluster clears a high evidence bar.
Core Features & Use Cases
- Fresh blocked-domain detection: Groups violations by blocked domain over 24-48h windows to surface new third-party domains, distinguishing policy-widen needs, script compromises, and vendor drift.
- Standing enforced-block detection: Finds high-reach
disposition=enforce and first-party blocks that freshness-based queries miss, catching live breakage that has been steady for weeks.
- Policy reconstruction and code reconciliation: Reads
$csp_original_policy headers, normalizes nonces, and verifies them against the emitting repository via gh before proposing allowlist changes.
- Advisory lenses: Files enforcement-readiness, inline-script debt, and reporting noise-budget reports for teams parked in report-only mode.
- Use Case: A team deploys a new marketing tag without updating their CSP. The scout detects the fresh blocked domain across 40 users, confirms the domain is a vetted vendor, reads the policy from the repo, and files a PR-shaped report with the exact allowlist addition.
Quick Start
Ask the agent to scan this project's $csp_violation events from the last 48 hours and report any fresh blocked domains or enforced blocks worth acting on.