iii-core-primitives
Ce qu’il fait
Ce skill explique les briques de base de iii : les fonctions, les déclencheurs et les workers, et la façon d'enregistrer chacun d'eux. Il s'adresse aux développeurs qui écrivent du code pour un système iii en TypeScript, Python ou Rust.
Quand l’utiliser
- ✓Quand vous devez enregistrer une nouvelle fonction ou y rattacher un déclencheur.
- ✓Quand vous voulez qu'une fonction s'exécute après l'appel d'une autre fonction.
- ✓Quand vous voulez voir quels workers et quelles fonctions sont actuellement connectés.
Lien du skill
https://github.com/iii-hq/iii/blob/main/skills/iii-core-primitives/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Peux-tu enregistrer une fonction appelée orders::validate en TypeScript, pour qu'elle s'exécute à chaque nouvelle commande ?”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
Le skill montre comment enregistrer une fonction avec un gestionnaire et la rattacher à une source d'événements, comme une planification ou une file. Il couvre aussi les observateurs, qui exécutent une fonction cible après l'appel d'une autre fonction, ainsi que les appels directs ou en arrière-plan.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis 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 * * * |
Questions fréquentes
Qu'est-ce qu'un observateur ?
Un observateur exécute une fonction cible après chaque appel d'une autre fonction, sans la modifier.
Quel format les identifiants de fonction utilisent-ils ?
Ils utilisent le double deux-points, par exemple orders::validate.
Peut-il installer des workers depuis un registre ?
Oui. Le skill couvre l'installation de workers depuis le registre public.
Détails
Description originale de l’auteur
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
Popularité
- Étoiles GitHub
- 19k
- Position au classement
- #10492
- Licence
- —
- Mis à jour
- 02/11/2026
Commentaires
- …
Autres skills de ce dépôt
iii-sandbox
19kAide votre agent à exécuter du code non fiable ou généré par une IA en toute sécurité, dans une machine virtuelle temporaire et isolée, puis à la supprimer une fois le travail terminé.
configuration
19kPermet à votre agent de mettre en place un registre partagé de valeurs de configuration nommées, vérifiées par un schéma, pour que les workers puissent les lire et réagir aux changements.
iii
19kApprend à votre agent comment fonctionnent les workers iii, pour qu'il puisse ajouter une capacité en vérifiant d'abord ce qui existe déjà, puis en construisant un worker.
iii-observability
19kAide votre agent à ajouter du traçage, des journaux structurés, des métriques et des alertes à un moteur iii, à l'aide d'OpenTelemetry, pour voir ce qui se passe.
Skills similaires
diffs
394kPermet à votre agent de produire un diff réel et partageable de vos modifications, sous forme de lien ou d'image, plutôt qu'un résumé écrit à la main.
coding-agent
394kAide votre agent à confier une tâche de programmation plus importante à Codex, Claude Code ou OpenCode comme travailleur en arrière-plan, puis à suivre sa progression.
gh-issues
394kAide votre agent à trouver des tickets GitHub, choisir ceux à traiter et ouvrir des pull requests avec des correctifs, y compris le suivi des commentaires de relecture.