smithery/muzhicaomingwang

xhs-noteid

Extract Xiaohongshu (小红书) noteId from shared note text or URLs, including xhslink.com short links and xiaohongshu.com/discovery/item/<noteId> links.

Installation

$ npx skills add smithery/muzhicaomingwang --skill xhs-noteid

Summary

  • Extract Xiaohongshu (小红书) noteId from shared note text or URLs, including xhslink.com short links and xiaohongshu.com/discovery/item/<noteId> links.
  • Use when the user asks for “noteId/笔记ID”, provides a 小红书 share message, or pastes an xhslink short URL that needs redirect expansion.

Also in this package

Other skills from smithery/muzhicaomingwang.

npx skills add smithery/muzhicaomingwang

Browse all from smithery/muzhicaomingwang

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,174 B
  • docs SUMMARY.md 320 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

Extract noteId from XiaoHongShu shares

Fast path (no network)

  • Find and return the <noteId> in URLs like https://www.xiaohongshu.com/discovery/item/<noteId>.
  • Also accept share text that contains that URL; extract the same <noteId>.
  • Prefer returning only the ID (or noteId: <id> if the user wants a labeled answer).

Short-link path (xhslink.com)

If the user only provides a short link like http://xhslink.com/o/..., expand redirects to a long URL, then extract the <noteId> from /discovery/item/<noteId>.

  • Resolve redirect (requires network access/approval in sandboxed runs):

- curl -sS -L -o /dev/null -w '%{url_effective}' '<short-url>'

  • Extract <noteId> from the resolved URL.

Script

Use scripts/extract_noteid.py for deterministic extraction and optional short-link resolution.