super-review:web-headers

Detect insecure or missing HTTP response headers in PR diffs.

Updated May 15, 2026
One-click install
npx skills add https://github.com/mattnowdev/super-review --skill super-review-web-headers
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: super-review:web-headers
Source: https://github.com/mattnowdev/super-review/tree/main/skills/web-headers
Command: npx skills add https://github.com/mattnowdev/super-review --skill super-review-web-headers

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents common web-security misconfigurations in HTTP response headers that can weaken defenses against XSS, clickjacking, session theft, CORS abuse, and transport downgrade attacks.

Core Features & Use Cases

  • CSP hardening: Flags dangerous CSP patterns like unsafe-inline/unsafe-eval usage for script-src, and enforces required directives such as base-uri and frame-ancestors, plus optional Trusted Types guidance.
  • Cookie and transport protection: Validates HSTS settings and cookie attributes (Secure/HttpOnly/SameSite, __Host- prefix, and CHIPS Partitioned where relevant).
  • Cross-origin and browser isolation controls: Reviews CORS reflection and credential handling, plus COOP/COEP requirements for cross-origin isolation.
  • Policy headers coverage: Checks Permissions-Policy, Referrer-Policy, and recommends SRI for third-party subresources, while ensuring consistency with X-Frame-Options/CSP frame-ancestors.

Quick Start

Ask the reviewer to analyze the PR diff for missing or unsafe security headers and produce a bounded list of fix-before-merge recommendations with quoted evidence.

Frequently Asked Questions about super-review:web-headers

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review HTTP security headers in a pull request?▼

To review HTTP security headers in a pull request, analyze the PR diff for insecure or missing configurations in framework middleware and HTTP response code. This process produces a bounded list of fix-before-merge recommendations with quoted evidence.

What HTTP security headers should I check to prevent XSS and clickjacking?▼

To prevent XSS and clickjacking, check Content Security Policy directives like script-src and frame-ancestors, alongside X-Frame-Options. Validating these HTTP security headers prevents dangerous patterns like unsafe-inline and stops clickjacking attacks.

Does this code review check CSP and HSTS configurations in next.config and nginx.conf?▼

Yes, this code review checks CSP and HSTS configurations in next.config, vercel.json, and nginx.conf files. It enforces evidence-based checks for transport downgrade attacks and validates HSTS settings within your edge and runtime header setters.

How do I validate cookie attributes and CORS settings for web security?▼

Validate cookie attributes and CORS settings for web security by checking Secure, HttpOnly, and SameSite flags, and reviewing CORS reflection and credential handling. This prevents session theft and cross-origin abuse in HTTP response headers.

What is the best way to enforce cross-origin isolation with COOP and COEP headers?▼

The best way to enforce cross-origin isolation with COOP and COEP headers is to review HTTP response code for required cross-origin isolation controls. Checking these browser isolation configurations ensures robust web security against cross-origin attacks.

Why does my code review flag unsafe-inline and unsafe-eval in Content Security Policy?▼

Your code review flags unsafe-inline and unsafe-eval in Content Security Policy because these directives weaken defenses against XSS. Removing these dangerous CSP patterns enforces stricter script execution and hardens web security headers with evidence.