# SLOT:
marker at every decision point. The path from intent to a correct file
is mechanical: route β copy β fill slots β nika check β repair β
re-check.
Route by intent
| Your intent sounds like⦠| Template | What it locks in |
|---|---|---|
| Β« take data, produce words, save them Β» | chain | deterministic gather Β· one model job Β· explicit persist |
| Β« watch X, act when Y Β» | gate-and-act | jq extraction Β· CEL skip-gate Β· often zero model calls |
| Β« do this for EVERY item Β» | fanout | runtime collection Β· the full leash (max_parallel Β· fail_fast Β· retry) |
| Β« only what changed since last run Β» | etl-state | state readβdiffβwrite Β· on_error: recover: quarantine |
| Β« research / review / open-ended Β» | agent-loop | plan-then-execute Β· default-deny tools Β· budgets Β· typed final message |
| Β« anything irreversible (deploy Β· send Β· publish) Β» | human-gated-ship | parallel gates Β· assert Β· nika:prompt GO Β· on_finally record |
The YAML below is projected verbatim from
nika-spec/templates/
(the source of truth, validated by the conformance runner) β these
copies cannot drift.chain
The default shape for Β« take real data, produce words, save them Β».chain.nika.yaml
gate-and-act
Watch something, act only when a condition holds β often zero model calls.gate-and-act.nika.yaml
fanout
The same work for every item of a runtime collection, fully leashed.fanout.nika.yaml
etl-state
Incremental runs: only what changed since last time, survive bad input.etl-state.nika.yaml
agent-loop
Open-ended work: plan with a fast model, execute with a budgeted agent, validate the typed result. Never ship an unleashed agent.agent-loop.nika.yaml
human-gated-ship
Anything irreversible: parallel gates, a hard assert, a human GO, and anon_finally record whatever happens.
human-gated-ship.nika.yaml
The instantiation protocol
Route
Pick the template whose intent row matches β never free-form a
workflow when a template routes.
See also
Writing Nika as an agent
The deterministic protocol these templates anchor.
Patterns
The 8 composition patterns the templates lock in.
Examples
20 full tiered workflows built from these shapes.
Templates source
The skeletons in the spec repo, conformance-gated.