gorango/flowcraft/compiler-workflows
Claude Code and agent skill by gorango/flowcraft
- community
Checking that the SKILL.md file is still in the repository.
Write workflows using imperative TypeScript with the Flowcraft Compiler. Covers @flow and @step annotations, control flow patterns, subflows, configuration, and build tool integration. Use when the user mentions the compiler, imperative workflows, @flow, @step, or wants to write workflows without manually constructing graphs.
Install
npx vskill@latest install gorango/flowcraft/compiler-workflowsSKILL.md
Compiler Workflows (Alpha)
Flowcraft's compiler transforms imperative TypeScript into declarative blueprints at build time. Write familiar async functions with control flow — the compiler generates the graph.
[!WARNING]The compiler is in alpha. Contributions are welcome.
Quick start
Installation
Write a workflow
Execute
The Golden Rules
- Mark orchestrators with `/ @flow \/`\\* — Functions that define workflow orchestration
- Mark durable operations with `/ @step \/`\\* — Async operations that should be retried/tracked
- Never await plain async functions — The compiler errors if you await a non-
@stepfunction
Supported Control Flow
| Pattern | Syntax | Compiles to | |
|---|---|---|---|
| Sequential | await stepA(); await stepB() | Linear nodes with edges | |
| Conditional | if/else with @step calls | Conditional edges with actions | |
| Switch | switch(val) { case ... } with @step calls | Conditional multi-branch | |
| Loops | for/while/do-while with @step calls | Loop controller node | |
| Fallbacks | try/catch/finally with @step calls | Fallback/finally node routing | |
| Parallelism | Promise.all([...]), Promise.allSettled([...]), Promise.race([...]) | Fan-out/fan-in with join | |
| Subflows | await otherFlow(input) | Subflow node |
Configuration
Create flowcraft.config.ts:
Build Tool Integration
Compilation happens automatically with plugins:
Available plugins: Vite, Next.js, Nuxt, Astro, esbuild, tsup.
Unsupported Syntax
- Complex variable re-assignments within loops
- Dynamic function calls or
eval - Generator functions or async generators
- Class methods as steps (use standalone functions)
Runtime compilation (compileCode)
For testing, REPL environments, or low-frequency runtime configuration, use compileCode() to compile raw TypeScript strings into blueprints:
Note:compileCode()writes temporary files and spins up a full compiler instance per call. For production, always use pre-compiled builds viacompileProject()or framework plugins.
Advanced topics
- Authoring detailed patterns: See authoring-guide.md
- Configuration options: See configuration.md
Security
- Security scanPassed, 93 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/llm/skills/compiler-workflows/SKILL.md
Popularity
- Repository stars
- 199
- Repository forks
- 13
- 7-day trend score
- 26
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/gorango/flowcraft/compiler-workflows)