← Back to Skills Marketplace
dizhu

Xiaohongshu Matrix Notes

by dizhu · GitHub ↗ · v0.2.0 · MIT-0
cross-platform ✓ Security Clean
43
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install xiaohongshu-matrix-notes
Description
Use when producing 小红书/RedNote matrix-account image+text 笔记 at scale — mimicking a 对标(benchmark) account and turning product photos into AI model try-on / li...
README (SKILL.md)

小红书矩阵号图文生产

把"对标账号 + 产品图"批量变成像该账号的小红书图文笔记(AI 出图 + 文案)。一条已跑通 50+ 篇的流水线。

When to use

  • 要为某个新小红书号(矩阵号)按某个对标账号的风格批量产出笔记
  • 有产品图(衣/包/鞋),要做成"真人模特上身 / 真人生活大片 / 产品静物"图 + 文案
  • 要给某号补轮次(同博主、新产品/场景)

8 步流程

做什么 用什么
1 采集 扒对标账号真实笔记做风格拆解(标题公式/图数/封面/配色/选题/标签) scripts/fetch_xhs.py \x3Cuser_id> \x3C名> \x3C页数>(tikhub)
2 定博主 出 1 张定妆图锁脸(或用对标提供的脸),交用户确认后才批量 scripts/ofox_gen.py "\x3Cprompt>" persona.png
3 选品 从素材选符合该号调性的产品(注意颜色款,核对避免出错款) 人工 + 拼缩略图
4 场景 每篇分配不同场景(硬性);篇内一致 写进 prompt
5 批量出图 博主图+产品图双参考,并发 3 + 重试 scripts/ofox_gen.py 批量(见 batch 模式)
6 封面 穿搭合集号=竖条拼贴+标题;生活/静物号=单图取最佳 scripts/build_cover.py(拼贴号)
7 文案 套该号标题公式 + 口吻 + 标签 按风格拆解写
8 自检 逐篇核对全部:博主一致/产品高保真/无裁切/调性对 拼总览图逐一看

关键脚本(scripts/)

  • fetch_xhs.py — tikhub 采集。需 TIKHUB_TOKEN。key 权限通常是 xiaohongshu/app_v2(非 web_v3),用 get_user_posted_notes。给 UA 头避免 403。
  • ofox_gen.py — Ofox openai/gpt-image-2 出图。需 OFOX_API_KEY(sk-of-…)。无参考图=文生图;有参考图=/images/edits(博主图+产品图)。内置重试(SSL 易断)。
  • build_cover.py — 竖条拼贴封面:人脸检测对齐 + 标题。需中文 Black 字体(见下)。

血泪经验(务必读 references/lessons.md)

  • 出图通道:OpenRouter 常报"region not available";用 Ofox(api.ofox.ai/v1/images/...)。
  • 跨图锁脸:每次出图都带同一张定妆图做参考 → 人物一致。
  • 封面对齐:细节多,优先用 build_cover.py;若某 look 检测失败裁头/空格,换掉那张 look(每篇多出 1-2 张备用)而不是硬调算法。
  • 产品高保真:prompt 写"严格保留颜色/版型/细节";每篇至少 1 个主推产品高度还原,配饰(帽/镜)可为装饰不必自家。
  • 生活种草号博主:白皙透亮、有生命力(明亮阳光+干净暖墙+动态灿笑)、贵妇非名媛、浅色夏装;暗沉/油腻精修/普通阿姨感。

铁律

  • 照对标号真实长相还原,别脑补"高级感":背景元素/拍摄视角/精修程度/封面排版全照搬对标号描述进 prompt。自己想象 ins 风 = 必出 AI 棚图。
  • 静物号背景=真实居家随手拍(木地板/草编毯/裙摆/自然光),prompt 明写"不要影棚不要精修";每篇 4 产品为底 + 2 上脚(见 references)。
  • 出图前先问用户(尤其新博主/新方向);定妆图、pilot 是强制确认点。
  • 做完逐项自检全部结果再汇报(不抽查)。
  • 每篇场景互不相同;每篇至少一个主推产品高度还原。

字体(build_cover 需要)

下载一次:curl -sL -o scripts/fonts/NotoSansSC.ttf "https://github.com/google/fonts/raw/main/ofl/notosanssc/NotoSansSC%5Bwght%5D.ttf"(可变字重,用 Black)。

参考

  • references/lessons.md — 全部踩坑与解法
  • references/persona-and-style.md — 博主设定 + 风格拆解模板
Usage Guidance
Install only if you are comfortable using Tikhub/Ofox and possibly Gemini with your own API keys. Confirm you have rights or consent for benchmark account material, likeness references, product photos, and any uploaded images, and check Xiaohongshu/RedNote platform rules before scraping or publishing close imitations at scale.
Capability Tags
requires-sensitive-credentials
Capability Assessment
Purpose & Capability
The stated purpose is bulk Xiaohongshu/RedNote marketing content generation by analyzing benchmark accounts and transforming product photos into AI images and captions; the scraping, style analysis, Ofox image generation, and cover-building scripts align with that purpose.
Instruction Scope
The instructions clearly describe use of Tikhub, Ofox, optional Gemini, API keys, reference images, product images, and user confirmation checkpoints, but they encourage close imitation of benchmark accounts and should be used only with appropriate rights, consent, and platform-policy review.
Install Mechanism
No install hook, startup modification, hidden package installation, or automatic execution was found; the only extra setup is an optional font download command for cover generation.
Credentials
The scripts read environment API keys, contact documented external endpoints, download public covers, and write local output files; this is proportionate to the skill's workflow, though users should treat uploaded prompts/images and collected account data as leaving the local environment.
Persistence & Privilege
No persistence, privilege escalation, background worker, credential storage, broad local indexing, deletion, or account mutation behavior was found.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install xiaohongshu-matrix-notes
  3. After installation, invoke the skill by name or use /xiaohongshu-matrix-notes
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.2.0
新增『去AI棚图感』血泪经验:静物号背景从棚拍摆件改为真实居家随手拍(木地板/草编毯/裙摆/自然光)+明写不精修+加上脚视角+4底2上脚配比;铁律置顶『照对标号还原,别脑补高级感』。
v0.1.0
初版:对标采集(tikhub)+AI出图(gpt-image-2)+竖条拼贴封面+种草文案 全流程,含3脚本+踩坑参考
Metadata
Slug xiaohongshu-matrix-notes
Version 0.2.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is Xiaohongshu Matrix Notes?

Use when producing 小红书/RedNote matrix-account image+text 笔记 at scale — mimicking a 对标(benchmark) account and turning product photos into AI model try-on / li... It is an AI Agent Skill for Claude Code / OpenClaw, with 43 downloads so far.

How do I install Xiaohongshu Matrix Notes?

Run "/install xiaohongshu-matrix-notes" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Xiaohongshu Matrix Notes free?

Yes, Xiaohongshu Matrix Notes is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Xiaohongshu Matrix Notes support?

Xiaohongshu Matrix Notes is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Xiaohongshu Matrix Notes?

It is built and maintained by dizhu (@dizhu); the current version is v0.2.0.

💬 Comments