मुख्य सामग्री पर जाएँ
Skillpedia
सामान्य कोडिंग19k · #10492

iii-core-primitives

यह क्या करती है

यह स्किल iii के मूल बिल्डिंग ब्लॉक्स समझाती है: functions, triggers और workers, और हर एक को रजिस्टर करने का तरीका। यह उन डेवलपरों के लिए है जो TypeScript, Python या Rust में iii सिस्टम के लिए कोड लिख रहे हैं।

कब इस्तेमाल करें

  • ✓जब आपको नया function रजिस्टर करना हो या उसे trigger से जोड़ना हो।
  • ✓जब आप चाहते हों कि एक function किसी दूसरे function की कॉल के बाद चले।
  • ✓जब आप देखना चाहते हों कि कौन-से workers और functions अभी जुड़े हैं।

Skill का लिंक

https://github.com/iii-hq/iii/blob/main/skills/iii-core-primitives/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/iii-hq/iii/blob/main/skills/iii-core-primitives/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“TypeScript में orders::validate नाम का function रजिस्टर कीजिए, जो हर नए ऑर्डर के आने पर चले।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

स्किल दिखाती है कि एक function को handler के साथ रजिस्टर करके उसे किसी event स्रोत से जोड़ा जाए, जैसे schedule या queue। यह observers भी कवर करती है, जो किसी function के कॉल होने के बाद लक्ष्य function चलाते हैं, और यह भी कि functions सीधे या पृष्ठभूमि में कैसे कॉल करें।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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 * * *
अक्सर पूछे जाने वाले सवाल

observer क्या है?

observer किसी दूसरे function की हर कॉल के बाद एक लक्ष्य function चलाता है, उस function को बदले बिना।

function IDs किस फ़ॉर्मेट में होते हैं?

वे double colons का इस्तेमाल करते हैं, जैसे orders::validate।

क्या यह registry से workers इंस्टॉल कर सकती है?

हाँ। स्किल सार्वजनिक registry से workers इंस्टॉल करने को कवर करती है।

जानकारी

लेखक का मूल विवरण

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

लोकप्रियता

GitHub स्टार
19k
रैंकिंग में स्थान
#10492
लाइसेंस
—
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

iii-sandbox

19k

आपके एजेंट को अविश्वसनीय या AI से बने कोड को एक अस्थायी, अलग-थलग virtual machine के भीतर सुरक्षित रूप से चलाने में मदद करती है, और काम खत्म होने पर उसे हटा देती है।

कोडिंगसामान्य कोडिंग

configuration

19k

आपके एजेंट को नामित कॉन्फ़िगरेशन मानों की एक साझा रजिस्ट्री सेट करने देती है, जिसे schema से जाँचा जाता है, ताकि workers बदलावों को पढ़ सकें और उन पर प्रतिक्रिया दे सकें।

कोडिंगAPI और सर्वर (backend)

iii

19k

आपके एजेंट को iii workers कैसे काम करते हैं यह सिखाती है, ताकि वह पहले मौजूदा चीज़ें जाँचकर, फिर worker बनाकर कोई क्षमता जोड़ सके।

कोडिंगसामान्य कोडिंग

iii-observability

19k

आपके एजेंट को iii engine में tracing, संरचित logs, metrics और alerts जोड़ने में मदद करती है, OpenTelemetry इस्तेमाल करके ताकि आप देख सकें कि क्या हो रहा है।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

मिलती-जुलती skills