npx skills add ...
npx skills add iii-hq/iii --skill iii-engine-config
Configure a managed iii engine through worker-compose.yaml or a directly supervised engine through config.yaml. Use for engine ports, RBAC listeners, streams, sandboxes, and configuration storage.
npx skills add iii-hq/iii --skill iii-engine-config
iii has two engine configuration modes. Do not mix them.
The presence of engine: means that Compose owns the engine process. Engine worker values are
direct mappings; there is no nested config: field.
Start it with:
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-sandboxUse #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:
Keep list-shaped config.yaml only when systemd, Kubernetes, or another supervisor owns the
engine:
Start the engine and external Compose daemon separately:
The external Compose file must omit engine:. III_URL may replace --engine. Direct config
expansion uses ${VAR:default} and accepts only the same five engine-owned worker types. Any
project worker stops startup/reload with UNSUPPORTED_CONFIG_WORKERS.
127.0.0.1.middleware_function_id and RBAC registration hooks.compose::status for process ownership and engine::workers::list for live connections.compose::add never edits engine: or restarts the engine.engine: maps, direct config.yaml, engine-owned workers, ports,
adapters, RBAC listeners, or engine lifecycle selection.config.yaml or iii worker.iii-core-primitives.iii compose --namespace orders-daemon --up --file worker-compose.yamliii trigger -n orders-daemon compose::add worker=stateworkers:
- name: configuration
config:
adapter:
name: fs
config:
directory: ./config
- name: iii-worker-manager
config:
host: 127.0.0.1
port: 49134iii --config config.yaml
iii compose --namespace orders-daemon --engine ws://127.0.0.1:49134 --up --file worker-compose.yaml