Publisher Medium
Commands marketing 89
npx claude-code-templates@latest --command marketing/publisher-medium Content
Medium Article Converter
Convert blog posts to Medium-ready format with proper HTML structure and image handling.
Usage: $ARGUMENTS
Examples:
bash
/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 URLProcess:
Parse Input & Detect Source
- File path, URL, or blog post slug
- Optional language parameter (en/ja)
Universal Input Detection
- File: Read markdown, PDF, HTML, or text
- URL: WebFetch to retrieve content
- Slug: Search codebase for blog post
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
Create HTML Preview File
- Generate
medium-article-[LANG].htmlpreview - Include one-click copy button
- Add image upload instructions with file paths
- Use Medium-style formatting and colors
- Generate
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.