
iii-trigger-actions
Selects how functions are invoked — synchronous calls that return results, fire-and-forget void dispatches, or durable enqueue through named queues with retries. Use when deciding between blocking RPC calls, background job dispatch, async workers, or reliable message delivery with acknowledgement.
- Installs
- 194
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/iii-hq/iii --skill iii-trigger-actions- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads iii-trigger-actions automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Trigger Actions
Comparable to: RPC vs message queue vs fire-and-forget patterns
Key Concepts
Use the concepts below when they fit the task. Not every invocation needs all three modes.
- Synchronous (default): caller blocks until the function returns a result or times out
- Void (
TriggerAction.Void()): fire-and-forget dispatch, returns immediately withnull, no retry guarantees - Enqueue (
TriggerAction.Enqueue({ queue })): routes through a named queue with automatic retries and backoff, returns amessageReceiptId - Decision guide: need the result? use sync. Must complete reliably? use enqueue. Optional side effect? use void.
Architecture
The caller invokes trigger() with an optional action parameter. Synchronous mode waits for the handler result. Void mode dispatches and returns null immediately. Enqueue mode places the payload on a named queue where a consumer processes it with retry guarantees.
iii Primitives Used
| Primitive | Purpose |
|---|---|
trigger({ function_id, payload }) | Synchronous invocation, blocks for result |
trigger({ ..., action: TriggerAction.Void() }) | Fire-and-forget, returns immediately with null |
trigger({ ..., action: TriggerAction.Enqueue({ queue }) }) | Durable async via named queue, returns receipt |
iii trigger --function-id=ID --payload=JSON | CLI trigger (part of the engine binary) |
--timeout-ms | CLI flag to set trigger timeout (default 30s) |
Reference Implementation
See ../references/trigger-actions.js for the full working example — a comparison of all three
Also available in Python: ../references/trigger-actions.py
Also available in Rust: ../references/trigger-actions.rs invocation modes showing when and how to use sync, void, and enqueue patterns.
Common Patterns
Code using this pattern commonly includes, when relevant:
await iii.trigger({ function_id: 'users::get', payload: { id } })— sync, get result directlyiii.trigger({ function_id: 'analytics::track', payload: event, action: TriggerAction.Void() })— fire-and-forgetiii.trigger({ function_id: 'orders::process', payload: order, action: TriggerAction.Enqueue({ queue: 'payments' }) })— durable enqueue- Sync returns the function result directly
- Void returns
null/None - Enqueue returns
{ messageReceiptId: string }for tracking iii trigger --function-id='users::get' --payload='{"id":"123"}'— invoke via CLIiii trigger --function-id='users::get' --payload='{"id":"123"}' --timeout-ms=5000— with custom timeout
Adapting This Pattern
Use the adaptations below when they apply to the task.
- Default to synchronous when the caller needs the result to proceed
- Use void for logging, analytics, or any side effect where failure is acceptable
- Use enqueue for anything that must complete reliably — payments, emails, notifications
- Combine modes in a single handler: sync call for validation, then enqueue for processing
- Named queues let you configure retries and concurrency per workload type
Pattern Boundaries
- For queue configuration (retries, concurrency, FIFO ordering), prefer
iii-engine-config. - For DLQ handling when enqueued jobs exhaust retries, prefer
iii-dead-letter-queues. - For function registration and trigger binding, prefer
iii-functions-and-triggers. - Stay with
iii-trigger-actionswhen the primary problem is choosing the right invocation mode.
When to Use
- Use this skill when the task is primarily about
iii-trigger-actionsin the iii engine. - Triggers when the request directly asks for this pattern or an equivalent implementation.
Boundaries
- Never use this skill as a generic fallback for unrelated tasks.
- You must not apply this skill when a more specific iii skill is a better fit.
- Always verify environment and safety constraints before applying examples from this skill.
FAQ
What does the iii-trigger-actions skill do?
Selects how functions are invoked — synchronous calls that return results, fire-and-forget void dispatches, or durable enqueue through named queues with retries. Use when deciding between blocking RPC calls, background job dispatch, async workers, or reliable message delivery with acknowledgement.
How do I install iii-trigger-actions?
Run npx skills add https://github.com/iii-hq/iii --skill iii-trigger-actions in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/iii-trigger-actions/ (personal) or .claude/skills/iii-trigger-actions/ (project).
Which AI agents can use iii-trigger-actions?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is iii-trigger-actions safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains iii-trigger-actions?
It is published by iii-hq/iii in iii-hq/iii. It has 194 recorded installs.
More from iii-hq/iii
iii-engine-config
iii-hq/iii
Configure a managed iii engine through worker-compose.yaml or a directly supervised engine through config.yaml. Use for engine ports, RBAC via the rbac-proxy worker, observer limits, streams, sandboxes, and configuration storage.
iii-getting-started
iii-hq/iii
Install the iii engine, set up your first worker, and get a working backend running. Use when a user wants to start a new iii project, install the SDK, or needs help with initial setup and configuration.
iii-error-handling
iii-hq/iii
Handle iii engine and SDK errors across Node, Python, Rust, and browser workers. Use when interpreting error codes, retryability, RBAC denial, timeouts, handler failures, or SDK-specific exception surfaces.
iii-architecture-patterns
iii-hq/iii
Use when composing iii primitives into backend architectures: durable workflows, reactive backends, observer side effects, agentic pipelines, event-driven CQRS, effect pipelines, and trigger-transform-action automation.
iii-sdk-reference
iii-hq/iii
Use when working with iii SDK APIs across Node.js, browser, Python, Rust, or Go: package installation, worker initialization, function/trigger registration, observers, invocation, local dispatch, channels, logging, OpenTelemetry, and language-specific caveats.
iii-core-primitives
iii-hq/iii
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.
Popular other skills
hyperframes-cli
heygen-com/hyperframes
The HyperFrames CLI by job - scaffold, check, look at frames, edit the timeline, preview, render locally or in the cloud, publish, project history - plus reading its JSON and recovering from build or render failures.
triage
mattpocock/skills
Move issues and external PRs through a state machine of triage roles, categorise, verify, grill if needed, and write agent-ready briefs.
ask-matt
mattpocock/skills
Ask which skill or flow fits your situation. A router over the skills in this repo.
to-questionnaire
mattpocock/skills
Turn a decision you can't fully answer into a questionnaire for someone else to fill in.
loop-me
mattpocock/skills
Grill me about specs for the workflows I want to build, within this workspace.