iii-core-primitives
O que ela faz
Explica os blocos básicos do iii: funções, gatilhos e workers, e como registrar cada um. Ela é para desenvolvedores que escrevem código para um sistema iii em TypeScript, Python ou Rust.
Quando usar
- ✓Quando você precisa registrar uma nova função ou vincular um gatilho a ela.
- ✓Quando você quer que uma função seja executada depois que outra função é chamada.
- ✓Quando você quer ver quais workers e funções estão conectados no momento.
Link da skill
https://github.com/iii-hq/iii/blob/main/skills/iii-core-primitives/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Registre uma função chamada orders::validate em TypeScript e faça com que ela rode sempre que um novo pedido chegar.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A skill mostra como registrar uma função com um manipulador e vinculá-la a uma fonte de eventos, como um agendamento ou uma fila. Também cobre os observadores, que executam uma função alvo depois que outra função é invocada, e como chamar funções diretamente ou em segundo plano.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
Core Primitives
iii has three top-level primitives:
- Function: a named unit of work such as
orders::validate - Trigger: an event source bound to a function
- Worker: a process that connects to the engine and executes functions
Since 0.25 every function is also observable: iii.observe(source, target) invokes target
on each invocation of source that passes its filters. Observers replace trigger bindings over
time; the built-in providers (http, cron, queue, state, stream, pub/sub, database) still
use trigger types in 0.25, so keep registerTrigger for them. See iii-observe.
Use :: in function IDs, leading slashes in HTTP api_path, and expression for cron config.
Function Registration
Register local handlers when you control the implementation. Register HTTP-invoked functions when iii should call an existing external endpoint.
| Shape | Use for |
|---|---|
registerFunction(id, handler, options?) |
Local worker code |
registerFunction(id, HttpInvocationConfig, options?) |
Existing HTTP services |
registerTrigger({ type, function_id, config, metadata? }) |
Binding a built-in event source (deprecated in 0.25, still required for providers that have not migrated) |
observe({ function_id, args?, filters? }, target, options?) |
Running target after another function's invocations, or on an engine event (iii-observe) |
trigger({ function_id, payload, action?, timeout? }) |
Calling any function by ID |
Functions and triggers can carry metadata for ownership, discovery, and generated skills. Do not put secrets in metadata.
Workers and Registry
A worker is any process that connects to the engine and registers functions or trigger types. There are two common paths:
| Task | Use |
|---|---|
| Create your own worker | Write SDK code that calls registerWorker, registerFunction, and registerTrigger or observe |
| Add an existing capability | Browse https://workers.iii.dev/, then call compose::add worker=<name> |
| Pin a worker version | compose::add worker=<name>@<version> |
| Declare a local worker | Add worker: path://./workers/my-worker under containers: |
| Reproduce a project | Commit the exact versions in worker-compose.yaml |
The public worker registry at workers.iii.dev is for installable workers such as HTTP, state,
queue, pub/sub, cron, database, shell, console, rbac-proxy, and other capability workers.
(iii-sandbox and iii-observability are engine-owned and are not added through the registry.) Those workers may ship their own function-level skills; do not duplicate every capability
as a top-level iii skill.
Worker Manifest
Use iii.worker.yaml when iii should start a local worker project:
name: math-worker
runtime:
kind: python
package_manager: pip
entry: math_worker.py
scripts:
install: "pip install -r requirements.txt"
start: "python math_worker.py"
The manifest describes how to start the process. Once running, the WebSocket connection and function registrations are what make the worker part of iii.
Live Engine Registry
The engine keeps a live registry of connected workers, registered functions, triggers, and trigger types. Read it through the built-in discovery functions:
| Function | Returns |
|---|---|
engine::workers::list |
Connected workers and metrics |
engine::functions::list |
Registered functions |
engine::triggers::list |
Registered triggers |
engine::trigger-types::list |
Advertised trigger types and schemas |
engine::observers::list |
Observers you may see (function_id, namespace, worker filters) |
For topology changes, observe the engine-hosted sources engine::on-workers-changed or
engine::on-functions-changed with deliver: 'input' (see iii-observe). The older
engine::workers-available and engine::functions-available trigger types still fire.
Built-In Trigger Shapes
The workers behind these types have not moved to source functions in 0.25, so bind them with
registerTrigger. Each call logs a one-time deprecation warning per process; it is informational
and the binding works as before. For log, the engine also hosts the observability::on-log
source (iii-observe).
| Trigger type | Registration config | Handler payload |
|---|---|---|
http |
{ api_path: "/orders/:id", http_method: "POST" } |
{ query_params, path_params, headers, path, method, body } |
cron |
`{ expression: "0 0 9 * * * |
Perguntas frequentes
O que é um observador?
Um observador executa uma função alvo após cada chamada a outra função, sem alterar essa função.
Que formato os IDs de função usam?
Usam dois-pontos duplos, como orders::validate.
Ela consegue instalar workers de um registro?
Sim. A skill cobre a instalação de workers do registro público.
Detalhes
Descrição original do autor
Use when registering iii functions, binding triggers, observing functions, selecting sync/void/enqueue invocation, creating workers, inspecting the live worker registry, installing registry workers, authoring event sources, moving channel data, or adapting external HTTP functions across TypeScript, Python, and Rust.
repo: iii-hq/iii
Popularidade
- Estrelas no GitHub
- 19 mil
- Posição no ranking
- #10492
- Licença
- —
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
iii-sandbox
19 milAjuda seu agente a executar código não confiável ou gerado por IA com segurança, dentro de uma máquina virtual temporária e isolada, descartando-a ao terminar.
configuration
19 milPermite que seu agente configure um registro compartilhado de valores de configuração nomeados, verificados contra um esquema, para que os workers leiam e reajam às mudanças.
iii
19 milEnsina seu agente como os workers do iii funcionam, para que ele possa adicionar uma capacidade verificando primeiro o que já existe e depois construindo um worker.
iii-observability
19 milAjuda seu agente a adicionar rastreamento, logs estruturados, métricas e alertas a um motor iii, usando o OpenTelemetry para que você veja o que está acontecendo.
Skills parecidas
diffs
394 milPermite que seu agente gere um diff real e compartilhável das edições, como link de visualização ou arquivo de imagem, em vez de um resumo escrito à mão.
coding-agent
394 milAjuda seu agente a passar um trabalho grande de programação para o Codex, Claude Code ou OpenCode em segundo plano e acompanhar o andamento.
gh-issues
394 milAjuda seu agente a encontrar issues do GitHub, escolher quais resolver e abrir pull requests com correções, acompanhando os comentários de revisão.