Skip to content

Commit d07a52a

Browse files
authored
The patterns become visible: real capture gifs where they teach (#6)
* docs: nika gifs where they teach β€” patterns-as-code/README.md * docs: nika gifs where they teach β€” workflows/03-parallelization.md * docs: nika gifs where they teach β€” workflows/01-prompt-chaining.md * docs: nika gifs where they teach β€” README.md
1 parent 9355feb commit d07a52a

4 files changed

Lines changed: 26 additions & 0 deletions

File tree

β€ŽREADME.mdβ€Ž

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ mindmap
5555
> [!TIP]
5656
> **New in the 2026 edition** β€” [πŸ—žοΈ What Changed 2025-2026](foundations/what-changed-2026.md) (the dated map: context engineering, the multi-agent debate, the AGENTS.md Β· SKILL.md Β· MCP stack, harness engineering) and [πŸ“œ Patterns as Code](patterns-as-code/) (every pattern as a runnable file β€” checked in CI on every push, no API key needed).
5757
58+
<p align="center">
59+
<a href="patterns-as-code/"><img src="https://raw.githubusercontent.com/supernovae-st/nika/main/media/gifs/chat-to-workflow.optimized.gif" alt="A repeated chat prompt becomes a workflow file; checked before a token is spent, then a real local run β€” the patterns in this repo, as runnable files" width="850"></a>
60+
</p>
61+
<p align="center"><sub>⬆️ real capture: a repeated prompt graduates into a checked, runnable file β€” <a href="patterns-as-code/">every pattern in this repo works this way</a> Β· and <a href="patterns-as-code/real-world/">three of them run a real campaign daily</a> πŸ›°οΈ</sub></p>
62+
5863
## πŸ—ΊοΈ Navigation
5964

6065
<table>

β€Žpatterns-as-code/README.mdβ€Ž

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@ nika check patterns-as-code/02-routing.nika.yaml
4040
nika run patterns-as-code/02-routing.nika.yaml
4141
```
4242

43+
![A broken pattern file: nika check catches the DAG bug with a named finding, the three-line fix, then a clean verdict β€” before any token is spent](https://raw.githubusercontent.com/supernovae-st/nika/main/media/gifs/static-check-fix.optimized.gif)
44+
45+
*The check loop above is real terminal output from the released binary β€” the same gate CI runs on this folder.*
46+
47+
**And the file IS the DAG** β€” open any of these in VS Code ([extension](https://marketplace.visualstudio.com/items?itemName=supernovae.nika-lang)) and the YAML renders as a live graph:
48+
49+
![The same .nika.yaml file rendered as an interactive DAG canvas in VS Code β€” yaml to dag, one keystroke](https://raw.githubusercontent.com/supernovae-st/nika-vscode/main/media/dag-execution.gif)
50+
51+
4352
| Pattern | File | The pattern's essence, in file form |
4453
|---------|------|-------------------------------------|
4554
| [⛓️ Prompt Chaining](../workflows/01-prompt-chaining.md) | [`01-prompt-chaining.nika.yaml`](01-prompt-chaining.nika.yaml) | steps chained by `depends_on:` β€” `schema:` blocks ARE the 🚧 gates |

β€Žworkflows/01-prompt-chaining.mdβ€Ž

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ flowchart LR
3636

3737
---
3838

39+
**From chat to chain, for real** β€” the moment a repeated prompt becomes a chained file (then a real local run writes typed output):
40+
41+
![A repeated chat prompt becomes meeting-actions.nika.yaml: check audits the chain, then a real local run (ollama) writes typed action items](https://raw.githubusercontent.com/supernovae-st/nika/main/media/gifs/chat-to-workflow.optimized.gif)
42+
43+
*Runnable version of this pattern: [`01-prompt-chaining.nika.yaml`](../patterns-as-code/01-prompt-chaining.nika.yaml).*
44+
3945
## 🚧 Gate
4046

4147
> A checkpoint between steps that validates the output before proceeding. If validation fails, the chain exits early.

β€Žworkflows/03-parallelization.mdβ€Ž

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ flowchart LR
3535

3636
---
3737

38+
**What it looks like for real** β€” parallel waves executing in the terminal (tasks with no mutual deps run concurrently, the lanes are the fan-out):
39+
40+
![nika run executes independent tasks in parallel waves β€” live lanes, per-task timings, then the verdict](https://raw.githubusercontent.com/supernovae-st/nika/main/media/gifs/dag-execution.optimized.gif)
41+
42+
*From the runnable version of this exact pattern: [`03-parallelization.nika.yaml`](../patterns-as-code/03-parallelization.nika.yaml) β€” offline, no API key.*
43+
3844
## Key Insight
3945

4046
```

0 commit comments

Comments
Β (0)