configuration
できること
このスキルは、各値をチェックするスキーマとともに、名前付きの設定値を保存し、システム内のワーカーが同じ設定を一か所から読めるようにします。共有された検証済みの設定が必要な iii ベースのシステムを構築する開発者向けです。
使う場面
- ✓複数のワーカーが、ハードコードされたファイルパスなしで同じ設定に合意する必要があるとき。
- ✓設定値を、使う前にスキーマに照らして確認したいとき。
- ✓ポーリングせずに、ワーカーが設定の変更に反応してほしいとき。
スキルのリンク
https://github.com/iii-hq/iii/blob/main/engine/src/workers/configuration/skills/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“請求サービス用の共有設定エントリを、その値を確認するスキーマとともに設定してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
各ワーカーは、起動時に設定スキーマを一度登録し、そのあと値を公開します。他のワーカーはその値を読み、値が変わるとバインドされたトリガーが発火します。既定のストレージは、エントリごとに一つの YAML ファイルを保持します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
configuration
The configuration worker is a server-side registry of named entries. Every entry has an id (e.g. iii-stream, billing-service), a human-readable name and description, a JSON Schema describing the value shape, and a JSON value validated against that schema. Workers call configuration::register once at startup to declare their schema and configuration::set to publish values; consumers call configuration::get / configuration::list to read and bind a configuration trigger to react to changes without polling.
The default fs adapter persists one YAML file per id under ./config and watches the directory for external edits, so manual edits surface as configuration:updated events. The bridge adapter delegates to a remote engine. The worker is engine-owned and may be configured at engine.workers.configuration.
A per-id TTL (off by default) cleans up entries whose last subscriber trigger has unregistered, scoped to the lifecycle of ephemeral workers that come and go without an explicit teardown step.
When to Use
- A worker needs a typed, observable configuration surface other workers can read and validate against.
- Two workers need to agree on the same configuration values without one polling the other or hardcoding a path on disk.
- An operator should be able to edit a single YAML file (or the remote control plane) and have the change propagate to every subscriber without a worker restart.
- A worker comes and goes (sandboxes, ephemeral consumers) and its configuration should be cleaned up automatically when no one is left subscribing.
Boundaries
- Not a general-purpose key/value store — every entry must have a registered JSON Schema. Use the standalone
stateworker for free-form values. - No partial-update surface;
setalways replaces the whole value. Build the new value client-side and ship it in one call. - The
bridgeadapter cannot delete entries on the remote engine; cleanup over the bridge happens via TTL or directly on the source engine. - Over the
bridgeadapter,configuration::ensureis decided by the remote engine (the original candidate is forwarded there), so it requires a remote engine that exposesconfiguration::ensure; against an older remote it fails closed withADAPTER_ERRORrather than falling back to an unsaferegister. - Schemas are not version-checked across re-registrations — re-registering with an incompatible schema simply replaces it. Coordinate schema migrations out-of-band.
Migration and runtime overrides
Compose defaults to <namespace>-<container-key> without a hash (for example,
default-harness). Invalid or over-64-character generated names require explicit config_name.
Compose migrates only the exact previous namespace/key hash before starting a stopped worker.
After hashed migration, only the default namespace adopts the exact bare container key,
unless another container explicitly owns it. The bare source wins over an existing destination;
configuration::migrate is the single operation, delegated through bridges to the authority.
It returns { action, entry } with migrated, preserved (existing destination with absent
source, or matching IDs with an existing entry), or missing (both source and destination absent).
Before migration, Compose and every bridge hop query the read-only
configuration::migration-capabilities and require source_priority_archive_revision: 1.
Unknown or unavailable capabilities fail closed before invoking migration; upgrade the authority.
It replaces the destination with the raw source entry, then archives the original source as
<source>.yaml.bak. The previous destination is not backed up. .yaml.bak, .bak.yaml, and
.bkup.yaml files are ignored during loading, watching and legacy directory migration.
An existing identical backup permits cleanup recovery; a conflicting backup is never overwritten.
Missing source is a no-write no-op. Unsupported adapters fail closed.
Stop source consumers before migrating; do not share an fs directory between engine processes.
config_override is delivered through the existing service API. Compose reads the
current configuration with configuration::get (raw: true), merges defaults and
overrides, then calls configuration::set with flush: false before starting the
worker. No snapshot file is delivered. III_CONFIG_NAME identifies the entry.
Memory-only updates never write persistent config/<id>.yaml, and no delayed flush
is sched
よくある質問
値はどこに保存されますか?
既定では、各エントリは設定フォルダー内の一つの YAML ファイルとして保存され、直接編集することもできます。
再起動せずに変更を拾えますか?
はい。エントリが更新されるとトリガーが発火するため、ワーカーはポーリングせずに反応できます。
古いエントリを整理しますか?
任意の有効期限の設定をオンにした場合のみです。購読者がもういないエントリを削除します。
詳細
作者による元の説明
Schema-validated, reactive registry for named configuration entries — the runtime configuration surface used by engine and Compose workers.
repo: iii-hq/iii
人気
- GitHubのスター
- 19k
- ランキング
- #10486
- ライセンス
- —
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
iii-sandbox
19k信頼できないコードや AI が生成したコードを、一時的に隔離された仮想マシンの中で安全に実行し、終わったら破棄するよう、エージェントを支援します。
iii
19kiii のワーカーの仕組みを教えます。エージェントは、まず既に存在するものを確認し、そのあとワーカーを作ることで、機能を追加できます。
iii-observability
19kOpenTelemetry を使って、何が起きているかを見られるよう、iii エンジンにトレース、構造化ログ、メトリクス、アラートを追加するよう、エージェントを支援します。
iii-stream
19kライブのデータフィード向けの iii-stream ワーカーを説明します。このワーカーは非推奨で、今後のリリースで削除されるため、移行を計画してください。
似ているスキル
api-connector-builder
280kエージェントが既存のパターンに従って、新しいAPI連携を構築します。新しい方式を作らずに、もう一つ連携を追加したいときに使います。
api-design
280kエージェントがベストプラクティスに沿ってREST APIを設計できるようにします。APIの通信方法、エラーの表示方法、データの整理方法を決めるのに役立ちます。
backend-patterns
280kエージェントのサーバーサイドのアーキテクチャパターンとデータベースの最適化を支援します。サーバー上で動くコードを作成またはレビューするときに役立ちます。