media3-ads-ima

media3-ads-ima is a skill for Claude Code, Codex from sunnat629/android-media-pack. It costs 33 tokens per session (361 once invoked), scanned A, original, Apache-2.0.

A guide for adding Google IMA advertisements to Android Media3 video playback. CSAI inserts ads in the app, while SSAI inserts them into the stream before playback.

In plain words
What is it for?
It is for configuring ad view placement, companion ads, CSAI or SSAI sessions, and separate but related ad and content telemetry.
Why use it?
It helps keep ad placement, playback ownership, version choices, and ad tracking consistent when building a video player.

Skill for Claude CodeCodex

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

Good fit It is for configuring ad view placement, companion ads, CSAI or SSAI sessions, and separate but related ad and content telemetry.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sunnat629/android-media-pack/media3-ads-ima
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 sunnat629/android-media-pack --skill media3-ads-ima
Clone the repo
git clone --depth 1 https://github.com/sunnat629/android-media-pack

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 media3-ads-ima

README.md
[![agentmods](https://agentmods.dev/badge/skills/sunnat629/android-media-pack/media3-ads-ima/github.svg)](https://agentmods.dev/skills/sunnat629/android-media-pack/media3-ads-ima)
Your own site
<a href="https://agentmods.dev/skills/sunnat629/android-media-pack/media3-ads-ima"><img src="https://agentmods.dev/badge/skills/sunnat629/android-media-pack/media3-ads-ima/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 media3-ads-ima

Your own site · 80×15
<a href="https://agentmods.dev/skills/sunnat629/android-media-pack/media3-ads-ima"><img src="https://agentmods.dev/badge/skills/sunnat629/android-media-pack/media3-ads-ima.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 361 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.00033 $0.00361
Opus 5 $0.00016 $0.00180
Sonnet 5 $0.00007 $0.00072
Haiku 4.5 $0.00003 $0.00036

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

Security

Grade A, and why

media3-ads-ima 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 10d 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/ads-analytics/media3-ads-ima/SKILL.md · 45 lines

What it actually says

Trigger

Use for IMA ads, CSAI, SSAI/DAI, ad view placement, companion ads, and ad/content error separation.

Rules

  • Start with streaming-media-architecture for ownership, KMP split, preload window, and telemetry.
  • Pin Media3 to 1.10.1 through the version catalog.
  • Keep Media3 APIs in Android source sets; expose KMP-safe state/events upward.
  • Choose CSAI or SSAI per playback session.
  • Ad UI must be provided by an AdViewProvider attached to the playback surface.
  • Separate ad telemetry from content telemetry but correlate by session.
  • A playlist MUST NOT contain more than one IMA SSAI stream. One SSAI stream may be combined with other non-SSAI media items.

Example

media3-exoplayer-ima = { module = "androidx.media3:media3-exoplayer-ima", version.ref = "media3" }
  • media3-video-playback
  • media3-analytics-telemetry
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. 10d ago First seen · 45 lines · 33 tokens per session scan A 4e59da48e189

Subscribe to this mod's changes

media3-ads-ima is a skill published in the GitHub repository sunnat629/android-media-pack (13 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 33 tokens to every session and 361 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.

Related

Other skills, from other repositories

argent-screen-recording

Record a video of an iOS simulator or Android emulator/device screen using argent MCP tools. Use when the user asks to record the screen, capture a video of a flow, interaction, or animation, produce a screen recording, or document app behavior as a video clip.

software-mansion/argent · 59 tokens

swift-architecture

Choose and migrate an Apple-platform app architecture for a fintech iOS app (iOS 26 era). Covers MV with Observation (@Observable, @Environment injection, @Bindable), MVVM, hand-rolled MVI/unidirectional store+reducer, The Composable Architecture (@Reducer, @ObservableState, StoreOf, Effect.run, @Dependency…

TalissonVitorino/kmp-ios-skills · 203 tokens

media3-custom-audio-processor

Write a custom audio processor for a Media3/ExoPlayer audio pipeline — a filter, a fade, a gain stage — that is toggled at runtime and shared across several concurrent players. Use when a processor you added does nothing until the next track, when playback wedges with no error, when put(ByteBuffer) throws on your own…

maxrave-dev/kotlin-footguns · 92 tokens

nowplaying-pager-no-feedback-loop

A now-playing artwork pager that both follows the player and drives it, without the two writing to each other in a loop — the in-progress-scroll flag covers programmatic animation as well as drags, the seek is dispatched from the settled page only, and the page-difference decision is a pure function outside the UI…

maxrave-dev/kotlin-footguns · 134 tokens

react-native-docs

Comprehensive React Native reference covering core components, APIs, styling, flexbox, navigation, networking, animations, platform-specific code, debugging, performance, TypeScript integration, Fast Refresh, environment setup, React fundamentals, running on devices, and the New Architecture (Fabric, JSI…

pledgeandgrow/pledge-skills · 97 tokens

kappmaker-mascot

Generate an AI mascot for a KAppMaker app and its emotional states — a character that boosts engagement, virality and growth. Pick from 16 concepts, then render the chosen mascot in 16 app-UI states (happy, loading, error, celebrating...), backgrounds auto-removed; selected states can be animated into short looping…

KAppMaker/KAppMaker-CLI · 107 tokens