linkedin-article-publisherlisted
Install: claude install-skill iamzifei/linkedin-article-publisher-skill
# LinkedIn Article Publisher
Publish Markdown content to LinkedIn Articles editor, preserving formatting with rich text conversion.
## Prerequisites
- Playwright MCP for browser automation
- User logged into LinkedIn in browser
- Python 3.9+ with dependencies: `pip install Pillow pyobjc-framework-Cocoa`
## Scripts
Located in `~/.claude/skills/linkedin-article-publisher/scripts/`:
### parse_markdown.py
Parse Markdown and extract structured data:
```bash
python parse_markdown.py <markdown_file> [--output json|html] [--html-only]
```
Returns JSON with: title, cover_image, content_images (with block_index for positioning), html, total_blocks
### copy_to_clipboard.py
Copy image or HTML to system clipboard:
```bash
# Copy image (with optional compression)
python copy_to_clipboard.py image /path/to/image.jpg [--quality 80]
# Copy HTML for rich text paste
python copy_to_clipboard.py html --file /path/to/content.html
```
## Workflow
**Strategy: "Text First, Images Later"**
For articles with multiple images, paste ALL text content first, then insert images at correct positions using block index.
1. Parse Markdown with Python script -> get title, images with block_index, HTML
2. Navigate to LinkedIn Articles editor
3. Upload cover image (first image)
4. Fill title
5. Copy HTML to clipboard (Python) -> Paste with Cmd+V
6. Insert content images at positions specified by block_index
7. Save as draft (NEVER auto-publish)
## Efficiency Guidelines
**Goal**: Minimize wait time be