본문으로 건너뛰기
Skillpedia
일반 코딩19k · #10487

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/iii-hq/iii/blob/main/engine/src/workers/engine_fn/skills/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 iii 시스템에 두 수를 더하는 함수를 추가하고, 다른 워커에서 그것을 호출하는 방법을 보여 주세요.”

매주 새 스킬 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:

  1. No worker-to-worker traffic. Every call is worker → engine → worker. Workers never address each other directly. Location and language are invisible.
  2. 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.
  3. 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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