Skip to main content

csp-gen

Generate Content Security Policy headers from your codebase

Aller à l'installation

Informations de source

Dépôt
RunnerQuan/SAFE-Agent
Dernière activité de la source
30 mars 2026 à 04:33
Langue détectée de SKILL.md
anglais
Étoiles
0
Forks
0

Options d'installation

Le prompt qui vérifie d'abord la source est sélectionné par défaut. Vous pouvez passer à une commande directe ou télécharger une copie locale.

Vérifiez les fichiers source

Lisez SKILL.md et les fichiers associés affichés par SkillsMP avant de décider de l'installer.

Explorateur de fichiers
4 fichiers

Affichage de SKILL.md

SKILL.md
Instructions source · Aperçu en lecture seule
name
csp-gen
description
Generate Content Security Policy headers from your codebase
# CSP Generator Scan your app and generate a proper Content Security Policy. Stop breaking your site with overly strict rules. ## Quick Start ```bash npx ai-csp ./src ``` ## What It Does - Scans for external resources (scripts, styles, images) - Identifies inline scripts that need hashes - Generates a working CSP header - Explains each directive ## Usage Examples ```bash # Scan and generate CSP npx ai-csp ./public ./src # Generate for specific strictness npx ai-csp ./src --strict # Output as meta tag npx ai-csp ./src --format meta ``` ## Output Formats - HTTP header format - HTML meta tag - Next.js config - Nginx config snippet ## Requirements Node.js 18+. OPENAI_API_KEY required. ## License MIT. Free forever. --- **Built by LXGIC Studios** - GitHub: [github.com/lxgicstudios/ai-csp](https://github.com/lxgicstudios/ai-csp) - Twitter: [@lxgicstudios](https://x.com/lxgicstudios)
Voir sur GitHub