media-studio

media-studio is a skill for Claude Code, Codex from nirholas/XActions. It costs 49 tokens per session (611 once invoked), scanned A, original, Apache-2.0.

A set of browser-console tools for X Media Studio, the area of X used to manage uploaded media and creator video features. It covers media uploads, the library, analytics, monetization settings, live-stream management, and captions.

In plain words
What is it for?
Use it to upload or inspect media, view media analytics, open creator settings, manage live streams, or add SRT captions to videos.
Why use it?
It puts common Media Studio actions into reusable scripts instead of requiring each task to be performed manually in the site.

Skill for Claude CodeCodex

Part of the xactions plugin — 47 skills, 1 command, 6 agents, 1 MCP server shipped together

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.

agentmods
npx agentmods add skills/nirholas/xactions/media-studio
Any agent
npx skills add nirholas/XActions --skill media-studio
Clone the repo
git clone --depth 1 https://github.com/nirholas/XActions

Made for: Claude Code, Codex.

Or install xactions, the plugin that ships this one along with the rest of its 47 skills, 1 command, 6 agents, 1 MCP server.

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-studio

README.md
[![agentmods](https://agentmods.dev/badge/skills/nirholas/xactions/media-studio.svg)](https://agentmods.dev/skills/nirholas/xactions/media-studio)
Your own site
<a href="https://agentmods.dev/skills/nirholas/xactions/media-studio"><img src="https://agentmods.dev/badge/skills/nirholas/xactions/media-studio.svg" alt="Measured on agentmods" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 611 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00049 $0.00611
Opus 5 $0.00024 $0.00305
Sonnet 5 $0.00010 $0.00122
Haiku 4.5 $0.00005 $0.00061

Measured 4d ago against content hash a6a5e24b9c26, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

media-studio 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 4d 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.

skills/media-studio/SKILL.md · 72 lines

How it starts

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

Media Studio

Browser console scripts for X's Media Studio (studio.x.com).

Script Selection

Goal File Navigate to
Navigate to Media Studio, upload, manage library src/mediaStudio.js x.com or studio.x.com
Add or manage video captions src/videoCaptions.js studio.x.com or tweet with video

Quick Start

  1. Go to x.com or studio.x.com
  2. Open DevTools (F12) → Console
  3. Paste src/mediaStudio.js → Enter

mediaStudio.js — Available Functions

XActions.mediaStudio.navigate()          // Navigate to studio.x.com
XActions.mediaStudio.listMedia()         // List all uploaded media (up to maxMediaToScan)
XActions.mediaStudio.uploadMedia(file)   // Upload a media file
XActions.mediaStudio.viewAnalytics()     // View media analytics (views, engagement)
XActions.mediaStudio.monetizationSettings() // Open monetization config
XActions.mediaStudio.liveStream()        // Open live streaming management

videoCaptions.js — Available Functions

XActions.captions.addToCurrentVideo()    // Add captions to video on current page
XActions.captions.upload('file.srt')     // Upload an SRT caption file
XActions.captions.generate()             // Trigger auto-caption generation (Premium)
XActions.captions.download()             // Download existing captions
XActions.captions.remove()               // Remove captions from a video

Configuration (mediaStudio.js)

const CONFIG = {
  delayBetweenActions: 2000,  // ms between UI actions
  scrollDelay: 2000,           // ms between scroll actions
  maxMediaToScan: 100,         // Max items to load in library
  maxRetries: 5,               // Retries on selector miss
};

Notes

  • Media Studio requires X Premium / Creator subscription for some features
  • Auto-caption generation is a Premium feature
  • Manual SRT upload is available to all users on tweet pages
  • Analytics in Media Studio are more detailed than tweet-level analytics

Read the full file on GitHub · 72 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. 4d ago First seen · 72 lines · 49 tokens per session scan A a6a5e24b9c26

Subscribe to this mod's changes

media-studio is a skill published in the GitHub repository nirholas/XActions (502 stars, last pushed today), licensed Apache-2.0. It adds 49 tokens to every session and 611 once invoked, about $0.0002 per session on Opus 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.