Agent skill

Pubsub

by iii-hq in iii-hq/workers

Fire-and-forget topic pub/sub: broadcast an event with publish and every matching subscribe trigger receives it.

Apache-2.0Auto-check passedBackend & APIs

Install Pubsub

skills CLI
$ npx skills add iii-hq/workers --skill pubsub -a claude-code

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

GitHub CLI
$ gh skill install iii-hq/workers pubsub --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/iii-hq/workers.git skills-src && mkdir -p .claude/skills && cp -r skills-src/pubsub/skills .claude/skills/pubsub && 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
pubsub
GitHub stars
113
Token cost
~989 tokens
SKILL.md length
481 words
Files
1
Skills in repo
19
Repo updated
First seen
Licence
Apache-2.0

At a glance

Fire-and-forget topic pub/sub: broadcast an event with publish and every matching subscribe trigger receives it.

  • Works in 2 steps: Register a handler:… → Register the trigger
  • Real-time notifications where missed events are acceptable
  • SKILL.md covers When to Use, Boundaries, Functions and Reactive triggers
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Pubsub is an agent skill from iii-hq/workers. Fire-and-forget topic pub/sub: broadcast an event with publish and every matching subscribe trigger receives it. Use for real-time notifications where missed events are acceptable.

Its SKILL.md is about 990 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 Backend & APIs, covering Event-driven systems. It works with Redis. The licence is Apache-2.0.

When your agent uses it

  • Real-time notifications where missed events are acceptable
  • Tasks that involve Event-driven systems

Example prompts

  • “/pubsub”

Workflow steps

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

  1. Register a handler: iii.registerFunction('notifications::on-order-shipped', handler).
  2. Register the trigger

What it can do on your machine

Read from SKILL.md and the folder at commit 72ae6ab. 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 (its code samples are typescript).

    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 no API keys, tokens, secrets or passwords.

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

Context cost

Pubsub loads about 989 tokens when it runs. Until then it costs about 48 tokens; SKILL.md has 481 words of instructions outside code blocks.

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

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 iii-hq/workers at commit 72ae6ab, republished under its Apache-2.0 licence (© iii-hq). 481 words, ~989 tokens.

