Back to Skills

iii-architecture-patterns

Use when composing iii primitives into backend architectures: durable workflows, reactive backends, agentic pipelines, event-driven CQRS, effect pipelines, and trigger-transform-action automation.

18,593stars1,244forksUpdated 8/17/2026

Security Assessment

Safe(93/100)
Security Score93/100

About iii-architecture-patterns

This skill guides an agent in composing iii's backend primitives into complete architectures when a task is larger than a single function or trigger. It solves the problem of mapping a product requirement to the right backend shape by offering a pattern map: durable workflows, reactive backends, agentic pipelines, event-driven CQRS, effect pipelines, and low-code trigger-transform-action automation. Each pattern is expressed in terms of iii's Function, Trigger, Worker, state, queues, streams, and pub/sub building blocks.

For each pattern it provides concrete implementations. Durable workflows chain functions through named queues with progress tracked in state, shown in TypeScript, Python, and Rust. Reactive backends use state triggers plus stream or pub/sub side effects to push live updates and avoid polling. Agentic backends model each agent as a single-responsibility function handing off work through named queues with shared context in state. Event-driven CQRS has command functions publish domain events that independent projection triggers consume. Selection rules explain when to use synchronous composition, enqueue for reliable must-complete steps, pub/sub for fan-out, state triggers for derived views, and cron for scheduled work, while keeping each function independently testable. Boundary notes point to sibling skills for exact trigger config, engine config, and SDK reference.

The target users are backend developers building on the iii platform who need to design workflows, agentic systems, reactive apps, CQRS, effect pipelines, or automation chains across TypeScript, Python, and Rust. Use cases arise when a request describes product behavior rather than a single SDK call.

FAQ

When should I use this skill?

When the task is larger than one function or trigger — designing complete iii backend patterns such as durable workflows, reactive backends, agentic systems, event-driven CQRS, effect pipelines, or automation chains.

Which languages are supported?

The patterns include implementations in TypeScript, Python, and Rust using the iii SDK's Function, Trigger, and Worker primitives.

How do I choose between invocation modes?

Use synchronous composition when the caller needs the final result, enqueue for unreliable or must-complete steps that need retries and queue policy, pub/sub for independent fan-out, state triggers for derived views and automatic post-write side effects, and cron for scheduled work.

What is the difference between the durable workflow and CQRS patterns?

A durable workflow chains functions through named queues with per-step progress in state; event-driven CQRS has command functions publish domain events that independent projection triggers consume to build query-optimized state.

Where do I find exact trigger and SDK syntax?

The skill defers to sibling skills: iii-core-primitives for trigger config and function registration, iii-engine-config for queue and worker config, and iii-sdk-reference for package-specific SDK syntax.

Install iii-architecture-patterns

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill

Repository

iii-hq/iii