muapi-workflow
Build, run, and visualize multi-step AI generation workflows. The AI architect translates natural language descriptions into connected node graphs — chain image generation, video creation, enhancement, and editing into automated pipelines.
Best use case
muapi-workflow is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Build, run, and visualize multi-step AI generation workflows. The AI architect translates natural language descriptions into connected node graphs — chain image generation, video creation, enhancement, and editing into automated pipelines.
Teams using muapi-workflow should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/muapi-workflow-skill/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How muapi-workflow Compares
| Feature / Agent | muapi-workflow | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Build, run, and visualize multi-step AI generation workflows. The AI architect translates natural language descriptions into connected node graphs — chain image generation, video creation, enhancement, and editing into automated pipelines.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
Best AI Skills for Claude
Explore the best AI skills for Claude and Claude Code across coding, research, workflow automation, documentation, and agent operations.
AI Agent for YouTube Script Writing
Find AI agent skills for YouTube script writing, video research, content outlining, and repeatable channel production workflows.
ChatGPT vs Claude for Agent Skills
Compare ChatGPT and Claude for AI agent skills across coding, writing, research, and reusable workflow execution.
SKILL.md Source
# AI 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: ```bash 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 1. **Generate** (`generate-workflow.sh`) — AI architect creates a workflow from a description 2. **Discover** (`discover-workflow.sh`) — Find a relevant existing workflow by natural language 3. **Edit** (`generate-workflow.sh --workflow-id`) — Modify an existing workflow with a prompt 4. **Interactive Run** (`interactive-run.sh`) — Prompt for inputs and execute a workflow 5. **Run** (`run-workflow.sh`) — Execute a workflow, poll node-by-node, collect outputs 6. **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"). 1. **Discover**: Fetch the catalog of available workflows and their descriptions in JSON format. ```bash muapi workflow discover --output-json ``` 2. **Match (Internal Reasoning)**: Use your LLM capabilities to analyze the `name`, `category`, and `description` fields of the returned workflows. Find the best match for the user's intent. 3. **Analyze**: If you find a promising candidate, inspect its structure to ensure it has the necessary nodes and parameters. ```bash muapi workflow get <workflow_id> ``` **CRITICAL RULE**: The output of `muapi workflow get` will include an "API Inputs" table. You MUST read this table to understand what inputs are required. 4. **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: > 1. `wf_123`: 'Product promo with background music' > 2. `wf_456`: 'Simple video gen' > I will analyze `wf_123` with `get`. It has the required nodes. I will suggest `wf_123` or just run it if the match is precise." --- ## Protocol: Building a Workflow ### Step 1 — Describe your pipeline ```bash 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 ```bash # 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 ```bash # 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: ```bash # 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: ```bash muapi workflow run-interactive <workflow_id> ``` --- ## Workflow Examples ### Image Pipelines ```bash # 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 ```bash # 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 ```bash # 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 ```bash # 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 - `--sync` mode waits up to 120s for generation; use `--async` for complex workflows and poll separately - Run timeouts: 10 minutes maximum per workflow execution
Related Skills
n8n Workflow Mastery — Complete Automation Engineering System
You are an expert n8n workflow architect. You design, build, debug, optimize, and scale n8n automations following production-grade methodology. Every workflow you create is complete, functional, and follows the patterns in this guide.
n8n-workflow-automation
Designs and outputs n8n workflow JSON with robust triggers, idempotency, error handling, logging, retries, and human-in-the-loop review queues. Use when you need an auditable automation that won’t silently fail.
swarm-workflow-protocol
Multi-agent orchestration protocol for the 0x-wzw swarm. Defines spawn logic, relay communication, task routing, and information flow. Agents drive decisions; humans spar.
agentic-workflow-automation
Generate reusable multi-step agent workflow blueprints. Use for trigger/action orchestration, deterministic workflow definitions, and automation handoff artifacts.
workflow-agent
选择并改写 ComfyUI 工作流模板,输出可直接提交到 ComfyUI API 的完整 JSON。当需要准备渲染任务、选择模型、调整参数时触发。
byt-workflow
YouTube video translation workflow, download audio, launch Doubao, play audio, capture translation
banner-youtube-translate-workflow
Complete workflow: download YouTube audio, launch Doubao, play audio, capture translation. Activates when user needs full video translation.
ayao-workflow-agent
Multi-agent workflow orchestrator for coding, writing, analysis, and image tasks via tmux-driven Claude Code and Codex agents. Use when: (1) user requests a feature/fix that should be delegated to coding agents, (2) managing parallel coding tasks across front-end and back-end, (3) monitoring active agent sessions and coordinating review, (4) user says 'start task', 'assign to agents', 'swarm mode', or references the ayao-workflow-agent playbook. NOT for: simple one-liner edits (just edit directly), reading code (use read tool), or single quick questions about code.
dify-workflow
Use when creating, editing, debugging, or validating Dify workflow DSL for self-hosted Dify. Start from an exported workflow of the target instance, edit minimally, and verify by re-importing.
muapi-ui-design
Generate high-fidelity UI/UX mockups for mobile and web apps using Atomic Design principles — creates wireframes and design systems via muapi.ai
muapi-seedance-2
Expert Cinema Director skill for Seedance 2.0 (ByteDance) — high-fidelity video generation using technical camera grammar and multimodal references. Supports text-to-video, image-to-video, and video extension.
muapi-platform
Setup and utility scripts for muapi.ai — configure API keys, test connectivity, and poll for async generation results