security-headers
Skill2 starsChanged 25 days agoApache-2.0View on GitHub
Use when a site is deployed or about to be, and you need to inspect HTTPS, redirects, HSTS, and response security headers, and to propose a Content-Security-Policy based on the origins the site actually loads. It reads live headers and the observed vendor list, then drafts a policy in report-only form first. Do not use it to paste a generic script-src 'self' policy, to break third-party functionality, or to judge production headers from a local dev server.
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
Not on a local dev server as a verdict (it is UNKNOWN), and not as a replacement for a security review.
- Distinctive: line 70
Only a local build exists (mark UNKNOWN and prepare the config), or deployed headers already match the site's needs.
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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:
Header Good baseline Notes Strict-Transport-Securitymax-age=31536000; includeSubDomains(addpreloadonly when committed)only once HTTPS is solid; on the production host Content-Security-Policytailored; starts in Content-Security-Policy-Report-Onlysee below X-Content-Type-OptionsnosniffReferrer-Policystrict-origin-when-cross-originor stricterconsider what URLs may leak Permissions-Policydisable unused features (camera, microphone, geolocation, payment) Framing frame-ancestorsin CSP (orX-Frame-Options: DENY/SAMEORIGIN)unless embedding is intended Cross-Origin-*(COOP/COEP/CORP)only where needed can break embeds; do not add blindly Cookies Secure,HttpOnly,SameSiteweb-securityInfo leaks remove X-Powered-By, verboseServerversionslow priority Caching private pages Cache-Control: private/no-storeauthenticated pages must not be publicly cacheable - CSP from evidence, not from a template. Get the real origins from
observe-runtime(vendors and third-party hosts per page, with--stepscovering key flows: login, checkout, embeds, consent) and source (inline scripts,eval, web workers, WebSockets, frames, fonts, images, forms, service workers). Build directives:default-src 'self';script-srcwith nonces/hashes for inline scripts (avoid'unsafe-inline'and'unsafe-eval'where the framework supports it; Next.js supports nonces; some analytics/tag managers require allowances);connect-srcfor APIs/analytics/websockets;img-src,font-src,style-src,frame-src,form-action,base-uri 'self',object-src 'none',frame-ancestors. Ship as Report-Only first, collect violations against real usage (report-to/report-uri), and tighten. Flag anything that forces'unsafe-inline'/'unsafe-eval'and why. - Mismatch between consent and CSP: a CSP that allows vendors the consent design says are gated is fine; one that blocks a needed vendor breaks the site: test both states.
Evidence that counts
Label each claim OBSERVED, SOURCE-INDICATED, DECLARED, INFERRED, UNKNOWN, or REVIEW REQUIRED. UNKNOWN is never a pass and never a failure.
- Headers from the deployed URL: OBSERVED. Headers configured in
next.config.js/vercel.json/_headers: SOURCE-INDICATED (platform may override). - A CSP is verified only by running the real flows under it and seeing no violations, not by reading it.
- "No CSP" is a finding on a deployed site handling accounts or data, but low-risk marketing sites may reasonably start with a Report-Only policy.
May change
Add headers via the project's mechanism (next.config.js headers(), vercel.json, netlify.toml/_headers, server middleware, Cloudflare rules); add HSTS after confirming HTTPS works on the production host; start CSP as Report-Only with the observed origin list; remove leaky headers. Do not enforce a CSP that has not been run against real flows; do not add preload; do not disable a working third-party integration to make a policy stricter.
Must not claim
"Secure headers", "A+ on securityheaders.com", "protected against XSS/clickjacking", or that a policy is enforced when it is Report-Only.
Verify
Fetch headers again on the deployed URL after each change; run the key user flows under the policy in a browser with the console open (no CSP violations); confirm no third-party feature broke (embeds, payments, consent, analytics as designed); confirm redirect chain and HSTS.
Escalate
A CSP needing unsafe-inline/unsafe-eval for critical scripts (owner and security review); payment or auth pages where a bad CSP would block checkout; multi-subdomain HSTS/preload decisions; anything requiring platform-level access you do not have.
No change is valid when
Only a local build exists (mark UNKNOWN and prepare the config), or deployed headers already match the site's needs. Do not add a strict CSP to a site you cannot test.
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- trezor/trezor-suite★ 1.1ksame name
- harperaa/secure-claude-skills★ 16same name
- YepAPI/skills★ 8same name
- Pradnyeshp/Claude-Skills★ 2same name
- manastalukdar/ai-devstudio★ 1same name
- ferr079/claude-code-cybersec-skills★ 0same name
- hereshecodes/secureskills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Used alongsideProjects with it also use accessibility.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
ElasticSkillaccessibility
Accessibility guidance for Kibana. Use this skill when working with or reviewing EUI components, resolving a11y-related (@elastic/eui) ESLint issues, and ensuring proper use of ARIA attributes, focus management, keyboard interactions, and accessible naming conventions.
Also in 3 projects that use this
In this repository54 other files it gives its agents.
- wcag-readinessSkill
- admin-audit-logSkill
- admin-authorizationSkill
- admin-dashboardSkill
- payments-readinessSkill
- subscription-readinessSkill
- ai-features-readinessSkill
- analytics-privacySkill
- consent-managementSkill
- consumer-protection-readinessSkill
- cookie-and-storage-auditSkill
- data-flow-mappingSkill
- data-rightsSkill
- email-complianceSkill
- jurisdiction-applicabilitySkill
- legal-identity-noticesSkill
- minors-readinessSkill
- policy-consistencySkill
- privacy-policySkill
- privacy-readinessSkill
- regulated-domain-triggersSkill
- terms-of-serviceSkill
- third-party-privacySkill
- user-content-safetySkill
- compliance-allSkill
- compliance-diffSkill
- design-system-reconnaissanceSkill
- discoverability-allSkill
- launch-allSkill
- launch-verificationSkill
- production-allSkill
- quality-allSkill
- site-reconnaissanceSkill
- trust-allSkill
- search-console-readinessSkill
- seo-readinessSkill
- social-sharingSkill
- structured-dataSkill
- multilingual-readinessSkill
- rtl-readinessSkill
- content-trustSkill
- error-pagesSkill
- failure-resilienceSkill
- faq-readinessSkill
- forms-readinessSkill
- launch-identitySkill
- legal-navigationSkill
- link-integritySkill
- mobile-readinessSkill
- performance-readinessSkill
- public-supportSkill
- dependency-securitySkill
- deployment-cleanupSkill
- web-securitySkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

