iii-hq avatar

Iii Core Primitives

This is the foundational layer for building workers and wiring up functions in iii. You'll use it when registering local handlers or wrapping external HTTP endpoints, binding triggers like cron or pubsub to those functions, and choosing whether to call things synchronously, fire and forget, or enqueue for reliable processing. The primitives are consistent across TypeScript, Python, and Rust, with the same double-colon naming for function IDs and the same trigger shapes. Most developers will interact with this once when scaffolding a worker, then rely on higher-level capability workers from the registry for databases, queues, and observability. If you're authoring custom trigger types or need fine-grained control over invocation modes, this is where you'll spend time.

skills.sh installs
4.7K
GitHub stars
18.9K
last updated
Aug 21, 2026

Install

$ npx -y skills add iii-hq/iii --skill iii-core-primitives --agent claude-code

Installs into .claude/skills of the current project.

Files

Core Primitives

iii has three primitives:

  • Worker: a process that connects to the engine, registers functions, and calls them
  • Function: a named unit of work such as orders::validate; any worker runs it with call
  • Observer: iii.observe(a, b): when a runs, b runs

Everything is reactive. An HTTP request, a cron tick, a queue message, and a state change are each a call of a source function (http::on-request, cron::on-tick, queue::on-message, state::on-changed), so observing that function is how work starts on the event. See iii-observe.

Use :: in function IDs, leading slashes in HTTP path args, and expression for cron args.

Function Registration

Register local handlers when you control the implementation. To call an existing external endpoint, register a handler that makes the HTTP call. HTTP-invoked functions (HttpInvocationConfig, iii-http-functions) are deprecated and will be removed in an upcoming release.

Sponsors

Details

Repository
github.com/iii-hq/iii
Categories
Backend & APIs, Python, Rust
First seen
Jul 14, 2026

More from iii-hq/iii

All 30
1dotnet avatarcode-testing-agentdotnet/skillsMANDATORY ENTRY POINT for generating or writing tests. Invoke this skill before editing files whenever the user asks to generate tests, write/add unit tests, sc4.7Kskills.sh installs
2gracefullight avataryahoo-financegracefullight/stock-checkerGet stock prices, quotes, fundamentals, earnings, options, dividends, and analyst ratings using Yahoo Finance. Uses yfinance library - no API key required.4.7Kskills.sh installs
3grafana avatarapp-observabilitygrafana/skillsGet RED metrics + service maps + frontend RUM + AI/LLM monitoring out of Grafana Cloud — Application Observability (`traces_spanmetrics_*` from OTel traces, p504.7Kskills.sh installs
4mvanhorn avatarpp-flight-goatmvanhorn/printing-press-libraryPrinting Press CLI for Flight Goat. Search real Google Flights fares, cheapest dates, Kayak routes, and FlySoar price checks with no API key — plus optional Fli4.7Kskills.sh installs
5agents365-ai avatarexcalidrawagents365-ai/365-skillsUse when user requests diagrams, flowcharts, architecture charts, or visualizations. Also use proactively when explaining systems with 3+ components, complex da4.7Kskills.sh installs
6github avatarazure-pricinggithub/awesome-copilotFetches real-time Azure retail pricing using the Azure Retail Prices API (prices.azure.com) and estimates Copilot Studio agent credit consumption. Use when the 4.7Kskills.sh installs