swirls-lang
Installation
SKILL.md
Swirls Language
Comprehensive guide for authoring .swirls workflow files. Covers the full DSL: file structure, graph declarations, all 13 node types, TypeScript / JSON / SQL embedded blocks, the context object, resources, triggers, top-level stream blocks, reviews, failure policies, and known parser pitfalls.
When to Apply
- Writing new
.swirlsfiles from scratch. - Adding nodes, graphs, streams, or triggers to existing
.swirlsfiles. - Debugging parse errors or validation failures from
swirls doctor. - Writing
@tsblocks (TypeScript code in nodes). - Defining JSON Schemas for inputs, outputs, forms, and webhooks.
- Connecting graphs to forms, webhooks, or schedules via triggers.
- Persisting graph output with top-level
stream { }blocks and reading it withtype: streamnodes. - Configuring human-in-the-loop review blocks.
- Declaring external Postgres databases and writing parameterized SQL nodes.