Skip to content
Back to skills

Creating Workers

ASecurity

{/* Note: move this up */} The iii registry at [workers.iii.dev](https://workers.iii.dev/) is where published workers live. Other iii projects declare them in `worker-compose.yaml` or add them with `compose::add`. `worker-compose.yaml` is the Compose project manifest. It lists the workers one project runs. `iii.worker.yaml` is the manifest of one worker. See [Compose](../using-iii/compose#worker-composeyaml) for the project manifest fields.

  • 18,978 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 3, 2026
developmentjavascriptpythonjavashellnoderailsdockergitapi

Works with

  • api

Security analysis

A100/100

Pro scans all 21 files and shows the line behind each finding

Scanned November 16, 2026

npx -y skills add iii-hq/iii --skill creating-workers --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Creating Workers?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Creating Workers
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/iii-hq-creating-workers-694c6805/badge)](https://www.skillsdirectory.com/skills/iii-hq-creating-workers-694c6805)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
<!-- generated by iii-skill-render. DO NOT EDIT (changes here are overwritten on the next render). Edit docs/next/creating-workers/workers-registry.mdx. -->

# Registry


{/* Note: move this up */}

The iii registry at [workers.iii.dev](https://workers.iii.dev/) is where published workers live.
Other iii projects declare them in `worker-compose.yaml` or add them with `compose::add`.

`worker-compose.yaml` is the Compose project manifest. It lists the workers one project runs.
`iii.worker.yaml` is the manifest of one worker. See
[Compose](../using-iii/compose#worker-composeyaml) for the project manifest fields.

## Publish a worker

Publishing a worker uploads its binary or OCI image to the registry, records its semver version, and
makes the worker installable by name from any iii project.

{/* TODO: capture the registry's canonical publish API, authentication requirements, and expected metadata (description, repo URL, supported platforms, etc.). */}

## Version your worker

Workers in the registry follow semver. Patch bumps for bug fixes, minor bumps for additive
capability, major bumps for breaking changes to function or trigger signatures.

{/* TODO: document how versions are tagged in the worker repo (git tag pattern), how the publish command resolves the version, and how to publish pre-releases. */}

## Build binary artifacts for multiple platforms

Binary workers can publish artifacts for multiple platform targets in a single registry entry (macOS
arm64/x64, Linux arm64/x64/armv7, Windows arm64/x64/x86). One published version covers every
supported host without separate publications per platform.

{/* TODO: document the cross-build flow, the supported target triples, how the artifacts are signed/checksummed, and where they're uploaded. */}

## Update or remove a published worker

{/* TODO: cover how to publish a new version (semver bump + republish), how to deprecate a worker, and whether/how a published version can be retracted (yanked). */}

## Bundling workers (tar.gz archives)

Bundle workers are a third artifact kind alongside `binary` and `image`. The registry serves a
single `tar.gz` archive that contains the worker's bundled source plus an `iii.worker.yaml` manifest
at the archive root. Compose downloads it, verifies its SHA-256 checksum, extracts it into the
daemon's versioned package cache, and runs it through the libkrun rails without a host-side source
watcher.

Use a bundle when:

- You ship a pre-built JavaScript bundle (`esbuild`, `tsdown`, `bun build`) or a packaged Python
  worker and don't want to publish a Docker image.
- You want artifacts measured in KB, not MB. Only the bundled source travels in the archive; the
  runtime ships with the engine-allowlisted base image (`docker.io/iiidev/node:latest` or
  `docker.io/iiidev/python:latest`).
- You want installation to look identical to other supported registry workers from the user's
  perspective (`iii trigger --namespace dev compose::add worker=my-worker`).

### Registry response shape

```json
{
  "type": "bundle",
  "name": "my-worker",
  "version": "1.2.0",
  "archive_url": "https://cdn.workers.iii.dev/my-worker/1.2.0/bundle.tar.gz",
  "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
}
```

Compose GETs `archive_url`, streams the bytes through a SHA-256 hasher, and compares against
`sha256`. A mismatch, an HTTP error, an unexpected content type, or an oversized download aborts the
install with `W142` and deletes the downloaded blob immediately.

### Archive layout

The archive root MUST contain `iii.worker.yaml`. Anything else sits at runtime-discoverable paths
from the bundle's perspective.

```text
my-worker-1.2.0.tar.gz
├── iii.worker.yaml
├── bundle.js
└── assets/
    └── ...
```

### Manifest contract (`iii.worker.yaml`)

Bundle manifests use a strict subset of the local-worker manifest. Three fields are explicitly
**rejected** with `W180 BundleManifestRejected`:

- `scripts.setup`: would execute publisher-supplied shell during install (a supply-chain smuggling
  vector).
- `scripts.install`: same reason. Vendor dependencies into the bundle instead.
- `runtime.base_image`: would let a bundle pull an arbitrary OCI image as its rootfs. Bundles use
  the engine-allowlisted base image instead.

Required fields:

- `name`: must equal the registry package name without an `@version` suffix. For example, use
  `my-worker` for both `worker=my-worker` and `worker=my-worker@1.2.0`.
- `scripts.start`: a non-empty shell string. The engine `exec`s this inside the sandbox VM. Example:
  `node bundle.js`, `python -m worker`, `bun run bundle.js`.

Optional fields (clamped against engine caps, with a `W182 BundleResourceClamped` warning when the
request exceeds the cap):

- `resources.cpus`: defaults to `2`, clamped to `4`.
- `resources.memory`: defaults to `2048` MiB, clamped to `4096` MiB.

A dependency graph deeper than 5 levels or wider than 32 transitive workers is rejected with
`W183`.

```yaml
name: my-worker
version: 1.2.0
scripts:
  start: node bundle.js
resources:
  cpus: 2
  memory: 2048
```

### Archive safety policy

Bundle archives are extracted with tighter limits than OCI layers:

| Limit                   | Value              |
| ----------------------- | ------------------ |
| Total uncompressed size | 64 MiB             |
| Largest single file     | 32 MiB             |
| Maximum entry count     | 1024               |
| Maximum directory depth | 16                 |
| Allowed tar entry types | Regular, Directory |

Archives containing symlinks, hard links, character devices, FIFOs, or paths with `..` components
are rejected with `W181 BundleArchiveUnsafe`.

{/* TODO: document the registry publish flow, storage layout, and recommended bundler configurations for Node/Bun/Python. */}

Files in this skill

  • channels.mdx9.6 KB
  • channels.mdx.skill.md9.6 KB
  • functions.mdx15.6 KB
  • functions.mdx.skill.md15.6 KB
  • http.mdx4.8 KB
  • http.mdx.skill.md4.8 KB
  • index.mdx2.6 KB
  • index.mdx.skill.md2.6 KB
  • observability.mdx5.4 KB
  • observability.mdx.skill.md5.4 KB
  • queues.mdx13.2 KB
  • queues.mdx.skill.md13.2 KB
  • sandboxes.mdx5 KB
  • sandboxes.mdx.skill.md5 KB
  • triggers.mdx18.2 KB
  • triggers.mdx.skill.md18.2 KB
  • worker-manager.mdx14.2 KB
  • worker-manager.mdx.skill.md14.2 KB
  • worker-manifest.mdx6.1 KB
  • worker-manifest.mdx.skill.md6.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.