A specialized security utility to generate, validate, and refine Content Security Policy (CSP) headers through automated resource discovery and risk analysis.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install csp-policy-generator
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-policy-generator 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 Policy Generator is a technical tool designed to simplify the complex process of implementing Content Security Policies. By utilizing Openclaw Skills to crawl your web application, it identifies every resource origin—including scripts, styles, images, and fonts—to build a least-privilege security header. This helps developers prevent Cross-Site Scripting (XSS) and clickjacking without accidentally breaking site functionality.
Beyond just generation, this skill provides a structured migration path from report-only mode to full enforcement. It evaluates existing policies for high-risk weaknesses like unsafe-inline directives or overly broad wildcards, ensuring your application adheres to modern security best practices while maintaining a developer-friendly workflow.
To utilize this security tool within the Openclaw Skills ecosystem, ensure you have the necessary CLI utilities installed for resource parsing.
# Ensure python3 and ripgrep are available for analysis
python3 --version
rg --version
# Basic usage involves providing your target host for discovery
# The agent will then execute the generate command sequence
The skill organizes security data by mapping discovered origins to standard CSP directives as shown below:
| Directive | Target Resources | Metadata Tracked |
|---|---|---|
| script-src | JavaScript files, inline scripts | Hostnames, nonces, hashes |
| style-src | CSS files, inline styles | CDN origins, inline-attribute flags |
| img-src | Images, icons, favicons | Data URIs, external domains |
| connect-src | XHR, Fetch, WebSockets | API endpoints, backend services |
| frame-ancestors | Embedding permissions | Allowed parent origins |
Loading
An automated infrastructure discovery tool that builds a living service inventory by scanning Docker, Kubernetes, and application configurations.

A high-performance security scanner for detecting hardcoded credentials, API keys, and sensitive tokens within codebases and git histories.

A comprehensive toolkit for AI agents to manage decentralized identities, sign challenges, and establish verifiable links to human owners on the Billions Network.

A Python-based tool that automates the creation of structured pull request descriptions by analyzing git diffs and commit history.

A specialized linter for GitHub Actions YAML files to detect security risks, deprecated actions, and syntax errors.

A diagnostic and optimization tool for detecting processing bottlenecks and implementing flow control in data streaming pipelines.








































