Search

PythonReactSEOPDF
OpenClaw

xiaohongshu-publisher

自动发布内容到小红书平台。支持发布图文、检查登录状态、获取登录二维码。使用场景:自动化小红书内容发布、批量发布、定时发布等。

dragon0150 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install dragon015/dragon-xiaohongshu

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

小红书自动发布 Skill

自动化发布内容到小红书平台,支持图文发布、登录管理和批量操作。

功能特性

  • ✅ 自动发布图文内容到小红书
  • ✅ 检查登录状态
  • ✅ 自动获取登录二维码
  • ✅ 支持自定义标题、内容、图片和标签
  • ✅ 支持 HTTP MCP 服务端模式

前置要求

  1. 小红书 MCP 服务端

    • 文件:xiaohongshu-mcp-windows-amd64.exe
    • 端口:18060
    • 启动方式:运行 exe 文件
  2. mcporter CLI

    npm install -g mcporter
    
  3. 已登录小红书账号

    • 首次使用需要先扫码登录

快速开始

1. 启动 MCP 服务端
# 在 xiaohongshu-mcp 目录下运行
.\xiaohongshu-mcp-windows-amd64.exe
2. 检查登录状态
node scripts/publish.js --check
3. 发布内容
# 使用默认配置
node scripts/publish.js

# 自定义内容
node scripts/publish.js \
  --title "我的标题" \
  --content "正文内容..." \
  --image "C:\\path\\to\\image.png" \
  --tags "tag1,tag2,tag3"

配置说明

mcporter 配置

配置文件:~/.mcporter/mcporter.json

{
  "mcpServers": {
    "xiaohongshu": {
      "url": "http://localhost:18060/mcp"
    }
  }
}
发布参数
参数 类型 必填 说明
title string 是 标题(最多20字)
content string 是 正文内容(最多1000字)
images array 是 图片路径数组
tags array 否 标签数组

使用示例

示例 1:发布产品推广
const publish = require('./scripts/publish');

await publish({
  title: '新品推荐!超好用',
  content: '今天给大家推荐一款超好用的产品...',
  images: ['C:\\product.jpg'],
  tags: ['好物推荐', '新品', '种草']
});
示例 2:发布生活分享
node scripts/publish.js \
  --title "今天的心情日记" \
  --content "今天天气真好,出去散步..." \
  --image "C:\\photos\\today.jpg" \
  --tags "生活,日常,心情"

注意事项

  1. 登录状态:发布前必须已登录小红书
  2. 图片格式:支持 jpg、png 格式
  3. 内容限制:
    • 标题最多 20 个中文字
    • 正文最多 1000 字
    • 图片最多 9 张
  4. 频率限制:小红书有每日发...

Source information

Source
github
Repository
openclaw/skills
Path
skills/dragon015/dragon-xiaohongshu
Version
—
Commit
486725d666d638a409289baab941c281946c5b55
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

Extracted content

SKILL.md
# 小红书自动发布 Skill

自动化发布内容到小红书平台,支持图文发布、登录管理和批量操作。

## 功能特性

- ✅ 自动发布图文内容到小红书
- ✅ 检查登录状态
- ✅ 自动获取登录二维码
- ✅ 支持自定义标题、内容、图片和标签
- ✅ 支持 HTTP MCP 服务端模式

## 前置要求

1. **小红书 MCP 服务端**
   - 文件:`xiaohongshu-mcp-windows-amd64.exe`
   - 端口:18060
   - 启动方式:运行 exe 文件

2. **mcporter CLI**
   ```bash
   npm install -g mcporter
   ```

3. **已登录小红书账号**
   - 首次使用需要先扫码登录

## 快速开始

### 1. 启动 MCP 服务端

```powershell
# 在 xiaohongshu-mcp 目录下运行
.\xiaohongshu-mcp-windows-amd64.exe
```

### 2. 检查登录状态

```bash
node scripts/publish.js --check
```

### 3. 发布内容

```bash
# 使用默认配置
node scripts/publish.js

# 自定义内容
node scripts/publish.js \
  --title "我的标题" \
  --content "正文内容..." \
  --image "C:\\path\\to\\image.png" \
  --tags "tag1,tag2,tag3"
```

## 配置说明

### mcporter 配置

配置文件:`~/.mcporter/mcporter.json`

```json
{
  "mcpServers": {
    "xiaohongshu": {
      "url": "http://localhost:18060/mcp"
    }
  }
}
```

### 发布参数

| 参数 | 类型 | 必填 | 说明 |
|------|------|------|------|
| title | string | 是 | 标题(最多20字) |
| content | string | 是 | 正文内容(最多1000字) |
| images | array | 是 | 图片路径数组 |
| tags | array | 否 | 标签数组 |

## 使用示例

### 示例 1:发布产品推广

```javascript
const publish = require('./scripts/publish');

await publish({
  title: '新品推荐!超好用',
  content: '今天给大家推荐一款超好用的产品...',
  images: ['C:\\product.jpg'],
  tags: ['好物推荐', '新品', '种草']
});
```

### 示例 2:发布生活分享

```bash
node scripts/publish.js \
  --title "今天的心情日记" \
  --content "今天天气真好,出去散步..." \
  --image "C:\\photos\\today.jpg" \
  --tags "生活,日常,心情"
```

## 注意事项

1. **登录状态**:发布前必须已登录小红书
2. **图片格式**:支持 jpg、png 格式
3. **内容限制**:
   - 标题最多 20 个中文字
   - 正文最多 1000 字
   - 图片最多 9 张
4. **频率限制**:小红书有每日发...

Related skills

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

geo-optimization

capt-marbles

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...

OpenClaw

parakeet-stt

carlulsoe

Local speech-to-text with NVIDIA Parakeet TDT 0.6B v3 (ONNX on CPU). 30x faster than Whisper, 25 languages, auto-detection, OpenAI-compatible API. Use when transcribing audio files, converting speech to text, o...

OpenClaw

feishu-process-feedback

carlzhao007

飞书消息自动处理与进度反馈技能。安装后后台运行,监听飞书任务消息并自动创建独立进程处理。 在处理前后发送实时进度反馈(任务确认、进度百分比、完成通知)。 支持任务类型识别、智能解析、错误重试、并发控制、状态持久化...