Transform markdown and HTML into beautifully styled 3:4 ratio images optimized for Xiaohongshu posting.
Works with
Accepts markdown, HTML, or text input and generates AI-powered cover images via the baoyu-cover-image skill
Produces styled HTML pages with dark gradient backgrounds, cream-colored cards, and responsive typography using Google Fonts
Captures sequential 3:4 aspect ratio screenshots (1200×1600px at 2x scale) with intelligent text boundary detection to prevent content cutoff
Suppor
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionxiaohongshu-imagesExecute the skills CLI command in your project's root directory to begin installation:
Fetches xiaohongshu-images from iamzifei/xiaohongshu-images-skill and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate xiaohongshu-images. Access via /xiaohongshu-images in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Create detailed user stories, acceptance criteria, and feature specs
Example
Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios
Reduce spec writing time by 50%, ensure comprehensive coverage
Research competitors, compare features, identify gaps
Example
Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities
Complete competitive research in 2 hours instead of 2 days
Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs
Example
Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale
0
total installs
0
this week
5
GitHub stars
0
upvotes
Run in your terminal
0
installs
0
this week
5
stars
This skill 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.
The skill performs the following workflow:
prompts/default.md in this skill's directory/baoyu-cover-image skill to generate a cover image based on the article content~/Dev/obsidian/{account_folder}/articles/<date-title>/xhs-preview.htmlThe skill determines the output account folder using the following priority:
--account ParameterIf the user specifies --account, use the corresponding folder:
/xiaohongshu-images <article> --account james-cn # → 10_在悉尼和稀泥
/xiaohongshu-images <article> --account james-en # → 11_BuildWithJames
/xiaohongshu-images <article> --account mom-reading-club # → 12_妈妈在读
If no --account is specified, try to infer from the input file path:
Input: ~/Dev/obsidian/12_妈妈在读/articles/2026-01-20-xxx/index.md
→ Output to: ~/Dev/obsidian/12_妈妈在读/articles/2026-01-20-xxx/
Input: ~/Dev/obsidian/10_在悉尼和稀泥/articles/2026-01-20-xxx/index.md
→ Output to: ~/Dev/obsidian/10_在悉尼和稀泥/articles/2026-01-20-xxx/
If the account cannot be determined from the path (e.g., raw content input), use template-based mapping:
| Template | Account Folder |
|---|---|
default |
10_在悉尼和稀泥 |
mom-reading-club |
12_妈妈在读 |
| Account | Folder |
|---|---|
james-cn |
10_在悉尼和稀泥 |
james-en |
11_BuildWithJames |
mom-reading-club |
12_妈妈在读 |
When the user invokes this skill, follow these steps:
The user will provide one of the following:
/path/to/article.md)If the input is unclear, ask the user to provide either a file path, URL, or paste the content directly.
Read the prompt template from this skill's directory:
{{SKILL_DIR}}/prompts/default.md
Use the Read tool to get the prompt template content. This template defines the HTML/CSS styling specifications.
From the content, extract:
Create the output folder path as: ~/Dev/obsidian/{account_folder}/articles/<date>-<sanitized-title>/
_attachments/ subfolder⚠️ COMPLIANCE CHECK: Before generating, ensure the image concept complies with Xiaohongshu community guidelines (Section 11 of the prompt template). The image must:
Use the /baoyu-cover-image skill to generate the cover image:
/baoyu-cover-image ~/Dev/obsidian/{account_folder}/articles/<date>-<title>/index.md --style <auto-or-specified> --no-title
Or if the content is not yet saved, pass the content directly to the skill.
Style Selection:
tech - AI, coding, digital topicswarm - Personal stories, emotional contentbold - Controversial, attention-grabbing topicsminimal - Simple, zen-like contentplayful - Fun, casual, beginner-friendly contentnature - Wellness, health, organic topicsretro - History, vintage, traditional topicselegant - Business, professional content (default)Special: Mom Reading Club Template
When using the mom-reading-club template, override the default cover style with calligraphy & ink-wash illustration (书法水墨风):
/baoyu-cover-image <article> --style minimal --no-title --custom-prompt "Chinese calligraphy and ink-wash illustration style (书法水墨风). Zen-like simplicity with generous white space (留白). Include subtle ink-wash brush strokes as background texture. Minimalist botanical elements (bamboo, plum blossoms, orchids, lotus) when appropriate. Color palette: ink black (#1a1a1a), warm gray (#666666), subtle gold accents (#C9A962), warm off-white background (#F5F3EE). If human figures are included, depict an elegant woman aged 30-45 with a contemplative, refined demeanor. NO TEXT on the cover."
Use --no-title flag since Xiaohongshu covers typically use visual-only images without embedded text.
Move the generated image to the correct location:
imgs/cover.png relative to the article~/Dev/obsidian/{account_folder}/articles/<date>-<title>/_attachments/cover-xhs.pngmv ~/Dev/obsidian/{account_folder}/articles/<date>-<title>/imgs/cover.png ~/Dev/obsidian/{account_folder}/articles/<date>-<title>/_attachments/cover-xhs.png
⚠️ COMPLIANCE CHECK: Before generating HTML, review the text content for compliance:
Using the prompt template and the user's content:
Parse the content to identify:
Generate complete HTML following the template specifications:
Important HTML Structure:
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Article Title</title>
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@700&family=Inter:wght@300;400;700;800&family=JetBrains+Mono:wght@400;700&display=swap" rel="stylesheet">
<style>
/* All CSS styles inline */
</style>
</head>
<body>
<div class="container">
<img src="_attachments/cover-xhs.png" class="cover-image" alt="Cover">
<div class="content">
<!-- Article content -->
</div>
</div>
</body>
</html>
~/Dev/obsidian/{account_folder}/articles/<date>-<title>/xhs-preview.htmlAfter generating the HTML, capture sequential screenshots of the .container element at exact 3:4 aspect ratio:
Screenshot Specifications:
.container element, not the full pageCapture Process:
.container element has overflow-y: auto, making it internally scrollablescrollTop = 0 and increment through the content.container content:
container.screenshot() to capture only the container element (excludes page background)~/Dev/obsidian/{account_folder}/articles/<date>-<title>/_attachments/:
xhs-01.png, xhs-02.png, xhs-03.png, etc.Use the screenshot script:
cd {{SKILL_DIR}} && python scripts/screenshot.py ~/Dev/obsidian/{account_folder}/articles/<date>-<title>/xhs-preview.html
Script Output:
After completion, report to the user:
{{SKILL_DIR}}/
├── SKILL.md # This file
├── prompts/
│ └── default.md # Default HTML/CSS styling prompt
│ └── mom-reading-club.md # Mom Reading Club styling prompt
├── scripts/
│ └── screenshot.py # Screenshot capture script
└── .gitignore
Output directory (outside skill folder):
~/Dev/obsidian/{account_folder}/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 (1200×1600)
├── xhs-02.png # Screenshot page 2
└── ...
Account folder mapping:
- james-cn → 10_在悉尼和稀泥
- james-en → 11_BuildWithJames
- mom-reading-club → 12_妈妈在读
This skill depends on:
/baoyu-cover-image skill for cover image generation (must be installed in ~/.claude/skills/)User: Create a styled article page from this markdown:
# My Article Title
This is the introduction paragraph...
✓Make data-driven prioritization decisions faster
Stakeholder Communication
Draft PRDs, status updates, and stakeholder presentations
Example
Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement
✓Save 3-5 hours/week on communication overhead
Implementation Guide
Prerequisites
- ›Claude Desktop or compatible AI client
- ›Access to product documentation and roadmap tools (Jira, Notion, etc.)
- ›Understanding of product management frameworks (RICE, Jobs-to-be-Done, etc.)
- ›Stakeholder contact information and communication channels
Time Estimate
30-60 minutes to see productivity improvements
Steps
- 1Install product management skill
- 2Start with user story generation for known feature
- 3Progress to competitive analysis: research 2-3 competitors
- 4Use for roadmap prioritization: apply RICE/ICE scoring
- 5Draft stakeholder communications and refine based on feedback
- 6Build template library for recurring PM tasks
- 7Share effective prompts with product team
Common Pitfalls
- ⚠Not validating competitive research—verify facts before sharing
- ⚠Accepting user stories without involving engineering team
- ⚠Over-relying on frameworks without qualitative judgment
- ⚠Not customizing outputs to company culture and communication style
- ⚠Skipping stakeholder validation of generated requirements
Best Practices
✓ Do
- +Validate research and competitive analysis with real data
- +Collaborate with engineering when generating technical requirements
- +Customize frameworks and templates to your company context
- +Use skill for first drafts, refine with stakeholder input
- +Document successful prompt patterns for PM tasks
- +Combine AI efficiency with human judgment and intuition
✗ Don't
- −Don't publish competitive analysis without fact-checking
- −Don't finalize user stories without engineering review
- −Don't make prioritization decisions solely on AI scoring
- −Don't skip customer validation of generated requirements
- −Don't ignore company-specific context and culture
💡 Pro Tips
- ★Provide context: company goals, constraints, customer feedback
- ★Ask for alternatives: 'Show 3 ways to prioritize this roadmap'
- ★Request stakeholder-specific formatting: 'Executive summary vs. engineering spec'
- ★Use skill for 70% generation + 30% customization to company needs
When to Use This
✓ Use when
Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.
✗ Avoid when
Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.
Learning Path
- 1Basic: user stories, feature specs, status updates
- 2Intermediate: competitive analysis, prioritization frameworks, PRDs
- 3Advanced: product strategy, go-to-market planning, OKR setting
- 4Expert: product vision, market positioning, business model innovation
Related Skills
grill-me
648mattpocock/skills
Productivitysame categorypremortem
214parcadei/continuous-claude-v3
Productivitysame categorydeslop
159cursor/plugins
Productivitysame categorytravel-planner
136ailabs-393/ai-labs-claude-skills
Productivitysame categoryframer-motion
131pproenca/dot-skills
Productivitysame categorywrite-a-prd
128mattpocock/skills
Productivitysame categoryReviews
4.5★★★★★63 reviews- AAdvait Gonzalez★★★★★Dec 28, 2024
xiaohongshu-images is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- CChen Thomas★★★★★Dec 28, 2024
I recommend xiaohongshu-images for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- AAnaya Jackson★★★★★Dec 24, 2024
We added xiaohongshu-images from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- GGanesh Mohane★★★★★Dec 20, 2024
xiaohongshu-images reduced setup friction for our internal harness; good balance of opinion and flexibility.
- CChinedu Abebe★★★★★Dec 20, 2024
xiaohongshu-images fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- MMichael Chawla★★★★★Dec 12, 2024
Useful defaults in xiaohongshu-images — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- LLi Khan★★★★★Dec 4, 2024
Registry listing for xiaohongshu-images matched our evaluation — installs cleanly and behaves as described in the markdown.
- CChinedu Brown★★★★★Nov 19, 2024
Solid pick for teams standardizing on skills: xiaohongshu-images is focused, and the summary matches what you get after install.
- KKofi Menon★★★★★Nov 15, 2024
Keeps context tight: xiaohongshu-images is the kind of skill you can hand to a new teammate without a long onboarding doc.
- AAisha Bhatia★★★★★Nov 15, 2024
xiaohongshu-images fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
showing 1-10 of 63
1 / 7Discussion
Comments — not star reviews- No comments yet — start the thread.