asset-import

asset-import is a skill for Claude Code, Codex from gabrielmoreira/agent-skills-mirror. It costs 62 tokens per session (814 once invoked), scanned A, original, MIT.

A workflow for bringing video, audio, and image files into an OpenChatCut project’s media library from local files or public URLs.

In plain words
What is it for?
Uploading local media through the editor, downloading public media URLs, and preparing imported assets for editing and automatic processing.
Why use it?
It explains which import path fits each source and prevents users from wasting time on manual conversion or unsupported local-file requests.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Uploading local media through the editor, downloading public media URLs, and preparing imported assets for editing and automatic processing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gabrielmoreira/agent-skills-mirror/asset-import
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add gabrielmoreira/agent-skills-mirror --skill asset-import
Clone the repo
git clone --depth 1 https://github.com/gabrielmoreira/agent-skills-mirror

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for asset-import

README.md
[![agentmods](https://agentmods.dev/badge/skills/gabrielmoreira/agent-skills-mirror/asset-import/github.svg)](https://agentmods.dev/skills/gabrielmoreira/agent-skills-mirror/asset-import)
Your own site
<a href="https://agentmods.dev/skills/gabrielmoreira/agent-skills-mirror/asset-import"><img src="https://agentmods.dev/badge/skills/gabrielmoreira/agent-skills-mirror/asset-import/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for asset-import

Your own site · 80×15
<a href="https://agentmods.dev/skills/gabrielmoreira/agent-skills-mirror/asset-import"><img src="https://agentmods.dev/badge/skills/gabrielmoreira/agent-skills-mirror/asset-import.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 814 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00062 $0.00814
Opus 5.5 $0.00025 $0.00326
Sonnet 5.5 $0.00012 $0.00163
Haiku 4.5 $0.00006 $0.00081

Measured 3mo ago against content hash 80e0f062d36e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

asset-import scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

mirrors/repos/0xsline@OpenChatCut/src/agent/skills/asset-import/SKILL.md · 36 lines

How it starts

The opening of the file, as written. The whole thing — 36 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Asset Import

This build runs the editor and its media server locally. There is no hosted import API, no CLI, and no OAuth: media enters the project through the editor UI or through the agent tools below. Pick the path by where the bytes live.

Path 1 — user's local files (primary)

Ask the user to drag the files into the editor (preview canvas or 我的素材 panel) or use the upload button. The local pipeline then runs automatically: streaming write to /media/uploads/, conditional transcode (≤1920 long edge, browser-friendly codec, ~8Mbps), audio extraction, and auto-transcription (ASR starts on upload). Do not ask the user to pre-convert, pre-trim, or transcode anything themselves — the pipeline handles it.

The agent cannot read the user's filesystem. If the user gives you a /Users/... or C:\... path, tell them to drop that file into the editor instead; you cannot fetch it.

Path 2 — public URLs (agent-driven)

Use download_media with a single URL or a batch array. The server fetches, stores under /media/uploads/, and registers pool assets. Prefer this for stock/web media the user pointed at. After download, the asset behaves like any other media-pool asset.

Path 3 — external host transfer

Call import_media with {"action":"create_session", "assetType":..., "filename":..., "contentType":..., "size":...}. It returns one short-lived upload slot bound to the current project, session, asset identity, basename, POST, MIME type, and exact byte count. A host-side script may upload to that exact URL with the declared headers. The agent sandbox cannot reach the user's localhost, so do not attempt the transfer from run_code.

The successful upload response returns an opaque receipt, echoed assetType, and uploaded path. Probe the uploaded path when exact duration, dimensions, fps, or audio presence are needed, then call finalize_uploaded_asset with the receipt, echoed assetType, measured media metadata, and durationInSeconds for audio/video/gif. The server resolves the authoritative hash, path, size, filename, and asset id. Finalize commits the asset but never starts ASR; after placing an audio/video asset on a track, invoke transcribe_track separately if transcription is desired. The asset is not present or usable before finalize succeeds. For missing-media replacement, pass the existing assetId to import_media; omit it for a new asset. Never construct /media/uploads/... yourself and never claim bytes are ready before the upload response.

Read the full file on GitHub · 36 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 36 lines · 62 tokens per session scan A 80e0f062d36e

Subscribe to this mod's changes

asset-import is a skill published in the GitHub repository gabrielmoreira/agent-skills-mirror (24 stars, last pushed today), licensed MIT. It adds 62 tokens to every session and 814 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

asset-import compared with skills from other repositories

asset-import next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
asset-importgabrielmoreira/agent-skills-mirrorSkill24todayMITA62Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15ktodayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill331k4d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code