Xhs Imagen logo

Xhs Imagen

Community
NimaChu
xhs-imagen

Create complete Xiaohongshu image-and-text posts from a topic, article, document, or rough idea, including research, fact checking, post copy, pagination, storyboards, a 3:4 cover, 9:16 content pages, image generation or fully local SVG-to-PNG fallback, and final quality review. Use for 小红书图文、小红书封面、知识卡片、漫画科普、文章转图片、AI/科技科普图组、逐页生图提示词, or revisions to an existing Xiaohongshu series. Prefer an available image-generation model; use the bundled local renderer only when no image-generation tool is available. Apply an SVG text patch only after the user explicitly reports incorrect or unreadable text in an image.

Overview

PublisherNimaChu
Repositoryxhs-imagen
Skill namexhs-imagen
Stars
120
Forks
3
Bundled files
35
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 35 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by NimaChu on GitHub. Read the source before you install it.

Installation

Install the Xhs Imagen AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/NimaChu/xhs-imagen/tree/main
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/NimaChu/xhs-imagen.git \
  .claude/skills/xhs-imagen
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Xhs Imagen in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Xhs Imagen on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Xhs Imagen is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

xhs-imagen

Turn one topic or source article into a publication-ready Xiaohongshu post package.

Required result

Create:

text
output/<topic-slug>/
├── project.json
├── research.md
├── post.md
├── storyboard.md
├── prompts/
│   ├── 00-cover.md
│   ├── 01-*.md
│   └── ...
├── images/
│   ├── cover.png
│   ├── page-01.png
│   └── ...
└── qa-report.md

If the user requests only part of the package, create only that part. Never claim that images were generated when no image-generation or local SVG renderer was available.

Fixed Xiaohongshu defaults

  • Create a 3:4 cover, recommended 1080 × 1440.
  • Create 9:16 information pages, recommended 1080 × 1920.
  • Default to one cover plus 5–8 information pages.
  • Use Simplified Chinese unless requested otherwise.
  • Explain one dominant idea per page.
  • Optimize titles and labels for phone reading.
  • Do not render page numbers or page-position markers such as 04, 01/08, or PAGE 04. Keep ordering only in filenames. Numbered steps are allowed when the numbers explain the content itself.
  • Default to the alpaca-line-art profile: pure-white background, fine black hand-drawn lines, and the bundled white alpaca creator IP.
  • Preserve glasses-chibi-blue as a selectable profile for the original glasses-wearing host, warm off-white paper, and cobalt-blue comic style.
  • Use toolbox-bot-risograph for tool ecosystems, plugins, Skills, Agents, and workflows in two-color risograph.
  • Use maker-girl-editorial for professional AI Coding, workplace, tutorial, and opinion content in modern editorial illustration.
  • Use cyber-luban-woodcut for Skill–Harness–Agent architecture and system-building topics in new-Chinese woodcut.
  • Use capybara-gouache for beginner explainers, pitfalls, reassurance, and everyday analogies in warm gouache.
  • Make the character perform the page's core conceptual action; never use it as corner decoration.

Read references/visual-profiles.md, references/visual-style.md, and references/character-consistency.md before producing images.

Workflow

1. Resolve the brief

Determine or infer:

  • topic, audience, and desired outcome;
  • the single sentence readers should remember;
  • source material and whether facts may have changed;
  • page count and language;
  • selected visual profile, character, palette, and brand constraints;
  • whether the user wants a complete package, images, copy, or prompts.

Use beginner-friendly AI/technology education as the default audience and tone when the request does not specify them.

Store the choice in project.json as visual_profile. Honor an explicit user choice; otherwise use the default declared in references/visual-profiles.json. Use one profile for the whole series unless the user explicitly requests otherwise.

When reviewing pages the user selected or rejected, distinguish explicit feedback from inferred preference. Treat only explicitly confirmed rules as durable defaults; use the final selection primarily to understand visual appeal and expression accuracy rather than infer rigid layout rules.

2. Research before writing

Search primary and authoritative sources for current, technical, disputed, product-specific, numerical, legal, or attributed claims. Write a claim table to research.md. Separate sourced facts from analogies and editorial framing.

Read references/fact-checking.md for detailed rules.

3. Build the content arc

Create:

  • one thesis;
  • one useful analogy;
  • one misconception;
  • 4–7 supporting ideas;
  • one limitation, boundary, or human-control point;
  • one final takeaway.

Select pages by cognitive anchors instead of distributing content evenly. Keep only moments that change what the reader understands: a core judgment, cognitive turn, comparison, bottleneck, boundary, common mistake, state change, or takeaway. Drop a page when removing it does not weaken the learning arc.

