Skip to main content

csp-gen

Generate Content Security Policy headers from your codebase

Zur Installation springen

Quellinformationen

Repository
RunnerQuan/SAFE-Agent
Letzte Quellaktivität
30. März 2026 um 04:33
Erkannte Sprache von SKILL.md
Englisch
Sterne
0
Forks
0

Installationsoptionen

Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.

Quelldateien prüfen

Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.

Datei-Explorer
4 Dateien

SKILL.md wird angezeigt

SKILL.md
Quellanweisungen · Schreibgeschützte Vorschau
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)
Auf GitHub ansehen