# CSP Policy Analyzer

> Parses and evaluates Content Security Policy headers using csp-parse and csp-evaluator libraries. Identifies overly permissive directives, missing protections, and generates tightened policy recommendations.

- Skill: `agentskillexchange/csp-policy-analyzer` (Agent Skill)
- Install (CLI): `npx skillmds add agentskillexchange/csp-policy-analyzer`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/csp-policy-analyzer/raw
- Safety review: PASS (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Security, Vulnerability Scanning
- Tags: Content Security Policy, Csp, Csp Evaluator, Npm, Security Audit
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-08-22
- Page: https://skillmd.com/skills/agentskillexchange/csp-policy-analyzer

---


# CSP Policy Analyzer

Parses and evaluates Content Security Policy headers using csp-parse and csp-evaluator libraries. Identifies overly permissive directives, missing protections, and generates tightened policy recommendations.

## Installation

Use the upstream install or setup path that matches your environment:
- npm install csp_evaluator
- npm install && tsc --build
- npm install && npm test

Basic usage or getting-started notes:
- To build, run:
- To run unit tests, run:
- ## Example Usage

- Source: https://github.com/google/csp-evaluator
- Extracted from upstream docs: https://raw.githubusercontent.com/google/csp-evaluator/HEAD/README.md

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/csp-policy-analyzer/)

