← 返回 Skills 市场
mory128

4k With Session

作者 mory128 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
109
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install 4k-with-session
功能描述
Get 4K edited videos ready to post, without touching a single slider. Upload your raw video footage (MP4, MOV, AVI, WebM, up to 500MB), say something like "e...
使用说明 (SKILL.md)

Getting Started

Share your raw video footage and I'll get started on 4K AI video editing. Or just tell me what you're thinking.

Try saying:

  • "edit my raw video footage"
  • "export 4K MP4"
  • "edit this 4K footage and save"

Automatic Setup

On first interaction, connect to the processing API before doing anything else. Show a brief status like "Setting things up...".

Token: If NEMO_TOKEN environment variable is already set, use it and skip to Session below.

Free token: Generate a UUID as client identifier, then POST to https://mega-api-prod.nemovideo.ai/api/auth/anonymous-token with header X-Client-Id: \x3Cuuid>. The response field data.token becomes your NEMO_TOKEN (100 credits, 7-day expiry).

Session: POST to https://mega-api-prod.nemovideo.ai/api/tasks/me/with-session/nemo_agent with Bearer auth and body {"task_name":"project"}. Save session_id from the response.

Confirm to the user you're connected and ready. Don't print tokens or raw JSON.

4K With Session — Edit and Export 4K Videos

This tool takes your raw video footage and runs 4K AI video editing through a cloud rendering pipeline. You upload, describe what you want, and download the result.

Say you have a 2-minute 4K drone recording and want to edit this 4K footage and save the session so I can come back and make changes later — the backend processes it in about 1-2 minutes and hands you a 4K MP4.

Tip: saving your session lets you return and re-edit without re-uploading the original footage.

Matching Input to Actions

User prompts referencing 4k with session, aspect ratio, text overlays, or audio tracks get routed to the corresponding action via keyword and intent classification.

User says... Action Skip SSE?
"export" / "导出" / "download" / "send me the video" → §3.5 Export
"credits" / "积分" / "balance" / "余额" → §3.3 Credits
"status" / "状态" / "show tracks" → §3.4 State
"upload" / "上传" / user sends file → §3.2 Upload
Everything else (generate, edit, add BGM…) → §3.1 SSE

Cloud Render Pipeline Details

Each export job queues on a cloud GPU node that composites video layers, applies platform-spec compression (H.264, up to 1080x1920), and returns a download URL within 30-90 seconds. The session token carries render job IDs, so closing the tab before completion orphans the job.

Every API call needs Authorization: Bearer \x3CNEMO_TOKEN> plus the three attribution headers above. If any header is missing, exports return 402.

Headers are derived from this file's YAML frontmatter. X-Skill-Source is 4k-with-session, X-Skill-Version comes from the version field, and X-Skill-Platform is detected from the install path (~/.clawhub/ = clawhub, ~/.cursor/skills/ = cursor, otherwise unknown).

API base: https://mega-api-prod.nemovideo.ai

Create session: POST /api/tasks/me/with-session/nemo_agent — body {"task_name":"project","language":"\x3Clang>"} — returns task_id, session_id.

Send message (SSE): POST /run_sse — body {"app_name":"nemo_agent","user_id":"me","session_id":"\x3Csid>","new_message":{"parts":[{"text":"\x3Cmsg>"}]}} with Accept: text/event-stream. Max timeout: 15 minutes.

Upload: POST /api/upload-video/nemo_agent/me/\x3Csid> — file: multipart -F "files=@/path", or URL: {"urls":["\x3Curl>"],"source_type":"url"}

Credits: GET /api/credits/balance/simple — returns available, frozen, total

Session state: GET /api/state/nemo_agent/me/\x3Csid>/latest — key fields: data.state.draft, data.state.video_infos, data.state.generated_media

Export (free, no credits): POST /api/render/proxy/lambda — body {"id":"render_\x3Cts>","sessionId":"\x3Csid>","draft":\x3Cjson>,"output":{"format":"mp4","quality":"high"}}. Poll GET /api/render/proxy/lambda/\x3Cid> every 30s until status = completed. Download URL at output.url.

Supported formats: mp4, mov, avi, webm, mkv, jpg, png, gif, webp, mp3, wav, m4a, aac.

Error Codes

  • 0 — success, continue normally
  • 1001 — token expired or invalid; re-acquire via /api/auth/anonymous-token
  • 1002 — session not found; create a new one
  • 2001 — out of credits; anonymous users get a registration link with ?bind=\x3Cid>, registered users top up
  • 4001 — unsupported file type; show accepted formats
  • 4002 — file too large; suggest compressing or trimming
  • 400 — missing X-Client-Id; generate one and retry
  • 402 — free plan export blocked; not a credit issue, subscription tier
  • 429 — rate limited; wait 30s and retry once

Backend Response Translation

The backend assumes a GUI exists. Translate these into API actions:

Backend says You do
"click [button]" / "点击" Execute via API
"open [panel]" / "打开" Query session state
"drag/drop" / "拖拽" Send edit via SSE
"preview in timeline" Show track summary
"Export button" / "导出" Execute export workflow

SSE Event Handling

Event Action
Text response Apply GUI translation (§4), present to user
Tool call/result Process internally, don't forward
heartbeat / empty data: Keep waiting. Every 2 min: "⏳ Still working..."
Stream closes Process final response

~30% of editing operations return no text in the SSE stream. When this happens: poll session state to verify the edit was applied, then summarize changes to the user.

