effect-rpc-cluster

effect-rpc-cluster is a skill for Claude Code, Codex from mpsuesser/pi-effect-harness. It costs 68 tokens per session (16,326 once invoked), scanned A, original, MIT.

Guidance for building typed remote procedure calls and distributed services with Effect. A remote procedure call lets one program request work from another, while clustering spreads entities, scheduled jobs, or workflows across several machines or processes.

In plain words
What is it for?
Use it to build Effect RPC servers and clients, grouped endpoints, sharded entities, singletons, cron jobs, and durable workflows on Node.js or Bun.
Why use it?
It helps keep communication contracts and distributed behavior aligned when services run across a network or need to share work.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { CurrentUser, UnauthorizedError, UsersGroup, User, UserNotFound } from '../definitions/users.ts';.

Good fit Use it to build Effect RPC servers and clients, grouped endpoints, sharded entities, singletons, cron jobs, and durable workflows on Node.js or Bun.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/mpsuesser/pi-effect-harness
agentmods
npx agentmods add skills/mpsuesser/pi-effect-harness/effect-rpc-cluster

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for effect-rpc-cluster

README.md
[![agentmods](https://agentmods.dev/badge/skills/mpsuesser/pi-effect-harness/effect-rpc-cluster/github.svg)](https://agentmods.dev/skills/mpsuesser/pi-effect-harness/effect-rpc-cluster)
Your own site
<a href="https://agentmods.dev/skills/mpsuesser/pi-effect-harness/effect-rpc-cluster"><img src="https://agentmods.dev/badge/skills/mpsuesser/pi-effect-harness/effect-rpc-cluster/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for effect-rpc-cluster

Your own site · 80×15
<a href="https://agentmods.dev/skills/mpsuesser/pi-effect-harness/effect-rpc-cluster"><img src="https://agentmods.dev/badge/skills/mpsuesser/pi-effect-harness/effect-rpc-cluster.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 16,326 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00068 $0.16326
Opus 5 $0.00034 $0.08163
Sonnet 5 $0.00014 $0.03265
Haiku 4.5 $0.00007 $0.01633

Measured 9d ago against content hash 751ca3d561da, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

effect-rpc-cluster scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

harnesses/effect/skills/effect-rpc-cluster/SKILL.md · 1,585 lines

How it starts

The opening of the file, as written. The whole thing — 1,585 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are an Effect TypeScript expert specializing in effect/unstable/rpc and effect/unstable/cluster.

These modules live under effect/unstable/*. There are no @effect/rpc or @effect/cluster packages in v4 — everything ships from the effect package. APIs may move between betas.

Effect Source Reference

The Effect v4 source is at ~/.cache/effect-v4/. Read it directly when in doubt — the shape of these modules changes more often than the website docs.

Key files:

  • packages/effect/src/unstable/rpc/Rpc.tsRpc.make, custom constructors, Wrapper, ServerClient, exitSchema
  • packages/effect/src/unstable/rpc/RpcGroup.ts — group construction, handler wiring (toLayer / toHandlers / toLayerHandler / accessHandler), prefixing, omit/merge, annotations
  • packages/effect/src/unstable/rpc/RpcServer.tsmake, layer, layerHttp, every layerProtocol* and toHttpEffect*
  • packages/effect/src/unstable/rpc/RpcClient.tsmake, Protocol, every layerProtocol*, withHeaders, CurrentHeaders, ConnectionHooks
  • packages/effect/src/unstable/rpc/RpcMiddleware.tsService constructor, layerClient
  • packages/effect/src/unstable/rpc/RpcSerialization.ts — json/ndjson/jsonRpc/ndJsonRpc/msgPack codecs and their layers
  • packages/effect/src/unstable/rpc/RpcTest.ts — in-process test client
  • packages/effect/src/unstable/rpc/RpcWorker.tsInitialMessage for worker transports
  • packages/effect/src/unstable/rpc/RpcSchema.tsStream schema marker, ClientAbort cause annotation
  • packages/effect/src/unstable/rpc/RpcClientError.ts — client-side error union
  • packages/effect/src/unstable/cluster/Entity.tsEntity.make / fromRpcGroup, handler envelopes, Replier, CurrentAddress, keepAlive, makeTestClient
  • packages/effect/src/unstable/cluster/ClusterSchema.tsPersisted, Uninterruptible, WithTransaction, ShardGroup, ClientTracingEnabled, Dynamic
  • packages/effect/src/unstable/cluster/ClusterError.tsMailboxFull, AlreadyProcessingMessage, PersistenceError, EntityNotAssignedToRunner, MalformedMessage, RunnerUnavailable, RunnerNotRegistered
  • packages/effect/src/unstable/cluster/Sharding.ts — the Sharding service surface
  • packages/effect/src/unstable/cluster/ShardingConfig.ts — config schema + env loader
  • packages/effect/src/unstable/cluster/Singleton.ts — singleton-per-cluster effects
  • packages/effect/src/unstable/cluster/ClusterCron.ts — cron-driven singletons
  • packages/effect/src/unstable/cluster/SingleRunner.ts — single-node sql-backed bundle
  • packages/effect/src/unstable/cluster/TestRunner.ts — in-memory testing bundle
  • packages/effect/src/unstable/cluster/EntityProxy.ts + EntityProxyServer.ts — entity ↔ RPC/HTTP bridge
  • packages/effect/src/unstable/workflow/WorkflowProxy.ts + WorkflowProxyServer.ts — workflow ↔ RPC/HTTP bridge
  • packages/effect/src/unstable/cluster/ClusterWorkflowEngine.ts — production workflow engine backed by sharding + storage
  • packages/effect/src/unstable/reactivity/AtomRpc.ts — reactive RPC client for Atom UIs (see also effect-atom-rpc skill)
  • packages/platform-node/src/NodeClusterHttp.ts / NodeClusterSocket.ts — Node "all-in-one" cluster layers
  • packages/platform-bun/src/BunClusterHttp.ts / BunClusterSocket.ts — Bun equivalents
  • packages/platform-node/test/RpcServer.test.ts + test/fixtures/rpc-{schemas,e2e}.ts — best end-to-end reference for real RPC wiring
  • packages/effect/test/cluster/TestEntity.ts + test/cluster/Entity.test.ts — best reference for Entity + makeTestClient

Read the full file on GitHub · 1,585 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 1,585 lines · 68 tokens per session scan A 751ca3d561da

Subscribe to this mod's changes

effect-rpc-cluster is a skill published in the GitHub repository mpsuesser/pi-effect-harness (24 stars, last pushed 2mo ago), licensed MIT. It adds 68 tokens to every session and 16,326 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.