An automated utility to analyze web resources and generate secure Content Security Policy headers to mitigate XSS vulnerabilities.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install csp-gen
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install csp-gen using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
CSP Generator simplifies the complex task of writing Content Security Policy headers. By analyzing a target URL, it identifies all external and internal resources—including scripts, styles, and images—to produce a robust policy that hardens your site against Cross-Site Scripting (XSS). This tool is a vital part of the Openclaw Skills ecosystem for developers who want to prioritize security without diving deep into the technical specifications of every CSP directive.
By automating the discovery of resource origins, the generator ensures that your site remains functional while significantly reducing the attack surface for malicious injections. It removes the guesswork from security configuration, making it accessible to developers of all skill levels.
To use this tool within the Openclaw Skills framework, ensure you have Node.js 18+ installed. No permanent installation is required; you can run it directly via npx.
npx ai-csp https://mysite.com
For help with available flags:
npx ai-csp --help
The tool outputs structured policy strings and configuration recommendations as part of the Openclaw Skills suite.
| Field | Description |
|---|---|
| Directives | Mapped resource origins (e.g., script-src, style-src) |
| Policy String | The final raw CSP header value |
| Report-URI | Suggested endpoint for monitoring policy violations |
| Suggestions | Recommendations for nonces and report-only deployment |
Loading
Transform natural language descriptions into precise cron syntax with AI-powered validation and next-run previews.

An automated tool that scans source code to identify coverage gaps and generates ready-to-run unit tests.

An AI-powered CLI tool that generates customized, role-specific cover letters in seconds.

A CLI-based utility that generates precise CORS middleware and configurations from plain English descriptions of your tech stack.

Automatically convert vanilla CSS files into Tailwind CSS utility classes using AI-driven mapping.

A high-performance, zero-dependency CLI toolkit for filtering, transforming, merging, and analyzing CSV data at scale.








































