3.5k★by lxgicstudios
csp-gen – OpenClaw Skill
csp-gen is an OpenClaw Skills integration for coding workflows. Generate Content Security Policy headers from your codebase
Skill Snapshot
| name | csp-gen |
| description | Generate Content Security Policy headers from your codebase OpenClaw Skills integration. |
| owner | lxgicstudios |
| repository | lxgicstudios/ai-csp |
| language | Markdown |
| license | MIT |
| topics | |
| security | L1 |
| install | openclaw add @lxgicstudios/ai-csp |
| last updated | Feb 7, 2026 |
Maintainer

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
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
# 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
- Twitter: @lxgicstudios
No README available.
Permissions & Security
Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.
Requirements
Node.js 18+. OPENAI_API_KEY required.
FAQ
How do I install csp-gen?
Run openclaw add @lxgicstudios/ai-csp in your terminal. This installs csp-gen into your OpenClaw Skills catalog.
Does this skill run locally or in the cloud?
OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.
Where can I verify the source code?
The source repository is available at https://github.com/openclaw/skills/tree/main/skills/lxgicstudios/ai-csp. Review commits and README documentation before installing.
