By iamzifei
Create styled 3:4 ratio images with AI-generated covers from markdown, HTML, or text for Xiaohongshu posting, with automatic saving to Obsidian and screenshot capture.
A Claude Code skill that transforms markdown, HTML, or text content into beautifully styled HTML pages with AI-generated cover images, then captures them as sequential screenshots at 3:4 ratio for Xiaohongshu posting.
/baoyu-cover-image skill/baoyu-cover-image skill installed in ~/.claude/skills/# Copy to global skills
cp -r xiaohongshu-images-skill ~/.claude/skills/
# Or symlink for development
ln -s /path/to/xiaohongshu-images-skill ~/.claude/skills/xiaohongshu-images-skill
pip install playwright
playwright install chromium
# Verify the skill exists
ls ~/.claude/skills/baoyu-cover-image/SKILL.md
Invoke the skill in Claude Code:
/xiaohongshu-images
Then provide your content:
/path/to/article.md/xiaohongshu-images
# My Article Title
This is the introduction paragraph explaining the topic...
## Section 1
Content for section 1 with detailed explanation...
## Section 2
More content here with examples...
The skill generates output in ~/Dev/obsidian/articles/<date-title>/:
xhs-preview.html - Styled HTML preview page_attachments/cover-xhs.png - AI-generated cover image_attachments/xhs-01.png, xhs-02.png, ... - Sequential screenshotsxiaohongshu-images-skill/
├── SKILL.md # Main skill definition
├── README.md # This file
├── prompts/
│ └── default.md # Default HTML/CSS styling prompt
├── scripts/
│ └── screenshot.py # Screenshot capture
└── .gitignore
Output directory (outside skill folder):
~/Dev/obsidian/articles/<date>-<title>/
├── xhs-preview.html # Styled HTML preview page
├── imgs/ # Created by baoyu-cover-image
│ ├── prompts/
│ │ └── cover.md # Cover image prompt
│ └── cover.png # Generated cover (moved to _attachments/)
└── _attachments/ # Obsidian-style attachments folder
├── cover-xhs.png # Cover image (moved from imgs/cover.png)
├── xhs-01.png # Screenshot page 1
├── xhs-02.png # Screenshot page 2
└── ...
Create custom styling templates in the prompts/ directory:
.md file (e.g., prompts/minimal.md)Edit prompts/default.md to customize:
Default screenshot dimensions (3:4 ratio for Xiaohongshu):
To modify, edit scripts/screenshot.py:
SCREENSHOT_WIDTH = 1080
SCREENSHOT_HEIGHT = 1440
Captures sequential screenshots of HTML pages.
python scripts/screenshot.py ~/Dev/obsidian/articles/<date>-<title>/xhs-preview.html
Output: ~/Dev/obsidian/articles/<date>-<title>/_attachments/xhs-01.png, xhs-02.png, etc.
Features:
/baoyu-cover-image skill is installed and working/baoyu-cover-image directly to debugplaywright install chromiumIf fonts don't load in screenshots:
screenshot.pyMIT License - See LICENSE file for details.
baoyu-cover-image - Cover image generation (required dependency)chinese-viral-writer - Chinese viral content creationwechat-article-formatter - WeChat article formattingwechat-article-publisher - WeChat publishing automationOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub iamzifei/xiaohongshu-images-skillCodify a successful workflow from the current conversation into a permanent project-local skill at ~/.smtm/projects/{slug}/skills/. Future sessions can reference it without re-discovery.
Publish Markdown/HTML articles to WeChat Official Account (微信公众号) drafts
Personal GTD coach that transforms annual goals into actionable daily tasks. Features automatic memory for cross-session progress tracking, daily task generation, step-by-step guidance, and review systems. Supports English, 中文, 日本語.
Publish Markdown articles to LinkedIn Articles
Publish images and notes to Xiaohongshu (小红书) with agent-browser CDP mode
A growing collection of Claude-compatible academic workflow bundles. Covers scientific figures, manuscript writing and polishing, reviewer assessment, citation retrieval, data availability, paper reading, literature search, response letters, paper-to-PPTX conversion, and evidence-grounded Chinese invention patent drafting. Rules are organized as reusable skill folders with explicit workflows and quality checks.
Core skills library for Claude Code: TDD, debugging, collaboration patterns, and proven techniques
Harness-native ECC operator layer - 64 agents, 261 skills, 84 legacy command shims, reusable hooks, rules, selective install profiles, and production-ready workflows for Claude Code, Codex, OpenCode, Cursor, and related agent harnesses
Plugin-safe Claude Code distribution of Agentic Awesome Skills with 1,894 supported skills.
Comprehensive skill pack with 66 specialized skills for full-stack developers: 12 language experts (Python, TypeScript, Go, Rust, C++, Swift, Kotlin, C#, PHP, Java, SQL, JavaScript), 10 backend frameworks, 6 frontend/mobile, plus infrastructure, DevOps, security, and testing. Features progressive disclosure architecture for 50% faster loading.
This skill should be used when users need to generate ideas, explore creative solutions, or systematically brainstorm approaches to problems. Use when users request help with ideation, content planning, product features, marketing campaigns, strategic planning, creative writing, or any task requiring structured idea generation. The skill provides 30+ research-validated prompt patterns across 14 categories with exact templates, success metrics, and domain-specific applications.