Secure Headers

[STUB - Not implemented] Secure HTTP headers configuration including CSP, HSTS, X-Frame-Options, and SameSite cookies. PROACTIVELY activate for: [TODO: Define on implementation]. Triggers: [TODO: Define on implementation]

Agentient e395e28 1.4 KB Updated

File contents

Secure Headers

STUB: This skill is not yet implemented

This placeholder preserves the documented plugin structure. See parent plugin README for planned capabilities.

Planned Capabilities

  • Content-Security-Policy (CSP): Script, style, and resource origin restrictions
  • HSTS: Strict-Transport-Security enforcement
  • X-Frame-Options: Clickjacking prevention
  • X-Content-Type-Options: MIME type sniffing prevention
  • SameSite Cookies: CSRF protection via cookie attributes
  • Framework-specific implementation guides (Next.js, Express, etc.)

Critical Pattern

// next.config.js
module.exports = {
  async headers() {
    return [{
      source: '/(.*)',
      headers: [
        { key: 'X-Frame-Options', value: 'DENY' },
        { key: 'X-Content-Type-Options', value: 'nosniff' },
        { key: 'Strict-Transport-Security', value: 'max-age=31536000; includeSubDomains' },
        { key: 'Content-Security-Policy', value: "default-src 'self'; script-src 'self' 'unsafe-inline'" }
      ]
    }];
  }
};

Implementation Status

  • Core implementation
  • References documentation
  • Output templates
  • Integration tests

Agentient/vibekit/tree/main/plugins/security-tools/skills/secure-headers commit e395e28987

Frequently asked questions

npx skillmds@latest add agentient/secure-headers