Skip to main content

csp-gen

Generate Content Security Policy headers from your codebase

설치로 이동

소스 정보

저장소
RunnerQuan/SAFE-Agent
최근 소스 활동
2026년 3월 30일 04:33
감지된 SKILL.md 언어
영어
스타
0
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
4 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
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)
GitHub에서 보기