iii
What it does
Explains how the iii runtime works and how to write workers that offer functions and triggers. It is for developers who want to add a capability to an iii system, starting by checking what already exists.
When to use it
- βWhen you want to add a new capability to an iii system.
- βWhen you want to know whether a function is already registered before writing code.
- βWhen you need a worker that calls or offers functions through the engine.
Skill link
https://github.com/iii-hq/iii/blob/main/engine/src/workers/engine_fn/skills/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βAdd a function to my iii system that adds two numbers, and show me how to call it from another worker.β
5 new skills a week. 1 minute to read.
How it works
The skill first checks whether the capability already exists in the engine, then searches the public registry, and only then builds a new worker. A worker connects to the engine and registers its functions, which other workers call through the engine.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
iii
iii is a language-agnostic runtime where services, agents, and tools are composed of the same things: workers, triggers, and functions. One engine process (default port 49134) holds a live registry of every connected worker, every function those workers expose, and every trigger bound to them. Workers are independent OS processes that open a WebSocket to the engine and register Functions (service::name handlers) and Triggers (the events that invoke those Functions). There is no direct worker-to-worker traffic β every call routes through the engine, which makes the language, runtime, and physical location of any worker invisible to its callers.
When to Use
Use this skill to discover live iii capabilities, call functions, author SDK workers, bind trigger types, or operate project workers through Compose.
You extend yourself by writing iii workers. A few lines get you on the bus:
import { registerWorker } from 'iii-sdk'
const iii = registerWorker(process.env.III_ENGINE_URL!, { workerName: 'demo' })
iii.registerFunction('demo::add', async (payload: { a: number; b: number }) => {
return { c: payload.a + payload.b }
})
The instant the handshake completes, demo::add is callable from any worker (and the harness itself) via iii.trigger({ function_id: 'demo::add', payload: { a: 2, b: 3 } }). No restart, no registration with the harness β the engine routes it automatically.
The four primitives
| Primitive | What it is | Owned by |
|---|---|---|
| Engine | One coordinator process. Routes every invocation. | The operator |
| Worker | A process that opens a WebSocket to the engine. | Anyone who writes one |
| Function | A named handler inside a worker, id service::name. Stable across worker restarts. |
The registering worker |
| Trigger | A (type, config, function_id) triple. Causes a function to run when an event fires. |
A worker (the type-publisher) + a caller (the binding) |
Three consequences worth internalising:
- No worker-to-worker traffic. Every call is
worker β engine β worker. Workers never address each other directly. Location and language are invisible. - No restart coordination. Restarting a worker is invisible to callers as long as it re-registers the same function ids. Two workers registering the same function id = automatic load-balance.
- No polling unless you opt in. Triggers are the engine's push channel. The engine fans events out to bound functions when the underlying source fires.
The function id is the only contract between any two workers.
graph TD
Harness["harness (LLM worker)"] <-->|"WS"| Engine["iii engine :49134 (registry + router)"]
Engine <-->|"WS"| WorkerA["your authored worker my::fn"]
Engine <-->|"WS"| WorkerB["installed registry worker"]
Engine <-->|"WS"| Provider["trigger-type provider"]
External["external event (request, timer, queue, ...)"] -->|"native protocol"| Provider
Every edge to the engine is a WebSocket. A trigger-type provider terminates some native protocol β an inbound request, a timer, a queue message β and translates it into engine traffic.
Need a capability? Discover before you build β in this order
The most common harness mistake is reimplementing something that already exists, or hardwiring one worker out of habit. Work the steps in order; stop at the first that satisfies the need.
1. Look at what is already registered in the engine. The capability may be one call away.
// engine::functions::list β every function on this engine, across all workers.
// Filter with { prefix: 'svc::' } or { search: 'resize' }.
// engine::workers::list β every connected worker.
If a registered function fits, just call it: iii.trigger({ function_id, payload }).
2. Search the public registry. If nothing registered fits, look for a worker to install. This goes through the iii-directory worker:
// directory::registry::workers::list { search: 'image resize' }
// β published workers matching the query.
// directory::registry::workers::info { name: '<worker>' }
// β that worker's README, config keys, API reference, and skills.
When one fits, add it through the project's Compose daemon:
iii trigger -n <compose-namespace> compose::add worker=<worker>
iii-directory is itself a registry worker, so confirm it is connected before calling directory::*:
// engine::functions::list { prefix: 'directory::' }
// β empty? ad
FAQ
Do workers call each other directly?
No. Every call goes through the engine, so a worker's language and location stay hidden from its callers.
Does a new function need a restart?
No. A new function can be called as soon as its worker connects.
Which port does the engine use by default?
The engine usually listens on port 49134.
Details
Original description by the author
How iii works and the iii-sdk surface for authoring workers, triggers, and functions. Teaches the ordered way to gain a capability before writing code β (1) check functions already registered in the engine, (2) search the public registry via iii-directory, (3) build a worker. Single self-contained skill β meant for system-prompt injection; do not re-fetch.
repo: iii-hq/iii
Popularity
- GitHub stars
- 19k
- Ranking position
- #10487
- License
- β
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
iii-sandbox
19kHelps your agent run untrusted or AI-generated code safely inside a temporary isolated virtual machine, then discard it when finished.
configuration
19kLets your agent set up a shared registry of named configuration values, checked against a schema, so workers can read and react to changes.
iii-observability
19kHelps your agent add tracing, structured logs, metrics and alerts to an iii engine, using OpenTelemetry so you can see what is happening.
iii-stream
19kExplains the iii-stream worker for live data feeds. It is deprecated and will be removed in an upcoming release, so plan a move off it.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.