Skip to content
cccskills
FreePublished on GitHub

csp-headers

Configure security headers (CSP, HSTS, Permissions-Policy, COOP/COEP) for Go/TS backends and Cloudflare. Prevents XSS and clickjacking.

The English summary is being prepared. Showing the original description.

SebastianLuser/claude-code-arcane3 stars(GitHub 3 + cccskills 0)
Works withCloudflare

Run score Not tested

See how to install

Files included (3)

  • SKILL.md2.6 KB
  • references/anti-patterns-checklist.md1.1 KB
  • references/implementation.md945 B

SKILL.md (original)

Review the instructions the agent will receive before you install.

CSP & Security Headers

Default deny, nonces en CSP, report-only antes de enforce. Stack: Go + TS backends, React+Vite frontends, Cloudflare CDN.

Headers Críticos

HeaderObjetivoCriticidad
Content-Security-PolicyPrevenir XSS, data exfiltrationALTA
Strict-Transport-SecurityForzar HTTPSALTA
X-Content-Type-Options: nosniffEvitar MIME sniffingMEDIA
Referrer-Policy: strict-origin-when-cross-originNo leak URLsMEDIA
Permissions-PolicyDeshabilitar APIs no usadas (cam/mic/geo)MEDIA
Cross-Origin-Opener-Policy: same-originAislar browsing contextMEDIA
X-Frame-Options: DENYClickjacking (legacy; CSP frame-ancestors lo supera)MEDIA

X-XSS-Protection está deprecado — solo CSP.

CSP Default Educabot

default-src 'self' + script-src 'self' 'nonce-{RANDOM}' 'strict-dynamic' + style-src 'self' 'nonce-{RANDOM}' + img/font/connect whitelists + frame-ancestors 'none' + base-uri 'self' + form-action 'self' + upgrade-insecure-requests + report-uri.

Nonces: 128-bit crypto-random por request. Inyectar en <script nonce> y <style nonce> server-side. NUNCA unsafe-inline junto con nonce.

strict-dynamic: scripts con nonce cargan otros dinámicamente. Reemplaza whitelist de dominios (débil contra JSONP bypass).

Vite SPA (sin SSR): vite-plugin-csp-guard (hashes SHA256 en build time), o proxy que inyecta nonce, o SSR con nonce por request.

Report-Only → Enforce

  1. Report-only 2-4 semanas: Content-Security-Policy-Report-Only + endpoint /csp-report
  2. Analizar: agrupar por blocked-uri/violated-directive → whitelist/remover/mover
  3. Enforce: Content-Security-Policy

HSTS

max-age=63072000; includeSubDomains; preload. Empezar con max-age corto (300s), escalar. Preload: difícil salir (meses). Submit en hstspreload.org.

Permissions-Policy

Default: camera=(), microphone=(), geolocation=(), interest-cohort=(). Apps educativas con webcam: camera=(self), microphone=(self).

→ Read references/implementation.md for Go, TS, Cloudflare implementation details, iframe/embedding config, testing tools

→ Read references/anti-patterns-checklist.md for anti-patterns and pre-deployment checklist

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Plan, design, and implement A/B tests and experiments with statistical rigor. Covers hypothesis frameworks, sample sizing, metrics, and result analysis.

The English summary is being prepared. Showing the original description.

SebastianLuser/claude-code-arcane3Updated Oct 27, 2026

Web/mobile accessibility decision guide: WCAG 2.2 AA, ARIA, keyboard nav, focus management, contrast, testing. Use for: a11y, accessibility, wcag, aria, screen reader, keyboard, contrast.

The English summary is being prepared. Showing the original description.

SebastianLuser/claude-code-arcane3Updated Oct 27, 2026

Generate, iterate, and scale ad creative for paid advertising across Google, Meta, LinkedIn, and X. Covers platform specs, creative frameworks, and quality validation.

The English summary is being prepared. Showing the original description.

SebastianLuser/claude-code-arcane3Updated Oct 27, 2026

Musica interactiva para juegos: layering vertical, re-secuenciacion horizontal, stingers, reglas de transicion con sync points, y mapeo de estados de gameplay a musica. Usar para: musica adaptativa, sistema de musica dinamica, transiciones musicales, combat music.

The English summary is being prepared. Showing the original description.

SebastianLuser/claude-code-arcane3Updated Oct 27, 2026

Design multi-agent systems, create agent architectures, define communication patterns, and build autonomous agent workflows with structured evaluation frameworks.

The English summary is being prepared. Showing the original description.

SebastianLuser/claude-code-arcane3Updated Oct 27, 2026

Inter-agent communication protocol for C-suite agent teams. Defines invocation syntax, loop prevention, isolation rules, response formats, and quality loops.

The English summary is being prepared. Showing the original description.

SebastianLuser/claude-code-arcane3Updated Oct 27, 2026

See all skills by SebastianLuser

Report a problem with this skill