Agent SkillsChatCut-Inc/agent-plugin › asset-import

asset-import

GitHub

用于将本地或下载的媒体文件导入ChatCut项目。通过检查现有资产、下载URL、创建导入会话并调用专用脚本上传,确保媒体正确入库并等待转录完成。

codex/skills/asset-import/SKILL.md ChatCut-Inc/agent-plugin

Trigger Scenarios

用户需要导入本地媒体文件到项目中 处理从公网URL下载的媒体资源 批量上传视频或音频文件

Install

npx skills add ChatCut-Inc/agent-plugin --skill asset-import -g -y
More Options

Non-standard path

npx skills add https://github.com/ChatCut-Inc/agent-plugin/tree/main/codex/skills/asset-import -g -y

Use without installing

npx skills use ChatCut-Inc/agent-plugin@asset-import

指定 Agent (Claude Code)

npx skills add ChatCut-Inc/agent-plugin --skill asset-import -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": "asset-import",
    "description": "Hosted ChatCut plugin sessions only (the `chatcut` MCP server). If the conversation is driving ChatCut Desktop (a `chatcut_desktop*` MCP server), load this skill only when the user explicitly chooses the plugin\/web surface — desktop sessions otherwise ship their own instructions and tools. Import local, attached, or downloaded media into a ChatCut project through the hosted external connector."
}

Asset Import

Use this host adapter for files Codex can read locally. The hosted external MCP does not expose the backend agent's push_asset tool, so do not follow a shared push_asset workflow in this plugin.

  1. Check browse_assets first when the media may already be in the project; do not create duplicates.
  2. Download a public URL to a local file when needed.
  3. Call import_media with {"action":"create_session"}.
  4. Run this skill's scripts/upload-media.mjs once with the returned token and endpoint and at most four local files. Split larger sets into batches of four and create one session per batch.
"<bundled-or-global-node>" <this-skill-dir>/scripts/upload-media.mjs --token <token> --endpoint <endpoint> /path/to/source-1.mp4 /path/to/source-2.wav

Resolve the helper relative to this skill; do not search the workspace. Use Codex's bundled Node runtime when available, otherwise Node 18 or newer from PATH. Run the helper in the foreground and read its final JSON from stdout. Do not detach it or invent status files.

The helper is mandatory for media preparation and upload. Do not replace it with handwritten ffprobe, ffmpeg, curl, metadata, transcode, or presigned-upload commands. Media bytes upload directly to storage and must not pass through the ChatCut backend.

Use each returned imports[].result.assetId for timeline work. Wait for track_progress target transcription before transcript or caption work. Wait for target upload only before byte-dependent work such as cloud export, pull_asset, or remote frame inspection.

If the helper returns an error with retry, create a fresh import session when requested and rerun exactly the returned arguments. If host policy denies transfer of the user's file, stop instead of trying a local-editing or alternate-upload workaround; tell the user the upload was denied and ask them to use the ChatCut editor upload UI or grant the required permission.

Version History

  • 014586d Current 2026-08-27 10:43
  • e1867a8 2026-08-02 23:37

    优化了资产导入流程,明确了使用browse_assets避免重复,细化了import_media参数及upload-media.mjs脚本的使用规范,强调了错误重试策略和权限拒绝时的处理方式。

  • f39cdae 2026-07-30 21:53

    同步插件版本至66c0309a40866ab98e1147b05d4cc160094efab5

  • 5e9afe0 2026-07-22 10:58

Same Skill Collection

chatcut-desktop-codex-plugin/skills/connect-chatcut-desktop/SKILL.md
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/known-errors/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
claude/skills/create-motion-graphics/SKILL.md
claude/skills/export/SKILL.md
claude/skills/image-gen/SKILL.md
claude/skills/known-errors/SKILL.md
claude/skills/motion-graphic-gen/SKILL.md
claude/skills/music/SKILL.md
claude/skills/shader-gen/SKILL.md
claude/skills/transcription/SKILL.md
claude/skills/verification/SKILL.md
claude/skills/video-gen/SKILL.md
claude/skills/widget-forms/SKILL.md
codex/skills/create-motion-graphics/SKILL.md
codex/skills/export/SKILL.md
codex/skills/image-gen/SKILL.md
codex/skills/known-errors/SKILL.md
codex/skills/music/SKILL.md
codex/skills/shader-gen/SKILL.md
codex/skills/transcription/SKILL.md
codex/skills/verification/SKILL.md
codex/skills/video-gen/SKILL.md
codex/skills/widget-forms/SKILL.md
chatcut/skills/product-help/SKILL.md
chatcut/skills/talking-head-guide/SKILL.md
claude/skills/asset-import/SKILL.md
claude/skills/chatcut-plugin-basics-claude/SKILL.md
claude/skills/digital-human/SKILL.md
claude/skills/multicam-sync/SKILL.md
claude/skills/product-help/SKILL.md
claude/skills/talking-head-guide/SKILL.md
claude/skills/voice/SKILL.md
codex/skills/chatcut-plugin-basics/SKILL.md
codex/skills/digital-human/SKILL.md
codex/skills/multicam-sync/SKILL.md
codex/skills/product-help/SKILL.md

Metadata

Files
0
Version
2f39109
Hash
8e917f49
Indexed
2026-07-22 10:58

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-28 13:36
浙ICP备14020137号-1 $Carte des visiteurs$