skills$openclaw/csp-gen
lxgicstudios3.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

3.5k stars3.9k forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026coding

Skill Snapshot

namecsp-gen
descriptionGenerate Content Security Policy headers from your codebase OpenClaw Skills integration.
ownerlxgicstudios
repositorylxgicstudios/ai-csp
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @lxgicstudios/ai-csp
last updatedFeb 7, 2026

Maintainer

lxgicstudios

lxgicstudios

Maintains csp-gen in the OpenClaw Skills directory.

View GitHub profile
File Explorer
2 files
.
_meta.json
475 B
SKILL.md
1003 B
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

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

README.md

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.