Skip to content
Development
Command

/publisher-medium

Convert blog posts to Medium-ready HTML format with image upload markers

From plugin
claude-code-templates
33k200 skills200 agents200 commands2 MCP
$ npx -y skills add davila7/claude-code-templates --agent claude-code

Command definition

publisher-medium.md
allowed-tools: Read, Write, Bash, Glob, WebFetch
argument-hint: <input> [lang]
description: Convert blog posts to Medium-ready HTML format with image upload markers

Medium Article Converter

Convert blog posts to Medium-ready format with proper HTML structure and image handling.

**Usage:** `$ARGUMENTS`

**Examples:**

/publisher:medium my-post           # Default English
/publisher:medium my-post ja        # Japanese
/publisher:medium article.md        # From file path
/publisher:medium https://blog.com/post  # From URL

**Process:**

1. **Parse Input & Detect Source**

  • File path, URL, or blog post slug
  • Optional language parameter (en/ja)

2. **Universal Input Detection**

  • **File**: Read markdown, PDF, HTML, or text
  • **URL**: WebFetch to retrieve content
  • **Slug**: Search codebase for blog post

3. **Convert to Medium Format**

  • Parse markdown and extract frontmatter
  • Convert to clean HTML suitable for Medium
  • Preserve headers, lists, code blocks, quotes
  • Add image upload markers for diagrams
  • Include image paths for easy upload reference

4. **Create HTML Preview File**

  • Generate `medium-article-[LANG].html` preview
  • Include one-click copy button
  • Add image upload instructions with file paths
  • Use Medium-style formatting and colors

5. **Open in Browser**

  • Open HTML preview file
  • Open Medium editor (https://medium.com/new-story)
  • User can copy HTML and paste into Medium
  • Follow image markers to upload diagrams

**Output:**

  • HTML preview file with copy button
  • Clear image upload markers
  • File paths shown for each image
  • Ready to paste into Medium editor

**Note**: Works universally - no dependencies required, just Read, Write, and Bash tools.

Read more
@davila7
Ships withclaude-code-templates

Open-source registry and CLI for Claude Code components: agents, commands, skills, hooks, MCPs, settings and mods

33k200 skills200 agents2 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
33.5k
Star history of davila7/claude-code-templates on GitHub, a chart by star-history.com

Other commands on claude-code-templates.

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command