# iii-architecture-patterns

This skill maps backend requirements to iii architecture patterns, from queued workflows to event-driven designs. Use it when a task spans more than one function or trigger.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 4000 installs · ★ 18863
- Author: iii-hq
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/iii-hq/iii/tree/HEAD/skills/iii-architecture-patterns/SKILL.md
- Updated: 2026-10-25
- HTML: https://affpapa.org/en/nevibecode/skills/iii-architecture-patterns

## What it does

The skill shows how to combine iii functions, triggers, workers, state, queues, streams, and pub/sub around a chosen architecture. Its examples cover workflows with step tracking, state-driven updates, and side effects that react to function calls or failures.

Other patterns include agent handoffs through named queues, event-based CQRS, and synchronous composition of small functions. Code samples use TypeScript, Python, and Rust. Observer activations run without waiting for completion; when a side effect needs retries, the target function must enqueue that work.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add iii-hq/iii --skill iii-architecture-patterns -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/iii-architecture-patterns/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/iii-architecture-patterns/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add iii-hq/iii --skill iii-architecture-patterns -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/iii-architecture-patterns/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add iii-hq/iii --skill iii-architecture-patterns -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/iii-architecture-patterns/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install iii-hq/iii iii-architecture-patterns
```

2. **Manually: put the files in place**
- File: `.github/skills/iii-architecture-patterns/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add iii-hq/iii --skill iii-architecture-patterns -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/iii-hq/iii --path skills/iii-architecture-patterns
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/iii-architecture-patterns/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add iii-hq/iii --skill iii-architecture-patterns -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/iii-hq/iii/tree/HEAD/skills/iii-architecture-patterns/SKILL.md

## When to use it
- chain workflow steps through named queues
- track progress across workflow stages
- push updates when state changes
- record audit events after a function call
- hand tasks from one AI agent to another

## Example prompts
- Design an iii workflow with retries and progress tracking across its steps.
- Add an audit side effect after `orders::create` without changing that function.
- Show how to pass work between agents using a named queue.

## Similar
- [mcp-builder](https://affpapa.org/en/nevibecode/skills/mcp-builder.md) — skill · 130949 installs
- [claude-api](https://affpapa.org/en/nevibecode/skills/claude-api.md) — skill · 74198 installs
- [lark-im](https://affpapa.org/en/nevibecode/skills/lark-im.md) — skill · 472900 installs
- [lark-event](https://affpapa.org/en/nevibecode/skills/lark-event.md) — skill · 466800 installs
- [caveman-discover](https://affpapa.org/en/nevibecode/skills/caveman-discover.md) — skill · 104400 installs
- [migration](https://affpapa.org/en/nevibecode/skills/migration.md) — skill · 103900 installs

From the same set: [iii-hq/iii](https://affpapa.org/en/nevibecode/by/iii-hq/iii.md) — 6 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