For every selected page:

  1. state the cognitive anchor and why it deserves a page;
  2. convert the abstract concept into a physical action;
  3. map that action to one ordinary low-tech object;
  4. make the character perform the action so the metaphor depends on the character.

Write post.md with a Xiaohongshu title, publishable body copy, optional source note, and relevant hashtags. Write storyboard.md before generating images.

Read references/content-planning.md when choosing pages and reducing copy. Read references/visual-metaphors.md before writing the storyboard or image prompts.

4. Create and validate the project

Store exact content and page decisions in project.json. Start from references/project.template.json and follow references/project.schema.json.

Validate it:

bash
python3 scripts/validate_project.py /absolute/path/project.json

Generate the image-model prompt files:

bash
python3 scripts/make_prompt_pack.py \
  /absolute/path/project.json \
  --output-dir /absolute/path/output/prompts

5. Choose the rendering path automatically

When an image-generation tool is available

Use it as the default path.

  1. Resolve the selected profile in references/visual-profiles.json.
  2. Use that profile's character_reference as the only bundled image reference. Never attach multiple profile references to one generation call.
  3. Generate the cover and one representative inner page first.
  4. Inspect character identity, core action, metaphor originality, typography, spacing, color, copy accuracy, and absence of page-position markers.
  5. Lock the successful visual description.
  6. Generate the remaining pages using the same reference and style lock.
  7. Save files as cover.png, page-01.png, and so on.

Do not invoke the local renderer merely to pre-empt possible text errors.

When no image-generation tool is available

Use the bundled local SVG-to-PNG renderer:

bash
python3 scripts/render_xiaohongshu_project.py \
  /absolute/path/project.json \
  --output-dir /absolute/path/output

This path preserves the Xiaohongshu cover and inner-page ratios while converting the project into deterministic local knowledge-card layouts. Read references/local-rendering.md for limitations and renderer requirements.

6. Repair text only after explicit user feedback

Do not create a separate hybrid workflow. If the user explicitly identifies incorrect, corrupted, or unreadable text in an existing image:

  1. Confirm the target image, exact replacement text, and affected region.
  2. Prefer local image editing or regeneration when available.
  3. If the problem remains, apply a deterministic SVG overlay only to that region:
bash
python3 scripts/patch_image_text.py \
  --input /absolute/path/page.png \
  --output /absolute/path/page-fixed.png \
  --visual-profile <selected-profile> \
  --x 100 --y 300 --width 880 --height 180 \
  --text "正确文字"
  1. Inspect the repaired image before delivery.

Never apply an SVG text patch speculatively.

7. Inspect every output

Write qa-report.md. For every failed check, record the defect, repair action, and recheck result; do not stop at listing problems. Verify:

  • correct ratio and orientation;
  • readable, accurate Chinese and product names;
  • background, line treatment, palette, and typography match the selected visual profile;
  • one dominant idea per page;
  • a meaningful cognitive anchor on every page;
  • an original physical metaphor with one primary structure;
  • the character performs the metaphor's core action;
  • stable profile-specific character identity and proportions;
  • valid diagram flow;
  • no cropped titles, faces, hands, or summaries;
  • no unsupported factual claims or invented quotations;
  • no visible page number, page count, or page-position marker; content-level numbered steps remain allowed;
  • ordered, stable filenames.

Run:

bash
python3 scripts/check_png_ratios.py /absolute/path/output/images

Read references/quality-checklist.md for the full review.

Final response

Provide:

  • a concise summary of the content arc;
  • the cover and ordered pages, or links to their files;
  • the publishable post copy;
  • source citations for time-sensitive claims;
  • an honest note about any unresolved image or text defect.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Xhs Imagen AI skill do?

Create complete Xiaohongshu image-and-text posts from a topic, article, document, or rough idea, including research, fact checking, post copy, pagination, storyboards, a 3:4 cover, 9:16 content pages, image generation or fully local SVG-to-PNG fallback, and final quality review. Use for 小红书图文、小红书封面、知识卡片、漫画科普、文章转图片、AI/科技科普图组、逐页生图提示词, or revisions to an existing Xiaohongshu series. Prefer an available image-generation model; use the bundled local renderer only when no image-generation tool is available. Apply an SVG text patch only after the user explicitly reports incorrect or unreadable tex...

Why use Xhs Imagen on TypingMind?

Because you install it once and use it with any model. Xhs Imagen is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Xhs Imagen in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/NimaChu/xhs-imagen/tree/main. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Xhs Imagen?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Xhs Imagen?

As many as you like. As long as a model supports skills, you can use Xhs Imagen with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Xhs Imagen AI skill free?

Yes. It is published on GitHub by NimaChu under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