Download SKILL.mdSave it as .claude/skills/pubsub/SKILL.md (or your agent's skills folder).
name
pubsub
description
Fire-and-forget topic pub/sub: broadcast an event with `publish` and every matching `subscribe` trigger receives it. Use for real-time notifications where missed events are acceptable.
tags
pubsub, publish, subscribe, events, redis

pubsub

The pubsub worker is topic-based publish/subscribe messaging. Publish an event to a named topic with the publish function and every registered subscribe trigger whose topic matches is invoked with the raw payload — no envelope, no persistence, no retries. It is fire-and-forget broadcast: subscribers receive each event as it arrives, and a subscriber that is offline simply misses it.

Install it with iii trigger compose::add worker=pubsub. It replaces the former in-engine pub/sub service: the trigger type (subscribe) and the function id (publish) are unchanged, so existing application code keeps working — only the owner moved from an in-process builtin to this standalone worker.

The worker exposes one callable function (publish, registered with the bare function id "publish" — no namespace prefix) and one trigger type (subscribe). Two adapters: local (default; in-memory broadcast; only delivers to subscribers in this engine process; no external dependency) and redis (redis_url: ${REDIS_URL:redis://localhost:6379}; uses Redis Pub/Sub so events propagate across multiple engine instances). The adapter is set in the pubsub configuration entry and hot-swaps at runtime.

When to Use

  • Real-time notifications consumers may miss without consequence — UI live updates, ephemeral signals, telemetry mirroring.
  • Loose coupling where an event source should not know about its consumers.
  • Cross-instance fan-out of ephemeral events (configure the redis adapter).

Boundaries

  • No persistence, ordering, or retries — a subscriber that is down misses events permanently. Use the queue worker (topic mode, durable:subscriber) when every consumer must process every event.
  • Topic matching is exact string equality; there are no wildcards or hierarchical patterns. Register one trigger per topic.
  • An empty topic is rejected: publish returns topic_not_set, and a subscribe trigger registered with an empty topic never fires.
  • For key/value or stream change reactivity, use the state or stream worker instead — pubsub carries discrete events, not state.
Show full SKILL.md (191 more words)Show less

Functions

  • publish — broadcast an event to a topic; every subscribe trigger on that exact topic receives the raw data. Empty topic returns topic_not_set.

Reactive triggers

Bind a subscribe trigger when a function should run every time publish broadcasts to a configured topic. The handler receives the raw data value from the publish call directly — no envelope. Multiple triggers can subscribe to the same topic; each gets an independent copy (true fan-out).

Reach for it when:

  • A domain event from one part of the system should kick off side effects elsewhere without the publisher knowing the consumers.
  • You want cross-instance fan-out via the redis adapter.

If subscribers must reliably process every event with retries and dead-letter handling, use the queue worker's durable:subscriber instead — subscribe is fire-and-forget.

How to bind
  1. Register a handler: iii.registerFunction('notifications::on-order-shipped', handler).
  2. Register the trigger:
typescript
iii.registerTrigger({
  type: 'subscribe',
  function_id: 'notifications::on-order-shipped',
  config: {
    topic: 'orders.shipped',  // required, non-empty. Exact match only — no wildcards.
  },
})

The handler receives the published data unchanged, with no topic field; if one handler serves multiple topics, embed the topic inside data at publish time. The handler's return value is ignored and there is no retry.

For the published payload shape, call iii get function info on publish or the handler function id.

© iii-hq, Apache-2.0. 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 pubsub/skills of iii-hq/workers.

Open the folder on GitHubat commit 72ae6ab

Compare with similar skills

Pubsub 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.

Pubsub compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Pubsub this skilliii-hq/workers113—~989Automated safety check: PassApache-2.0
Stripe Projectsfossasia/eventyay1.7k5 repos~2kAutomated safety check: NotesApache-2.0
FoundatioFoundatioFx/Foundatio2.1k—~3.9kAutomated safety check: PassApache-2.0
Create Environmentgodatadriven/whirl205—~1.9kAutomated safety check: PassApache-2.0
Cb Realtime APIBlkLeg/CircuitBreaker201—~1.7kAutomated safety check: PassMIT
Monstermq Graphql Configvogler75/monster-mq143—~2.3kAutomated safety check: PassGPL-3.0

Similar skills

  • Stripe Projects

    fossasia/eventyay

    A skill your agent uses when the user wants to provision infrastructure or third-party services using Stripe Projects.

    1.7k GitHub starsUsed in 5 repos~2k tokens
    Backend & APIsAuto-check: notes
  • Foundatio

    FoundatioFx/Foundatio

    A skill your agent uses when working with Foundatio infrastructure abstractions for .NET -- caching, queuing, messaging, file storage, distributed locking, or background jobs.

    2.1k GitHub stars~3.9k tokensUpdated today
    Backend & APIsAuto-check passed
  • Create Environment

    godatadriven/whirl

    Create a new Whirl environment in the envs/ directory. An agent skill from godatadriven/whirl.

    205 GitHub stars~1.9k tokensUpdated 7 days ago
    Backend & APIsAuto-check passed
  • Cb Realtime API

    BlkLeg/CircuitBreaker

    How Circuit Breaker moves data between backend and frontend — the NATS internal bus, Redis pub/sub, the WebSocket stream endpoints and their first-message JWT handshake, SSE log/event streams, and…

    201 GitHub stars~1.7k tokensUpdated 3 days ago
    Backend & APIsAuto-check passed
  • Monstermq Graphql Config

    vogler75/monster-mq

    Guide for configuring, managing, and mutating MonsterMQ settings, devices, flows, AI agents, users, loggers, archive groups, topic schemas, and publishing messages via the GraphQL API.

    143 GitHub stars~2.3k tokensUpdated 2 days ago
    Backend & APIsAuto-check passed
  • Agent Signal Pipeline

    lobehub/lobehub

    Guides building event-driven background work for LobeHub agents, with sources, signals, actions, policies, workflow handoff and deduplication.

    83k GitHub stars~1.7k tokensUpdated today
    Backend & APIsAuto-check passed

More from iii-hq/workers

All 19 skills in this repo
  • Cron

    iii-hq/workers

    Schedule any registered function on a 6- or 7-field cron expression with the standalone cron worker.

    113 GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Email

    iii-hq/workers

    Send and read email from the iii engine — SMTP send, IMAP read, and real-time IDLE push as a subscribable trigger type.

    113 GitHub stars~2.1k tokensUpdated today
    Auto-check passed
  • HTTP

    iii-hq/workers

    Expose registered functions as HTTP endpoints with the standalone http worker.

    113 GitHub stars~1.3k tokensUpdated today
    Auto-check passed
  • Kanban

    iii-hq/workers

    File-backed kanban board: create, read, move and comment on tickets by key or uuid, assign agent profiles, and wake on comments through the kanban:comment trigger instead of polling.

    113 GitHub stars~1.3k tokensUpdated today
    Auto-check passed
  • Release Sync

    iii-hq/workers

    Organize worker release tags into Linear release waves — one team document plus one release/<date label per same-day batch of worker releases, with shipped MOT issues labeled and linked.

    113 GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • State

    iii-hq/workers

    Shared, adapter-backed key/value store addressed by scope and key, with a reactive state trigger so other functions can run on every create, update, or delete without polling.

    113 GitHub stars~1.1k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Pubsub

What does Pubsub do?

Fire-and-forget topic pub/sub: broadcast an event with publish and every matching subscribe trigger receives it. Pubsub is an agent skill from iii-hq/workers. Fire-and-forget topic pub/sub: broadcast an event with publish and every matching subscribe trigger receives it.

When should I use Pubsub?

Pubsub fits situations like: real-time notifications where missed events are acceptable; tasks that involve Event-driven systems.

How do I install Pubsub in Claude Code?

Run `npx skills add iii-hq/workers --skill pubsub -a claude-code`. Or copy the skill folder (pubsub/skills in iii-hq/workers) into .claude/skills/pubsub in your project. Claude Code loads it when a task matches its description.

How do I install Pubsub in Codex?

Run `npx skills add iii-hq/workers --skill pubsub -a codex`. Or copy the skill folder (pubsub/skills in iii-hq/workers) into .agents/skills/pubsub in your project. Codex loads it when a task matches its description.

Can I use Pubsub 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 iii-hq/workers --skill pubsub -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pubsub, .gemini/skills/pubsub, .github/skills/pubsub and .opencode/skills/pubsub in your project.

What does Pubsub need to run?

SKILL.md names no scripts, command-line tools or credentials: Pubsub is instructions for the agent only.

Does Pubsub 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 Pubsub 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 Pubsub use?

Pubsub is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Pubsub use?

About 989 tokens (SKILL.md is roughly 4k 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 Pubsub?

Skills that share tags, products or a category with Pubsub: Stripe Projects (fossasia/eventyay, 1.7k stars), Foundatio (FoundatioFx/Foundatio, 2.1k stars), Create Environment (godatadriven/whirl, 205 stars) and Cb Realtime API (BlkLeg/CircuitBreaker, 201 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Pubsub?

iii-hq (a GitHub organization) maintains it in iii-hq/workers, which has 113 GitHub stars. The repository holds 19 skills in this directory. The repository was last updated on October 8, 2026.

Source: iii-hq/workers on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.