media-publish

media-publish is a skill for Claude Code from Minara-AI/media-agent. It costs 58 tokens per session (1,197 once invoked), scanned A, original, MIT.

A publishing workflow that sends prepared content to all configured online platforms. It checks the content files and can preview the operation without publishing.

In plain words
What is it for?
Use it to publish a post from its source file, manifest, variants, and referenced assets across multiple platforms.
Why use it?
It reduces the manual work of checking files and running each platform’s publishing process separately, while reporting partial failures.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./adapters/<name>/publish.sh "<post_dir>/variants/<name>.md" "<post_dir>/assets" [--dry-run].

Good fit Use it to publish a post from its source file, manifest, variants, and referenced assets across multiple platforms.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Minara-AI/media-agent
agentmods
npx agentmods add skills/minara-ai/media-agent/media-publish

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/minara-ai/media-agent/media-publish/github.svg)](https://agentmods.dev/skills/minara-ai/media-agent/media-publish)
Your own site
<a href="https://agentmods.dev/skills/minara-ai/media-agent/media-publish"><img src="https://agentmods.dev/badge/skills/minara-ai/media-agent/media-publish/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-publish

Your own site · 80×15
<a href="https://agentmods.dev/skills/minara-ai/media-agent/media-publish"><img src="https://agentmods.dev/badge/skills/minara-ai/media-agent/media-publish.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,197 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.00058 $0.01197
Opus 5 $0.00029 $0.00598
Sonnet 5 $0.00012 $0.00239
Haiku 4.5 $0.00006 $0.00120

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

Security

Grade A, and why

media-publish 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 11d 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-publish/SKILL.md · 168 lines

How it starts

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

/media-publish — Multi-Platform Publishing

Publish your content to all configured platforms in one go.

Prerequisites

Before starting, read these shared library files:

  • Read lib/adapter-discovery.md for adapter invocation patterns
  • Read lib/manifest-ops.md for manifest format and validation

Step 1: Locate the Post

If the user specifies a post path, use it. Otherwise, find the most recent post:

ls -dt content/posts/*/ 2>/dev/null | head -1

Verify the post directory contains:

  • source.md (canonical content)
  • manifest.yaml (content manifest)
  • variants/ directory with at least one variant file

If any are missing, report what's missing and stop.

Step 2: Pre-Publish Validation

Read manifest.yaml and validate:

  1. Source exists and is non-empty:

    [ -s "<post_dir>/source.md" ] || echo "ERROR: source.md is empty or missing"
    
  2. Each variant file exists and is non-empty: For each variant in the manifest, check the file exists:

    [ -s "<post_dir>/<variant_file>" ] || echo "ERROR: <variant_file> missing"
    
  3. Asset files exist (if referenced in manifest):

    [ -f "<post_dir>/<asset>" ] || echo "WARN: asset <asset> missing"
    
  4. Filter publishable variants: Only attempt platforms with status: draft, pending, or failed. Skip: published, skipped.

If no platforms are publishable, tell the user: "All platforms are already published or skipped. Nothing to do."

Step 3: Check Platform Configuration

For each publishable platform, verify:

  1. The adapter directory exists: adapters/<name>/
  2. The adapter's publish.sh is executable
  3. The required env var is set in .env (for API-based adapters)
  4. For git-push adapters, the configured repo path exists

Report any missing configuration and offer to run /media-setup.

Step 4: Confirm with User

Show what will be published:

Ready to publish "<title>":

  [PUBLISH] Dev.to — variants/devto.md (draft)
  [PUBLISH] Hashnode — variants/hashnode.md (draft)
  [SKIP]    GitHub Pages — already published

Read the full file on GitHub · 168 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. 11d ago First seen · 168 lines · 58 tokens per session scan A dc41fa1a23b9

Subscribe to this mod's changes

media-publish is a skill published in the GitHub repository Minara-AI/media-agent (6 stars, last pushed 5mo ago), licensed MIT. It adds 58 tokens to every session and 1,197 once invoked, about $0.0003 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

story-import

A tool for turning an existing novel into a structured writing project. It analyzes the book and organizes its characters, settings, plot plans, chapters, and tracking data for later writing.

zenstory-ai/oh-story-claudecode · 98 tokens

story-long-analyze

A long-form fiction analysis workflow for breaking down a novel’s opening chapters, characters, pacing, turning points, relationships, and overall structure.

zenstory-ai/oh-story-claudecode · 173 tokens

story-deslop

A writing editor for Chinese web novels that detects writing patterns often associated with AI-generated text and makes the prose feel more natural.

zenstory-ai/oh-story-claudecode · 62 tokens

story-short-analyze

A Chinese-language guide for analysing short popular web fiction, such as stories published on 番茄, 故事会, or 知乎盐选. It examines the core premise, plot structure, emotional arc, twists, writing techniques, and reader appeal.

zenstory-ai/oh-story-claudecode · 226 tokens

skill-curator

A Chinese-language evaluator for deciding whether developer tools and agent resources are suitable for a curated collection. It checks real repositories, installation paths, activity, duplicates, and security boundaries using evidence.

laolaoshiren/claude-code-skills-zh · 75 tokens

env-manager

An environment-variable manager for project settings stored outside the code, often in .env files. It checks variable definitions and usage while keeping secret values out of reports and terminal output.

laolaoshiren/claude-code-skills-zh · 22 tokens