workflow-compiler

Compile visual workflow canvases into executable Google ADK Python code.

Updated Dec 22, 2025
One-click install
npx skills add https://github.com/rwxproject/agent-framework --skill workflow-compiler
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: workflow-compiler
Source: https://github.com/rwxproject/agent-framework/tree/main/.claude/skills/workflow-compiler
Command: npx skills add https://github.com/rwxproject/agent-framework --skill workflow-compiler

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill converts a visual workflow canvas into executable Google ADK Python code, enabling rapid deployment of agent pipelines without manual hand-coding.

Core Features & Use Cases

  • Code generation: Translates nodes and edges into LlmAgent, SequentialAgent, ParallelAgent, LoopAgent definitions.
  • Validation & consistency: Ensures the generated code reflects the canvas structure with correct root, unique outputs, and reachable nodes.
  • Use Case: Design a workflow in the Canvas and generate a complete Python module you can run with your ADK environment.

Quick Start

Example: Convert a visual workflow named "DataPipeline" into a Python file named data_pipeline.py containing the generated ADK classes and root_agent.

Frequently Asked Questions about workflow-compiler

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert a visual workflow into executable Python code?

Convert visual workflows into executable Python code by compiling your WorkflowCanvas design through this Skill. It translates node graphs—including LLM, sequential, parallel, loop, and conditional nodes—into corresponding Google ADK Python agents, generating a complete runnable module with a root export.

What validation does the workflow compiler perform?

The compiler validates root agent references, ensures all nodes are reachable, permits cycles only within loop nodes, and enforces unique output keys. These checks guarantee the generated Python code accurately reflects your canvas structure without orphaned nodes or unintended cycles.

Can I use visual workflow design with Google ADK?

Yes. Design workflows visually on a WorkflowCanvas, then compile them into Google ADK Python code. This eliminates manual hand-coding of agent pipelines and enables rapid deployment of sequential, parallel, looping, and conditional agent logic.

What node types does the workflow compiler support?

The compiler handles LLM nodes, sequential agents, parallel agents, loop agents, conditional branches, and custom nodes. Each node type maps to its corresponding ADK agent class, preserving your workflow logic in the generated Python module.

What output does the workflow compiler generate?

The compiler generates a complete Python module containing ADK agent class definitions mapped from your canvas nodes, plus a root_agent export. The output is immediately runnable in your ADK environment without additional manual coding.