iii-engine-config
できること
管理されたプロジェクトファイルまたは直接実行される設定ファイルのどちらかで、iiiエンジンを構成する方法を説明します。自前でiiiエンジンを動かし、ポートや設定を正しく設定する必要がある開発者向けです。
使う場面
- ✓エンジンのポートや待ち受けアドレスを変更したいとき。
- ✓エンジンのアクセスルールやストリーム設定を行いたいとき。
- ✓管理モードと直接設定モードのどちらを使うべきか迷っているとき。
スキルのリンク
https://github.com/iii-hq/iii/blob/main/skills/iii-engine-config/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“iiiエンジンをポート49134で設定し、構成ストアと、ポート3112のストリームリスナーを用意してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このスキルは2つの設定モードを説明し、両者を混在させないよう警告します。管理モードでは、エンジンの設定がプロジェクトファイル内の1つのセクションにまとめられ、そのセクションを変更した後はComposeの再起動が必要です。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Engine Config
iii has two engine configuration modes. Do not mix them.
Managed Compose engine
The presence of engine: means that Compose owns the engine process. Engine worker values are
direct mappings; there is no nested config: field.
namespace: orders
engine:
url: ws://127.0.0.1:49134
registration_namespace_grace_ms: 5000
workers:
configuration:
adapter:
name: fs
config:
directory: ./config
iii-worker-manager:
host: 127.0.0.1
port: 49134
iii-http-functions: {}
iii-stream:
host: 127.0.0.1
port: 3112
iii-sandbox:
auto_install: true
containers: {}
Start it with:
iii compose --namespace orders-daemon --up --file worker-compose.yaml
engine.url defaults to ws://127.0.0.1:49134 and uses Compose's ${VAR:-default} expansion.
engine.workers stays opaque until the engine reads the generated YAML, so its values use
${VAR:default} and retain numeric types. Compose materializes an owner-only config under
<project-dir>/.iii/compose/<daemon-namespace>/ and removes it after clean shutdown. With
III_COMPOSE_STATE_DIR, it uses <state-root>/<project-slug>/<daemon-namespace>/. Changing engine:
requires restarting Compose. Do not combine a managed file with explicit --engine.
Allowed engine worker base names are:
configurationiii-worker-manageriii-http-functionsiii-streamiii-sandbox
Use #instance for another instance of an allowed worker. iii-engine-functions,
iii-telemetry, and iii-observability are injected automatically and must not be declared.
HTTP, cron, queue, state, pubsub, bridge, application, and custom workers belong under
containers:. Add registry packages with:
iii trigger -n orders-daemon compose::add worker=state
Observers
Since 0.25 the engine reads an optional top-level observers: section (iii-observe explains the
model). Every key is optional; these are the defaults:
observers:
local_dispatch: true # let SDKs run a worker's own functions in-process
max_per_connection: 1024 # observers one connection may own (LIMIT_EXCEEDED)
max_per_function: 4096 # observers one function may have (LIMIT_EXCEEDED)
max_observe_depth: 8 # deeper activations are dropped (LOOP_GUARD)
observer_grace_ms: 30000 # suspended observers of a disconnected worker wait this long
disposed_retention_ms: 3600000 # a worker back after the grace period is told they were disposed
owner_ack_timeout_ms: 30000 # an unacknowledged add fails with OWNER_TIMEOUT
activation_timeout_ms: 30000 # an unanswered activation frees its slot and counts as TIMEOUT
default_max_in_flight: 64 # max_in_flight of an observer that sets none
max_queue_per_observer: 1024 # queued activations beyond max_in_flight (then OVERFLOW)
- In
config.yamlit sits next toworkers:. In a managed Compose file it goes underengine.observersand is passed through as written. - Unknown keys and zero counts or depth are rejected at load; zero timeouts only warn. Changes need an engine restart.
observers.local_dispatch: falseturns off in-process calls for every worker.- Inspect live observers with
engine::observers::list({ function_id?, namespace?, worker? })andengine::observers::get({ id })(results are filtered to functions the caller may invoke).engine::observers::dispose({ id })is allowed for the observing worker and unrestricted callers. - Metrics:
iii.observer.activations.total{function_id,delivery},iii.observer.dropped.total{function_id,reason},iii.observers{state},iii.observer.reports.total{function_id},iii.observer.activation.failures.total{function_id,reason}; locally dispatched calls are counted iniii.invocations.totalwithdispatch="local".
RBAC with rbac-proxy
Keep the engine port internal and put the rbac-proxy worker in front of it when
untrusted workers, browsers, or agents need to connect:
iii trigger -n orders-daemon compose::add worker=rbac-proxy
rbac-proxy opens its own WebSocket port, speaks the worker protocol verbatim, and at the boundary
authenticates each connection (rbac.auth_function_id), gates every invocation and trigger binding
(rbac.expose_functions, plus allowed_functions / forbidden_functions from the auth result),
namespaces a session's registrations (`function_registration_pref
よくある質問
2つの設定モードを混在させてもよいですか?
いいえ。スキルはそれを避けるよう警告しています。各モードはエンジンの設定を独自の方法で管理するためです。
エンジンの既定ポートは何番ですか?
既定のエンジンポートは49134です。
変更後に再起動が必要ですか?
はい。管理モードでエンジンのセクションを変更した場合は、Composeを再起動する必要があります。
詳細
作者による元の説明
Configure a managed iii engine through worker-compose.yaml or a directly supervised engine through config.yaml. Use for engine ports, RBAC via the rbac-proxy worker, observer limits, streams, sandboxes, and configuration storage.
repo: iii-hq/iii
人気
- GitHubのスター
- 19k
- ランキング
- #10493
- ライセンス
- —
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
iii-sandbox
19k信頼できないコードや AI が生成したコードを、一時的に隔離された仮想マシンの中で安全に実行し、終わったら破棄するよう、エージェントを支援します。
configuration
19kスキーマで検証された、名前付きの設定値の共有レジストリを設定し、ワーカーが変更を読んで反応できるよう、エージェントを支援します。
iii
19kiii のワーカーの仕組みを教えます。エージェントは、まず既に存在するものを確認し、そのあとワーカーを作ることで、機能を追加できます。
iii-observability
19kOpenTelemetry を使って、何が起きているかを見られるよう、iii エンジンにトレース、構造化ログ、メトリクス、アラートを追加するよう、エージェントを支援します。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。