npx skills add ...
npx skills add samuraigpt/generative-media-skills --skill 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.
npx skills add samuraigpt/generative-media-skills --skill muapi-workflow
Chain any combination of muapi.ai generation steps into automated pipelines. The AI architect converts your plain-language description into a runnable node graph.
Always ensure the muapi CLI is up-to-date before running any commands. Reinstall from source at the start of every session:
Replace /path/to/muapi-cli with the actual path to the muapi-cli directory in the workspace (the directory containing pyproject.toml).
generate-workflow.sh) — AI architect creates a workflow from a descriptiondiscover-workflow.sh) — Find a relevant existing workflow by natural languagegenerate-workflow.sh --workflow-id) — Modify an existing workflow with a promptinteractive-run.sh) — Prompt for inputs and execute a workflowrun-workflow.sh) — Execute a workflow, poll node-by-node, collect outputsmuapi workflow) — Full CRUD + visualization directly from the terminalAs 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").
name, category, and description fields of the returned workflows. Find the best match for the user's intent.muapi workflow get will include an "API Inputs" table. You MUST read this table to understand what inputs are required.muapi workflow create."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."
The architect returns a workflow with a unique ID and a node graph. Save the ID.
If you want to reuse an existing workflow instead of creating a new one:
Run a workflow and have the CLI prompt you for each required input:
| 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 |
--sync mode waits up to 120s for generation; use --async for complex workflows and poll separately