Websocket

Real-time bidirectional communication with security focus on CSWSH prevention, authentication, and message validation

48 stars 4 forksSecurity

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add martinholovsky/claude-skills-generator --skill websocket
Manual install
git clone --depth 1 https://github.com/martinholovsky/claude-skills-generator.git /tmp/claude-skills-generator
mkdir -p ~/.claude/skills
cp -r /tmp/claude-skills-generator/skills/websocket ~/.claude/skills/websocket

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# WebSocket Security Skill

## File Organization

- **SKILL.md**: Core principles, patterns, essential security (this file)
- **references/security-examples.md**: CSWSH examples and authentication patterns
- **references/advanced-patterns.md**: Connection management, scaling patterns
- **references/threat-model.md**: Attack scenarios including CSWSH

## Validation Gates

**Gate 0.2**: PASSED (5+ vulnerabilities documented) - CVE-2024-23898, CVE-2024-26135, CVE-2023-0957

---

## 1. Overview

**Risk Level**: HIGH

**Justification**: WebSocket connections bypass Same-Origin Policy protections, making them vulnerable to Cross-Site WebSocket Hijacking (CSWSH). Persistent connections require careful authentication, session management, and input validation.

You are an expert in WebSocket security, understanding the unique vulnerabilities of persistent bidirectional connections.

### Core Expertise Areas
- CSWSH (Cross-Site WebSocket Hijacking) prevention
- Origin header validation and token-based authentication
- Message validation and per-message authorization
- Rate limiting and connection lifecycle security

---

## 2. Core Responsibilities

### Fundamental Principles

1. **TDD First**: Write tests before implementation - test security boundaries, connection lifecycle
2. **Performance Aware**: Optimize for low latency (<50ms), connection pooling, backpressure
3. **Validate Origin**: Always check Origin header against explicit allowlist
Read the full skill on GitHub

Details

Skill name
websocket
Path
skills/websocket/SKILL.md
License
Unlicense
Repo updated
6 December 2025

FAQ

What does the Websocket skill do?

Real-time bidirectional communication with security focus on CSWSH prevention, authentication, and message validation

How do I install the Websocket skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add martinholovsky/claude-skills-generator --skill websocket. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Websocket popular?

It lives in martinholovsky/claude-skills-generator, which has 48 GitHub stars and 4 forks.

Related skills

API Expert

48

martinholovsky/claude-skills-generator

Expert API architect specializing in RESTful API design, GraphQL, gRPC, and API security. Deep expertise in OpenAPI 3.1, authentication patterns (OAuth2, JWT), rate limiting, pagination, and OWASP API Security Top 10. Use when designing scalable APIs, implementing API gateways, or securing API endpoints.

Software Development

Applescript

48

martinholovsky/claude-skills-generator

Expert in AppleScript and JavaScript for Automation (JXA) for macOS system scripting. Specializes in secure script execution, application automation, and system integration. HIGH-RISK skill due to shell command execution and system-wide control capabilities.

Productivity & Notes

Appsec Expert

48

martinholovsky/claude-skills-generator

Elite Application Security engineer specializing in secure SDLC, OWASP Top 10 2025, SAST/DAST/SCA integration, threat modeling (STRIDE), and vulnerability remediation. Expert in security testing, cryptography, authentication patterns, and DevSecOps automation. Use when securing applications, implementing security controls, or conducting security assessments.

Security

Arjun

57

javimosch/supercli

Use this skill when the user wants to discover hidden HTTP parameters on web endpoints for security testing or API enumeration.

SecurityIn 1 list

Surrealdb Expert

48

martinholovsky/claude-skills-generator

Expert SurrealDB developer specializing in multi-model database design, graph relations, document storage, SurrealQL queries, row-level security, and real-time subscriptions. Use when building SurrealDB applications, designing graph schemas, implementing secure data access patterns, or optimizing query performance.

Security

Bagel

57

javimosch/supercli

Use this skill when the user wants to scan their workstation for security risks, find leaked credentials, or scrub sensitive data from CLI session logs.

SecurityIn 1 list

Browse the most popular Claude skills, all security skills, or write your own with the skills generator.