AgentSkillsCN

csp-header-generator

为Web安全生成内容安全策略(CSP)头配置。触发词:“创建csp头”、“生成内容安全策略”、“csp配置”、“安全头”。

SKILL.md
--- frontmatter
name: csp-header-generator
description: Generate Content Security Policy (CSP) header configurations for web security. Triggers on "create csp header", "generate content security policy", "csp config", "security headers".

CSP Header Generator

Generate Content Security Policy configurations for enhanced web security.

Output Requirements

File Output: CSP configuration or middleware code Format: Valid CSP directives Standards: CSP Level 3

When Invoked

Immediately generate a complete CSP configuration for the application type.

Example Invocations

Prompt: "Create CSP headers for React SPA" Output: Complete CSP configuration with appropriate directives.