# Web Security Headers Scorecard

> Scores a response's security headers and gives the exact HSTS, CSP and cookie values to add.

Web Security Headers Scorecard is a free AI agent skill on Agensi by Prateek, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Prateek](https://www.agensi.io/creators/prateek)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 1.0
- Last updated: 2026-12-04
- Security: scan passed (2026-12-04); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/web-security-headers-scorecard
- Tags: security, frontend-web-apps, devops-cloud

## What it does

- Scores HSTS, CSP, frame and content-type protection
- Checks cookies for Secure, HttpOnly and SameSite
- Gives the exact header line to add for each gap
- Grades the response from A to F

## Who it's for

- **Founders launching a new web app:** Check if your site is safe against common web attacks before you launch. Try: "Audit these headers for my new landing page."
- **Freelance web developers building for clients:** Deliver a professional security report and the exact code to harden your client's site. Try: "Scan these response headers and tell me what to add to my Nginx config."
- **Marketing teams managing WordPress sites:** Understand why your site failed a security scan and get the exact values to fix it. Try: "Explain these security scan results and how to fix them."

## About this skill

If you have a list of headers from your website but do not know if they are safe, this skill scans them for you. It looks for missing security settings that could leave your site open to common attacks.

### How it works
1. You provide a list of your website's response headers as a text file or a copy-paste.
2. Your AI agent runs an audit to check for missing or weak security settings.
3. You get a security score from 0 to 100 with a grade like "Strong" or "Weak".
4. The skill gives you a table showing exactly what is missing and why it matters.

### Frameworks & tools
This skill uses a Python script to analyze header values and text files for the audit report.

### Why this beats prompting it yourself
A regular chat might miss specific security rules or give you outdated advice. This skill follows a strict set of rules for modern security standards. It checks for specific details like cookie safety and how long your security settings last, which a general prompt often overlooks.

### Use cases
- Auditing a website right after you put it online.
- Fixing a security scan that says your site is missing headers.
- Making sure your site cookies are private and secure.
- Finding out if your server is accidentally leaking its version name.

### Known limitations
This only checks one set of headers at a time. It cannot find actual bugs in your code, like clickjacking or injection, but it helps reduce the impact of those bugs.

## Requires

- Python 3.9+

## Technical details

This skill uses a bundled Python script (audit_headers.py) to parse header dumps or JSON inputs. It applies a scoring logic based on modern security headers (HSTS, CSP, etc.) and cookie flags. It can output recommended configurations in standard text formats based on the audit results.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Web Security Headers Scorecard skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What does Web Security Headers Scorecard do?

Scores a response's security headers and gives the exact HSTS, CSP and cookie values to add.

### Which AI agents support Web Security Headers Scorecard?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use Web Security Headers Scorecard?

Connect your AI agent to Agensi through MCP, then ask it to use Web Security Headers Scorecard on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
