Medeo Video

AI video generation via Medeo Gateway - generate short videos (15-20 seconds). Supports text-only and image+text generation. Trigger phrases: "generate video", "make a video", "medeo".

2,280 stars

Best use case

Medeo Video is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

AI video generation via Medeo Gateway - generate short videos (15-20 seconds). Supports text-only and image+text generation. Trigger phrases: "generate video", "make a video", "medeo".

Teams using Medeo Video 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

$curl -o ~/.claude/skills/medeo-video/SKILL.md --create-dirs "https://raw.githubusercontent.com/nexu-io/nexu/main/apps/desktop/static/bundled-skills/medeo-video/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/medeo-video/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How Medeo Video Compares

Feature / AgentMedeo VideoStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

AI video generation via Medeo Gateway - generate short videos (15-20 seconds). Supports text-only and image+text generation. Trigger phrases: "generate video", "make a video", "medeo".

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

SKILL.md Source

# Medeo Video Generation

Generate AI short videos (15-20 seconds) for users via Medeo Gateway. Supports text-only and image+text generation.

## Requirements

- Python 3.8+
- `apiKey` configured in `~/.nexu/medeo.json`
- Optional: `ffmpeg` or `sips` (for image compression)

## First-Time Setup

If the user has not configured an API Key, guide them to:
1. Contact the admin to obtain an API Key starting with `mgk_`
2. Run: `python3 scripts/medeo_video.py setup --api-key mgk_yourkey`
3. Run: `python3 scripts/medeo_video.py check` to confirm the configuration is correct

## Pre-Generation Check (must run before each generation)

1. Run `python3 scripts/medeo_video.py check`
2. Interpret the output:
   - "API Key not configured" → guide the user to contact the admin for a key, then run setup
   - "Key valid, N uses remaining" → inform the user of remaining quota, proceed with generation
   - "Key expired / exhausted" → guide the user to contact the admin, run update-key
   - "Cannot connect to gateway" → suggest checking network connectivity
3. Only proceed with generation after check passes

## Video Generation (async, non-blocking)

### Text-Only Generation

```bash
python3 scripts/medeo_video.py spawn-task --text "user's video description" --duration 5000
```

### Image+Text Generation

```bash
# 1. Upload the image first
python3 scripts/medeo_video.py upload --file /path/to/image.jpg
# Output: media_id=media_xxx

# 2. Generate with the image
python3 scripts/medeo_video.py spawn-task --text "make a video from this image" --duration 5000 --media-ids media_xxx
```

### After Submission

1. `spawn-task` returns immediately. Read `task_id` from the stderr output (line starting with `✅`)
2. **Tell the user** their video is being generated (typically 5-15 minutes) and you'll keep them updated
3. **Set up a progress monitor** — use the `cron` tool to check progress every 3 minutes:
   ```
   cron add {
     "schedule": { "kind": "every", "everyMs": 120000 },
     "sessionTarget": "main",
     "payload": {
       "kind": "systemEvent",
       "text": "[medeo-progress] task_id=<TASK_ID> — Run: python3 scripts/medeo_video.py task-status --task-id <TASK_ID> and act on the result."
     }
   }
   ```
4. **Do not wait** — resume normal conversation immediately
5. When the cron fires, you will receive a system event. Handle it:
   - Run `task-status --task-id <id>` to get the current state
   - If status changed → casually mention it to the user, like a friend giving a quick update (e.g. "your video is rendering now, almost there!")
   - If completed → you MUST send the video URL to the user immediately. Never just say "completed" without the link. Then `cron remove <job_id>`
   - If failed → let the user know, then `cron remove <job_id>`
   - If no change → use your judgement based on how long since your last update. Don't repeat the same status.
   - **Keep it brief and conversational** — no task IDs, no technical jargon, no system-notification style
6. **Important**: Remember the cron `job_id` so you can remove it when done. The script will also remind you.

## When the User Asks "Is my video ready?"

1. Run `python3 scripts/medeo_video.py task-status --task-id <id>`
   - If you don't remember the task_id, run `python3 scripts/medeo_video.py recover` to see all tasks
2. Reply based on the output:
   - "AI composing" → still working on it, the AI is composing the scene
   - "Rendering" → scene is ready, rendering the video now — almost there
   - "Completed" → send the video link directly to the user
   - "Failed" → relay the error message and suggest retrying

## Task Recovery (after memory loss / agent restart)

If you don't remember whether a video was previously generated:
1. Run `python3 scripts/medeo_video.py recover`
2. It reads historical tasks from the local persistence file and queries the gateway for latest status
3. Completed tasks → send the video_url to the user directly
4. Still in progress → inform the user it's still generating, and set up a new cron monitor

## Duration Limit

- Default **15 seconds**, maximum **20 seconds**. If the user requests more than 20 seconds, reject upfront — do not call the API
- Tell the user the video duration limit is 20 seconds and ask them to shorten it.

## Error Handling

