Agent skill

Protocol Marchat

by Cod-e-Codes in Cod-e-Codes/marchat

Maintains marchat WebSocket JSON protocol and shared wire types including E2E encoding.

MITAuto-check passedTesting & QA

Install Protocol Marchat

skills CLI
$ npx skills add Cod-e-Codes/marchat --skill protocol-marchat -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Cod-e-Codes/marchat protocol-marchat --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Cod-e-Codes/marchat.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.cursor/skills/protocol-marchat .claude/skills/protocol-marchat && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
protocol-marchat
GitHub stars
137
Token cost
~540 tokens
SKILL.md length
216 words
Files
1
Skills in repo
11
Repo updated
First seen
Licence
MIT

At a glance

Maintains marchat WebSocket JSON protocol and shared wire types including E2E encoding.

  • Works in 5 steps: Update shared/ types and constants first. → Server hub/handlers relay or persist… → Client encode/decode in… → …
  • Changing PROTOCOL.md
  • SKILL.md covers Wire basics, E2E (chat), Breaking changes and Change workflow
  • Needs MARCHAT_GLOBAL_E2E_KEY

What it does

Protocol Marchat is an agent skill from Cod-e-Codes/marchat. Maintains marchat WebSocket JSON protocol and shared wire types including E2E encoding. Use when changing PROTOCOL.md, shared/types.go, shared/crypto.go, handshake, message types, or client-server wire compatibility.

Its SKILL.md is about 540 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Testing & QA, covering End-to-end testing and Realtime and WebSockets. The repository describes itself as: Terminal chat for developers: Go WebSocket server + Bubble Tea TUI client, optional E2E, reactions, DMs, channels, plugins, files, code snippets, admin UI. Backends: SQLite… The licence is MIT.

When your agent uses it

  • Changing PROTOCOL.md
  • Shared/types.go
  • Shared/crypto.go
  • Client-server wire compatibility

Example prompts

  • “Use the protocol-marchat skill to maintain marchat WebSocket JSON protocol and shared wire types including E2E encoding”
  • “/protocol-marchat”

Requirements

  • A credential in MARCHAT_GLOBAL_E2E_KEY

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Update shared/ types and constants first.
  2. Server hub/handlers relay or persist without decrypting E2E payloads.
  3. Client encode/decode in client/websocket.go and related paths.
  4. Add round-trip tests (client/websocket_e2e_test.go, shared/crypto_test.go).
  5. Sync PROTOCOL.md and ARCHITECTURE.md.

What it can do on your machine

Read from SKILL.md and the folder at commit 3440f09. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • MARCHAT_GLOBAL_E2E_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Protocol Marchat loads about 540 tokens when it runs. Until then it costs about 58 tokens; SKILL.md has 216 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~58
When it runs · the whole SKILL.md, loaded when a task matches
~540

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Cod-e-Codes/marchat at commit 3440f09, republished under its MIT licence (© Cod-e-Codes). 216 words, ~540 tokens.

