socialdatax-skills 0.2.0
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/LICENSE +21 -0
- package/README.md +257 -0
- package/assets/logo.png +0 -0
- package/cli.mjs +1457 -0
- package/package.json +55 -0
- package/skills/media-comments/SKILL.md +71 -0
- package/skills/media-comments/agents/openai.yaml +7 -0
- package/skills/media-detail/SKILL.md +66 -0
- package/skills/media-detail/agents/openai.yaml +7 -0
- package/skills/media-search/SKILL.md +134 -0
- package/skills/media-search/agents/openai.yaml +7 -0
- package/skills/media-user-info/SKILL.md +66 -0
- package/skills/media-user-info/agents/openai.yaml +7 -0
- package/skills/media-user-posts/SKILL.md +69 -0
- package/skills/media-user-posts/agents/openai.yaml +7 -0
package/package.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "socialdatax-skills",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "SocialDataX / 社媒数据助手 skill installer and direct CLI helper for hosted platform social media MCP services.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"bin": {
|
|
8
|
+
"socialdatax-skills": "cli.mjs"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"cli.mjs",
|
|
12
|
+
"README.md",
|
|
13
|
+
"LICENSE",
|
|
14
|
+
"skills/**",
|
|
15
|
+
"assets/logo.png"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"start": "node ./cli.mjs",
|
|
19
|
+
"pack:check": "npm pack --dry-run --json",
|
|
20
|
+
"test": "node --test test/*.test.mjs"
|
|
21
|
+
},
|
|
22
|
+
"keywords": [
|
|
23
|
+
"socialdatax",
|
|
24
|
+
"socialdatax-skills",
|
|
25
|
+
"agentskills",
|
|
26
|
+
"skills",
|
|
27
|
+
"skill-installer",
|
|
28
|
+
"xiaohongshu",
|
|
29
|
+
"xhs",
|
|
30
|
+
"rednote",
|
|
31
|
+
"rednote-data",
|
|
32
|
+
"douyin",
|
|
33
|
+
"douyin-data",
|
|
34
|
+
"douyin-search",
|
|
35
|
+
"xiaohongshu-data",
|
|
36
|
+
"xiaohongshu-search",
|
|
37
|
+
"xhs-data",
|
|
38
|
+
"xhs-search",
|
|
39
|
+
"social-insights",
|
|
40
|
+
"social-media",
|
|
41
|
+
"media-search",
|
|
42
|
+
"content-analysis",
|
|
43
|
+
"creator-analytics"
|
|
44
|
+
],
|
|
45
|
+
"homepage": "https://socialdatax.com",
|
|
46
|
+
"bugs": {
|
|
47
|
+
"url": "https://socialdatax.com"
|
|
48
|
+
},
|
|
49
|
+
"engines": {
|
|
50
|
+
"node": ">=20.18.1"
|
|
51
|
+
},
|
|
52
|
+
"dependencies": {
|
|
53
|
+
"@modelcontextprotocol/sdk": "^1.29.0"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: media-comments
|
|
3
|
+
description: Fetch and analyze XHS comments/replies and Douyin first-level comments. This version is backed by hosted platform MCP services and supports Xiaohongshu, 小红书, XHS, RedNote, and Douyin / 抖音.
|
|
4
|
+
metadata:
|
|
5
|
+
openclaw:
|
|
6
|
+
requires:
|
|
7
|
+
env:
|
|
8
|
+
- SOCIALDATAX_API_KEY
|
|
9
|
+
bins:
|
|
10
|
+
- node
|
|
11
|
+
- npm
|
|
12
|
+
primaryEnv: SOCIALDATAX_API_KEY
|
|
13
|
+
emoji: "💬"
|
|
14
|
+
homepage: https://socialdatax.com
|
|
15
|
+
install:
|
|
16
|
+
- kind: node
|
|
17
|
+
package: "socialdatax-skills"
|
|
18
|
+
bins: []
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
# Media Comments
|
|
22
|
+
|
|
23
|
+
Use this skill when the user wants comment mining, audience feedback, sentiment themes, objections, pain points, FAQ extraction, or discussion summaries for supported social media content.
|
|
24
|
+
|
|
25
|
+
Current platform support:
|
|
26
|
+
|
|
27
|
+
- Xiaohongshu / XHS / RedNote notes through the `xhs_get_note_comments_by_*` and `xhs_get_note_sub_comments_by_comment_id` tools.
|
|
28
|
+
- Douyin / 抖音 works, including video and image/text posts, through the `douyin_get_video_comments_by_*` tools.
|
|
29
|
+
|
|
30
|
+
## Preferred Direct CLI
|
|
31
|
+
|
|
32
|
+
Prefer the direct CLI when the agent can run shell commands. It does not require MCP server configuration:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npx -y socialdatax-skills@latest xhs comments --note-id "<note_id>" --pretty
|
|
36
|
+
npx -y socialdatax-skills@latest xhs comments --url "<note_url_or_share_text>" --pretty
|
|
37
|
+
npx -y socialdatax-skills@latest xhs sub-comments --note-id "<note_id>" --comment-id "<comment_id>" --pretty
|
|
38
|
+
npx -y socialdatax-skills@latest douyin comments --aweme-id "<aweme_id>" --pretty
|
|
39
|
+
npx -y socialdatax-skills@latest douyin comments --url "<douyin_content_url_or_share_text>" --pretty
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
- XHS `--note-id <note_id>`: preferred when the note ID is already known and should anchor the comment thread.
|
|
43
|
+
- Douyin `--aweme-id <aweme_id>`: preferred when the video ID is already known and should anchor the comment thread.
|
|
44
|
+
- `--url <url_or_share_text>`: use for a content page URL, short link, or share text for first-level comments; for Douyin, do not pass `video.play_url`.
|
|
45
|
+
- `--comment-id <comment_id>`: required only for XHS reply commands; use the first-level comment ID under the same content item.
|
|
46
|
+
- `--page-token <next_page_token>`: opaque pagination token; pass back exactly the token returned by the previous page and do not reuse it across content items or comments.
|
|
47
|
+
- `--pretty`: output formatting only.
|
|
48
|
+
|
|
49
|
+
For XHS `comments`, use either `--note-id` or `--url`, not both. For Douyin `comments`, use either `--aweme-id` or `--url`, not both. For XHS reply commands, use the content ID together with `--comment-id`.
|
|
50
|
+
|
|
51
|
+
The command prints JSON with `platform`, `tool`, `arguments`, and `data`.
|
|
52
|
+
|
|
53
|
+
## Safety Boundary
|
|
54
|
+
|
|
55
|
+
This skill is read-only. It does not read local browser data, does not save API keys, and does not perform login, posting, liking, commenting, or account changes. Prefer the direct CLI; hosted MCP tools are optional when the current agent already supports authenticated streamable HTTP MCP.
|
|
56
|
+
|
|
57
|
+
## MCP Tools
|
|
58
|
+
|
|
59
|
+
If MCP tools are already available in the current agent, use one of these tools:
|
|
60
|
+
|
|
61
|
+
- `xhs_get_note_comments_by_note_id`: use when the note ID is known.
|
|
62
|
+
- `xhs_get_note_comments_by_note_url`: use for note URLs, short links, or share text.
|
|
63
|
+
- `xhs_get_note_sub_comments_by_comment_id`: use when the note ID and first-level comment ID are known.
|
|
64
|
+
- `douyin_get_video_comments_by_aweme_id`: use when the aweme_id is known.
|
|
65
|
+
- `douyin_get_video_comments_by_url`: use for Douyin content page URLs, short links, or share text; do not pass playback URLs such as `video.play_url`.
|
|
66
|
+
|
|
67
|
+
Comment pagination uses `page_token`. Pass back exactly the returned `next_page_token`; tokens are bound to the current content item and should not be reused across objects. XHS reply pagination also uses `page_token` and is bound to the current comment.
|
|
68
|
+
|
|
69
|
+
## Output Guidance
|
|
70
|
+
|
|
71
|
+
Group comments by observed themes before inferring sentiment or demand. Mention whether the result is one page or multiple pages. Empty comments can be a valid successful result.
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: media-detail
|
|
3
|
+
description: Read structured social media content details and metrics from content IDs, URLs, short links, or share text. This version is backed by hosted platform MCP services and supports Xiaohongshu, 小红书, XHS, RedNote, and Douyin / 抖音.
|
|
4
|
+
metadata:
|
|
5
|
+
openclaw:
|
|
6
|
+
requires:
|
|
7
|
+
env:
|
|
8
|
+
- SOCIALDATAX_API_KEY
|
|
9
|
+
bins:
|
|
10
|
+
- node
|
|
11
|
+
- npm
|
|
12
|
+
primaryEnv: SOCIALDATAX_API_KEY
|
|
13
|
+
emoji: "📄"
|
|
14
|
+
homepage: https://socialdatax.com
|
|
15
|
+
install:
|
|
16
|
+
- kind: node
|
|
17
|
+
package: "socialdatax-skills"
|
|
18
|
+
bins: []
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
# Media Detail
|
|
22
|
+
|
|
23
|
+
Use this skill when the user provides a content link, short link, share text, or content ID and wants structured details or interaction metrics.
|
|
24
|
+
|
|
25
|
+
Current platform support:
|
|
26
|
+
|
|
27
|
+
- Xiaohongshu / XHS / RedNote notes through the `xhs_get_note_detail_by_*` tools.
|
|
28
|
+
- Douyin / 抖音 works, including video and image/text posts, through the `douyin_get_video_detail_by_*` tools.
|
|
29
|
+
|
|
30
|
+
## Preferred Direct CLI
|
|
31
|
+
|
|
32
|
+
Prefer the direct CLI when the agent can run shell commands. It does not require MCP server configuration:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npx -y socialdatax-skills@latest xhs detail --note-id "<note_id>" --pretty
|
|
36
|
+
npx -y socialdatax-skills@latest xhs detail --url "<note_url_or_share_text_or_note_id>" --pretty
|
|
37
|
+
npx -y socialdatax-skills@latest douyin detail --aweme-id "<aweme_id>" --pretty
|
|
38
|
+
npx -y socialdatax-skills@latest douyin detail --url "<douyin_content_url_or_share_text>" --pretty
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
- XHS `--note-id <note_id>`: preferred when the note ID is already known from search, comments, or a previous detail result.
|
|
42
|
+
- XHS `--url <note_url_or_share_text_or_note_id>`: use for a note link, short link, share text, or note ID when you want the alternate entrypoint for one note.
|
|
43
|
+
- Douyin `--aweme-id <aweme_id>`: preferred when the Douyin work ID is already known.
|
|
44
|
+
- Douyin `--url <douyin_content_url_or_share_text>`: use for a Douyin content page URL, short link, or share text; do not pass `video.play_url`.
|
|
45
|
+
- `--pretty`: output formatting only.
|
|
46
|
+
|
|
47
|
+
Use either the ID option or the URL option for detail commands, not both.
|
|
48
|
+
|
|
49
|
+
The command prints JSON with `platform`, `tool`, `arguments`, and `data`.
|
|
50
|
+
|
|
51
|
+
## Safety Boundary
|
|
52
|
+
|
|
53
|
+
This skill is read-only. It does not read local browser data, does not save API keys, and does not perform login, posting, liking, commenting, or account changes. Prefer the direct CLI; hosted MCP tools are optional when the current agent already supports authenticated streamable HTTP MCP.
|
|
54
|
+
|
|
55
|
+
## MCP Tools
|
|
56
|
+
|
|
57
|
+
If MCP tools are already available in the current agent, use one of these tools:
|
|
58
|
+
|
|
59
|
+
- `xhs_get_note_detail_by_note_id`: use when a note ID is already known.
|
|
60
|
+
- `xhs_get_note_detail_by_note_url`: use for note URLs, short links, share text, or note IDs.
|
|
61
|
+
- `douyin_get_video_detail_by_aweme_id`: use when an aweme_id is already known.
|
|
62
|
+
- `douyin_get_video_detail_by_url`: use for Douyin content page URLs, short links, or share text; do not pass playback URLs such as `video.play_url`.
|
|
63
|
+
|
|
64
|
+
## Output Guidance
|
|
65
|
+
|
|
66
|
+
Return factual fields such as title or description, content, author, publish time, interaction counts, `content_type`, images, and media summary when available. For Douyin detail, use `images` for image/text posts; `video` is the platform player resource and may be audio for image/text posts; `music` is the bound music or original-sound asset. Detail access is read-only and does not provide account actions.
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: media-search
|
|
3
|
+
description: Search social media content by keyword for social research, competitor research, topic discovery, content planning, market observation, and trend scanning. This version is backed by hosted platform MCP services and supports Xiaohongshu, 小红书, XHS, RedNote, and Douyin / 抖音.
|
|
4
|
+
metadata:
|
|
5
|
+
openclaw:
|
|
6
|
+
requires:
|
|
7
|
+
env:
|
|
8
|
+
- SOCIALDATAX_API_KEY
|
|
9
|
+
bins:
|
|
10
|
+
- node
|
|
11
|
+
- npm
|
|
12
|
+
primaryEnv: SOCIALDATAX_API_KEY
|
|
13
|
+
emoji: "🔍"
|
|
14
|
+
homepage: https://socialdatax.com
|
|
15
|
+
install:
|
|
16
|
+
- kind: node
|
|
17
|
+
package: "socialdatax-skills"
|
|
18
|
+
bins: []
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
# Media Search
|
|
22
|
+
|
|
23
|
+
Use this skill when the user wants to discover social media content from a keyword, brand, product, campaign, creator niche, or research topic.
|
|
24
|
+
|
|
25
|
+
Current platform support:
|
|
26
|
+
|
|
27
|
+
- Xiaohongshu / XHS / RedNote notes through `xhs_search_notes`.
|
|
28
|
+
- Douyin / 抖音 works, including video and image/text posts, through `douyin_search_videos`.
|
|
29
|
+
|
|
30
|
+
## Preferred Direct CLI
|
|
31
|
+
|
|
32
|
+
Prefer the direct CLI when the agent can run shell commands. It does not require MCP server configuration:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npx -y socialdatax-skills@latest xhs search --keyword "<keyword>" --pretty
|
|
36
|
+
npx -y socialdatax-skills@latest douyin search --keyword "<keyword>" --pretty
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Required arguments:
|
|
40
|
+
|
|
41
|
+
- `--keyword <text>`: search phrase or topic; use the user's actual intent, trim whitespace, and keep it focused.
|
|
42
|
+
|
|
43
|
+
Optional arguments:
|
|
44
|
+
|
|
45
|
+
- XHS `--page <number>`: 1-based page number; use `1` for the first page and only increase it when continuing pagination.
|
|
46
|
+
- XHS `--sort-type <general|time_descending|like_count_descending|comment_count_descending|collect_count_descending>`: optional sort value; omit it for default sorting.
|
|
47
|
+
- XHS `--note-type <all|image|video>`: optional note type filter; default is `all`.
|
|
48
|
+
- XHS `--publish-time-range <all|day|week|half_year>`: optional publish-time filter; default is `all`.
|
|
49
|
+
- Douyin `--page-token <next_page_token>`: opaque pagination token returned by the previous page.
|
|
50
|
+
- Douyin `--sort-type <general|time_descending|like_count_descending>`: optional sort value; omit it for the default sort.
|
|
51
|
+
- Douyin `--publish-time-range <all|day|week|half_year>`: optional publish-time filter; omit it for no publish-time filter.
|
|
52
|
+
- Douyin `--duration-range <all|under_1_minute|one_to_five_minutes|over_5_minutes>`: optional duration filter; omit it for no duration filter.
|
|
53
|
+
- Douyin `--content-type <all|video|image>`: optional content type filter; omit it for all content types.
|
|
54
|
+
- `--pretty`: output formatting only; it does not change the query or the returned notes.
|
|
55
|
+
|
|
56
|
+
XHS sort values:
|
|
57
|
+
|
|
58
|
+
- `general`: default sorting.
|
|
59
|
+
- `time_descending`: newest first.
|
|
60
|
+
- `like_count_descending`: most liked first.
|
|
61
|
+
- `comment_count_descending`: most commented first.
|
|
62
|
+
- `collect_count_descending`: most collected first.
|
|
63
|
+
|
|
64
|
+
XHS note type filter values:
|
|
65
|
+
|
|
66
|
+
- `all`: no note type filter.
|
|
67
|
+
- `image`: image/text notes.
|
|
68
|
+
- `video`: video notes.
|
|
69
|
+
|
|
70
|
+
XHS publish-time filter values:
|
|
71
|
+
|
|
72
|
+
- `all`: no publish-time filter.
|
|
73
|
+
- `day`: published within one day.
|
|
74
|
+
- `week`: published within one week.
|
|
75
|
+
- `half_year`: published within half a year.
|
|
76
|
+
|
|
77
|
+
Douyin sort values:
|
|
78
|
+
|
|
79
|
+
- `general`: default sorting.
|
|
80
|
+
- `time_descending`: newest first.
|
|
81
|
+
- `like_count_descending`: most liked first.
|
|
82
|
+
|
|
83
|
+
Douyin publish-time filter values:
|
|
84
|
+
|
|
85
|
+
- `all`: no publish-time filter.
|
|
86
|
+
- `day`: published within one day.
|
|
87
|
+
- `week`: published within one week.
|
|
88
|
+
- `half_year`: published within half a year.
|
|
89
|
+
|
|
90
|
+
Douyin duration filter values:
|
|
91
|
+
|
|
92
|
+
- `all`: no duration filter.
|
|
93
|
+
- `under_1_minute`: under 1 minute.
|
|
94
|
+
- `one_to_five_minutes`: 1-5 minutes.
|
|
95
|
+
- `over_5_minutes`: over 5 minutes.
|
|
96
|
+
|
|
97
|
+
Douyin content type filter values:
|
|
98
|
+
|
|
99
|
+
- `all`: all content types.
|
|
100
|
+
- `video`: video works.
|
|
101
|
+
- `image`: image/text posts.
|
|
102
|
+
|
|
103
|
+
The command prints JSON with `platform`, `tool`, `arguments`, and `data`.
|
|
104
|
+
|
|
105
|
+
## Safety Boundary
|
|
106
|
+
|
|
107
|
+
This skill is read-only. It does not read local browser data, does not save API keys, and does not perform login, posting, liking, commenting, or account changes. Prefer the direct CLI; hosted MCP tools are optional when the current agent already supports authenticated streamable HTTP MCP.
|
|
108
|
+
|
|
109
|
+
## MCP Tools
|
|
110
|
+
|
|
111
|
+
If MCP tools are already available in the current agent, call `xhs_search_notes` with:
|
|
112
|
+
|
|
113
|
+
- `keyword`: required search phrase or topic; use the user's actual intent and trim whitespace.
|
|
114
|
+
- `page`: optional 1-based page number; use `1` for the first page.
|
|
115
|
+
- `sort_type`: optional, one of `general`, `time_descending`, `like_count_descending`, `comment_count_descending`, `collect_count_descending`; omit it for default sorting.
|
|
116
|
+
- `note_type`: optional search filter, one of `all`, `image`, `video`; default is `all`.
|
|
117
|
+
- `publish_time_range`: optional search filter, one of `all`, `day`, `week`, `half_year`; default is `all`.
|
|
118
|
+
|
|
119
|
+
Use the same meanings as the CLI XHS sort and filter values above.
|
|
120
|
+
|
|
121
|
+
For Douyin, call `douyin_search_videos` with:
|
|
122
|
+
|
|
123
|
+
- `keyword`: required search phrase or topic.
|
|
124
|
+
- `page_token`: optional opaque pagination token from the previous page.
|
|
125
|
+
- `sort_type`: optional, one of `general`, `time_descending`, `like_count_descending`; omit it for the default sort.
|
|
126
|
+
- `publish_time_range`: optional publish-time filter, one of `all`, `day`, `week`, `half_year`; omit it for no publish-time filter.
|
|
127
|
+
- `duration_range`: optional duration filter, one of `all`, `under_1_minute`, `one_to_five_minutes`, `over_5_minutes`; omit it for no duration filter.
|
|
128
|
+
- `content_type`: optional content type filter, one of `all`, `video`, `image`; omit it for all content types.
|
|
129
|
+
|
|
130
|
+
Continue XHS pagination only when `next_page` is not `null`, and keep the same `keyword`, `sort_type`, `note_type`, and `publish_time_range` while changing only `page`. Continue Douyin pagination only when `next_page_token` is not empty. Do not stop only because one page has empty `items`.
|
|
131
|
+
|
|
132
|
+
## Output Guidance
|
|
133
|
+
|
|
134
|
+
Summarize visible evidence separately from interpretation. Include useful content IDs, URLs, titles or descriptions, authors, counts, publish time, and Douyin `content_type` when the user needs traceability. For Douyin image/text search results, use returned `images` and treat `video.media_type="audio"` as an audio player resource rather than a video post.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface:
|
|
2
|
+
display_name: "Media Search"
|
|
3
|
+
short_description: "Search content by keyword"
|
|
4
|
+
default_prompt: "Use $media-search to search supported social media content by keyword and choose an appropriate sort when useful."
|
|
5
|
+
|
|
6
|
+
policy:
|
|
7
|
+
allow_implicit_invocation: true
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: media-user-info
|
|
3
|
+
description: Retrieve social media creator profile information from platform user IDs, profile URLs, short links, or share text. This version is backed by hosted platform MCP services and supports Xiaohongshu, 小红书, XHS, RedNote, and Douyin / 抖音 creators.
|
|
4
|
+
metadata:
|
|
5
|
+
openclaw:
|
|
6
|
+
requires:
|
|
7
|
+
env:
|
|
8
|
+
- SOCIALDATAX_API_KEY
|
|
9
|
+
bins:
|
|
10
|
+
- node
|
|
11
|
+
- npm
|
|
12
|
+
primaryEnv: SOCIALDATAX_API_KEY
|
|
13
|
+
emoji: "👤"
|
|
14
|
+
homepage: https://socialdatax.com
|
|
15
|
+
install:
|
|
16
|
+
- kind: node
|
|
17
|
+
package: "socialdatax-skills"
|
|
18
|
+
bins: []
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
# Media User Info
|
|
22
|
+
|
|
23
|
+
Use this skill when the user wants creator profile data, account basics, creator positioning, audience scale, or profile lookup for supported social media platforms.
|
|
24
|
+
|
|
25
|
+
Current platform support:
|
|
26
|
+
|
|
27
|
+
- Xiaohongshu / XHS / RedNote creators through the `xhs_get_user_info_by_*` tools.
|
|
28
|
+
- Douyin / 抖音 creators through the `douyin_get_user_info_by_*` tools.
|
|
29
|
+
|
|
30
|
+
## Preferred Direct CLI
|
|
31
|
+
|
|
32
|
+
Prefer the direct CLI when the agent can run shell commands. It does not require MCP server configuration:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npx -y socialdatax-skills@latest xhs user-info --user-id "<user_id>" --pretty
|
|
36
|
+
npx -y socialdatax-skills@latest xhs user-info --profile-url "<profile_url_or_share_text>" --pretty
|
|
37
|
+
npx -y socialdatax-skills@latest douyin user-info --sec-user-id "<sec_user_id>" --pretty
|
|
38
|
+
npx -y socialdatax-skills@latest douyin user-info --profile-url "<profile_url_or_share_text>" --pretty
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
- XHS `--user-id <user_id>`: preferred when the creator ID is already known from another result.
|
|
42
|
+
- XHS `--profile-url <profile_url_or_share_text>`: use for a profile URL, short link, or profile share text.
|
|
43
|
+
- Douyin `--sec-user-id <sec_user_id>`: preferred when the creator sec_user_id is already known.
|
|
44
|
+
- Douyin `--profile-url <profile_url_or_share_text>`: use for a profile URL, short link, or profile share text.
|
|
45
|
+
- `--pretty`: output formatting only.
|
|
46
|
+
|
|
47
|
+
Use either the ID option or the profile URL option for a single command, not both.
|
|
48
|
+
|
|
49
|
+
The command prints JSON with `platform`, `tool`, `arguments`, and `data`.
|
|
50
|
+
|
|
51
|
+
## Safety Boundary
|
|
52
|
+
|
|
53
|
+
This skill is read-only. It does not read local browser data, does not save API keys, and does not perform login, posting, liking, commenting, or account changes. Prefer the direct CLI; hosted MCP tools are optional when the current agent already supports authenticated streamable HTTP MCP.
|
|
54
|
+
|
|
55
|
+
## MCP Tools
|
|
56
|
+
|
|
57
|
+
If MCP tools are already available in the current agent, use one of these tools:
|
|
58
|
+
|
|
59
|
+
- `xhs_get_user_info_by_user_id`: preferred when `user_id` is already known from search, detail, comments, or creator note lists.
|
|
60
|
+
- `xhs_get_user_info_by_profile_url`: use for profile URLs, short links, or profile share text.
|
|
61
|
+
- `douyin_get_user_info_by_sec_user_id`: preferred when `sec_user_id` is already known from search, detail, comments, or creator work lists.
|
|
62
|
+
- `douyin_get_user_info_by_profile_url`: use for profile URLs, short links, or profile share text.
|
|
63
|
+
|
|
64
|
+
## Output Guidance
|
|
65
|
+
|
|
66
|
+
Report profile fields such as name, platform IDs, bio, verification, follower count, following count, received like count, IP location, and gender when available. Separate profile facts from strategic interpretation.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface:
|
|
2
|
+
display_name: "Media User Info"
|
|
3
|
+
short_description: "Retrieve creator profiles"
|
|
4
|
+
default_prompt: "Use $media-user-info to retrieve creator profile information from a user ID, profile URL, short link, or share text."
|
|
5
|
+
|
|
6
|
+
policy:
|
|
7
|
+
allow_implicit_invocation: true
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: media-user-posts
|
|
3
|
+
description: Retrieve social media creator content lists from platform user IDs, profile URLs, short links, or share text for account research and content style analysis. This version is backed by hosted platform MCP services and supports Xiaohongshu, 小红书, XHS, RedNote, and Douyin / 抖音 creators.
|
|
4
|
+
metadata:
|
|
5
|
+
openclaw:
|
|
6
|
+
requires:
|
|
7
|
+
env:
|
|
8
|
+
- SOCIALDATAX_API_KEY
|
|
9
|
+
bins:
|
|
10
|
+
- node
|
|
11
|
+
- npm
|
|
12
|
+
primaryEnv: SOCIALDATAX_API_KEY
|
|
13
|
+
emoji: "🗂️"
|
|
14
|
+
homepage: https://socialdatax.com
|
|
15
|
+
install:
|
|
16
|
+
- kind: node
|
|
17
|
+
package: "socialdatax-skills"
|
|
18
|
+
bins: []
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
# Media User Posts
|
|
22
|
+
|
|
23
|
+
Use this skill when the user wants a creator's published content list, content style analysis, recent-topic review, creator benchmarking, or account tracking for supported social media platforms.
|
|
24
|
+
|
|
25
|
+
Current platform support:
|
|
26
|
+
|
|
27
|
+
- Xiaohongshu / XHS / RedNote creator notes through the `xhs_get_user_posted_notes_by_*` tools.
|
|
28
|
+
- Douyin / 抖音 creator works, including video and image/text posts, through the `douyin_get_user_posted_videos_by_*` tools.
|
|
29
|
+
|
|
30
|
+
## Preferred Direct CLI
|
|
31
|
+
|
|
32
|
+
Prefer the direct CLI when the agent can run shell commands. It does not require MCP server configuration:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npx -y socialdatax-skills@latest xhs user-posts --user-id "<user_id>" --pretty
|
|
36
|
+
npx -y socialdatax-skills@latest xhs user-posts --profile-url "<profile_url_or_share_text>" --pretty
|
|
37
|
+
npx -y socialdatax-skills@latest douyin user-posts --sec-user-id "<sec_user_id>" --pretty
|
|
38
|
+
npx -y socialdatax-skills@latest douyin user-posts --profile-url "<profile_url_or_share_text>" --pretty
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
- XHS `--user-id <user_id>`: preferred when the creator ID is already known.
|
|
42
|
+
- XHS `--profile-url <profile_url_or_share_text>`: use for a profile URL, short link, or profile share text.
|
|
43
|
+
- Douyin `--sec-user-id <sec_user_id>`: preferred when the creator sec_user_id is already known.
|
|
44
|
+
- Douyin `--profile-url <profile_url_or_share_text>`: use for a profile URL, short link, or profile share text.
|
|
45
|
+
- `--page-token <next_page_token>`: opaque pagination token; pass back exactly the token returned by the previous page and do not reuse it across users.
|
|
46
|
+
- `--pretty`: output formatting only.
|
|
47
|
+
|
|
48
|
+
Use either the ID option or the profile URL option for a single command, not both.
|
|
49
|
+
|
|
50
|
+
The command prints JSON with `platform`, `tool`, `arguments`, and `data`.
|
|
51
|
+
|
|
52
|
+
## Safety Boundary
|
|
53
|
+
|
|
54
|
+
This skill is read-only. It does not read local browser data, does not save API keys, and does not perform login, posting, liking, commenting, or account changes. Prefer the direct CLI; hosted MCP tools are optional when the current agent already supports authenticated streamable HTTP MCP.
|
|
55
|
+
|
|
56
|
+
## MCP Tools
|
|
57
|
+
|
|
58
|
+
If MCP tools are already available in the current agent, use one of these tools:
|
|
59
|
+
|
|
60
|
+
- `xhs_get_user_posted_notes_by_user_id`: preferred when `user_id` is already known.
|
|
61
|
+
- `xhs_get_user_posted_notes_by_profile_url`: use for profile URLs, short links, or profile share text.
|
|
62
|
+
- `douyin_get_user_posted_videos_by_sec_user_id`: preferred when `sec_user_id` is already known.
|
|
63
|
+
- `douyin_get_user_posted_videos_by_profile_url`: use for profile URLs, short links, or profile share text.
|
|
64
|
+
|
|
65
|
+
Creator content-list pagination uses `page_token`. Pass back exactly the returned `next_page_token`; tokens are bound to the current user and should not be reused across users.
|
|
66
|
+
|
|
67
|
+
## Output Guidance
|
|
68
|
+
|
|
69
|
+
Summarize content-list evidence by title or description, summary, publish time, interaction counts, media links, and content type when present. For Douyin image/text posts, use `image_urls` rather than assuming a video playback URL exists. Use returned content IDs to chain into detail or comment analysis when needed.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface:
|
|
2
|
+
display_name: "Media User Posts"
|
|
3
|
+
short_description: "Retrieve creator content"
|
|
4
|
+
default_prompt: "Use $media-user-posts to retrieve a creator's published content list from a platform user ID, profile URL, short link, or share text."
|
|
5
|
+
|
|
6
|
+
policy:
|
|
7
|
+
allow_implicit_invocation: true
|