prev

prev is a skill for Claude Code from Bangs00/claude-media-control. It costs 36 tokens per session (201 once invoked), scanned A, original, MIT.

A command for returning to the previous track in the media app currently playing on a Mac.

In plain words
What is it for?
It is for going back one track or restarting the current track when the previous command is used.
Why use it?
It removes the need to open the media app just to replay or go back a song.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the media plugin — 16 skills, 1 hook 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/bangs00/claude-media-control/prev
Any agent
npx skills add Bangs00/claude-media-control --skill prev
Clone the repo
git clone --depth 1 https://github.com/Bangs00/claude-media-control

Made for: Claude Code.

Or install media, the plugin that ships this one along with the rest of its 16 skills, 1 hook.

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 prev

README.md
[![agentmods](https://agentmods.dev/badge/skills/bangs00/claude-media-control/prev.svg)](https://agentmods.dev/skills/bangs00/claude-media-control/prev)
Your own site
<a href="https://agentmods.dev/skills/bangs00/claude-media-control/prev"><img src="https://agentmods.dev/badge/skills/bangs00/claude-media-control/prev.svg" alt="Measured on agentmods" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 201 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.1 $0.00036 $0.00201
Opus 5 $0.00018 $0.00101
Sonnet 5 $0.00007 $0.00040
Haiku 4.5 $0.00004 $0.00020

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

Security

Grade A, and why

prev 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.

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/prev/SKILL.md · 16 lines

What it actually says

Went to the previous track. Resulting state (JSON):

!"${CLAUDE_PLUGIN_ROOT}/scripts/media.sh" prev

Confirm to the user in one compact markdown line (not a code block): ▶︎|⏸ **<title>** — *<artist>* · <appName> (title bold, artist italic) — this is the track now playing.

  • Note: many apps restart the current track on the first "previous" and only jump to the prior track on a second call — mention this if the title did not change.
  • If the JSON is null: nothing was playing to control.
  • If "degraded": true or a stderr hint appeared: add one short note pointing to /media:doctor.
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 · 16 lines · 36 tokens per session scan A 708dcc1bac5d

Subscribe to this mod's changes

prev is a skill published in the GitHub repository Bangs00/claude-media-control (4 stars, last pushed 1mo ago), licensed MIT. It adds 36 tokens to every session and 201 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-31.

Related

Other skills, from other repositories

quiz-me

Quiz the user on root cause and intended fix BEFORE writing any non-trivial code, then verify comprehension of every change after. Use when the user asks for a bug fix, refactor, or feature and wants to stay technically sharp instead of vibe-coding. Also use when the user says "quiz me", "don't let me vibe code", or…

emanzurv/quiz-me-skill · 82 tokens

economist-style

Apply The Economist style guide to written content. Use when editing markdown, HTML, documentation, or any written text that needs professional editing for clarity, precision, and brevity. Detects weasel words, fillers, passive voice, and style issues.

TAJD/economist-style-guide-plugin · 54 tokens

configure

Set up the telegram-topics channel — save the bot token and forum group id, then run a preflight check. Use when the user pastes a Telegram bot token, asks to configure telegram-topics, asks "how do I set this up", or wants to check channel status.

2naive/claude-telegram-topics · 60 tokens

allowlist

Put this plugin on the Claude Code channels allowlist (managed settings) so --channels delivers inbound messages — one command, one admin prompt. Use when preflight reports NOT ALLOWLISTED, when Telegram messages never arrive in sessions although the send tools work, or when the user asks to set up the channels…

2naive/claude-telegram-topics · 70 tokens

access

Manage who may drive telegram-topics sessions — view and edit the user allowlist. Use when the user asks to allow or remove a Telegram user, check who's allowed, or lock the channel down.

2naive/claude-telegram-topics · 42 tokens

spotify

Control Spotify on macOS. Use for playing music, controlling playback, and getting track information.

rbouschery/marketplace · 21 tokens