Download SKILL.mdSave it as .claude/skills/protocol-marchat/SKILL.md (or your agent's skills folder).
name
protocol-marchat
description
Maintains marchat WebSocket JSON protocol and shared wire types including E2E encoding. Use when changing PROTOCOL.md, shared/types.go, shared/crypto.go, handshake, message types, or client-server wire compatibility.
paths
PROTOCOL.md, shared/**, client/websocket*.go

Protocol (marchat)

Normative spec: PROTOCOL.md. Types and crypto: shared/types.go, shared/crypto.go.

Wire basics

  • WebSocket /ws; JSON messages.
  • Handshake is first message after connect (username, optional admin / admin_key).
  • Message types: text, system, typing, reactions, edits, deletes, pins, DMs (with recipient), channels, read receipts, files.
  • Chat content byte cap (default 32 KiB, MARCHAT_MAX_MESSAGE_BYTES / MARCHAT_MAX_MESSAGE_MB) is separate from the file cap. Non-file inbound content, including E2E ciphertext, over the cap gets a System reply and is not persisted. File payloads use the file limit. WebSocket SetReadLimit stays the file DoS ceiling.

E2E (chat)

  • Global shared symmetric key (32 bytes), ChaCha20-Poly1305 on the wire.
  • Server stores opaque ciphertext; does not decrypt chat content.
  • When encrypted is true, content is base64-encoded nonce || ciphertext.
  • Key distribution: out-of-band (MARCHAT_GLOBAL_E2E_KEY, or shared keystore.dat + passphrase).
  • Not per-user X25519 key exchange for chat.

Client keystore: client/crypto/keystore.go (PBKDF2 + AES-GCM; v3 portable salt; legacy migrate on load).

Breaking changes

  • Avoid breaking handshake or message JSON without discussion.
  • Document in CHANGELOG.md and PROTOCOL.md.
  • Consider older clients on mixed-version servers.

Change workflow

  1. Update shared/ types and constants first.
  2. Server hub/handlers relay or persist without decrypting E2E payloads.
  3. Client encode/decode in client/websocket.go and related paths.
  4. Add round-trip tests (client/websocket_e2e_test.go, shared/crypto_test.go).
  5. Sync PROTOCOL.md and ARCHITECTURE.md.

Plugin wire types extend plugin/sdk; keep compatible with shared message shapes where bridged.

© Cod-e-Codes, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .cursor/skills/protocol-marchat of Cod-e-Codes/marchat.

Open the folder on GitHubat commit 3440f09

Compare with similar skills

Protocol Marchat next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Protocol Marchat compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Protocol Marchat this skillCod-e-Codes/marchat137—~540Automated safety check: PassMIT
Acp Local Runnerrebornix/Agmente545—~804Automated safety check: PassMIT
Codex Local CLI E2Erebornix/Agmente545—~625Automated safety check: PassMIT
Playwright Best Practicessanity-io/sanity6.4k7 repos~6.4kAutomated safety check: PassMIT
System Bridge Testing Workflowtimmo001/system-bridge356—~843Automated safety check: PassApache-2.0
Verify Lemonz80dev/lemon131—~4kAutomated safety check: NotesMIT

Similar skills

  • Acp Local Runner

    rebornix/Agmente

    Run and debug Agmente ACP end-to-end scenarios from the repo-owned e2e/scenarios/acp specs.

    545 GitHub stars~804 tokensUpdated 4 mo ago
    Testing & QAAuto-check passed
  • Codex Local CLI E2E

    rebornix/Agmente

    Run and debug Agmente iOS end-to-end tests against a real local Codex CLI app-server instance.

    545 GitHub stars~625 tokensUpdated 4 mo ago
    Testing & QAAuto-check passed
  • Official

    A skill your agent uses when writing Playwright tests, fixing flaky tests, debugging failures, implementing Page Object Model, configuring CI/CD, optimizing performance, mocking APIs, handling…

    6.4k GitHub starsUsed in 7 repos~6.4k tokens
    Testing & QAAuto-check passed
  • System Bridge Testing Workflow

    timmo001/system-bridge

    How to test System Bridge - Go table-driven tests and commands, web-client quality checks (lint/typecheck/format, no unit tests), the Chrome DevTools MCP interactive test loop for UI and WebSocket…

    356 GitHub stars~843 tokensUpdated today
    Testing & QAAuto-check passed
  • Verify Lemon

    z80dev/lemon

    Verify lemon features against a running (or disposable) instance using the cheapest sufficient tier: DIRECT (attach/RPC + control-plane WS + bus observation, no Telegram), FAKE TELEGRAM (hermetic…

    131 GitHub stars~4k tokensUpdated 21 days ago
    Testing & QAAuto-check: notes
  • Ssr

    SAP/spartacus

    Official

    A skill your agent uses when working with Spartacus Server-Side Rendering (SSR).

    784 GitHub stars~229 tokensUpdated today
    Testing & QAAuto-check passed

More from Cod-e-Codes/marchat

All 11 skills in this repo
  • Debugging Marchat

    Cod-e-Codes/marchat

    Diagnoses marchat client and server issues using -doctor, env configuration, and logs.

    137 GitHub stars~668 tokensUpdated 4 days ago
    Auto-check: notes
  • Developing Marchat

    Cod-e-Codes/marchat

    Implements and refactors marchat Go code with project toolchain and quality gates.

    137 GitHub stars~870 tokensUpdated 4 days ago
    Auto-check passed
  • Git Workflow Marchat

    Cod-e-Codes/marchat

    Drafts conventional commit messages and pull request bodies for marchat without committing or pushing unless explicitly requested.

    137 GitHub stars~482 tokensUpdated 4 days ago
    Auto-check: notes
  • Testing Marchat

    Cod-e-Codes/marchat

    Writes and runs marchat tests with race detection, coverage, and dialect smoke patterns.

    137 GitHub stars~802 tokensUpdated 4 days ago
    Auto-check passed
  • Client Marchat

    Cod-e-Codes/marchat

    Implements marchat terminal client TUI, commands, keystore, and WebSocket client behavior.

    137 GitHub stars~1.5k tokensUpdated 4 days ago
    Auto-check passed
  • Database Marchat

    Cod-e-Codes/marchat

    Changes marchat SQL schema and queries across SQLite, PostgreSQL, and MySQL using dialect helpers.

    137 GitHub stars~985 tokensUpdated 4 days ago
    Auto-check passed

Questions about Protocol Marchat

What does Protocol Marchat do?

Maintains marchat WebSocket JSON protocol and shared wire types including E2E encoding. Protocol Marchat is an agent skill from Cod-e-Codes/marchat. Maintains marchat WebSocket JSON protocol and shared wire types including E2E encoding.

When should I use Protocol Marchat?

Protocol Marchat fits situations like: changing PROTOCOL.md; shared/types.go; shared/crypto.go; client-server wire compatibility.

How do I install Protocol Marchat in Claude Code?

Run `npx skills add Cod-e-Codes/marchat --skill protocol-marchat -a claude-code`. Or copy the skill folder (.cursor/skills/protocol-marchat in Cod-e-Codes/marchat) into .claude/skills/protocol-marchat in your project. Claude Code loads it when a task matches its description.

How do I install Protocol Marchat in Codex?

Run `npx skills add Cod-e-Codes/marchat --skill protocol-marchat -a codex`. Or copy the skill folder (.cursor/skills/protocol-marchat in Cod-e-Codes/marchat) into .agents/skills/protocol-marchat in your project. Codex loads it when a task matches its description.

Can I use Protocol Marchat in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Cod-e-Codes/marchat --skill protocol-marchat -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/protocol-marchat, .gemini/skills/protocol-marchat, .github/skills/protocol-marchat and .opencode/skills/protocol-marchat in your project.

What does Protocol Marchat need to run?

Going by SKILL.md and its folder, Protocol Marchat needs credentials named MARCHAT_GLOBAL_E2E_KEY. Our summary lists: A credential in MARCHAT_GLOBAL_E2E_KEY.

Does Protocol Marchat access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Protocol Marchat safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Protocol Marchat use?

Protocol Marchat is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Protocol Marchat use?

About 540 tokens (SKILL.md is roughly 2.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Protocol Marchat?

Skills that share tags, products or a category with Protocol Marchat: Acp Local Runner (rebornix/Agmente, 545 stars), Codex Local CLI E2E (rebornix/Agmente, 545 stars), Playwright Best Practices (sanity-io/sanity, 6.4k stars) and System Bridge Testing Workflow (timmo001/system-bridge, 356 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Protocol Marchat?

Cod-e-Codes (a GitHub user) maintains it in Cod-e-Codes/marchat, which has 137 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on October 3, 2026.

Source: Cod-e-Codes/marchat on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.