
AI Workflow Builder
FreeAutomate multi-step AI generation with ease.
Free · Opens the source repo
What AI Workflow Builder does
The AI Workflow Builder allows users to create, run, and visualize complex workflows for AI generation tasks. By translating natural language descriptions into connected node graphs, this skill enables the chaining of various media generation steps, such as image and video creation, enhancement, and editing. This capability is particularly useful for developers and designers looking to streamline their creative processes and automate repetitive tasks.
Users can initiate workflows through simple commands, leveraging scripts like generate-workflow.sh to create workflows from descriptions, and run-workflow.sh to execute them. The interactive run feature allows for real-time input prompts, making it easier to customize workflows on the fly. Additionally, users can discover existing workflows that match their needs using natural language queries, ensuring that they can find relevant solutions without starting from scratch.
The skill is built around the muapi CLI, which should be kept up-to-date for optimal performance. Each workflow can be inspected and visualized in the terminal, providing users with insights into the structure and components of their automated pipelines. This transparency is crucial for debugging and refining workflows, making it a valuable tool for both novice and experienced users.
Overall, the AI Workflow Builder is designed for those who want to harness the power of AI in their creative projects, enabling them to efficiently manage and execute complex media generation tasks without extensive coding knowledge.
When to use it
Use this tool when you need to automate media generation tasks or create complex workflows that involve multiple AI generation steps.
When not to use it
This skill may not be suitable for simple, one-off tasks that do not require the automation of multiple steps or for users unfamiliar with command-line interfaces.
What you can build with it
Creating a Promotional Video
A user wants to generate a promotional video by chaining together text-to-video steps. They can describe the entire process and execute it as a single workflow.
Automating Image Generation
A designer needs to create multiple images based on different prompts. They can set up a workflow that generates and upscales images automatically.
Interactive Media Editing
A user wants to edit an existing workflow to include new steps. They can use the interactive run feature to customize inputs and execute the modified workflow.
How to install AI Workflow Builder
View source1. Install with the skills CLI
npx skills add samuraigpt/generative-media-skills/workflow --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by samuraigptAI Workflow Builder
Chain any combination of muapi.ai generation steps into automated pipelines. The AI architect converts your plain-language description into a runnable node graph.
Prerequisites
Always ensure the muapi CLI is up-to-date before running any commands. Reinstall from source at the start of every session:
pip install --upgrade /path/to/muapi-cli
Replace /path/to/muapi-cli with the actual path to the muapi-cli directory in the workspace (the directory containing pyproject.toml).
Core Operations
- Generate (
generate-workflow.sh) — AI architect creates a workflow from a description - Discover (
discover-workflow.sh) — Find a relevant existing workflow by natural language - Edit (
generate-workflow.sh --workflow-id) — Modify an existing workflow with a prompt - Interactive Run (
interactive-run.sh) — Prompt for inputs and execute a workflow - Run (
run-workflow.sh) — Execute a workflow, poll node-by-node, collect outputs - CLI (
muapi workflow) — Full CRUD + visualization directly from the terminal
Agent Guided Discovery & Selection
As an AI agent, you have the ability to read and understand the purpose of available workflows to select the best one for the user's task (e.g., "create a UGC video").
- Discover: Fetch the catalog of available workflows and their descriptions in JSON format.
muapi workflow discover --output-json - Match (Internal Reasoning): Use your LLM capabilities to analyze the
name,category, anddescriptionfields of the returned workflows. Find the best match for the user's intent. - Analyze: If you find a promising candidate, inspect its structure to ensure it has the necessary nodes and parameters.
CRITICAL RULE: The output ofmuapi workflow get <workflow_id>muapi workflow getwill include an "API Inputs" table. You MUST read this table to understand what inputs are required. - Choose & Confirm & Prompt User:
- If one workflow is a perfect match, you MUST ask the user to provide the exact values for the required API inputs before executing it. Never invent or guess input values (like prompts, URLs, etc.) on your own.
- If multiple workflows are highly relevant, present the options to the user with their descriptions and ask them to confirm which one to use, and also ask for the required inputs.
- If no workflow matches the user's complex request, offer to architect a new one using
muapi workflow create.
Example Agent Reasoning
"The user wants a product promo video. I fetched the catalog using
discover. I see two potential workflows:
wf_123: 'Product promo with background music'wf_456: 'Simple video gen' I will analyzewf_123withget. It has the required nodes. I will suggestwf_123or just run it if the match is precise."
Protocol: Building a Workflow
Step 1 — Describe your pipeline
muapi workflow create "take a text prompt, generate an image with flux-dev, then upscale it to 4K"
The architect returns a workflow with a unique ID and a node graph. Save the ID.
Step 2 — Inspect and visualize
# Rich ASCII node graph in the terminal
muapi workflow get <workflow_id>
# Or raw JSON
muapi workflow get <workflow_id> --output-json
Step 3 — Run it
# Run with specific inputs
muapi workflow execute <workflow_id> \
--input "node1.prompt=a glowing crystal cave at midnight"
# Use --download to pull results locally
muapi workflow execute <workflow_id> \
--input "node1.prompt=a sunset" \
--download ./outputs
Step 4 — Discovery (Optional)
If you want to reuse an existing workflow instead of creating a new one:
# Search by keywords
muapi workflow discover "ugc video"
Step 5 — Interactive Execution
Run a workflow and have the CLI prompt you for each required input:
muapi workflow run-interactive <workflow_id>
Workflow Examples
Image Pipelines
# Text → Image → Upscale
muapi workflow create "take a text prompt, generate with flux-dev, upscale the result"
# Text → Image → Background removal → Product shot
muapi workflow create "generate a product image with hidream, remove background, create professional product shot"
Video Pipelines
# Text → Video
muapi workflow create "generate a 10-second cinematic video from a text prompt using kling-master"
# Image → Video → Lipsync
muapi workflow create "animate an input image with seedance, then apply lipsync from an audio file"
Editing an Existing Workflow
# Add a step
muapi workflow edit <id> --prompt "add a face-swap step after the image generation"
# Swap a model
muapi workflow edit <id> --prompt "change the video model from kling to veo3"
CLI Reference
# List all your workflows
muapi workflow list
# Browse templates
muapi workflow templates
# Generate new workflow
muapi workflow create "text → flux image → upscale → face swap"
# Visualize a workflow
muapi workflow get <id>
# Execute with inputs
muapi workflow execute <id> --input "node1.prompt=a sunset"
# Monitor a run
muapi workflow status <run_id>
# Get outputs
muapi workflow outputs <run_id> --download ./results
# Edit with AI
muapi workflow edit <id> --prompt "add lipsync at the end"
# Rename / delete
muapi workflow rename <id> --name "Product Pipeline v2"
muapi workflow delete <id>
MCP Tools (for AI agents)
| Tool | Description |
|---|---|
muapi_workflow_list | List user's workflows |
muapi_workflow_create | AI architect: prompt → workflow |
muapi_workflow_get | Get workflow definition + node graph |
muapi_workflow_execute | Run with specific inputs |
muapi_workflow_status | Node-by-node run status |
muapi_workflow_outputs | Final output URLs |
Constraints
- Workflows can contain any combination of muapi.ai nodes (image, video, audio, enhance, edit)
- Node outputs are automatically wired as inputs to downstream nodes
--syncmode waits up to 120s for generation; use--asyncfor complex workflows and poll separately- Run timeouts: 10 minutes maximum per workflow execution
Frequently asked questions about AI Workflow Builder
Similar skills
Spring Boot Testing
Master testing techniques for Spring Boot 4 applications.
GitHub Issues
Manage GitHub issues efficiently with MCP tools.
Geofeed Tuner
Optimize your IP geolocation feeds in CSV format.
Batch Files
Master Windows batch scripting for automation and task management.
Adobe Illustrator Scripting
Automate your Illustrator workflows with ExtendScript.
Plugin Structure
Create and organize Claude Code plugins effectively.
