media-upload

media-upload is a skill for Claude Code from ArcBlock/agent-skills. It costs 51 tokens per session (1,938 once invoked), scanned A, original, MIT.

A tool for uploading images, animated images, videos, or a whole directory of media files to a shared public GitHub asset repository. It returns public raw.githubusercontent.com links, with images embedded inline and videos linked separately.

In plain words
What is it for?
Use it to upload screenshots, GIFs, recordings, or media folders, then insert the returned links into Markdown or other project documentation.
Why use it?
It gives documentation and pull requests stable public media links and avoids using the wrong Markdown format for videos.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the agentloop plugin — 24 skills shipped together

Good fit Use it to upload screenshots, GIFs, recordings, or media folders, then insert the returned links into Markdown or other project documentation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arcblock/agent-skills/media-upload
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 ArcBlock/agent-skills --skill media-upload
Clone the repo
git clone --depth 1 https://github.com/ArcBlock/agent-skills

Made for: Claude Code.

Or install agentloop, the plugin that ships this one along with the rest of its 24 skills.

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 media-upload

README.md
[![agentmods](https://agentmods.dev/badge/skills/arcblock/agent-skills/media-upload/github.svg)](https://agentmods.dev/skills/arcblock/agent-skills/media-upload)
Your own site
<a href="https://agentmods.dev/skills/arcblock/agent-skills/media-upload"><img src="https://agentmods.dev/badge/skills/arcblock/agent-skills/media-upload/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 media-upload

Your own site · 80×15
<a href="https://agentmods.dev/skills/arcblock/agent-skills/media-upload"><img src="https://agentmods.dev/badge/skills/arcblock/agent-skills/media-upload.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,938 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.00051 $0.01938
Opus 5.5 $0.00020 $0.00775
Sonnet 5.5 $0.00010 $0.00388
Haiku 4.5 $0.00005 $0.00194

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

Security

Grade A, and why

media-upload 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 1mo 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.

plugins/agentloop/skills/media-upload/SKILL.md · 99 lines

How it starts

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

media-upload — 媒体上传(图片/视频),输出 raw.githubusercontent.com URL

把媒体文件(截图、动图、录屏——单个或整目录)上传到公共图床仓(默认 ArcBlock/loop-agent-assets), 返回可匿名访问的 raw.githubusercontent.com/.../main/... URL。

Output language: 中文;代码 / 路径 / 命令保持原文。

⚠️ 上传统一,内嵌不统一(最容易踩的坑)

上传对 image/video 是同一套;但在 GitHub markdown 里怎么内嵌,按类型分流:

类型 扩展名 内嵌方式
图片 png / jpg ![](<raw-url>) 内联显示(#1334)
动图 gif ![](<raw-url>) 内联播放(gif 是 image/gif,同图片路径)
视频 webm / mp4 / mov 链接 [▶ 录屏](<raw-url>),或尽力 <video src=...>;绝不 ![](x.webm)——GitHub 不会把 raw 视频渲染成播放器,![]() 只会破图

判据只看扩展名:.png/.jpg/.gif → ![]();.webm/.mp4/.mov → 链接。

机制 = 插件里两个通用脚本(任何仓库同样跑,自动从 git remote 探 source repo,落在 <slug>/<ctx>/)

先解析插件根,脚本都在其 scripts/ 下:

PLUGIN="${AGENTLOOP_ROOT:-$HOME/.claude/plugins/marketplaces/arcblock-agent-skills/plugins/agentloop}"
  • 单个文件:bash "$PLUGIN/scripts/gh-upload-media.sh" <media> [name] → 自动选写通道(gh contents API / git push)→ content-type=image/*|video/* 检查 → stdout 打印 raw.githubusercontent/main URL。
  • 整目录:SCREENSHOT_DIR=<dir> CONTEXT=<ctx> bash "$PLUGIN/scripts/gh-upload-dir.sh" → 遍历目录(png/jpg/jpeg/gif/webm/mp4/mov)逐个调上面那个 → stdout 每行 filename\turl;任一失败追加一行 UPLOAD_FAILED\t<原因>(始终 exit 0,失败看这行不看退出码)。

Usage

/agentloop:media-upload <dir>          # 上传目录下所有媒体 → filename\turl map
/agentloop:media-upload <file>         # 单个(图片或视频)

# 消费方 skill 的 bash 里直接调脚本(自动化调机制、不调 slash 命令):
SCREENSHOT_DIR="$SHOT_DIR" CONTEXT="pr${PR}" bash "$PLUGIN/scripts/gh-upload-dir.sh" > url-map.tsv

拿到 map 后按上表分流内嵌。收到 UPLOAD_FAILED 行时在报告顶部显示 > ⚠️ 媒体上传失败 — <原因> 并降级 SendUserFile 直投(不能内嵌,但不产出损坏文件)。

上传器两通道都不可用时:浏览器原生附件上传(第三层兜底,issue #3010)

SendUserFile 只把文件发给当前对话的人,不会让证据落地到 GitHub——PR/issue 上依旧没有可核验的 截图。这类 review 证据(ui-verify 的 UI 截图最典型)需要持久发布在 GitHub 上,gh 与图床 仓 clone 又都不可用时,唯一确定性可重复的兜底是驱动一个已登录 GitHub 的浏览器走原生附件上传 (本轮真实产出过 arc#2991 / arcblock-site#165 / Site PR #166 的截图证据):

Read the full file on GitHub · 99 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. 1mo ago Changed · -1 lines 69ebc8281919
  2. 2mo ago Changed · -3 lines · -75 tokens per session 8b7838e29b23
  3. 3mo ago First seen · 103 lines · 126 tokens per session scan A d838f5c43be7

Subscribe to this mod's changes

media-upload is a skill published in the GitHub repository ArcBlock/agent-skills (5 stars, last pushed 22d ago), licensed MIT. It adds 51 tokens to every session and 1,938 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-31.

Related

media-upload compared with skills from other repositories

media-upload next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
media-uploadArcBlock/agent-skillsSkill522d agoMITA51Claude Code
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15kyesterdayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill331k4d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code