When any command returns an error:
1. Read the message after "❌" in the output and **relay it to the user as-is**
2. Do not fabricate or translate error messages
3. Provide action suggestions based on the error type:

| Error keyword seen | Suggested action |
|---|---|
| "Invalid API Key" | Run `check`, contact admin to confirm key |
| "Free trial uses exhausted" | Tell user to visit https://www.medeo.app/ to register for a key |
| "Key expired" | Contact admin for a new key, run `update-key` |
| "Platform credits insufficient" | Inform user service is temporarily unavailable, contact Nexu admin |
| "File too large" | Suggest the user send a smaller file |
| "Video upload not supported" | Tell user only images can be used as source material |
| "Video duration cannot exceed 20 seconds" | Suggest shortening the duration |
| "Service temporarily unavailable" | Wait a few minutes and retry |

## Command Reference

| Scenario | Command | Blocking? |
|---|---|---|
| First-time setup | `setup --api-key mgk_xxx` | No |
| Check status | `check` | No |
| Update key | `update-key --api-key mgk_newkey` | No |
| Remove key | `remove-key` | No |
| Browse templates | `recipes` | No |
| Upload image | `upload --file /path/to/image.jpg` | No |
| **Generate video** | **`spawn-task --text "description" --duration 5000`** | **No** |
| Check task status | `task-status --task-id xxx` | No |
| Recover tasks | `recover` | No |

Script path for all commands: `scripts/medeo_video.py`

Related Skills

LibTV Video

2280
from nexu-io/nexu

Seedance 2.0 video generation via LibTV Gateway - AI text-to-video, image-to-video, video continuation, style transfer using Seedance 2.0 model. Also supports Kling 3.0, Wan 2.6, Midjourney. Trigger phrases: "seedance", "generate video", "make a video", "libtv", "liblib".

static-deploy

2280
from nexu-io/nexu

Deploy static pages to nexu.space. Use when user says deploy, publish, ship, or go live with a static site/page. Uploads files from workspace to <project-slug>.nexu.space via Wrangler + Cloudflare Pages. Supports first deploy and redeploy.

nano-banana

2280
from nexu-io/nexu

Generate or edit images via Nano Banana image models. Triggers on "generate image", "image generation", "nano banana", "edit image", "nano banana pro", "nano banana 2"

feedback

2280
from nexu-io/nexu

Send feedback to the Nexu team. Use when the user says /feedback followed by their message.

sync-specs

2280
from nexu-io/nexu

Use when code changes may have made documentation outdated, when reviewing docs for consistency, or when the user asks to sync or audit documentation.

nexu-e2e-test

2280
from nexu-io/nexu

Use when verifying OpenClaw gateway fixes end-to-end, testing skill loading after restart, or running integration tests against the local Nexu+OpenClaw stack. Triggers on "e2e test", "verify fix", "test gateway", "test skills loading".

datadog

2280
from nexu-io/nexu

Use when the user says "check Datadog", "查 Datadog", "查日志", "check logs", "crash logs", "查 crash", "gateway crash", "查告警", "check alerts", "check metrics", or needs to investigate production issues via Datadog Logs API.

feishu-update-doc

2280
from nexu-io/nexu

更新飞书云文档。支持 7 种更新模式:追加、覆盖、定位替换、全文替换、前/后插入、删除。

feishu-troubleshoot

2280
from nexu-io/nexu

飞书插件问题排查工具。包含常见问题 FAQ 和深度诊断命令(/feishu_doctor)。 常见问题可随时查阅。诊断命令用于排查复杂问题(多次授权仍失败、自动授权无法解决等), 会检查账户配置、API 连通性、应用权限、用户授权状态,并生成详细的诊断报告和解决方案。

feishu-task

2280
from nexu-io/nexu

飞书任务管理工具,用于创建、查询、更新任务和清单。 **当以下情况时使用此 Skill**: (1) 需要创建、查询、更新、删除任务 (2) 需要创建、管理任务清单 (3) 需要查看任务列表或清单内的任务 (4) 用户提到"任务"、"待办"、"to-do"、"清单"、"task" (5) 需要设置任务负责人、关注人、截止时间

feishu-im-read

2280
from nexu-io/nexu

飞书 IM 消息读取工具使用指南,覆盖会话消息获取、话题回复读取、跨会话消息搜索、图片/文件资源下载。 **当以下情况时使用此 Skill**: (1) 需要获取群聊或单聊的历史消息 (2) 需要读取话题(thread)内的回复消息 (3) 需要跨会话搜索消息(按关键词、发送者、时间等条件) (4) 消息中包含图片、文件、音频、视频,需要下载 (5) 用户提到"聊天记录"、"消息"、"群里说了什么"、"话题回复"、"搜索消息"、"图片"、"文件下载" (6) 需要按时间范围过滤消息、分页获取更多消息

feishu-fetch-doc

2280
from nexu-io/nexu

获取飞书云文档内容。返回文档的 Markdown 内容,支持处理文档中的图片、文件和画板(需配合 feishu_doc_media 工具)。