signals-pattern

signals-pattern is a skill for Claude Code from Josh-E-S/awesome-pexip-skills. It costs 85 tokens per session (1,939 once invoked), scanned A, original, MIT.

A typed publish-and-subscribe event pattern for Pexip video-call applications. Services publish events, and interface components subscribe to the events they need.

In plain words
What is it for?
Use it to design event-driven call state, connect Pexip services to the interface, batch bursts of events, or replay the latest value to a new subscriber.
Why use it?
It avoids copying call data through many interface components or losing fast SDK updates while the interface renders. It also helps coordinate shared events such as reconnects, transfers, and groups of participants joining.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import {stepSignal} from '../signals/Meeting.signals';.

Part of the pexip plugin — 17 skills shipped together

Good fit Use it to design event-driven call state, connect Pexip services to the interface, batch bursts of events, or replay the latest value to a new subscriber.

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/Josh-E-S/awesome-pexip-skills
agentmods
npx agentmods add skills/josh-e-s/awesome-pexip-skills/signals-pattern

Made for: Claude Code.

Or install pexip, the plugin that ships this one along with the rest of its 17 skills.

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 signals-pattern

README.md
[![agentmods](https://agentmods.dev/badge/skills/josh-e-s/awesome-pexip-skills/signals-pattern/github.svg)](https://agentmods.dev/skills/josh-e-s/awesome-pexip-skills/signals-pattern)
Your own site
<a href="https://agentmods.dev/skills/josh-e-s/awesome-pexip-skills/signals-pattern"><img src="https://agentmods.dev/badge/skills/josh-e-s/awesome-pexip-skills/signals-pattern/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 signals-pattern

Your own site · 80×15
<a href="https://agentmods.dev/skills/josh-e-s/awesome-pexip-skills/signals-pattern"><img src="https://agentmods.dev/badge/skills/josh-e-s/awesome-pexip-skills/signals-pattern.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,939 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.00085 $0.01939
Opus 5 $0.00043 $0.00970
Sonnet 5 $0.00017 $0.00388
Haiku 4.5 $0.00009 $0.00194

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

Security

Grade A, and why

signals-pattern 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 10d 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.

skills/signals-pattern/SKILL.md · 192 lines

How it starts

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

Pexip signals pattern

Pexip's webapp3 doesn't store SDK state in React. It uses @pexip/signal — a typed pub/sub primitive — as the spine connecting @pexip/infinity, @pexip/media, and the UI. Service modules emit signals, components subscribe. This is why webapp3 stays responsive during reconnect, transfer, and noisy event streams.

If you're building on @pexip/infinity and reaching for useState to mirror SDK state, stop and read this first.

Why signals, not React state

Problem with React state for SDK data Signal solution
SDK fires events faster than React renders → dropped updates Signals dispatch synchronously; observers see every event
Many components need the same SDK data → prop drilling or context churn Any component subscribes directly to the same signal
State diffs cause cascading re-renders during transfer/reconnect Signals fire only on emit; subscribers decide what to re-render
Batched events (participant joins) flood React batched signal variant collects in a buffer, fires once per scheduler tick

Webapp3 has 10 signal hubs organized by domain. The UI is a thin layer of useEffect(() => signal.add(handler), []) subscriptions.

The four signal variants

import {createSignal} from '@pexip/signal';

// 1. Generic — fire-and-forget. Subscribe AFTER an emit and you miss it.
const onChatMessage = createSignal<ChatMessage>({name: 'meeting:chatMessage'});

// 2. Behavior — replays the latest value to every new subscriber. Use for "current state".
const networkStateSignal = createSignal<NetworkState>({
    name: 'meeting:networkState',
    variant: 'behavior',
});

// 3. Replay — buffer last N values, replay them to new subscribers.
const recentTranscripts = createSignal<Transcript>({
    name: 'meeting:transcripts',
    variant: 'replay',
    bufferSize: 10,
});

// 4. Batched — collect events in a buffer, fire as an array on a scheduler tick.
//    Webapp3 uses this for participant activity (joins/leaves can flood).
const participantActivitySignal = createSignal<ParticipantActivity>({
    name: 'meeting:participantActivity',
    variant: 'batched',
    schedule: task => setTimeout(task, 100),
    bufferSize: 50,
    emitImmediatelyWhenFull: true,
});

Read the full file on GitHub · 192 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. 10d ago First seen · 192 lines · 85 tokens per session scan A d6cd3eab646d

Subscribe to this mod's changes

signals-pattern is a skill published in the GitHub repository Josh-E-S/awesome-pexip-skills (1 stars, last pushed 3mo ago), licensed MIT. It adds 85 tokens to every session and 1,939 once invoked, about $0.0004 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-31.

Related

Other skills, from other repositories

copilotkit-upgrade

Use when migrating a CopilotKit v1 application to v2 -- updating package imports, replacing deprecated hooks and components, switching from GraphQL runtime to AG-UI protocol runtime, and resolving breaking API changes.

CopilotKit/CopilotKit · 48 tokens

nextjs-pages-router

Set up tRPC in Next.js Pages Router with createNextApiHandler, createTRPCNext, withTRPC HOC, SSR via ssr option and ssrPrepass, SSG via createServerSideHelpers with getStaticProps, and server-side helpers for getServerSideProps prefetching.

trpc/trpc · 67 tokens

with-tanstack-query

Compose Angular Query with signal-owned Table filtering, sorting, and pagination state using reactive query options, manual row-model boundaries, direct query data, server counts, and valid injection context.

TanStack/table · 42 tokens

auth-web-cloudbase

CloudBase Web Authentication Quick Guide for frontend integration after auth-tool has already been checked. Provides concise and practical Web authentication solutions with multiple login methods and complete user management.

TencentCloudBase/CloudBase-AI-Toolkit · 38 tokens

service-digital-engagement-channel-configure

Configures and deploys enhanced chat Messaging Channels for Messaging for In-App and Web (MIAW). Use when the user needs to create, deploy, and activate a messaging channel configured with Omni-Channel Flow, Omni-Channel Queue, User, or Agentforce Service Agent routing. Generates MessagingChannel metadata, deploys it…

forcedotcom/sf-skills · 173 tokens

om-system-extension

Extend installed Open Mercato modules through UMES enrichers, interceptors, mutation guards, widgets, menus, entity extensions, events, component/page replacements, and overrides. Use for "extend core", "add field/column/action", "hide page", "intercept API", "UMES", or "rozszerz moduł".

open-mercato/open-mercato · 73 tokens