mediago
하는 일
이 스킬은 컴퓨터나 서버에서 실행 중이어야 하는 별도 앱인 MediaGo로 동영상 내려받기 요청을 보냅니다. 온라인 동영상이나 스트림 녹화를 저장하려는 사람을 위한 것입니다.
사용하는 경우
- ✓m3u8이나 HLS 스트림 링크가 있고 이를 동영상 파일로 저장하고 싶을 때.
- ✓MediaGo로 Bilibili 동영상을 내려받고 싶을 때.
- ✓에이전트가 쓰는 MediaGo 주소를 설정하거나 바꿔야 할 때.
스킬 링크
https://github.com/mediago-dev/mediago/blob/master/skills/mediago/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 m3u8 동영상 링크를 MediaGo로 내려받아 저장해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 작은 설정 파일에 저장된 주소와 선택적 키를 사용해, 실행 중인 MediaGo 인스턴스로 링크를 보냅니다. 설정이 없으면 먼저 주소를 설정하라고 요청합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
MediaGo Video Downloader
Download videos from m3u8/HLS streams, Bilibili, and direct URLs via a running MediaGo instance.
Configuration
Config file: ~/.mediago-skill.json
{
"url": "http://localhost:8899",
"apiKey": ""
}
First-time Setup / 首次配置
If ~/.mediago-skill.json does not exist, show the following message (respond in the user's language):
EN: "MediaGo is not configured yet. To use this skill:
1. Install MediaGo (if you haven't already):
- Desktop app: Download from https://github.com/caorushizi/mediago/releases
- Docker:
docker run -d --name mediago -p 8899:8899 -v /path/to/mediago:/app/mediago ghcr.io/caorushizi/mediago:latest2. Initialize — tell me your MediaGo address, for example:
- Docker:
设置 mediago 地址为 http://localhost:8899- Desktop app:
设置 mediago 地址为 http://192.168.x.x:39719"CN: "MediaGo 还没有配置。要使用此功能:
1. 安装 MediaGo(如果还没装):
- 桌面客户端:从 https://github.com/caorushizi/mediago/releases 下载安装
- Docker 部署:
docker run -d --name mediago -p 8899:8899 -v /path/to/mediago:/app/mediago ghcr.io/caorushizi/mediago:latest2. 初始化配置 — 告诉我你的 MediaGo 地址,例如:
- Docker:
设置 mediago 地址为 http://localhost:8899- 桌面客户端:
设置 mediago 地址为 http://192.168.x.x:39719"
When the user provides the URL (and optionally an API key), write it to ~/.mediago-skill.json.
Updating Config / 更新配置
Trigger on phrases like:
- EN: "set mediago url to ...", "mediago api key is ...", "my mediago is at ..."
- CN: "设置 mediago 地址为 ...", "mediago api key 是 ...", "我的 mediago 跑在 ..."
Read the existing config, update the relevant field, and write it back.
API Reference
All API calls use curl. Read url and apiKey from ~/.mediago-skill.json before each call.
If apiKey is set, add header: -H "X-API-Key: API_KEY"
Health Check
curl -s BASE_URL/healthy
Returns {"success":true,...} if service is running.
Create & Start Download
curl -s -X POST BASE_URL/api/downloads \
-H "Content-Type: application/json" \
-d '{"tasks":[{"type":"TYPE","url":"VIDEO_URL","name":"NAME"}],"startDownload":true}'
type(required):m3u8,bilibili, ordirecturl(required): video URLname(optional): custom filename
Type detection from URL:
- Contains
bilibili.comorb23.tv→bilibili - Contains
.m3u8→m3u8 - Otherwise →
direct
Response data is an array of created tasks. Extract data[0].id as the task ID.
Get Task Status
curl -s BASE_URL/api/downloads/TASK_ID
Response data fields: id, name, status, type, exists, file.
Status values: pending, downloading, success, failed, stopped.
List Downloads
curl -s "BASE_URL/api/downloads?current=1&pageSize=20"
Response: data.total (count) and data.list (array of tasks).
Get Config (download directory etc.)
curl -s BASE_URL/api/config
Returns config including local (download directory path).
Download Workflow / 下载流程
- Check config / 检查配置: Read
~/.mediago-skill.json. If missing, run the First-time Setup flow above. - Health check / 健康检查: Verify service is reachable. If not, tell the user MediaGo may not be running and guide them to start it.
- Create task / 创建任务: POST to
/api/downloadswithstartDownload: true. - Poll progress / 轮询进度: GET
/api/downloads/TASK_IDevery 3 seconds. Report status to user. - Report result / 报告结果:
success→ EN: "Download complete! File: [path]" / CN: "下载完成!文件:[path]"failed→ EN: "Download failed." / CN: "下载失败。"- If polling exceeds 5 minutes, tell user the download is still in progress.
Important Notes / 注意事项
- Language / 语言: Always respond in the same language the user is using (Chinese or English).
- If API returns HTTP 401, tell the user their API key may be wrong and ask them to update it.
- Always auto-detect the download type from the URL unless the user specifies it.
- If
nameis not provided, omit it from the request — the server will auto-generate one.
자주 묻는 질문
다른 것을 더 설치해야 하나요?
네. MediaGo가 데스크톱 앱으로 또는 Docker로 설치되어 실행 중이어야 합니다.
주소는 어디에 저장되나요?
홈 폴더의 설정 파일에 MediaGo 주소와 선택적 키가 저장됩니다.
설정 메시지는 어떤 언어로 되어 있나요?
설정 메시지는 영어와 중국어로 함께 작성되어 있습니다.
상세 정보
작성자의 원본 설명
Download videos from m3u8/HLS streams, Bilibili, and direct URLs using MediaGo. 下载视频、m3u8直播流、B站视频。 Triggers on: download video, 下载视频, 下载这个链接, 帮我下载, m3u8 download, 设置mediago地址, configure mediago, mediago api key. Requires a running MediaGo instance (desktop app or Docker).
repo: mediago-dev/mediago
인기도
- GitHub 스타
- 9.4k
- 순위
- #12281
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …