Skip to content

JuneYaooo/xhs-writer-skill

xhs-writer

Verified

生成小红书(RedNote)笔记:把主题或用户提供的素材(文字/图片/视频)做成一套竖版卡片(图文) 或一段带分镜脚本的视频稿(视频),配 caption + hashtags,落盘到 output/小红书/。 使用时机:用户说 写小红书 / 做小红书笔记 / 小红书图文 / 小红书种草 / 出一套 xhs 卡片 / 小红书视频 / write a Xiaohongshu note / make a RedNote post。

FileKindSize
SKILL.mdskill md14.7 KB
agents/openclaw.yamlconfig930 B
references/humanizer-zh.mdmarkdown15.4 KB
references/image-sourcing.mdmarkdown3.7 KB
references/material-intake.mdmarkdown5.4 KB
references/meta-schema.mdmarkdown4.5 KB
references/output-spec.mdmarkdown4.2 KB
references/reference-search.mdmarkdown2.9 KB
references/xiaohongshu-viral-methodology.mdmarkdown17.1 KB
scripts/analyze_material.pyexecutablescript4.9 KB
scripts/collage_3x4.pyexecutablescript3.4 KB
scripts/crop_watermark.pyexecutablescript1.6 KB
scripts/image_generator.pyscript17.5 KB
scripts/normalize_slug.pyexecutablescript2.1 KB
scripts/text_on_image.pyexecutablescript5.0 KB
scripts/validate_meta.pyexecutablescript5.8 KB

references/meta-schema.md

View on GitHub
# meta.json Schema

`meta.json` 是每篇文章目录下的核心元数据文件。不同平台共用下面的基础字段,平台特有字段附加在各自扩展里。

## 基础字段(所有平台)

```json
{
  "title": "文章标题",
  "summary": "一句话摘要",
  "author": "",
  "platform": "公众号 | 小红书 | 头条号 | 通用",
  "created_at": "ISO 8601 时间(Asia/Shanghai)",
  "tags": ["标签1", "标签2"],
  "word_count": 0,
  "cover_image": "封面图文件名(可选)",
  "images": ["images/下的相对路径列表"],
  "references": {
    "search_queries": ["使用的搜索关键词"],
    "source_count": 0,
    "summary_file": "reference/summary.md"
  }
}
```

## 公众号扩展字段

```json
{
  "platform": "公众号",
  "theme": "橙心",
  "cover_image_prompt": "英文生图 prompt(可选)",
  "cover_image_url": "封面图上传后的 URL(可选,发布阶段写入)",
  "wechat": {
    "draft_media_id": "",
    "published_url": ""
  }
}
```

## 小红书扩展字段

```json
{
  "platform": "小红书",
  "post_format": "image | video",
  "caption": "100-300 字发布文案",
  "hashtags": ["#话题1", "#话题2"],
  "poster_style": "简约清新",

  "card_count": 7,
  "cards": [
    {
      "page": 1,
      "type": "cover | content | ending",
      "title": "卡片小标题(cover/content)",
      "content": "卡片正文(≤80 字中文)",
      "synthesis_strategy": "pure_text | text_on_photo | collage | ai_generated",
      "material_refs": ["m001", "m002"],
      "image_prompt": "图片生成 prompt(可选)",
      "image_url": "卡片图片 URL(可选)"
    }
  ],

  "shots": [
    {
      "index": 1,
      "duration_sec": 3.0,
      "narration": "口播 ≤30 字",
      "on_screen_text": "屏幕字 ≤15 字",
      "visual": "画面描述",
      "material_ref": "m002"
    }
  ],

  "materials": [
    {
      "id": "m001",
      "path": "reference/<相对路径或原始绝对路径>",
      "kind": "text | image | video | audio",
      "caption": "画面描述",
      "usage": "cover | content-N | ending | reference-only | discard",
      "strategy": "pure_text | text_on_photo | collage | ai_generated | use_original"
    }
  ]
}
```

字段使用规则:

- `post_format` = `image` 时,`cards[]` 必填、`shots[]` 省略
- `post_format` = `video` 时,`shots[]` 必填;`cards[]` 只需一张 `cover` 作为封面
- `materials[]` 仅在用户提供了素材时出现;详细工作流见 `material-intake.md`
- `synthesis_strategy` 为每张卡选择合成路径;`material_refs` 指向 `materials[].id`

## 字段规则

- **title**:≤30 字,公众号 ≤64 字符会被微信截断;小红书建议 10-20 字带 emoji
- **summary**:公众号 ≤20 字(微信摘要字段 ≤120 字符);小红书无 summary,用 caption
- **created_at**:ISO 8601 带时区,例 `"2026-04-24T15:00:00+08:00"`
- **word_count**:正文字数(不含标题、摘要、caption)
- **images**:只列 `images/` 下的相对路径,不含外链
- **references.source_count**:去重后的来源数

## 完整示例

### 公众号

```json
{
  "title": "AI 冲击就业?Anthropic 最新研究揭示劳动力市场的真相",
  "summary": "失业率在下降,新岗位在增加。数据比标题党更有说服力。",
  "author": "",
  "platform": "公众号",
  "created_at": "2026-04-24T15:00:00+08:00",
  "theme": "橙心",
  "tags": ["AI", "就业", "劳动力市场"],
  "word_count": 3040,
  "cover_image": "cover.jpg",
  "cover_image_prompt": "A professional workspace, clean desk, soft natural light",
  "images": ["images/img_001.jpg", "images/img_002.jpg"],
  "references": {
    "search_queries": ["AI 失业 2026", "Anthropic economic index"],
    "source_count": 6,
    "summary_file": "reference/summary.md"
  }
}
```

### 小红书

```json
{
  "title": "💼 AI 失业危机?数据告诉你真实情况",
  "platform": "小红书",
  "created_at": "2026-04-24T15:00:00+08:00",
  "caption": "媒体说危机,数据说增长。Anthropic 调研 5000 人,83% 说 AI 提高效率而非取代……",
  "hashtags": ["#AI对工作的影响", "#失业危机是假的"],
  "poster_style": "简约清新",
  "card_count": 7,
  "cards": [
    {
      "page": 1,
      "type": "cover",
      "title": "💼 AI 失业危机?",
      "content": "媒体说危机,数据说增长\n美国失业率:4.2%→3.8%"
    }
  ],
  "images": [],
  "references": {
    "search_queries": ["AI 就业影响 2026"],
    "source_count": 4,
    "summary_file": "reference/summary.md"
  }
}
```
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall