Rednote reader

From stevehuang0115/crewly · View interactive version

Rednote reader is an AI agent skill from the GitHub repository stevehuang0115/crewly. Read content from \u5c0f\u7ea2\u4e66 (RedNote) iPad app on macOS via Accessibility API + screencapture. Actions: feed (read posts), scroll-feed, nav, screenshot (capture window), search (type keyword), tap (click coordinates), read-detail (screenshot + text), goto-profile (navigate to user profile b

How to use this skill

Skill file

RedNote (小红书) Reader — iPad App Mode

Pure iPad App mode using macOS Accessibility API, screencapture, and simulated input.

Zero network requests — no curl, no HTTP calls, impossible to trigger account bans.

Prerequisites

SAFETY (read before any action) — added 2026-10-18 after an incident

On 2026-10-18 search was run while the app sat on a DM chat. The old code took the

first text box it found (the chat box) as the search box, pasted the keyword and

pressed Enter, so the keyword was sent as a DM. The account is read-only: never

send, comment, like, follow or DM. Since then:

field** of a real search page (top text field + a "Search" button, no other text box).

page's own Back button only (never the window close button, never a guessed coordinate).

taps the Home tab first; it never guesses between icons.

field. If not, it clears the text and stops with SAFE STOP, without pressing Enter.

(screenshot first) and retry.

switches playback to 2x.

page-state — where is the app right now?

bash execute.sh '{"action":"page-state"}'
# data.page: search | compose | home | other ; data.reason explains compose/other

Run it (or take a screenshot) before any tap near a text box, Send, Follow or comment icon.

Actions

feed — Read the current feed

Extracts structured post data (title, author, likes) from the visible feed via Accessibility API.

⚠️ CRITICAL NOTE ON URLs & PROFILE LINKS:

The macOS Accessibility API DOES NOT expose underlying web URLs, deep links (xiaohongshu://), or hidden Profile IDs.

Therefore, it is impossible to directly extract a user's "Homepage Direct Link" (e.g., https://www.xiaohongshu.com/user/profile/...) from the UI elements using this skill.

Workaround: Always generate a "Search Direct Link" instead: https://www.xiaohongshu.com/search_result/?keyword={username}. This provides a 100% reliable entry point for users.

bash execute.sh '{"action":"feed"}'
bash execute.sh '{"action":"feed","limit":150}'

Tip: Use limit >= 100 to get past navigation elements and reach actual feed posts.

scroll-feed — Scroll and read more

Scrolls the feed down, then reads the newly visible content.

bash execute.sh '{"action":"scroll-feed","amount":5}'

nav — Read navigation structure

Returns bottom tabs, top tabs, categories, and search hint.

bash execute.sh '{"action":"nav"}'

raw — Raw text dump

Dumps all accessible text from the UI (deduplicated). Useful for debugging.

bash execute.sh '{"action":"raw","limit":100}'

screenshot — Capture the app window

Takes a PNG screenshot of the app window using screencapture. Returns the file path.

bash execute.sh '{"action":"screenshot"}'
bash execute.sh '{"action":"screenshot","outputPath":"/tmp/my-screenshot.png"}'

Note: The app must be on the current Space. The screenshot includes only the app window, not other windows.

tap — Click at coordinates

Simulates a mouse click at the given absolute screen coordinates. Use this to tap on feed items, buttons, or other UI elements.

bash execute.sh '{"action":"tap","x":500,"y":600}'

Tip: Use feed action first to get element positions (each item includes pos: {x, y}), then tap to click on a specific post.

search — Search for content

Searches for a keyword in 小红书 and returns structured results. Handles three starting states automatically:

  1. Home feed — clicks the search icon (top-right), transitions to search page, then types and searches
  2. Search landing page — clears the text field, types and searches
  3. Search results page — clears and re-searches with the new keyword

Uses Accessibility API to detect the text field position dynamically. CJK keywords are pasted via clipboard for reliability.

bash execute.sh '{"action":"search","keyword":"张咋啦"}'
bash execute.sh '{"action":"search","keyword":"AI agent"}'

Workflow: search returns the same structured post data as feed (nav + posts). After searching, use tap on a specific result to open it, then read-detail to extract its content.

Known Failure Modes & Recovery:

read-detail — Read note detail page

Captures both a screenshot and all accessible text from the current screen. Use this after tapping into a specific note.

bash execute.sh '{"action":"read-detail"}'
bash execute.sh '{"action":"read-detail","limit":200}'

Returns: screenshotPath (PNG file path) + texts (array of extracted text items with positions). The screenshot can be analyzed by a vision model for image/video content that the Accessibility API cannot read.

goto-profile — Navigate to a user's profile

Finds a username on the current screen via Accessibility API text matching, clicks on it, waits for the profile page to load, and returns profile data.

Enhancement: It will first attempt to find and click the "Users" (用户) tab at the top of the screen before searching for the username. This filters out irrelevant posts and significantly improves the accuracy of navigating to actual user profiles instead of just notes mentioning the user.

bash execute.sh '{"action":"goto-profile","username":"曲晓音"}'
bash execute.sh '{"action":"goto-profile","username":"张咋啦"}'

Prerequisite: The username must be visible on screen (e.g. in search results or feed). Use search first to find the user, then goto-profile to navigate to their profile.

Returns: clickedAt (coordinates clicked), isProfilePage (whether profile indicators like follower count were detected), texts (all text from the resulting page).

Typical Workflows

Browse the feed

  1. feed (limit: 150) — see what's on screen
  2. scroll-feed — load more posts
  3. tap on an interesting post's coordinates
  4. read-detail — get the full detail page

Search for content

  1. search with a keyword — types and searches
  2. Review returned posts
  3. tap on a result to open it, or goto-profile with a username to visit their profile
  4. read-detail to extract detail content
  5. Use device back gesture or tap the back button to return

Navigate to a user's profile

  1. search with the username or related keyword
  2. goto-profile with the exact username string from results
  3. read-detail to get profile page content

Monitor / screenshot

  1. screenshot — capture current state for vision model analysis
  2. nav — check which tab/category is active

Parameters

| Parameter | Required | Default | Description |

|--------------|--------------|---------|-------------|

| action | Yes | - | feed, scroll-feed, nav, raw, screenshot, search, tap, read-detail, goto-profile |

| limit | No | 50 | Max text items to extract (feed, raw, read-detail) |

| amount | No | 5 | Scroll lines (scroll-feed only) |

| keyword | search only | - | Search query string |

| username | goto-profile only | - | Exact username to find and click on |

| x | tap only | - | Absolute screen X coordinate |

| y | tap only | - | Absolute screen Y coordinate |

| outputPath | No | auto | Custom screenshot save path (screenshot only) |

Technical Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.