Websocket
Real-time bidirectional communication with security focus on CSWSH prevention, authentication, and message validation
Install
npx skills add martinholovsky/claude-skills-generator --skill websocketgit 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/websocketPersonal 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
Details
- Skill name
websocket- Repository
- martinholovsky/claude-skills-generator
- 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
48martinholovsky/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.
Applescript
48martinholovsky/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.
Appsec Expert
48martinholovsky/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.
Arjun
57javimosch/supercli
Use this skill when the user wants to discover hidden HTTP parameters on web endpoints for security testing or API enumeration.
Surrealdb Expert
48martinholovsky/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.
Bagel
57javimosch/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.
Browse the most popular Claude skills, all security skills, or write your own with the skills generator.