the workflow library
social-repurpose
one post rewritten for three channels, in parallel. This file carries a real recorded trace — the home page replays it, beat for beat, from the run record.
- 5tasksthe plan below walks them
- 3wavesrun together when they can
- invoke · inferverbsthe whole grammar it speaks
- recordeda real runthe trace is the proof
the plan
derived from the file, never drawn by handpostinvoke
threadinferlinkedininfernewsletterinfer
bundleinvoke
the file, whole
social-repurpose.nika.yamlsocial-repurpose.nika.yaml
nika: v1workflow: id: social-repurpose# local model · your draft never leavesmodel: ollama/llama3.2:3b# the file IS the blast radiuspermits: fs: { read: [ ./post.md ], write: [ ./social-bundle.md ] } tools: [ "nika:read", "nika:write" ]tasks: # one read · three parallel rewrites · one merge post: invoke: { tool: "nika:read", args: { path: ./post.md } } thread: with: post: ${{ tasks.post.output }} infer: { prompt: "Turn this post into a 6-tweet thread, keep the voice: ${{ with.post }}", max_tokens: 400 } linkedin: with: post: ${{ tasks.post.output }} infer: { prompt: "Rewrite this post for LinkedIn, hook first: ${{ with.post }}", max_tokens: 400 } newsletter: with: post: ${{ tasks.post.output }} infer: { prompt: "Write a 3-sentence newsletter blurb for this post: ${{ with.post }}", max_tokens: 300 } bundle: with: thread: ${{ tasks.thread.output }} linkedin: ${{ tasks.linkedin.output }} newsletter: ${{ tasks.newsletter.output }} invoke: tool: "nika:write" args: path: ./social-bundle.md content: "${{ with.thread }}\n\n---\n\n${{ with.linkedin }}\n\n---\n\n${{ with.newsletter }}"outputs: bundle: "${{ tasks.bundle.output }}"lines 32–36: with: three parallel rewrites, one merge. Source: the served copy · byte-pinned to the recorded trace by the honesty suite · open it in the playground →
Watch the recorded one replay on the home page, walk the showcase gallery, or install and run the file yourself.