TopRank Skills

Home / Claw Skills / Git / GitHub / rednote-mac
Official OpenClaw rules 36%

rednote-mac

Control the RedNote (Xiaohongshu) Mac app via macOS Accessibility API. Fills the gap headless tools can't: read/reply to comments on video posts, send DMs, get author stats. No browser, no API tokens. macOS only — requires Terminal accessibility permission.

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 rednote-mac 技能。 若已安装,则直接安装 rednote-mac 技能。

Overview

Skill Key
huangrh99/rednote-mac
Author
huangrh99
Source Repo
openclaw/skills
Version
-
Source Path
skills/huangrh99/rednote-mac
Latest Commit SHA
07cf1436ad2ef42f6815e2d62583ba8e03fee1fa

Extracted Content

SKILL.md excerpt

# rednote-mac

Control RedNote's Mac app directly — no browser, no API tokens.
Uses macOS Accessibility API to drive the native App.

Headless tools (xiaohongshu-mcp) can't reach **DMs**, **comment replies**, or **video comment lists** — this skill can.

> ⚠️ Requires: Terminal → Accessibility permission + RedNote App visible on screen.
> No network access. No credentials stored.

## Setup

```bash
cd ~/.agents/skills/rednote-mac && bash install.sh
openclaw config set tools.allow '["rednote-mac"]'
openclaw gateway restart
```

Enable in System Settings → Privacy & Security → Accessibility → Terminal.

## Navigate

```
xhs_navigate(tab="home")          # home / messages / profile
xhs_navigate_top(tab="discover")  # follow / discover / video
xhs_back()
xhs_search(keyword="AI paper")
xhs_screenshot()                  # always verify after navigation
```

## Browse feed

```
xhs_scroll_feed(direction="down", times=5)
xhs_open_note(col=0, row=0)   # col: 0=left, 1=right  row: 0=first
xhs_screenshot()
```

## Interact with a note

```
xhs_like()
xhs_collect()
xhs_follow_author()
xhs_get_note_url()   # returns xhslink.com short URL
```

## Comments (video posts — fully reliable)

```
xhs_open_comments()
xhs_get_comments()
# → [{"index": 0, "author": "alice", "cx": 1450, "cy": 368}, ...]

xhs_post_comment(text="Great post!")
xhs_reply_to_comment(index=0, text="Thanks!")
xhs_delete_comment(index=0)   # ⚠️ irreversible — your comments only
xhs_scroll_comments(times=3)
```

## Direct messages

```
xhs_open_dm(index=0)           # 0 = first conversation in list
xhs_send_dm(text="Hello!")
xhs_screenshot()               # confirm sent
```

## Author stats

```
xhs_navigate(tab="profile")
xhs_get_author_stats()
# → {"following": "2", "followers": "29", "likes": "302", "bio": "..."}
```

## Reference docs (load on demand)

| Need to... | Read |
|-----------|------|
| Navigate / search details | `docs/ref-navigation.md` |
| Feed & note opening | `docs/ref-feed.md` |
| Comment workfl...

README excerpt

# rednote-mac

**Control the RedNote (Xiaohongshu) Mac desktop app via macOS Accessibility API.**

Fills the gap that headless browser tools leave behind — DMs, comment replies, video comment reading, and more. Drives the native App directly, no browser, no API tokens, no reverse engineering.

---

## Why rednote-mac?

| Feature | rednote-mac | headless (xiaohongshu-mcp) |
|---------|:-----------:|:--------------------------:|
| Browse feed & search | ✅ | ✅ |
| Like, collect, follow | ✅ | ✅ |
| Post comments | ✅ | ✅ |
| **Reply to comments** | ✅ | ❌ |
| **Direct messages** | ✅ | ❌ |
| **Video comment list** | ✅ | ❌ |
| **Author profile stats** | ✅ | ❌ |
| Headless / no screen needed | ❌ | ✅ |

---

## Requirements

- **macOS** with [RedNote](https://www.rednote.app) installed
- **Terminal → Accessibility permission** — System Settings → Privacy & Security → Accessibility → enable Terminal
- **RedNote App visible on screen** — not minimized, screen not locked
- **Python** + [uv](https://github.com/astral-sh/uv) (recommended) or pip
- **cliclick** — `brew install cliclick`

> ⚠️ The Accessibility permission grants control over **all apps** on your Mac, not just RedNote. Only enable if you trust this skill. Consider running automation in a dedicated user account.

---

## Install

### As an OpenClaw Plugin (recommended)

```bash
# 1. Install via clawhub
clawhub install rednote-mac

# 2. Run the setup script
cd ~/.agents/skills/rednote-mac && bash install.sh

# 3. Activate
openclaw config set tools.allow '["rednote-mac"]'
openclaw gateway restart

# 4. Verify
openclaw plugins list | grep rednote-mac
```

### As a Claude Desktop / Cursor MCP server

```json
{
  "mcpServers": {
    "rednote-mac": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/rednote-mac", "python", "server.py"]
    }
  }
}
```

---

## Available Tools (20 total)

### Navigation & Search
| Tool | Parameters | Description |
|------|-----------|-------------|
| `xhs_...

Related Claw Skills

heyixuan2

bambu-studio-ai

★ 41

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 pipeline: search → generate → analyze → colorize → preview → open BS → user slice → print → monitor. Supports all 9 Bambu Lab printers (A1 Mini, A1, P1S, P2S, X1C, X1E, H2C, H2S, H2D).

human-pages-ai

humanpages

★ 3

Search and hire real humans for tasks — photography, delivery, research, and more

zseven-w

openclaw-skills

★ 1

Reusable skill templates for OpenClaw AI agents. Templates for API integration, data processing, web scraping, CLI tools, and file processing.

capt-marbles

geo-optimization

★ 1

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 discoverability and citation.

cchacons

openjobs

★ 0

The job marketplace where bots hire bots. Post FREE or paid $WAGE jobs, with on-chain escrow, faucet rewards, referrals, judge staking, task inbox, smart matching, checkpoints, oversight, webhooks, onboarding, and human owner dashboard.

cchacons

openjobs

★ 0

The job marketplace where bots hire bots. Post FREE or paid $WAGE jobs, with on-chain escrow, faucet rewards, referrals, judge staking, task inbox, smart matching, checkpoints, oversight, webhooks, onboarding, and human owner dashboard.