publish-post

publish-post is a command for Claude Code from OpenVidu/openvidu.io. It costs 15 tokens per session (338 once invoked), scanned A, original, Apache-2.0.

A command for publishing a draft blog post by moving it from placeholder `YYYY/MM` folders to folders named for the current year and month. It also updates the post date and image paths.

In plain words
What is it for?
Use it to publish a blog post by its slug, move its related images, and run the site's content lint check.
Why use it?
It removes the repetitive file-moving and date-updating work involved in publishing a prepared post, while checking that the expected draft exists.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: reads .claude/ paths.

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 commands/openvidu/openvidu.io/publish-post
Clone the repo
git clone --depth 1 https://github.com/OpenVidu/openvidu.io

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/openvidu/openvidu.io/publish-post.svg)](https://agentmods.dev/commands/openvidu/openvidu.io/publish-post)
Your own site
<a href="https://agentmods.dev/commands/openvidu/openvidu.io/publish-post"><img src="https://agentmods.dev/badge/commands/openvidu/openvidu.io/publish-post.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 338 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.00015 $0.00338
Opus 5 $0.00008 $0.00169
Sonnet 5 $0.00003 $0.00068
Haiku 4.5 $0.00002 $0.00034

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

Security

Grade A, and why

publish-post 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 6d 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.

.claude/commands/publish-post.md · 22 lines

What it actually says

Publish the draft blog post whose slug is $ARGUMENTS. This is the mechanical draft→publish transition defined in .claude/skills/blog-write/references/conventions.md.

  1. Locate the draft at docs/blog/posts/YYYY/MM/<slug>.md (literal YYYY/MM directories). If it is not there, stop and tell the user — the post may already be published or the slug wrong.
  2. Take today's date as the publish date (<year>, zero-padded <month>).
  3. Set the frontmatter date: to the publish date.
  4. In the post body, string-replace every YYYY/MM/ with <year>/<month>/ — this rewrites the asset references and nothing else, by design.
  5. git mv docs/blog/posts/YYYY/MM/<slug>.md docs/blog/posts/<year>/<month>/<slug>.md and git mv docs/assets/images/blog/YYYY/MM/<slug> docs/assets/images/blog/<year>/<month>/<slug> (create the year/month directories if this is the first post of the month).
  6. Verify nothing else remained in the placeholder folders; remove them if now empty.
  7. Run ovweb lint docs/blog/posts/<year>/<month>/<slug>.md and fix any error it reports.
  8. Remind the user: merging this to main does not put the post online — it goes live with the next Publish Web workflow run (ovweb publish latest X.Y).
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. 6d ago First seen · 22 lines · 15 tokens per session scan A d194544e57ae

Subscribe to this mod's changes

publish-post is a command published in the GitHub repository OpenVidu/openvidu.io (5 stars, last pushed yesterday), licensed Apache-2.0. It adds 15 tokens to every session and 338 once invoked, about $0.0001 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.