Write HTTP security header configs for Cloudflare, Vercel, Netlify, nginx, and Next.js in Claude Code, GitHub Copilot, Codex, Cursor, and other coding agents…
Install the skill above, then run this in your AI tool:
/security-headers <your description>
About
Write the HTTP security headers for a site and put them where the platform wants them: Cloudflare, Vercel, Netlify, nginx or Next.js. No squirrel CLI is needed; `curl` is enough.
Source
What gets added to your project
Preview every file this package writes on install before you run the command above.
Summary
js in Claude Code, GitHub Copilot, Codex, Cursor, and other coding agents, covering HSTS, report-only CSP first, frame-ancestors, X-Frame-Options, X-Cont...
Skill instructions
Security Headers
Write the HTTP security headers for a site and put them where the platform wants them: Cloudflare, Vercel, Netlify, nginx or Next.js. No squirrel CLI is needed; curl is enough.
Headers reduce the damage of some attacks (clickjacking, MIME sniffing, downgrade to http, injected scripts). They do not fix a vulnerable app. A missing header is a finding to fix; a full set of headers is not proof the site is secure.
Check a page, not only the homepage, and the response a browser gets (not a cached one from a CDN with other rules). Note which headers are already set and by what: the app, the CDN or the host.
HTTPS only. Start with a short max-age (for example 300) on a site you are unsure about. Add preload only when every subdomain is HTTPS for good, since it is hard to undo
nginx drops parent add_header lines when a nested location sets its own: repeat them there.
Cloudflare: Rules, Transform Rules, Modify Response Header: add each header as "Set static" for the hostname. Turn on Always Use HTTPS in SSL/TLS, Edge Certificates. Keep one source for each header: if the origin also sets it, check the response for a duplicate.
WordPress, Shopify, Webflow: headers are set at the host or CDN in front (a Cloudflare rule, the host's .htaccess or panel). Shopify and Webflow limit what the owner can set; say what is not changeable instead of promising it.
Step 5: verify
Re-run the curl -sI check against the live URL, load the main flows with the console open for CSP violations, and, if the squirrel CLI is installed, confirm with the matching audit rules:
--passive sends nothing beyond the crawl. For sites the user does not own, add --ephemeral.
Stop condition
Stop when the live response carries the agreed headers on the pages checked, nothing the site needs is blocked in the console, and CSP is enforcing (or the user has accepted report-only for now, written down). Tell the user which headers the platform did not let them set.
Add this badge to a GitHub README so readers can open the package page and install the same version.
[](https://www.aipm-registry.com/skills/squirrelscan/security-headers/1.0.0?utm_source=github&utm_medium=readme&utm_campaign=package_badge)
This imported publisher has not claimed its AIPM account. A connected account confirms account control, but it does not guarantee that a package is safe.
AI assistant context
What this skill is for
@squirrelscan/security-headers@1.0.0 is an AIPM skill package for All tools. Use it when a project needs the reusable AI behavior described as: Write HTTP security header configs for Cloudflare, Vercel, Netlify, nginx, and Next.js in Claude Code, GitHub Copilot, Codex, Cursor, and other coding agents, covering HSTS, report-only CSP first, frame-ancestors, X-Frame-Options, X-Cont...
Diagnose slow page loads with squirrelscan audit rules via the squirrel CLI or hosted squirrelscan MCP server in Claude Code, GitHub Copilot, Codex, Cursor, and other coding agents, checking the largest image, render-blocking resources,...
Evaluate your site's agent experience with squirrelscan audit rules via the squirrel CLI or hosted squirrelscan MCP server in Claude Code, GitHub Copilot, Codex, Cursor, and other coding agents, checking robots.txt bot access, content pr...
Add a squirrelscan CI check using the squirrel CLI in Claude Code, GitHub Copilot, Codex, Cursor, and other coding agents for GitHub Actions, GitLab, and preview deploys. It picks thresholds from a baseline run of squirrelscan audit rule...
Run aipm add @squirrelscan/security-headers@1.0.0 in a project that has AIPM initialized.
Supported tools
@squirrelscan/security-headers@1.0.0 supports All tools.
Before installing
AIPM skills can add files to your project. Review the package name, target, description, license, and publisher before installing. Use a clean branch when trying a new skill.