Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Website Security Headers Grader

    by Saizul Amin

    1

    Audit and fix HTTP security headers (CSP, HSTS, CORS) with an offline A-F grading engine and framework-specific snippets.

    $3

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Website Security Headers Grader

    Website Security Headers Grader

    Example session with this skill installed

    Grade the HTTP security headers of my website from this curl -I output and tell me exactly which headers to add.

    • Read your context and instructions
    • Compiled the website security headers

    I ran the bundled script from the security-headers-check skill and reviewed its findings.

    Demo data: this is the real, unedited output of the skill's script on the test fixture that ships with its source repo.

    Script output

    F (10/100)  response (HTTP 200)
      HIGH   strict-transport-security: missing HSTS
             fix: Strict-Transport-Security: max-age=31536000; includeSubDomains
      HIGH   access-control-allow-origin: wildcard origin with credentials
             fix: reflect only allow-listed origins; never combine * with credentials
      MEDIUM content-security-policy: missing Content-Security-Policy
             fix: start with default-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'self' (deploy as Report-Only first)
      MEDIUM x-frame-options: no clickjacking protection (frame-ancestors or X-Frame-Options)
             fix: CSP frame-ancestors 'self' (or X-Frame-Options: DENY)
      LOW    x-content-type-options: missing nosniff
             fix: X-Content-Type-Options: nosniff
      LOW    referrer-policy: missing Referrer-Policy
             fix: Referrer-Policy: strict-origin-when-cross-origin
      LOW    server: server reveals software/version (nginx/1.24.0)
             fix: remove the header or hide the version (server_tokens off; expose_php = Off)
      LOW    x-powered-by: x-powered-by reveals software/version (PHP/8.3.1)
             fix: remove the header or hide the version (server_tokens off; expose_php = Off)
      INFO   permissions-policy: missing Permissions-Policy
             fix: Permissions-Policy: camera=(), microphone=(), geolocation=()
      INFO   cross-origin-opener-policy: missing COOP
             fix: Cross-Origin-Opener-Policy: same-origin
      INFO   x-xss-protection: legacy XSS auditor setting
             fix: set X-XSS-Protection: 0 and rely on CSP
    

    Next steps

    1. Add the missing headers in your web server or CDN config.
    2. Start CSP in report-only mode, then enforce once clean.
    3. Re-run the grader after deploying the changes.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Weak HTTP security headers leave your application vulnerable to clickjacking, protocol downgrades, and cross-site scripting (XSS). This skill provides an offline grading engine that audits your site's response headers without making external network calls. It identifies missing protections like HSTS, misconfigured CSP directives, and permissive CORS policies that could expose sensitive data.

    What it does

    • Grade security headers providing an A-F score based on industry standards like Mozilla Observatory.
    • Audit CSP quality checking for unsafe-inline, unsafe-eval, wildcards, and missing base-uri or frame-ancestors.
    • Detect conflicts identifying duplicate headers sent by both proxies and application servers.
    • Identify version leaks flagging Server and X-Powered-By headers that expose software versions.
    • Generate snippets providing copy-paste configuration fixes for Nginx, Apache, Express, Django, Laravel, and Next.js.

    How it works

    1. Capture headers using curl -sIL or by exporting a HAR file from browser DevTools.
    2. Run audit via the headers_grade.py script to analyze the captured header text or HAR data offline.
    3. Review findings categorized by HIGH, MEDIUM, and LOW severity risks across HSTS, CSP, and CORS.
    4. Apply fixes using the recommended configuration snippets tailored to your specific web server or framework.
    5. Verify deployment by re-capturing headers and running a final grade check to confirm the A-grade status.

    Frameworks & tools

    Works with any stack via curl output, with specific remediation support for Nginx, Apache, Express, Django, Laravel, and Next.js. The grading script requires Python 3.8+.

    Why this beats prompting it yourself

    Generic LLMs often hallucinate CSP syntax or recommend conflicting X-Frame-Options and CSP frame-ancestors settings. This skill uses a logic-based grading script for precision and provides deployment-ready snippets that account for framework-specific nuances like Nginx header inheritance.

    Use cases

    • Hardening a production site or API before a public launch.
    • Resolving low grades from securityheaders.com or Mozilla Observatory scans.
    • Migrating a legacy site to a strict Content-Security-Policy.
    • Auditing API responses for permissive CORS and version leakage.

    Known limitations

    Does not audit cookie flags or session security. Requires Python 3.8+ and manual header capture via curl or HAR export. Script makes no network calls.


    Open source: saizul/security-audit-skills on GitHub (MIT licence, by Saizul Amin).

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.

    Does not audit cookie flags or TLS certificates. Requires Python 3.8 and manual capture of headers via curl or HAR export. Script is offline-only.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Frequently Asked Questions

    This skill includes the proprietary `headers_grade.py` offline audit engine, a library of remediation snippets for 6+ frameworks, and a structured workflow for moving from a failing grade to an A-rating.

    Unlike general AI prompts, this skill uses a logic-based Python engine to prevent hallucinations in CSP syntax and identify complex conflicts, such as header inheritance issues in Nginx.

    The grading engine requires Python 3.8+ and runs entirely offline; it works with header data captured via standard tools like `curl` or HAR files from any browser.

    No, the script performs a passive, offline analysis of the headers you provide, making it ideal for auditing internal or firewalled environments without triggering external network alerts.

    The skill provides specific code snippets for Nginx, Apache, Express, Django, Laravel, and Next.js, ensuring the fixes are compatible with your specific server or application layer.

    While it focuses on HTTP response headers like CSP, HSTS, and CORS, it does not currently audit specific cookie flags (like SameSite or HttpOnly) or session management logic.

    New in Security