Substack Article Formatter for Openclaw

A technical formatting tool that converts plain text into Substack-optimized HTML for seamless copy-pasting.

maddiedreese
v1.0.1
Jan 26, 2026
0
0
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install substack-formatter

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install substack-formatter using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Substack Article Formatter?

The Substack Article Formatter is a specialized utility designed to solve the common issue where the Substack editor treats raw markdown as plain text. By utilizing Openclaw Skills, this tool transforms your content into semantic HTML that is recognized immediately by web-based editors. It ensures that your visual presentation—including headers, emphasis, and spacing—remains intact during the transition from a coding agent or local environment to the publishing platform.

This skill is built for newsletter creators who want to maintain their voice without wasting time on manual re-formatting. It focuses on converting text into a rich HTML format and copying it to the clipboard using the correct mime-type, allowing for a perfect paste every time. Whether you are drafting long-form essays or quick updates, this tool bridges the gap between raw content and professional publishing.

Substack Article Formatter Use Cases

  • Converting markdown notes into publication-ready Substack drafts
  • Preserving complex list structures and headers when moving text to the web
  • Automating the formatting of AI-generated articles for newsletter distribution
  • Ensuring consistent paragraph spacing and visual hierarchy across different posts

How Substack Article Formatter Works

  1. The user provides raw text or markdown content to the formatting skill.
  2. The engine analyzes the text structure to identify headers, bold text, and lists.
  3. Content is converted into a semantic HTML string using tags like and

    .

  4. The integrated copy script pushes the HTML to the system clipboard using the text/html format.
  5. The user pastes the content directly into the Substack editor, where it renders with all styles preserved.

Substack Article Formatter Setup

To integrate this tool into your Openclaw Skills workflow, ensure you have the Python environment configured and the necessary scripts available in your skill directory.

Install the required dependencies:

pip install pyperclip

Run the formatter to prepare your content:

python formatter.py "Your plain text here"

Use the copy utility to send the formatted HTML to your clipboard:

python copy_to_substack.py

Substack Article Formatter Data Schema & Taxonomy

The Substack Article Formatter organizes its workflow through a set of functional scripts and templates to ensure data integrity.

Component Purpose
formatter.py Processes raw text and generates semantic HTML strings.
copy_to_substack.py Handles the system clipboard interaction for HTML formatting.
test_formatter.py Provides a validation suite for testing formatting edge cases.
Standard Template High-structure format with headers and bold emphasis.
Minimal Template Clean format focusing on spacing and simple readability.

Substack Article Formatter Advanced Features

  • Dual-mode formatting allowing for either Standard or Minimal visual styles
  • Clipboard mime-type optimization to ensure the Substack editor interprets the content as HTML rather than plain text
  • Automated bullet point and numbered list conversion
  • Preservation of paragraph breaks and intentional whitespace
  • Lightweight Python implementation for easy integration into larger AI agent workflows

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*