configuration
Qué hace
Guarda valores de configuración con nombre con un esquema que comprueba cada uno, para que los workers de tu sistema lean los mismos ajustes desde un único lugar. Es para desarrolladores que construyen sistemas basados en iii y necesitan ajustes compartidos y validados.
Cuándo usarla
- ✓Cuando varios workers necesitan coincidir en los mismos ajustes sin rutas de archivo fijas en el código.
- ✓Cuando quieres que un valor de configuración se compruebe contra un esquema antes de usarse.
- ✓Cuando quieres que un worker reaccione a un cambio de ajustes sin consultar cada cierto tiempo.
Link de la skill
https://github.com/iii-hq/iii/blob/main/engine/src/workers/configuration/skills/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Configura una entrada de configuración compartida para mi servicio de facturación, con un esquema que compruebe sus valores.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
Cada worker registra su esquema de configuración una vez al arrancar y después publica sus valores. Otros workers leen esos valores, y un disparador vinculado se activa cuando un valor cambia. El almacenamiento predeterminado guarda un archivo YAML por entrada.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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
Preguntas frecuentes
¿Dónde se guardan los valores?
Por defecto, cada entrada se guarda como un archivo YAML en una carpeta de configuración, que también puedes editar directamente.
¿Se puede recoger un cambio sin reiniciar?
Sí. Un disparador se activa cuando una entrada se actualiza, así que los workers pueden reaccionar sin consultar.
¿Limpia las entradas antiguas?
Solo si activas el ajuste opcional de tiempo de vida, que elimina las entradas que ya no tienen ningún suscriptor.
Detalles
Descripción original del autor
Schema-validated, reactive registry for named configuration entries — the runtime configuration surface used by engine and Compose workers.
repo: iii-hq/iii
Popularidad
- Estrellas en GitHub
- 19 mil
- Posición en el ranking
- #10486
- Licencia
- —
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
iii-sandbox
19 milAyuda a tu agente a ejecutar código no fiable o generado por IA de forma segura dentro de una máquina virtual aislada y temporal, y descartarla al terminar.
iii
19 milEnseña a tu agente cómo funcionan los workers de iii, para que pueda añadir una capacidad comprobando primero lo que ya existe y después construyendo un worker.
iii-observability
19 milAyuda a tu agente a añadir trazado, registros estructurados, métricas y alertas a un motor iii, usando OpenTelemetry para que puedas ver lo que está pasando.
iii-stream
19 milExplica el worker iii-stream para feeds de datos en vivo. Está obsoleto y se eliminará en una próxima versión, así que planifica salir de él.
Skills parecidas
api-connector-builder
280 milHace que tu agente cree nuevas conexiones de API siguiendo el patrón existente. Úsalo para añadir una integración más sin inventar otra forma de hacer las cosas.
api-design
280 milAyuda a tu agente a diseñar APIs REST según las buenas prácticas. Es útil para definir cómo se comunican las APIs, cómo se muestran los errores y cómo organizar los datos.
backend-patterns
280 milAyuda a tu agente con patrones de arquitectura del lado del servidor y optimización de bases de datos. Es útil para crear o revisar código que se ejecuta en el servidor.