원클릭으로
variant-selection-example
Template variant chosen at render time from an item field (component_type). Demonstrates FR-019 variant resolution.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Template variant chosen at render time from an item field (component_type). Demonstrates FR-019 variant resolution.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Smallest possible workflow skill — two phases joined by one auto transition.
Multi-phase linear workflow — the agent narrates each phase to the user as it advances.
Build a directed graph of nodes; the core `acyclic` invariant gates the terminal advance.
One question, one phase, interview.complete gates the transition. Demonstrates FR-022, FR-023, FR-024 happy path.
Question bank exercising every supported answer type — text, list<text>, enum, bool, int — with minItems and required flags. Demonstrates FR-022, FR-023 validation paths.
Two-phase workflow with followUpIf re-surfacing a question downstream. Demonstrates FR-024-AC-8 advisory channel.
| name | variant-selection-example |
| description | Template variant chosen at render time from an item field (component_type). Demonstrates FR-019 variant resolution. |
| contributes | {"workflows":"./workflows"} |
The agent adds a component item that declares component_type. The
template's variant field is templates/${item.component_type}, so
the renderer reads from templates/fastapi-service/spec.md or
templates/react-lib/spec.md depending on the recorded item. When no
matching variant ships, the template falls back to templates/default/.
Run:
ix-flow run --path <this-dir> --jsonix-flow add-item <id> component '{"id":"c1","component_type":"fastapi-service"}' --jsonix-flow advance <id> rendered --jsonRe-create with a different component_type to see the other variant
selected.