본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)19k · #10486

configuration

하는 일

이 스킬은 스키마로 각 값을 검사하는 이름 있는 설정 값을 저장해서, 시스템의 워커들이 같은 설정을 한 곳에서 읽도록 합니다. 검증된 공유 설정이 필요한 iii 기반 시스템 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓여러 워커가 하드코딩된 파일 경로 없이 같은 설정에 합의해야 할 때.
  • ✓설정 값을 사용하기 전에 스키마로 검사하고 싶을 때.
  • ✓폴링하지 않고 설정 변경에 워커가 반응하게 하고 싶은 경우.

스킬 링크

https://github.com/iii-hq/iii/blob/main/engine/src/workers/configuration/skills/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/iii-hq/iii/blob/main/engine/src/workers/configuration/skills/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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 state worker for free-form values.
  • No partial-update surface; set always replaces the whole value. Build the new value client-side and ship it in one call.
  • The bridge adapter cannot delete entries on the remote engine; cleanup over the bridge happens via TTL or directly on the source engine.
  • Over the bridge adapter, configuration::ensure is decided by the remote engine (the original candidate is forwarded there), so it requires a remote engine that exposes configuration::ensure; against an older remote it fails closed with ADAPTER_ERROR rather than falling back to an unsafe register.
  • 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 파일 하나로 저장되며, 직접 편집할 수도 있습니다.

재시작 없이 변경을 알 수 있나요?

예. 항목이 업데이트되면 트리거가 실행되므로, 워커는 폴링하지 않고 반응할 수 있습니다.

오래된 항목을 정리하나요?

선택 사항인 TTL(유효 기간) 설정을 켠 경우에만 구독자가 없는 항목을 제거합니다.

상세 정보

작성자의 원본 설명

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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