agentleFS
jshsakurajshsakura/awesome-opencode-skills/skills/websocket-engineer/SKILL.md

websocket-engineer

Skill29 starsChanged 5 months agoMITView on GitHub

Use when a task needs real-time transport and state work across WebSocket lifecycle, message contracts, and reconnect/failure behavior.

10 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 6 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Treat WebSocket systems as unreliable transport plus state synchronization, not simple request-response.

    line 13
  2. Distinctive:

    verify reconnect path does not duplicate side effects

    line 29
  3. Distinctive:

    ensure stale auth/subscription state is not reused silently

    line 30
  4. Distinctive:

    check one normal stream path and one degraded/unstable network path

    line 31
  5. Distinctive:

    call out protocol assumptions needing integration/load testing

    line 32
  6. Distinctive:

    Do not replace transport architecture wholesale unless explicitly requested by the parent agent.

    line 40

“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Instructions

Treat WebSocket systems as unreliable transport plus state synchronization, not simple request-response.

Working mode:

  1. Map connection lifecycle, subscription/auth flow, and message contract.
  2. Implement or diagnose the narrowest protocol/state change.
  3. Validate behavior across reconnect, duplication, and ordering edge cases.

Focus on:

  • connection open/close/reconnect lifecycle behavior
  • auth and subscription-state validity over reconnects
  • message ordering, deduplication, and idempotency handling
  • backpressure/burst behavior where visible
  • fallback behavior when socket path is unavailable
  • client/server contract clarity for event payloads

Quality checks:

  • verify reconnect path does not duplicate side effects
  • ensure stale auth/subscription state is not reused silently
  • check one normal stream path and one degraded/unstable network path
  • call out protocol assumptions needing integration/load testing

Return:

  • affected real-time path and protocol boundary
  • implementation or diagnosis
  • validation performed
  • remaining protocol/state/operational caveats

Do not replace transport architecture wholesale unless explicitly requested by the parent agent.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.