socialdatax-skills 0.2.4 → 0.2.6
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.
- package/README.md +82 -14
- package/cli.mjs +794 -26
- package/package.json +7 -2
- package/skills/media-comments/SKILL.md +54 -20
- package/skills/media-detail/SKILL.md +40 -17
- package/skills/media-search/SKILL.md +52 -26
- package/skills/media-user-info/SKILL.md +29 -11
- package/skills/media-user-posts/SKILL.md +47 -15
- package/skills/socialdatax-content-research-assistant/SKILL.md +147 -30
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
This public package provides the unified skill installer and direct CLI helper for SocialDataX services.
|
|
4
4
|
|
|
5
|
-
The current public tools support 小红书 / Xiaohongshu / XHS / RedNote
|
|
5
|
+
The current public tools support 小红书 / Xiaohongshu / XHS / RedNote, 抖音 / Douyin, and 快手 / Kuaishou / Kwai read-only research workflows. The public skill layer is intentionally named by media capability so supported platforms can evolve without changing the installation model.
|
|
6
6
|
|
|
7
7
|
- direct `npx` JSON commands for agents that can run shell commands
|
|
8
8
|
- AgentSkills-compatible installers split by capability for OpenClaw, Hermes Agent, Codex, Claude Code, and general agent skill directories
|
|
@@ -27,6 +27,9 @@ Common search phrases for this skill package:
|
|
|
27
27
|
- `RedNote skills`
|
|
28
28
|
- `Douyin skills`
|
|
29
29
|
- `抖音 skills`
|
|
30
|
+
- `Kuaishou skills`
|
|
31
|
+
- `Kwai skills`
|
|
32
|
+
- `快手 skills`
|
|
30
33
|
- `SocialDataX content research`
|
|
31
34
|
- `content research assistant`
|
|
32
35
|
|
|
@@ -34,6 +37,7 @@ Common search phrases for this skill package:
|
|
|
34
37
|
|
|
35
38
|
- XHS hosted MCP endpoint: `https://mcp.52choujiang.com/xhs/mcp`
|
|
36
39
|
- Douyin hosted MCP endpoint: `https://mcp.52choujiang.com/douyin/mcp`
|
|
40
|
+
- Kuaishou hosted MCP endpoint: `https://mcp.52choujiang.com/kuaishou/mcp`
|
|
37
41
|
- Hosted transport: `streamable-http`
|
|
38
42
|
- Authentication: `Authorization: Bearer <SOCIALDATAX_API_KEY>`
|
|
39
43
|
- Website: <https://socialdatax.com>
|
|
@@ -41,8 +45,10 @@ Common search phrases for this skill package:
|
|
|
41
45
|
- XHS future platform MCP registry name: `com.socialdatax/xhs-insights`
|
|
42
46
|
- Douyin current platform MCP registry name: `com.52choujiang/douyin-insights`
|
|
43
47
|
- Douyin future platform MCP registry name: `com.socialdatax/douyin-insights`
|
|
48
|
+
- Kuaishou current platform MCP registry name: `com.52choujiang/kuaishou-insights`
|
|
49
|
+
- Kuaishou future platform MCP registry name: `com.socialdatax/kuaishou-insights`
|
|
44
50
|
- Unified MCP registry name: none; this package installs skills and calls explicit platform services.
|
|
45
|
-
- Current public capability version: `0.2.
|
|
51
|
+
- Current public capability version: `0.2.6`
|
|
46
52
|
|
|
47
53
|
## Direct CLI
|
|
48
54
|
|
|
@@ -52,8 +58,10 @@ Examples:
|
|
|
52
58
|
|
|
53
59
|
```bash
|
|
54
60
|
npx -y socialdatax-skills@latest xhs search --keyword "露营桌" --pretty
|
|
61
|
+
npx -y socialdatax-skills@latest xhs hot-search --pretty
|
|
55
62
|
npx -y socialdatax-skills@latest xhs detail --note-id "<note_id>" --pretty
|
|
56
63
|
npx -y socialdatax-skills@latest xhs comments --note-id "<note_id>" --pretty
|
|
64
|
+
npx -y socialdatax-skills@latest xhs comments --note-id "<note_id>" --all --include-replies --pretty
|
|
57
65
|
npx -y socialdatax-skills@latest xhs sub-comments --note-id "<note_id>" --comment-id "<comment_id>" --pretty
|
|
58
66
|
npx -y socialdatax-skills@latest xhs user-info --user-id "<user_id>" --pretty
|
|
59
67
|
npx -y socialdatax-skills@latest xhs user-posts --user-id "<user_id>" --pretty
|
|
@@ -61,6 +69,7 @@ npx -y socialdatax-skills@latest douyin hot-search --pretty
|
|
|
61
69
|
npx -y socialdatax-skills@latest douyin search --keyword "露营桌" --pretty
|
|
62
70
|
npx -y socialdatax-skills@latest douyin detail --aweme-id "<aweme_id>" --pretty
|
|
63
71
|
npx -y socialdatax-skills@latest douyin comments --aweme-id "<aweme_id>" --pretty
|
|
72
|
+
npx -y socialdatax-skills@latest douyin comments --aweme-id "<aweme_id>" --all --include-replies --pretty
|
|
64
73
|
npx -y socialdatax-skills@latest douyin replies --aweme-id "<aweme_id>" --comment-id "<comment_id>" --pretty
|
|
65
74
|
npx -y socialdatax-skills@latest douyin user-info --sec-user-id "<sec_user_id>" --pretty
|
|
66
75
|
npx -y socialdatax-skills@latest douyin user-info --profile-url "<profile_url_or_share_text>" --pretty
|
|
@@ -68,10 +77,34 @@ npx -y socialdatax-skills@latest douyin user-posts --sec-user-id "<sec_user_id>"
|
|
|
68
77
|
npx -y socialdatax-skills@latest douyin user-posts --profile-url "<profile_url_or_share_text>" --pretty
|
|
69
78
|
npx -y socialdatax-skills@latest douyin user-series --sec-user-id "<sec_user_id>" --pretty
|
|
70
79
|
npx -y socialdatax-skills@latest douyin user-series --profile-url "<profile_url_or_share_text>" --pretty
|
|
80
|
+
npx -y socialdatax-skills@latest kuaishou hot-search --pretty
|
|
81
|
+
npx -y socialdatax-skills@latest kuaishou search --keyword "露营桌" --pretty
|
|
82
|
+
npx -y socialdatax-skills@latest kuaishou detail --photo-id "<photo_id>" --pretty
|
|
83
|
+
npx -y socialdatax-skills@latest kuaishou detail --url "<kuaishou_content_url_or_share_text>" --pretty
|
|
84
|
+
npx -y socialdatax-skills@latest kuaishou comments --photo-id "<photo_id>" --pretty
|
|
85
|
+
npx -y socialdatax-skills@latest kuaishou comments --photo-id "<photo_id>" --all --include-replies --pretty
|
|
86
|
+
npx -y socialdatax-skills@latest kuaishou comments --url "<kuaishou_content_url_or_share_text>" --pretty
|
|
87
|
+
npx -y socialdatax-skills@latest kuaishou replies --photo-id "<photo_id>" --comment-id "<comment_id>" --pretty
|
|
88
|
+
npx -y socialdatax-skills@latest kuaishou user-info --user-id "<user_id>" --pretty
|
|
89
|
+
npx -y socialdatax-skills@latest kuaishou user-info --profile-url "<profile_url_or_share_text>" --pretty
|
|
90
|
+
npx -y socialdatax-skills@latest kuaishou user-posts --user-id "<user_id>" --pretty
|
|
91
|
+
npx -y socialdatax-skills@latest kuaishou user-posts --profile-url "<profile_url_or_share_text>" --pretty
|
|
71
92
|
```
|
|
72
93
|
|
|
73
94
|
The direct CLI prints a JSON envelope with `platform`, `tool`, `arguments`, and `data`.
|
|
74
95
|
|
|
96
|
+
For list-style commands, use `--pages <n>` to fetch N pages from the current starting point and `--max-items <n>` to cap the merged `data.items` output. Search commands support `--pages` but not `--all`, because search has no stable complete-result boundary.
|
|
97
|
+
|
|
98
|
+
For comments, replies, creator content lists, and Douyin creator series, use `--all` to continue until the returned `next_page_token` is empty. `--all` has no default item or page cap; add `--max-items <n>` or use `--pages <n>` when you want a bounded run.
|
|
99
|
+
|
|
100
|
+
For first-level comments, add `--include-replies` to fetch the second-level replies under each returned first-level comment. Multi-page output keeps `data.items` as the merged first-level list; each item gets `replies`, `replies_page_count`, and `replies_next_page_token`.
|
|
101
|
+
|
|
102
|
+
For commands that accept `--page-token`, continue only with the complete returned `next_page_token` from the same pagination chain. Do not modify, truncate, redact, mask, omit, normalize, rebuild, generate, or replace the middle with ellipses.
|
|
103
|
+
|
|
104
|
+
XHS search uses numeric `--page`; Douyin and Kuaishou search do not accept `--page`. For Douyin and Kuaishou search, omit `--page-token` on the first request and pass the complete returned `next_page_token` only when continuing the same search chain.
|
|
105
|
+
|
|
106
|
+
Kuaishou search uses `--keyword` and optional `--page-token`; it does not accept Douyin semantic filters.
|
|
107
|
+
|
|
75
108
|
Douyin search filters use semantic values: `--sort-type` supports `general`,
|
|
76
109
|
`time_descending`, and `like_count_descending`; `--publish-time-range` supports
|
|
77
110
|
`all`, `day`, `week`, and `half_year`; `--duration-range` supports `all`,
|
|
@@ -102,7 +135,7 @@ The public package declares no npm lifecycle scripts such as `preinstall`, `inst
|
|
|
102
135
|
|
|
103
136
|
## Platform Names
|
|
104
137
|
|
|
105
|
-
This project is not affiliated with, endorsed by, or sponsored by Xiaohongshu, RedNote, Douyin, or their affiliates. Platform names are used only to describe supported data sources.
|
|
138
|
+
This project is not affiliated with, endorsed by, or sponsored by Xiaohongshu, RedNote, Douyin, Kuaishou, Kwai, or their affiliates. Platform names are used only to describe supported data sources.
|
|
106
139
|
|
|
107
140
|
### Local Source Run
|
|
108
141
|
|
|
@@ -110,6 +143,7 @@ This project is not affiliated with, endorsed by, or sponsored by Xiaohongshu, R
|
|
|
110
143
|
npm install
|
|
111
144
|
SOCIALDATAX_API_KEY="<SOCIALDATAX_API_KEY>" node cli.mjs xhs search --keyword "露营桌" --pretty
|
|
112
145
|
SOCIALDATAX_API_KEY="<SOCIALDATAX_API_KEY>" node cli.mjs douyin search --keyword "露营桌" --pretty
|
|
146
|
+
SOCIALDATAX_API_KEY="<SOCIALDATAX_API_KEY>" node cli.mjs kuaishou search --keyword "露营桌" --pretty
|
|
113
147
|
```
|
|
114
148
|
|
|
115
149
|
### Docker Run
|
|
@@ -118,6 +152,7 @@ SOCIALDATAX_API_KEY="<SOCIALDATAX_API_KEY>" node cli.mjs douyin search --keyword
|
|
|
118
152
|
docker build -t socialdatax-skills .
|
|
119
153
|
docker run --rm -i -e SOCIALDATAX_API_KEY="<SOCIALDATAX_API_KEY>" socialdatax-skills xhs search --keyword "露营桌" --pretty
|
|
120
154
|
docker run --rm -i -e SOCIALDATAX_API_KEY="<SOCIALDATAX_API_KEY>" socialdatax-skills douyin search --keyword "露营桌" --pretty
|
|
155
|
+
docker run --rm -i -e SOCIALDATAX_API_KEY="<SOCIALDATAX_API_KEY>" socialdatax-skills kuaishou search --keyword "露营桌" --pretty
|
|
121
156
|
```
|
|
122
157
|
|
|
123
158
|
If Docker Hub is slow from your network, keep the default image unchanged for normal use and override only during local builds:
|
|
@@ -149,19 +184,22 @@ npx -y socialdatax-skills@latest install media-search --target codex --scope wor
|
|
|
149
184
|
npx -y socialdatax-skills@latest install media-search --target claude-code
|
|
150
185
|
npx -y socialdatax-skills@latest install media-search --target claude-code --scope workspace
|
|
151
186
|
npx -y socialdatax-skills@latest xhs search --keyword "露营桌" --pretty
|
|
187
|
+
npx -y socialdatax-skills@latest xhs hot-search --pretty
|
|
152
188
|
npx -y socialdatax-skills@latest douyin hot-search --pretty
|
|
153
189
|
npx -y socialdatax-skills@latest douyin search --keyword "露营桌" --pretty
|
|
154
190
|
npx -y socialdatax-skills@latest douyin user-series --sec-user-id "<sec_user_id>" --pretty
|
|
191
|
+
npx -y socialdatax-skills@latest kuaishou hot-search --pretty
|
|
192
|
+
npx -y socialdatax-skills@latest kuaishou search --keyword "露营桌" --pretty
|
|
155
193
|
```
|
|
156
194
|
|
|
157
195
|
Available skills:
|
|
158
196
|
|
|
159
|
-
- `socialdatax-content-research-assistant`: combine SocialDataX search, detail, comment, creator profile, and creator content workflows for cross-platform content research across XHS and
|
|
160
|
-
- `media-search`: search social media content by keyword; supports XHS notes and
|
|
161
|
-
- `media-detail`: read structured content details and metrics; supports XHS notes and
|
|
162
|
-
- `media-comments`: fetch and analyze XHS comments/replies and
|
|
163
|
-
- `media-user-info`: retrieve creator profile information; supports XHS and
|
|
164
|
-
- `media-user-posts`: retrieve creator content lists; supports XHS notes, Douyin works, and Douyin creator short-drama series.
|
|
197
|
+
- `socialdatax-content-research-assistant`: combine SocialDataX search, detail, comment, creator profile, and creator content workflows for cross-platform content research across XHS, Douyin, and Kuaishou.
|
|
198
|
+
- `media-search`: search social media content by keyword; supports XHS notes, Douyin works, and Kuaishou works.
|
|
199
|
+
- `media-detail`: read structured content details and metrics; supports XHS notes, Douyin works, and Kuaishou works.
|
|
200
|
+
- `media-comments`: fetch and analyze XHS comments/replies, Douyin comments/replies, and Kuaishou comments/replies.
|
|
201
|
+
- `media-user-info`: retrieve creator profile information; supports XHS, Douyin, and Kuaishou creators.
|
|
202
|
+
- `media-user-posts`: retrieve creator content lists; supports XHS notes, Douyin works, Kuaishou works, and Douyin creator short-drama series.
|
|
165
203
|
|
|
166
204
|
Default install locations:
|
|
167
205
|
|
|
@@ -183,14 +221,26 @@ The current platform MCP services are designed for read-only social media intell
|
|
|
183
221
|
|
|
184
222
|
Current XHS workflows include:
|
|
185
223
|
|
|
224
|
+
- Fetch the current Xiaohongshu / XHS / RedNote search hot list.
|
|
186
225
|
- Search related Xiaohongshu notes by keyword, with optional sort, note type, and publish-time filters.
|
|
187
|
-
- Resolve a shared note link, short link, share text
|
|
226
|
+
- Resolve a shared note link, short link, or share text into structured note details.
|
|
188
227
|
- Read note details when the caller already has a note ID.
|
|
189
228
|
- Fetch paginated first-level comments for comment analysis.
|
|
190
229
|
- Fetch paginated replies under a first-level comment.
|
|
191
230
|
- Read creator profile data from a profile link, short link, share text, or user ID.
|
|
192
231
|
- Fetch paginated creator note lists from a user ID, profile link, short link, or share text for content style and account research.
|
|
193
232
|
|
|
233
|
+
Current Kuaishou workflows include:
|
|
234
|
+
|
|
235
|
+
- Fetch the current Kuaishou / 快手 short-video hot list.
|
|
236
|
+
- Search related Kuaishou works by keyword.
|
|
237
|
+
- Resolve a Kuaishou work page link, short link, share text, or photo_id into structured work details.
|
|
238
|
+
- Fetch paginated first-level comments for comment analysis.
|
|
239
|
+
- Fetch paginated replies under a first-level comment.
|
|
240
|
+
- Continue Kuaishou list pagination only when `next_page_token` is non-empty; an empty string means there are no more results to request.
|
|
241
|
+
- Read creator profile data from a profile link, short link, share text, or user_id.
|
|
242
|
+
- Fetch paginated creator work lists from a user_id, profile link, short link, or share text.
|
|
243
|
+
|
|
194
244
|
Current Douyin workflows include:
|
|
195
245
|
|
|
196
246
|
- Fetch the current Douyin main hot search list.
|
|
@@ -207,8 +257,9 @@ Current Douyin workflows include:
|
|
|
207
257
|
|
|
208
258
|
| Tool | Public purpose |
|
|
209
259
|
| --- | --- |
|
|
260
|
+
| `xhs_get_search_hot_list` | Fetch the current Xiaohongshu / 小红书 search hot list with each item's title and heat value. |
|
|
210
261
|
| `xhs_search_notes` | Search Xiaohongshu / 小红书 notes by keyword with optional sort, note type, and publish-time filters. |
|
|
211
|
-
| `xhs_get_note_detail_by_note_url` | Resolve a shared XHS link, short link, share text
|
|
262
|
+
| `xhs_get_note_detail_by_note_url` | Resolve a shared XHS link, short link, or share text into structured note details. |
|
|
212
263
|
| `xhs_get_note_detail_by_note_id` | Fetch structured note details when the caller already has a note ID. |
|
|
213
264
|
| `xhs_get_note_comments_by_note_id` | Fetch paginated first-level comments when the caller already has a note ID. |
|
|
214
265
|
| `xhs_get_note_comments_by_note_url` | Fetch paginated first-level comments directly from a shared note URL, short link, or share text. |
|
|
@@ -223,7 +274,7 @@ Current Douyin workflows include:
|
|
|
223
274
|
| Tool | Public purpose |
|
|
224
275
|
| --- | --- |
|
|
225
276
|
| `douyin_get_hot_search_list` | Fetch the current Douyin main hot search list. |
|
|
226
|
-
| `douyin_search_videos` | Search Douyin works by keyword with optional
|
|
277
|
+
| `douyin_search_videos` | Search Douyin works by keyword with optional `page_token` continuation and filters; do not pass `page`. |
|
|
227
278
|
| `douyin_get_video_detail_by_aweme_id` | Fetch structured Douyin work details when the caller already has an aweme_id. |
|
|
228
279
|
| `douyin_get_video_detail_by_url` | Resolve a Douyin content page link, short link, or share text into structured Douyin work details. |
|
|
229
280
|
| `douyin_get_video_comments_by_aweme_id` | Fetch paginated first-level comments when the caller already has an aweme_id. |
|
|
@@ -236,6 +287,22 @@ Current Douyin workflows include:
|
|
|
236
287
|
| `douyin_get_user_series_by_sec_user_id` | Fetch a paginated list of short-drama series by a creator when the caller already has a sec_user_id. |
|
|
237
288
|
| `douyin_get_user_series_by_profile_url` | Fetch a paginated list of short-drama series by a creator from a profile link, short link, or share text. |
|
|
238
289
|
|
|
290
|
+
## Kuaishou Tools
|
|
291
|
+
|
|
292
|
+
| Tool | Public purpose |
|
|
293
|
+
| --- | --- |
|
|
294
|
+
| `kuaishou_get_hot_search_list` | Get the current Kuaishou / 快手 short-video hot list. |
|
|
295
|
+
| `kuaishou_search_videos` | Search Kuaishou works by natural-language keyword with optional `page_token` continuation; do not pass `page`. |
|
|
296
|
+
| `kuaishou_get_video_detail_by_photo_id` | Fetch structured work details when the caller already has a photo_id. |
|
|
297
|
+
| `kuaishou_get_video_detail_by_url` | Resolve a Kuaishou work page link, short link, or share text into structured work details. |
|
|
298
|
+
| `kuaishou_get_video_comments_by_photo_id` | Fetch paginated first-level comments when the caller already has a photo_id. |
|
|
299
|
+
| `kuaishou_get_video_comments_by_url` | Fetch paginated first-level comments directly from a Kuaishou work page link, short link, or share text. |
|
|
300
|
+
| `kuaishou_get_video_comment_replies_by_comment_id` | Fetch paginated replies under a first-level comment by photo_id and comment_id. |
|
|
301
|
+
| `kuaishou_get_user_info_by_user_id` | Fetch creator profile data when the caller already has a user_id. |
|
|
302
|
+
| `kuaishou_get_user_info_by_profile_url` | Resolve a Kuaishou profile link, short link, or share text into creator profile data. |
|
|
303
|
+
| `kuaishou_get_user_posted_videos_by_user_id` | Fetch a paginated list of works published by a creator when the caller already has a user_id. |
|
|
304
|
+
| `kuaishou_get_user_posted_videos_by_profile_url` | Fetch a paginated list of works published by a creator from a profile link, short link, or share text. |
|
|
305
|
+
|
|
239
306
|
## Quick Start
|
|
240
307
|
|
|
241
308
|
For agents that can execute shell commands, use the direct CLI. This is the recommended default for installed skills:
|
|
@@ -244,9 +311,10 @@ For agents that can execute shell commands, use the direct CLI. This is the reco
|
|
|
244
311
|
export SOCIALDATAX_API_KEY="<SOCIALDATAX_API_KEY>"
|
|
245
312
|
npx -y socialdatax-skills@latest xhs search --keyword "露营桌" --pretty
|
|
246
313
|
npx -y socialdatax-skills@latest douyin search --keyword "露营桌" --pretty
|
|
314
|
+
npx -y socialdatax-skills@latest kuaishou search --keyword "露营桌" --pretty
|
|
247
315
|
```
|
|
248
316
|
|
|
249
|
-
MCP client configuration belongs to platform MCP listings. For XHS, use the `xhs-insights` docs; for Douyin, use the `douyin-insights` listing.
|
|
317
|
+
MCP client configuration belongs to platform MCP listings. For XHS, use the `xhs-insights` docs; for Douyin, use the `douyin-insights` listing; for Kuaishou, use the `kuaishou-insights` listing.
|
|
250
318
|
|
|
251
319
|
Aily is treated as an OpenClaw / AgentSkills ecosystem channel for this package. Use the OpenClaw skill install flow for now; a dedicated `--target aily` will be added only after its official skill import or package format is confirmed.
|
|
252
320
|
|
|
@@ -262,7 +330,7 @@ Use the key as a Bearer token in the `Authorization` request header. Do not comm
|
|
|
262
330
|
|
|
263
331
|
Public metadata files in this repository:
|
|
264
332
|
|
|
265
|
-
- [skills](skills): AgentSkills-compatible skills split by social media capability and currently backed by XHS and
|
|
333
|
+
- [skills](skills): AgentSkills-compatible skills split by social media capability and currently backed by XHS, Douyin, and Kuaishou tools.
|
|
266
334
|
|
|
267
335
|
## License
|
|
268
336
|
|