Draft field mapping: t=tracks, tt=track type (0=video, 1=audio, 7=text), sg=segments, d=duration(ms), m=metadata.

Timeline (3 tracks): 1. Video: city timelapse (0-10s) 2. BGM: Lo-fi (0-10s, 35%) 3. Title: "Urban Dreams" (0-3s)

Tips and Tricks

The backend processes faster when you're specific. Instead of "make it look better", try "edit this 4K footage and save the session so I can come back and make changes later" — concrete instructions get better results.

Max file size is 500MB. Stick to MP4, MOV, AVI, WebM for the smoothest experience.

Export as MP4 with H.264 codec to keep 4K quality at a manageable file size.

Common Workflows

Quick edit: Upload → "edit this 4K footage and save the session so I can come back and make changes later" → Download MP4. Takes 1-2 minutes for a 30-second clip.

Batch style: Upload multiple files in one session. Process them one by one with different instructions. Each gets its own render.

Iterative: Start with a rough cut, preview the result, then refine. The session keeps your timeline state so you can keep tweaking.

安全使用建议
This appears to be an instruction-only connector to a cloud video-editing API, but there are a few mismatches and ambiguities you should check before using it: 1) Confirm the actual output resolution — the skill advertises 4K but the pipeline doc says up to 1080x1920 (not 4K). Do not assume true 4K unless the provider confirms it. 2) Decide whether you are comfortable uploading source footage (the skill sends files to https://mega-api-prod.nemovideo.ai); review the provider's privacy/data-retention policy. 3) Be aware the skill will either use an existing NEMO_TOKEN env var or obtain an anonymous token on your behalf (100 credits, 7-day expiry). If you use a personal token, keep it secret; the skill asks not to print tokens but will send them to the third‑party API. 4) The instructions ask the agent to detect installation paths to set an attribution header — this requires reading common skill/install directories; if you prefer not to expose those paths, ask the author to avoid that behavior. 5) There's inconsistent metadata about a local config path (~/.config/nemovideo/) — clarify whether the skill will read or write that folder. If these questions are unanswered or concerning, avoid installing or invoke the skill only in a sandboxed environment or with disposable/anonymous credentials.
功能分析
Type: OpenClaw Skill Name: 4k-with-session Version: 1.0.0 The skill bundle provides a legitimate integration for an AI agent to interact with the NemoVideo 4K video editing API (mega-api-prod.nemovideo.ai). It contains detailed instructions for session management, anonymous authentication, file uploads, and handling server-sent events (SSE) for video processing. While it requests access to a specific environment variable (NEMO_TOKEN) and performs basic platform detection via file paths (~/.clawhub/), these actions are consistent with its stated purpose of providing a cloud-based video editing service and do not exhibit signs of malicious intent or data exfiltration.
能力评估
Purpose & Capability
The skill claims '4K' editing and 'download 4K MP4', but the Cloud Render Pipeline text says exports are compressed 'up to 1080x1920' (1080p), which contradicts the advertised 4K capability. The declared primary credential (NEMO_TOKEN) is appropriate for a cloud video service, but metadata also references a config path (~/.config/nemovideo/) while the top-level registry summary showed no required config paths — an internal inconsistency.
Instruction Scope
SKILL.md instructs the agent to call external endpoints (authentication, session creation, upload, SSE, render/polling) which is expected. It also directs the agent to derive attribution headers from the YAML frontmatter and to detect the install path to set X-Skill-Platform (this requires inspecting filesystem paths like ~/.clawhub/ or ~/.cursor/skills/). That filesystem inspection is narrow but outside purely 'upload/download' actions and could touch other agent-related directories; there are no instructions to read arbitrary user files or unrelated env vars, and it explicitly says not to print tokens or raw JSON.
Install Mechanism
No install spec or code files are present (instruction-only). That reduces disk-write and installation risk — nothing is downloaded or extracted by the skill itself.
Credentials
Only one credential is declared (NEMO_TOKEN) which aligns with a cloud API token. The instructions also provide a fallback to get an anonymous token via the public auth endpoint; this will create a short-lived token (100 credits, 7-day expiry). The skill references a config path in its YAML frontmatter (~/.config/nemovideo/), which may imply reading or storing local config; the registry summary earlier omitted that path, creating ambiguity. No other unrelated secrets are requested.
Persistence & Privilege
always is false and the skill is user-invocable only. There is no install step and no indication it attempts to persistently modify other skills or global agent settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install 4k-with-session
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /4k-with-session 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
4K With Session 1.0.0 - Launches seamless 4K video editing: upload footage, edit, and export without complex controls. - Introduces session saving, allowing you to return and resume editing without re-uploading videos. - Supports major video (MP4, MOV, AVI, WebM) and audio/image formats; max file size 500MB. - Automated setup: anonymous session and credits handled for fast start. - Real-time cloud rendering delivers prompt 4K exports (MP4, H.264). - Intuitive command routing and status updates ensure clarity throughout editing and export workflows.
元数据
Slug 4k-with-session
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

4k With Session 是什么?

Get 4K edited videos ready to post, without touching a single slider. Upload your raw video footage (MP4, MOV, AVI, WebM, up to 500MB), say something like "e... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 109 次。

如何安装 4k With Session?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install 4k-with-session」即可一键安装,无需额外配置。

4k With Session 是免费的吗?

是的,4k With Session 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

4k With Session 支持哪些平台?

4k With Session 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 4k With Session?

由 mory128(@mory128)开发并维护,当前版本 v1.0.0。

💬 留言讨论