SkillsLib.ai

Xhs Cli

Search, read, and interact with Xiaohongshu from the terminal

4.4(53 reviews)
1,000+ downloads
Updated Nov 2026
Verified SafeSecurity VerifiedThis skill was analyzed by our AI security scanner for harmful content including data exfiltration, system manipulation, credential theft, and prompt injection. No threats were detected.

What You Can Do

This skill provides terminal-based access to Xiaohongshu's core features using a headless browser approach. You can search for notes, retrieve detailed post content with comments, view user profiles, and perform engagement actions—all without leaving your CLI. The headless browser method prioritizes resilience against detection compared to API-based alternatives.

Features

Search notes

Query Xiaohongshu by keyword and get rich table output or raw JSON results

Read posts with context

Retrieve full note details including comments and metadata using note IDs

Browse user profiles

Look up creator profiles by user ID and view their published notes

Engagement actions

Like, favorite, and comment on posts directly from the terminal

Flexible authentication

Support for saved cookies, Chrome auto-detection, and QR code login

JSON output option

Export search and read results in machine-readable JSON format for automation

Session management

Check login status and manage authentication tokens via xhs status command

Example Output

Search Result:

code
$ xhs search "咖啡"
┌─────────────────────────────────────────────────┐
│ Note ID        │ Title           │ Author      │
├─────────────────────────────────────────────────┤
│ 7a8b9c0d1e2f3g │ 咖啡品鉴指南    │ @CoffeeGeek │
│ 2f3g4h5i6j7k8l │ 手冲咖啡技巧    │ @BaristaArt │
└─────────────────────────────────────────────────┘

Note Details:

code
$ xhs read 7a8b9c0d1e2f3g --comments
Title: 咖啡品鉴指南
Author: @CoffeeGeek (ID: a1b2c3d4e5f6)
Description: A comprehensive guide to coffee tasting...
Likes: 2,341 | Comments: 156 | Shares: 89

Top Comments:
- "Great tips! Tried the pour-over method." — @User123
- "Where did you source these beans?" — @User456

What's Included

  • SKILL.md: Complete xhs-cli installation and command reference
  • Authentication guide: Cookie management, Chrome auto-detection, and QR code login instructions
  • Command cheat sheet: Search, read, user profile, and engagement command syntax with options
  • JSON output templates: Raw JSON response formats for search, posts, and profile data
  • Example workflows: Copy-paste terminal commands for common tasks (search → read → comment)

Who It's For

  • Social media researchers — Analyze trends and content from Xiaohongshu at scale via CLI automation
  • Content creators — Monitor engagement metrics and manage posts from terminal-based workflows
  • Data engineers — Extract and process XHS data for analytics pipelines and datasets
  • Developers — Build automation scripts and integrations using XHS as a data source
  • Marketing analysts — Research competitor content and audience sentiment programmatically

Best For

  • Batch searching and monitoring — Automate keyword research and track trending topics across notes
  • Content discovery workflows — Systematically explore user profiles and note collections
  • Engagement automation — Like, favorite, and comment on content at scale from scripts
  • Data extraction — Pull note metadata, comments, and user information for analysis
  • Terminal-first development — Integrate XHS interactions into CI/CD pipelines and headless systems

You might also like

API Parameter Validation & Security Hardening
$30
API Parameter Validation & Security Hardening

You get Claude to analyze your API specifications and automatically generate bulletproof parameter validation logic. Claude creates security-hardened middleware, enforces type constraints, detects malicious input patterns, and generates comprehensive error handling — all tailored to your framework and existing codebase. The result is production-ready validation code with zero unvalidated inputs reaching your business logic.

Property Claims Adjuster Analyst
$35
Property3.3(3)
Property Claims Adjuster Analyst

This skill helps insurance adjusters process property claims faster by automating damage assessment, identifying fraud patterns, and analyzing coverage requirements. You get structured damage documentation, fraud risk scores, settlement calculations, and regulatory-compliant reports—enabling faster, more accurate claim decisions.

Workers' Comp Subrogation Case Analysis & Strategy
$25
Workers' Comp Subrogation Case Analysis & Strategy

You get an intelligent case analyst that evaluates liability strength, quantifies subrogation potential, and builds recovery strategies for third-party claims. Upload incident reports, medical records, and claim details—the skill identifies liable parties, assesses damages, calculates expected recovery amounts, and recommends prioritized action plans to help you recover costs efficiently.

Typescript Strict Mode Enforcer
$20
Backend4.2(51)
Typescript Strict Mode Enforcer

This skill scans your TypeScript codebase for type safety violations and systematically remediates them. You can automatically remove implicit any types, add comprehensive type annotations to functions and variables, configure strict mode compiler options in tsconfig.json, and receive actionable refactoring guidance with concrete code examples. It's designed for migrating existing projects to strict mode or enforcing strict practices before production deployment.

Workers' Compensation Claim Adjudication Framework
$40
Workers' Compensation Claim Adjudication Framework

You can analyze workers' compensation claims with a structured framework that evaluates eligibility criteria, establishes causation between injury and work activities, and calculates accurate benefit entitlements. This skill guides you through comprehensive claim assessment using validated decision trees, medical evidence analysis, and statutory benefit calculations to support consistent claim determinations.

Product Liability Subrogation Case Builder
$30
Product Liability Subrogation Case Builder

Systematically analyze product liability claims to identify all liable parties, quantify economic and non-economic damages, and organize evidence into a defensible recovery strategy. This skill helps you construct fact-based subrogation cases by structuring complex evidence, assessing third-party culpability, and developing targeted recovery approaches based on liability strength.

Medical Claims Analysis & Denial Rationale Generator
$25
Medical3.6(5)
Medical Claims Analysis & Denial Rationale Generator

Systematically evaluate medical claims against coverage policies, identify denial criteria, and generate compliant denial rationales with documented medical necessity assessments. You'll produce clear, legally defensible documentation that supports utilization review decisions and formal appeal processes, reducing manual review time while ensuring regulatory compliance.

Multimedia Story Assembly
$30
Multimedia3.9(34)
Multimedia Story Assembly

You can inventory all your reporting assets, determine the optimal narrative structure that serves your story's core message, and generate platform-specific versions (web article, social posts, video script, infographic brief, print layout) from a single master outline. This skill ensures your investigative work reaches maximum audience without manual re-adaptation, reducing errors and publication time while maintaining brand voice and factual consistency across every platform.

$28.00$35.00