@lucasygu/redbook 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +26 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -89,6 +89,19 @@ redbook post --title "测试" --body "..." --images img.png --private
89
89
  - **主 API**(`edith.xiaohongshu.com`)—— 读取:搜索、推荐页、笔记、评论、用户资料。使用 144 字节 x-s 签名(v4.3.1)
90
90
  - **创作者 API**(`creator.xiaohongshu.com`)—— 写入:上传图片、发布笔记。使用 AES-128-CBC 签名
91
91
 
92
+ ## Claude Code 集成
93
+
94
+ 安装后自动注册为 Claude Code 技能。在 Claude Code 中使用 `/redbook` 命令:
95
+
96
+ ```
97
+ /redbook search "AI编程" # 搜索笔记
98
+ /redbook read <url> # 阅读笔记
99
+ /redbook user <userId> # 查看博主
100
+ /redbook analyze <userId> # 完整博主分析
101
+ ```
102
+
103
+ Claude 会自动调用 CLI 命令,解析结果,完成竞品分析、话题研究等复杂任务。
104
+
92
105
  ## 编程接口
93
106
 
94
107
  ```typescript
@@ -209,6 +222,19 @@ redbook post --title "测试" --body "..." --images img.png --private
209
222
  - **Main API** (`edith.xiaohongshu.com`) — for reading: search, feed, notes, comments, user profiles. Uses x-s signature with 144-byte payload (v4.3.1).
210
223
  - **Creator API** (`creator.xiaohongshu.com`) — for writing: upload images, publish notes. Uses simpler AES-128-CBC signing.
211
224
 
225
+ ## Claude Code Integration
226
+
227
+ Installs automatically as a Claude Code skill. Use `/redbook` in Claude Code:
228
+
229
+ ```
230
+ /redbook search "AI编程" # Search notes
231
+ /redbook read <url> # Read a note
232
+ /redbook user <userId> # Creator profile
233
+ /redbook analyze <userId> # Full creator analysis
234
+ ```
235
+
236
+ Claude will call CLI commands, parse results, and handle complex workflows like competitive analysis and topic research.
237
+
212
238
  ## Programmatic Usage
213
239
 
214
240
  ```typescript
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lucasygu/redbook",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "CLI tool for Xiaohongshu (Red Note) - read and post via private API",
5
5
  "type": "module",
6
6
  "main": "./dist/lib/client.js",