sugarforever avatar

Publish Substack Article

This automates publishing Markdown articles to Substack by converting them to HTML and pasting into the editor as rich text. It handles the full workflow: extracts titles from frontmatter or headers, converts Markdown with proper code blocks and formatting, uses clipboard paste to preserve styling (direct fill would strip formatting), and saves everything as a draft. One notable quirk: Substack's editor doesn't support HTML tables, so it includes a preprocessing step to convert tables to PNG images via the diagram-to-image skill before uploading. Works with both Playwright and Chrome DevTools MCP servers, defaulting to Playwright. Useful if you write in Markdown but need Substack's rich editor for final review and publishing.

skills.sh installs
609
GitHub stars
139
last updated
Aug 21, 2026

Install

$ npx -y skills add sugarforever/01coder-agent-skills --skill publish-substack-article --agent claude-code

Installs into .claude/skills of the current project.

Files

Publish Substack Article

Publish Markdown content to Substack post editor, converting Markdown to HTML and pasting as rich text. Saves as draft for user review before publishing.

Prerequisites

  • Browser automation MCP (either one):
    • Chrome DevTools MCP (mcp__chrome-devtools__*)
    • Playwright MCP (mcp__playwright__*)
  • User logged into Substack
  • Python 3 with markdown package (pip install markdown)
  • copy_to_clipboard.py script (shared from publish-zsxq-article skill)

Browser MCP Tool Mapping

This skill works with both Chrome DevTools MCP and Playwright MCP:

ActionChrome DevTools MCPPlaywright MCP
Navigatenavigate_pagebrowser_navigate
Take snapshottake_snapshotbrowser_snapshot
Take screenshottake_screenshotbrowser_take_screenshot
Click elementclickbrowser_click
Fill textfillbrowser_type
Upload fileupload_filebrowser_file_upload
Press keypress_keybrowser_press_key
Evaluate JSevaluate_scriptbrowser_evaluate

Sponsors

Details

Repository
github.com/sugarforever/01coder-agent-skills
Categories
Frontend Development, AI & Agent Building, Release Management, Marketing & SEO
First seen
Jun 3, 2026

More from sugarforever/01coder-agent-skills

All 13
1secondsky avatarimage-optimizationsecondsky/claude-skillsOptimizes images for web performance using modern formats, responsive techniques, and lazy loading strategies. Use when improving page load times, implementing 604skills.sh installs
2joneqian avatarwechat-miniprogramjoneqian/claude-skills-suiteWeChat Mini Program development framework. Use for building WeChat mini apps, WXML templates, WXSS styles, WXS scripting, component development, and WeChat API 599skills.sh installs
3kochetkov-ma avatarbrewpage-publishkochetkov-ma/claude-brewcodePublish HTML, markdown, text, any file, or a multi-file site to brewpage.app — free hosting with no sign-up. Paste text, share a file, upload a site, or host a 598skills.sh installs
4onewave-ai avatarpresentation-design-enhanceronewave-ai/claude-skillsTransform text-heavy slides into visual storytelling. Suggest layout improvements, icon usage, and data visualization.596skills.sh installs
5davila7 avatarlatex-postersdavila7/claude-code-templatesCreate professional research posters in LaTeX using beamerposter, tikzposter, or baposter. Support for conference presentations, academic posters, and scientifi592skills.sh installs
6google-labs-code avatarstitch-sdk-usagegoogle-labs-code/stitch-sdkUse the Stitch SDK to generate, edit, and iterate on UI screens from text prompts, manage projects, and retrieve screen HTML/images. Use when the user wants to 576skills.sh installs