Introduction¶
When engaging in short video operations or competitive analysis, the common practice is to manually scroll through pages and copy data within the app, or maintain a crawler yourself. The former is difficult to scale, while the latter requires handling login states and interface changes. If you wish to have an Agent complete tasks such as “searching keywords, viewing the hot list, pulling comments, and monitoring account posts” within a conversation, and collect the results as structured JSON, the SkillHub community Skill “Douyin Sentiment Analysis” (coord @user_fb71c45d/douyin-yuqingzhixi) is designed along this path.
Below is an introduction to what it is, what it can do, and how to install, configure, and invoke it locally.
What is this¶
Douyin Sentiment Analysis is an Agent-facing SKILL.md format skill. The current version is 1.5.0, sourced from community, categorized under data-analysis in SkillHub, and published by user_fb71c45d. Official pages:
- SkillHub: https://www.skillhub.cn/skills/user_fb71c45d/douyin-yuqingzhixi
- API entry: https://api.skillhub.cn/user_fb71c45d/douyin-yuqingzhixi
Introduction (consistent with the store): An intelligent tool for acquiring Douyin public data. It covers keyword search, acquiring creator works, extracting work comments, and tracking real-time hot lists. It can be used for short video marketing, competitive analysis, sentiment analysis, and hot spot monitoring.
Runtime depends on Node.js 16.14.0+. The skill invokes third-party data APIs via CLI internally. You need to configure the environment variable GUAIKEI_API_TOKEN (tag requires_api_key=true). The token can be activated at GuaiKei Douyin Sentiment Analysis. Invocations send keywords or links to www.guaikei.com and only read public data; they do not involve logging into a Douyin account.
Core Features¶
Verified against SKILL.md and readme, the skill provides six types of read-only capabilities. Stdout outputs a unified JSON envelope, while stderr writes logs. Except for the hot list, results can be written to disk under the logs/ directory of the skill.
| Ability | Entry Script | Typical Use |
|---|---|---|
| Keyword search video/text/image | src/douyin/search-cli.js |
Topic selection, viral sorting, time/duration/type filtering |
| User/Creator search | src/douyin/user-search-cli.js |
Finding benchmark accounts by keyword |
| Creator works and account metrics | src/douyin/post-cli.js |
Monitoring posts; --limit 0 only gets fans/likes etc. |
| Work details | src/douyin/detail-cli.js |
Single copy, play and interaction |
| Comments | src/douyin/comment-cli.js |
Sentiment judgment; can be used with references/demand-mining.md |
| Real-time hot list | src/douyin/hot-cli.js |
Daily hot spots (about 50 items, no params) |
Search supports --sort (comprehensive/most likes/newest), --time (1 day/7 days/half year, etc.), --duration, --content (video/image/text), and --limit (default 10, with a hard single-run limit of 10000). Monthly tokens allow a maximum of 30 items per search/user/work and 50 items for comments; exceeding the limit returns PLAN_LIMIT. Details and the hot list are not restricted by these quantity packages.
The skill also includes documentation on routing, error codes, customer acquisition, and demand mining in references/, allowing the Agent to select commands based on intent rather than manually memorizing parameter tables.
Installation and Activation¶
Install SkillHub CLI (if not yet installed)¶
command -v skillhub && skillhub --version
If not installed, follow the SkillHub installation documentation:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
Install this Skill¶
When installing, you must use --dir to point to the current Agent’s skills directory; otherwise, the default ./skills/ may not be recognized. The official page prompts:
skillhub install @user_fb71c45d/douyin-yuqingzhixi --dir <skills 目录>
Common Agent directories (from SkillHub installation instructions, choose one based on your actual environment):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/within a project
After installation, the skill package contains SKILL.md, src/douyin/*.js and assets/*.schema.json.
Configure API Token¶
Set it in the shell or Agent runtime environment:
export GUAIKEI_API_TOKEN=你的令牌
If not configured, the CLI will exit with errors such as AUTH_REQUIRED (exit code 3), and you should not repeatedly run it without a configured token.
Typical Usage¶
Before each execution, you need to first cd to the skill root directory (the directory containing SKILL.md), and then run node src/douyin/*.js. Run one command at a time and wait for the process to finish. With a large --limit, a single run can take approximately 15–22 minutes.
Hot list and search examples (from official SKILL.md / readme):
cd <skill root directory>
# Today's Douyin hot list
node src/douyin/hot-cli.js
# Search "AI Tutorial" sorted by likes
node src/douyin/search-cli.js --keyword "AI 教程" --sort 1 --limit 10
# Latest 20 "AI Model" items from the past 7 days
node src/douyin/search-cli.js --keyword "AI 模型" --sort 2 --time 7 --limit 20
# Find creators by keyword
node src/douyin/user-search-cli.js --keyword "AI" --limit 20
# Creator's recent posts (or --limit 0 to only see account interaction data)
node src/douyin/post-cli.js --url "https://www.douyin.com/user/MS4wLjABxxx" --limit 30
# Single video comments and details
node src/douyin/comment-cli.js --url "https://www.douyin.com/video/xxx" --limit 40
node src/douyin/detail-cli.js --url "https://www.douyin.com/video/xxx"
On success, stdout is JSON, for example, a search task contains status and a results array (title, author, interaction, link, time, etc.). When status is empty and NO_MATCH, the exit code is still 0, indicating no match rather than a failed execution.
On the Agent side, follow the intent routing table in SKILL.md: hot lists use hot-cli, searching for benchmark accounts uses user-search-cli, existing homepage links use post-cli, and comment sentiment uses comment-cli. For customer acquisition flows, the sequence is first search-cli then comment-cli, and read references/customer-acquisition.md.
Suitable Scenarios and Notes¶
Suitable for: Content operations topic selection, competitor and benchmark account research, single work data verification, sentiment observation from comments, daily hot spot tracking, and teams that need to import Douyin fields into Excel/BI or hand them to LLMs for secondary analysis.
Limitations and Notes:
- Only public data; private or hidden content is unavailable.
- You must possess a valid
GUAIKEI_API_TOKEN. Billing and package limits are based on the descriptions at guaikei.com. - Do not immediately retry with the same parameters after errors like
AUTH_*,PLAN_LIMIT, orRATE_LIMITED; permission-related errors forbid automatic retry. - The current version of this skill grabs one account’s works at a time; multiple accounts require execution one by one.
- The SkillHub page displays a rating of 100000 and 906 downloads (subject to the store page). After installation, you still need to configure Node and the Token yourself to actually call the API.
Conclusion¶
Douyin Sentiment Analysis collects “search, hot list, account, details, and comments” into Node CLIs executable directly within the Agent directory, outputting structured JSON to facilitate hot spot response and sentiment-based task automation. Installation, version, and community information are based on SkillHub:
https://www.skillhub.cn/skills/user_fb71c45d/douyin-yuqingzhixi