A powerful tool to automatically scan your codebase and generate accurate Content Security Policy (CSP) headers to secure your web applications.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install ai-csp
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 ai-csp using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The CSP Generator (csp-gen) is a developer-centric skill designed to eliminate the trial-and-error approach to building Content Security Policies. By scanning your source files and public assets, it identifies external dependencies, scripts, styles, and images to construct a functional CSP that balances security and site functionality. As part of the Openclaw Skills ecosystem, this tool simplifies the process of hardening your web applications against cross-site scripting (XSS) and data injection attacks without breaking site features.
Ensure you have Node.js 18+ installed and an OPENAI_API_KEY configured in your environment. You can run the skill directly via npx:
npx ai-csp ./src
To generate a strict policy for a production environment, use:
npx ai-csp ./src --strict
The skill processes your local source files and produces structured security configurations. Below is the primary output taxonomy:
| Format | Output Type | Description |
|---|---|---|
| HTTP Header | String | Standard Content-Security-Policy header text. |
| Meta Tag | HTML | meta tag for inclusion in HTML head section. |
| Next.js | JSON/JS | Configuration object compatible with next.config.js. |
| Nginx | Config | Snippet for use within nginx.conf header directives. |
Loading
A command-line utility that transforms natural language descriptions into valid cron expressions and human-readable explanations.

An AI-driven tool that analyzes code coverage gaps and generates targeted unit tests to improve software reliability.

An AI-powered diagnostic tool that scans your source code to identify and provide actionable fixes for Core Web Vitals performance bottlenecks.

A self-improving memory framework that enables AI agents to review their work, extract patterns, and compound knowledge daily.

An AI-powered utility that converts legacy CSS files into optimized Tailwind CSS utility classes while preserving complex selectors and media queries.

A zero-config AI tool that identifies unused dependencies and flags security vulnerabilities to optimize your package.json.








































