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.
npx skills add mthines/agent-skills --skill attach-mediagit clone --depth 1 https://github.com/mthines/agent-skillsWrote 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.
[](https://agentmods.dev/skills/mthines/agent-skills/attach-media)<a href="https://agentmods.dev/skills/mthines/agent-skills/attach-media"><img src="https://agentmods.dev/badge/skills/mthines/agent-skills/attach-media/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.
<a href="https://agentmods.dev/skills/mthines/agent-skills/attach-media"><img src="https://agentmods.dev/badge/skills/mthines/agent-skills/attach-media.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00068 | $0.01915 |
| Opus 5.5 | $0.00027 | $0.00766 |
| Sonnet 5.5 | $0.00014 | $0.00383 |
| Haiku 4.5 | $0.00007 | $0.00192 |
Grade A, and why
attach-media scanned grade A with 1 finding 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 today.
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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
--attach` with a curl fallback; never writes placeholders. Triggers on "attach How it starts
The opening of the file, as written. The whole thing — 113 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Attach Media
Put real screenshots and recordings into a GitHub PR or issue, so a reviewer sees the change without running it. Every skill that wants media on a PR delegates here, so the upload method lives in exactly one place.
Skill("attach-media", "<pr-url|#n> <file>[#alt] ... [--to body|comment|urls] [--heading <text>] [--dry-run]")
| Argument | Default | Meaning |
|---|---|---|
<pr-or-issue-ref> |
the current branch's open PR | A PR or issue URL, or #<n> in the current repo. |
<file>[#alt] |
— (required, 1–50) | A local file. Text after # is the image's alt text; video has none. |
--to body |
yes | Write into the owned region of the PR or issue body. Re-runs merge into the region by filename. |
--to comment |
— | Post one new comment instead. Use for evidence attached to a specific event. |
--to urls |
— | Upload only, through rung 2, and print one Markdown line per file for the caller to embed. Use it for a review thread or any body the caller writes itself. Writes nothing to GitHub except the upload. |
--heading <text> |
Screenshots |
The ### heading inside the owned region. |
--dry-run |
— | Run the preflight and print the planned region. Upload nothing. |
Step 1: Preflight every file
Drop a file from the run, and name it in the report, when any check fails:
| # | Check | On failure |
|---|---|---|
| 1 | The file exists and is non-empty. | skipped (missing) |
| 2 | The extension is png, jpg, jpeg, gif, webp, svg, mp4, mov, or webm. |
Convert other video (avi, mkv) with ffmpeg -i in.avi -c:v libx264 -pix_fmt yuv420p -an out.mp4; else skipped (unsupported type) |
| 2a | A recording is a video, not a GIF. | Convert an animated .gif (a browser-extension recording) to .mp4: ffmpeg -i x.gif -movflags +faststart -vf "scale=1280:-2,format=yuv420p" -c:v libx264 -crf 28 -an x.mp4. It is ~20× smaller, and its bare URL renders as a player; a GIF renders only as an image embed |
| 3 | An image or GIF is ≤ 10 MB; a video is ≤ 10 MB (100 MB on a paid plan). | Re-encode a video once: ffmpeg -i in.webm -vf scale=1280:-2 -c:v libx264 -crf 30 -an out.mp4; else skipped (too large) |
| 4 | You looked at it. Open every image with the Read tool — for a light/dark pair rendered from one page (impact-map), one view covers both, and a view the caller already made this run counts only when the file was not re-rendered or edited after it; for a video, open the screencast contact sheet beside it (<stem>.sheet.png, one frame per step) when it exists, else extract three frames (ffmpeg -i v.webm -vf fps=1/3 -frames:v 3 /tmp/f%d.png) and open them. |
skipped (contains <secret/token/PII>) — never upload it |
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- today Changed · +1 lines 5e502e5cc403
- 1mo ago Changed 60d68b0d27f3
- 1mo ago Changed · +1 lines 95bef2c9587a
- 1mo ago Changed 7ac0f688977c
- 1mo ago Changed · -5 lines · -99 tokens per session 632a1485a698
- 1mo ago First seen · 116 lines · 167 tokens per session scan A 7e35864e0202
attach-media is a skill published in the GitHub repository mthines/agent-skills (22 stars, last pushed yesterday), licensed MIT. It adds 68 tokens to every session and 1,915 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-18.
attach-media compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| attach-mediamthines/agent-skills | Skill | 22 | yesterday | MIT | A | 68 | Claude Code |
| create-pull-requestCodelyTV/agent-harness | Skill | 363 | 10d ago | none | A | 64 | Claude Code |
| raise-prPubx-ai/skills | Skill | 6 | 3d ago | none | A | 117 | Claude Code, Codex |
| local-pr-reviewPubx-ai/skills | Skill | 6 | 3d ago | none | A | 170 | Claude Code, Codex |
| local-reviewPubx-ai/skills | Skill | 6 | 3d ago | none | A | 158 | Claude Code, Codex |
| patternsanthropics/claude-plugins-official | Skill | 49k | yesterday | Apache-2.0 | A | 40 | Claude Code |
| ego-lite-simplifycitrolabs/ego-lite | Skill | 26k | yesterday | MIT | A | 68 | Codex |