Agent skill
xhs-noteid
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.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/xhs-noteid
SKILL.md
Extract noteId from XiaoHongShu shares
Fast path (no network)
- Find and return the
<noteId>in URLs likehttps://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.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?