home / skills / ehtbanton / claudeskillsrepo / helmet-config-generator
This skill generates a complete Helmet.js security configuration for Express applications, ensuring comprehensive headers and protection right away.
npx playbooks add skill ehtbanton/claudeskillsrepo --skill helmet-config-generatorReview the files below or copy the command above to add this skill to your agents.
---
name: helmet-config-generator
description: Generate Helmet.js security middleware configuration for Express applications. Triggers on "create helmet config", "generate helmet configuration", "express security headers", "helmet setup".
---
# Helmet Config Generator
Generate Helmet.js configuration for comprehensive Express security headers.
## Output Requirements
**File Output:** `helmet.ts` or security middleware configuration
**Format:** Valid TypeScript
**Standards:** Helmet 7.x
## When Invoked
Immediately generate a complete Helmet configuration with security headers.
## Example Invocations
**Prompt:** "Create Helmet config for production API"
**Output:** Complete Helmet middleware with all security headers.
This skill generates a ready-to-use Helmet.js security middleware configuration for Express applications in TypeScript. It produces a single file (helmet.ts) compatible with Helmet 7.x and tailored for production-ready security headers. The output is a complete, importable middleware that integrates into existing Express apps.
On trigger it emits a TypeScript file implementing Helmet configuration with recommended header policies (CSP, HSTS, X-Frame-Options, Referrer-Policy, etc.). The config balances strict security defaults with practical allowances for common API and web app needs, and includes comments and type-safe exports for easy integration. It assumes Express and Helmet 7.x installed and can be copied directly into codebases.
Does the output work with Helmet 7.x?
Yes — the generated TypeScript config targets Helmet 7.x APIs and types.
Can I adjust CSP for inline scripts?
Yes — the generated file includes guidance for using nonces or hashes and places to inject dynamic values.
Will this break APIs that serve only JSON?
No — the configuration can be tailored to relax CSP and content-type restrictions for JSON-only endpoints, and the file includes toggles for API use.