media_library

media_library is a skill for Claude Code, Codex from tubecreate/tubecli. It costs 0 tokens per session (600 once invoked), scanned A, original, MIT.

A shared library for storing images, GIFs, and videos that multiple extensions can use. Files are grouped into named collections and can be uploaded, imported, or selected in random or ordered rotation.

In plain words
What is it for?
Use it to create media collections, upload or import files, and let extensions choose media randomly, cycle through all files, or use a model-selected filename.
Why use it?
It avoids keeping duplicate copies of the same media in separate extensions. Updating one shared collection prevents other users from being left with stale copies.

Skill for Claude CodeCodex

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

Good fit Use it to create media collections, upload or import files, and let extensions choose media randomly, cycle through all files, or use a model-selected filename.

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

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 media_library

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/tubecreate/tubecli/media_library"><img src="https://agentmods.dev/badge/skills/tubecreate/tubecli/media_library.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 600 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 30
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • high Tool Misuse · line 33
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
How audits are shown
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.00000 $0.00600
Opus 5 $0.00000 $0.00300
Sonnet 5 $0.00000 $0.00120
Haiku 4.5 $0.00000 $0.00060

Measured 5d ago against content hash fedc34942865, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

media_library 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 5d ago.

The scan reads SKILL.md. This mod also ships 5 executable files (__init__.py, extension.py, library.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

tubecli/extensions/media_library/SKILL.md · 64 lines

How it starts

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

Media Library

A shared bag of raw material — images, GIFs and videos — that every extension can draw from. The user gathers material once; extensions point at a collection by id and the machine picks a file.

Why it exists

Each extension used to grow its own private store, so the same picture had to be uploaded several times and fixing it in one place left the other copies stale. One library, many consumers.

Concepts

  • Collection: a named bag. It has an id (ASCII, immutable, used as the folder name) and a display name that can be renamed freely — renaming never touches the folder.
  • File: an image, GIF or video inside a collection. Order is stable.
  • Picking: random (any file), cycle (walks the whole collection before repeating, so two consecutive uses do not collide), ai (the caller supplies the filename a model chose).

Endpoints

Prefix /api/v1/media. Page at /media-library.

Route What it does
GET/POST /collections list, create
GET/PUT/DELETE /collections/{cid} open, rename, remove
POST /collections/{cid}/files upload one file (multipart file)
POST /collections/{cid}/import copy a file already on disk, {path}
GET/DELETE /collections/{cid}/files/{name} serve, remove
POST /collections/{cid}/pick {mode, commit, file, kind} → one file
GET /health how many collections and files, and where they live

Using it from another extension

from tubecli.extensions import media_library

for c in media_library.collections():
    print(c["id"], c["name"], c["count"])

path, why = media_library.pick_media("kho_avatar", mode="cycle", kind="image")
if path:
    ...        # dùng file
else:
    log.warning("kho rỗng: %s", why)

Import it lazily and tolerate its absence: an older TubeCLI may not have it, and a missing library should degrade one layer, not break the whole job.

When an agent uses this

Ask for a collection by name, then pick. Pictures come from the bag; text does not — write the words from the actual content, and let the machine draw them with real fonts. That split is the whole point: material is reused, wording is written fresh for each video.

Read the full file on GitHub · 64 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. 5d ago First seen · 64 lines · 0 tokens per session scan A fedc34942865

Subscribe to this mod's changes

media_library is a skill published in the GitHub repository tubecreate/tubecli (167 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 600 tokens. 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-09-06.