Agent SkillsChatCut-Inc/agent-plugin › known-errors

known-errors

GitHub

处理ChatCut插件工具调用失败或异常返回。涵盖edit_item数据格式修正、时间线重叠重试、路径限制规避、媒体导入转换失败处理及动态图形规范,提供具体错误修复方案。

chatcut/skills/known-errors/SKILL.md ChatCut-Inc/agent-plugin

Trigger Scenarios

ChatCut插件工具调用失败 工具返回意外数据结构 视频编辑操作报错

Install

npx skills add ChatCut-Inc/agent-plugin --skill known-errors -g -y
More Options

Non-standard path

npx skills add https://github.com/ChatCut-Inc/agent-plugin/tree/main/chatcut/skills/known-errors -g -y

Use without installing

npx skills use ChatCut-Inc/agent-plugin@known-errors

指定 Agent (Claude Code)

npx skills add ChatCut-Inc/agent-plugin --skill known-errors -a claude-code -g -y

安装 repo 全部 skill

npx skills add ChatCut-Inc/agent-plugin --all -g -y

预览 repo 内 skill

npx skills add ChatCut-Inc/agent-plugin --list

SKILL.md

Frontmatter
{
    "name": "known-errors",
    "description": "Use when a ChatCut plugin tool call fails or returns an unexpected shape."
}

Known Errors

edit_item update raw shape:

  • Wrong: { "id": "abc", "fromFrame": 30 }
  • Right: { "json": "{\"updates\":[{\"id\":\"abc\",\"fromFrame\":30}]}" }
  • Use this same updates shape for common moves, trims, and track changes.

edit_item add raw shape:

  • The new item goes inside the adds array of the json transaction: { "json": "{\"adds\":[{...}]}" }.
  • Use edit_item for simple video placement, for example { "json": "{\"adds\":[{\"type\":\"video\",\"assetId\":\"...\",\"fromFrame\":0}]}" }.

Timeline overlap:

  • Error text: Overlap: updated item at ... would overlap existing item at ... on this track.
  • Do not force the write or delete the conflicting item silently.
  • Retry the edit_item transaction with an explicit available trackId, for example an update containing "trackId":"V2", or ask the user which layer should win.

Workspace path restrictions:

  • push_asset on the external MCP only accepts public http(s) URLs as filePath. It rejects local paths, workspace paths, and chat attachment paths.
  • For motion-graphic assets, pass the JSX source via create_motion_graphic_from_code({ code:"...", name, width, height, durationInFrames }). push_asset no longer accepts an inline code argument.
  • Copying local media into the workspace is not the fix for video/audio/image/GIF imports; use asset-import and import_media instead.
  • Use import_media action=create_session, then run the ChatCut media import helper once with the returned token for client-held files.

Browser video conversion failure:

  • Error text often includes Unable to convert video without dropping audio/video tracks or unknown_source_codec.
  • Rerun the ChatCut media import helper; it owns frontend-aligned conversion and will surface a user-actionable error if conversion is impossible.
  • Do not ask the user to re-import the same file through the editor UI as a workaround — the conversion path is the same, the error will repeat. Fix the source (re-encode locally with ffmpeg) or pick a different file.
  • After the replacement asset is uploaded/transcribed, delete the failed original asset if it is unused. The clean final media pool should look like a successful import, not a failed import plus a replacement.

Motion Graphic requirements:

  • push_asset(type:"motion-graphic") requires width, height, and duration or durationInFrames.
  • MG code must pass the ChatCut validator.
  • Root AbsoluteFill is not valid for generated MG code; use a scaling root div.
  • Avoid declaring a top-level local named scale inside MG code. The validator/runtime may already reserve that identifier; use a specific name such as uiScale.

Local dev Zero caveat:

  • When backend runs on a non-default port, use a matching Zero view-syncer configuration.
  • In this POC, backend 3010, editor 5177, and view-syncer 4850 are intentionally isolated from the older 3000/5173/4848 stack.

Timeline screenshot renderer caveat:

  • If render_cloud_screenshot returns a Remotion AccessDenied error for a rendererbucket-.../sites/.../index.html URL, the project write path can still be healthy.
  • For local-only projects, connector visual proof is unavailable until the media is uploaded/registered with cloud-readable URLs.
  • Do not report visual proof success unless the tool returns image content or a browser screenshot visibly confirms the target frame.

Version History

  • f85076d Current 2026-07-19 09:56

Same Skill Collection

chatcut/skills/asset-import/SKILL.md
chatcut/skills/chatcut-plugin-basics-claude/SKILL.md
chatcut/skills/chatcut-plugin-basics/SKILL.md
chatcut/skills/create-motion-graphics/SKILL.md
chatcut/skills/export/SKILL.md
chatcut/skills/image-gen/SKILL.md
chatcut/skills/music/SKILL.md
chatcut/skills/shader-gen/SKILL.md
chatcut/skills/transcription/SKILL.md
chatcut/skills/verification/SKILL.md
chatcut/skills/video-gen/SKILL.md
chatcut/skills/voice/SKILL.md
chatcut/skills/widget-forms/SKILL.md
chatcut/skills/product-help/SKILL.md
chatcut/skills/talking-head-guide/SKILL.md

Metadata

Files
0
Version
f85076d
Hash
2dddf6de
Indexed
2026-07-19 09:56

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-20 15:21
浙ICP备14020137号-1 $Map of visitor$