security-headers
Installation
SKILL.md
security-headers
Headers are set by the deployment, not by the code alone: the platform, CDN, and reverse proxy all matter. So this skill starts by asking whether it is looking at production.
Activate when
- A deployed URL (production or a production-like preview) exists, or the owner is about to configure hosting.
production-allroutes here (check 39).- Not on a local dev server as a verdict (it is UNKNOWN), and not as a replacement for a security review.
Inspect
- Where are you looking? Local dev, preview, or production. Headers on
localhostsay almost nothing about a Vercel/Netlify/Cloudflare deployment. - Fetch headers:
curl -sI -L https://<site>/and a few key pages, an API route, and a static asset. Note the redirect chain (http://→https://, apex ↔www), status, and each hop's headers. TLS certificate validity and expiry (curl -vIoutput oropenssl s_client), HTTP→HTTPS redirect, mixed content (observe-runtimereportsMIXED_CONTENT). - Evaluate each header for this site: