publish

publish is a skill for Claude Code from code-katz/claude-publish-agent. It costs 70 tokens per session (2,710 once invoked), scanned A, original, MIT.

A publishing workflow for sending Markdown files to blogging platforms, currently through Medium's GitHub Gist import process. LinkedIn support is described as coming later.

In plain words
What is it for?
Use it when you want to publish or share a Markdown post on Medium, or prepare a post for another supported blogging platform.
Why use it?
It provides instructions and commands for turning a Markdown file into a published blog post, including the required setup.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Claude Code.

Part of the claude-publish plugin — 2 skills 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/code-katz/claude-publish-agent/publish
Any agent
npx skills add code-katz/claude-publish-agent --skill publish
Clone the repo
git clone --depth 1 https://github.com/code-katz/claude-publish-agent

Made for: Claude Code.

Or install claude-publish, the plugin that ships this one along with the rest of its 2 skills.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/code-katz/claude-publish-agent/publish.svg)](https://agentmods.dev/skills/code-katz/claude-publish-agent/publish)
Your own site
<a href="https://agentmods.dev/skills/code-katz/claude-publish-agent/publish"><img src="https://agentmods.dev/badge/skills/code-katz/claude-publish-agent/publish.svg" alt="Measured on agentmods" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,710 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.00070 $0.02710
Opus 5 $0.00035 $0.01355
Sonnet 5 $0.00014 $0.00542
Haiku 4.5 $0.00007 $0.00271

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

Security

Grade A, and why

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 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/publish/SKILL.md · 259 lines

How it starts

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

Publish Skill

This skill publishes markdown files to blogging platforms using the claude-publish CLI tool.

Prerequisites

The claude-publish CLI must be installed (the package is not on PyPI; install from the repo):

pipx install git+https://github.com/code-katz/claude-publish-agent

The gh CLI must be installed and authenticated (for GitHub Gist creation):

gh auth status

Remote/cloud sessions: Claude Code web and remote environments usually do not have gh (or the pipx CLI) installed. In those sessions, create the gist through the GitHub MCP server if one is connected, or draft and format the post there and defer the publish step to a local session. Do not dead-end at Step 5; say which path applies.

Trigger Conditions

Activate this skill when the user:

  • Says "/publish", "publish this", "publish to Medium", "post this to Medium"
  • Says "push this to my blog", "share this on Medium"
  • References publishing, posting, or sharing a markdown file to a blogging platform
  • Has just finished writing or editing a blog post and wants to publish it

Content Kit (publish/ directory)

The publish/ directory at the project root is the content kit — it stores branding assets and style guidance that ensure published content is on-brand and consistent.

Expected Structure

publish/
├── style-guide.md          # Colors, typography, image style, voice/tone
├── images/
│   └── {project}-header.svg  # SVG banner for README and blog posts (1280×320)
├── posts/                  # Blog post files (post-{NN}-{slug}.md)
├── boilerplate.md          # (optional) Standard footer, CTAs, about section
└── tags.json               # (optional) Default tags per platform

Content Kit Detection

Before every publish action, check if the project has a publish/ directory:

  1. If publish/style-guide.md exists: Read it and use its guidance when the user asks you to draft, review, or format content for this project. Reference the color palette, typography, and image style when generating illustrations or diagrams.

Read the full file on GitHub · 259 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. 5d ago First seen · 259 lines · 70 tokens per session scan A f10c75d8de1c

Subscribe to this mod's changes

publish is a skill published in the GitHub repository code-katz/claude-publish-agent (2 stars, last pushed 1mo ago), licensed MIT. It adds 70 tokens to every session and 2,710 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

export-pdf

Convert a markdown file to PDF using mdpdf. Use when exporting proposals, SOPs, or any markdown document to PDF.

martineserios/thebrana · 29 tokens

markstream-react

Integrate the beta markstream-react package into a React 18+ or Next app. Use when Codex needs to add the React renderer, choose the root, next, or server entrypoint, import CSS correctly, choose between content and nodes, keep client boundaries safe, add renderer-local streamingComponents or htmlComponents, use…

Simon-He95/markstream-vue · 94 tokens

rag-retrieval

Retrieval-Augmented Generation patterns for grounded LLM responses. Use when building RAG pipelines, embedding documents, implementing hybrid search, contextual retrieval, HyDE, agentic RAG, multimodal RAG, query decomposition, reranking, or pgvector search.

yonatangross/orchestkit · 58 tokens

dev

One-command dev loop boot. Spins up portless (named HTTPS subdomain), emulate (stateful API mocks), the project's dev server, and an agent-browser session, all keyed to the current git branch. Use when starting a feature branch, switching worktrees, or returning to a project after a break. Skips silently with install…

yonatangross/orchestkit · 76 tokens

publish-report

Publish local HTML, Markdown, or built static web projects with Pagecast as shareable public URLs. Use whenever Codex creates or finishes an .html, .htm, .md, .markdown, or static build output that a person could share (a report, plan, doc, dashboard, or analysis) — proactively offer to publish it without being asked…

Amal-David/pagecast · 113 tokens

alive:system-upgrade

Upgrade ALIVE to the current version. Handles v1/v2/v3.x source states, multi-surface aware (alive-mcp / Hermes / Codex), retroactive version detection, partial-failure resume, dry-run previews, and rollback inspection.

alivecontext/alive · 57 tokens