Index of every page on this site: llms.txt
All skills
erafat avatar

/xhs-note-creator

@3930f9f
by ERerafat/skills17 stars
1
Run it yourself

小红书笔记素材创作技能。当用户需要创建小红书笔记素材时使用这个技能。技能包含:根据用户的需求和提供的资料,撰写小红书笔记内容(标题+正文),生成图片卡片(封面+正文卡片),以及发布小红书笔记。

Use this Skill: https://skilld.dev/gh/erafat/skills/xhs-note-creator

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

QUICKSTART.md

≈607 tokens on demand. Your agent reads this file only when SKILL.md points to it.

xhs-note-creator Quick Start

Installation Complete ✅

The skill has been successfully installed and all dependencies are ready.

How to Use

Invoke the skill

Simply say:

  • "Create a Xiaohongshu note about..."
  • "Generate XHS content for..."
  • "Make a RedNote post about..."

Or use the skill command:

/xhs-note-creator

What This Skill Does

  1. Content Writing: Creates engaging Xiaohongshu-style content with:

    • Eye-catching titles (max 20 characters)
    • Well-formatted body text with emojis
    • SEO-friendly tags
  2. Image Card Generation: Renders professional cards with:

    • 8 visual themes (default, geometric, neo-brutalism, botanical, professional, retro, terminal, sketch)
    • 4 pagination modes (separator, auto-fit, auto-split, dynamic)
    • Cover image + content cards (1080×1440px, 3:4 ratio)
  3. Publishing (Optional): Can publish directly to Xiaohongshu

    • Requires XHS_COOKIE configuration

Themes Available

  • default - Purple gradient style
  • playful-geometric - Memphis design style
  • neo-brutalism - Bold, flat design
  • botanical - Natural, botanical theme
  • professional - Business style
  • retro - Vintage aesthetic
  • terminal - Command-line style
  • sketch - Hand-drawn style

Pagination Modes

  • separator - Manual page breaks with ---
  • auto-fit - Auto-scale text to fit fixed size
  • auto-split - Auto-split based on content height
  • dynamic - Dynamic height adjustment (max 4320px)

Example Usage

The skill will automatically:

  1. Write engaging XHS content based on your input
  2. Generate a properly formatted Markdown file with YAML frontmatter
  3. Render beautiful image cards using Playwright
  4. Optionally publish to Xiaohongshu (if configured)

Technical Details

  • Location: ~/.claude/skills/xhs-note-creator/
  • Scripts:
    • scripts/render_xhs.py - Python rendering
    • scripts/render_xhs.js - Node.js rendering
    • scripts/publish_xhs.py - Publishing script
  • Dependencies: All installed (markdown, PyYAML, playwright, xhs, etc.)
  • Browser: Chromium installed via Playwright

Optional: Publishing Setup

To enable publishing, create a .env file:

XHS_COOKIE=your_cookie_here

Get your cookie by:

  1. Login to xiaohongshu.com in browser
  2. Open DevTools (F12) > Network tab
  3. Copy the Cookie header from any request

Ready to create amazing Xiaohongshu content! 🚀

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

2 warnings1mo3 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    The skill facilitates the creation and publishing of Xiaohongshu notes. It includes capabilities for rendering user-influenced content via a headless browser and managing sensitive session cookies. While these are core features, the lack of input sanitization in the rendering pipeline and the ability to transmit session cookies to external APIs introduce potential security risks.

  • Socket1mo

    1 alert: gptSecurity

  • Snyk1mo

    Risk: MEDIUM · 1 issue

Signed by skilld at 3930f9f. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 weeks ago.

Steadyupdated 7 months ago

README badge

README badge for erafat/skills/xhs-note-creator