iii
できること
このスキルは、iii ランタイムの仕組みと、関数やトリガーを提供するワーカーの書き方を説明します。既に存在するものを確認することから始めて、iii システムに機能を追加したい開発者向けです。
使う場面
- ✓iii システムに新しい機能を追加したいとき。
- ✓コードを書く前に、関数が既に登録されているかを知りたいとき。
- ✓エンジンを通じて関数を呼び出したり提供したりするワーカーが必要なとき。
スキルのリンク
https://github.com/iii-hq/iii/blob/main/engine/src/workers/engine_fn/skills/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“iii システムに 2 つの数字を足す関数を追加し、別のワーカーからそれを呼び出す方法を見せてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
スキルは、まずエンジンにその機能が既にあるかを確認し、次に公開レジストリを検索し、それから初めて新しいワーカーを作ります。ワーカーはエンジンに接続して関数を登録し、他のワーカーはエンジンを通してそれを呼び出します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)を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
よくある質問
ワーカー同士は直接呼び合いますか?
いいえ。すべての呼び出しはエンジンを通るため、ワーカーの言語と場所は呼び出し元からは見えません。
新しい関数には再起動が必要ですか?
いいえ。新しい関数は、そのワーカーが接続するとすぐに呼び出せます。
エンジンは既定でどのポートを使いますか?
通常はポート 49134 で待ち受けます。
詳細
作者による元の説明
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
人気
- GitHubのスター
- 19k
- ランキング
- #10487
- ライセンス
- —
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
iii-sandbox
19k信頼できないコードや AI が生成したコードを、一時的に隔離された仮想マシンの中で安全に実行し、終わったら破棄するよう、エージェントを支援します。
configuration
19kスキーマで検証された、名前付きの設定値の共有レジストリを設定し、ワーカーが変更を読んで反応できるよう、エージェントを支援します。
iii-observability
19kOpenTelemetry を使って、何が起きているかを見られるよう、iii エンジンにトレース、構造化ログ、メトリクス、アラートを追加するよう、エージェントを支援します。
iii-stream
19kライブのデータフィード向けの iii-stream ワーカーを説明します。このワーカーは非推奨で、今後のリリースで削除されるため、移行を計画してください。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。