Preface¶
When organizing educational content or conducting competitive research, common practices include manually opening Douyin (TikTok), taking notes, or attempting to download videos for transcription. The former is time-consuming and difficult to structure, while the latter often violates platform rules and may fail to capture blackboard writing and illustrations visible in the video. If the goal is simply to “understand what this video is teaching and who it is suitable for,” what is needed is the extraction and summarization of visible page information, rather than a complete audio and video processing pipeline.
The Douyin Smart Analysis Tool (Skill coordinate @user_09d1a78f/douyin-analyzer) introduced below takes a different path: it uses the Chrome DevTools Protocol (CDP) to control the local, logged-in browser to open the video page, takes screenshots, and then leverages the Agent’s multimodal capabilities to generate a Markdown report. SkillHub classifies it as data-analysis, with a tag indicating requires_api_key=false (the Skill itself does not strictly require a separate API Key configuration; the actual analysis relies on the current Agent’s multimodal capabilities).
What is this¶
The Douyin Smart Analysis Tool is a community-sourced (community) Agent Skill, currently at version 1.0.0, published by SkillHub user user_09d1a78f; the author attribution in the Skill metadata is QClaw. Official entry points:
- SkillHub Page: https://www.skillhub.cn/skills/user_09d1a78f/douyin-analyzer
- API Coordinate Page: https://api.skillhub.cn/user_09d1a78f/douyin-analyzer
One-sentence positioning: Input a Douyin video link → CDP opens the page and takes a screenshot → AI multimodal analysis → Output a structured teaching content report.
Core Features¶
The following capabilities are derived from the Skill’s included SKILL.md / README.md descriptions and are consistent with the design of the scripts/analyze.js within the package.
| Feature | Description |
|---|---|
| Link Parsing | Supports Douyin short links and full douyin.com/video links |
| CDP Browser Control | Connects to the local Edge/Chrome remote debugging port (default 28800) |
| Page Screenshot | Saves a screenshot of the video page for subsequent analysis |
| Multimodal Analysis | Understands on-screen content directly based on screenshots; documentation states no separate OCR process is needed |
| Knowledge Points & Report | Extracts teaching knowledge points, target audience, quality scores, etc., and generates summary-{timestamp}.md |
Explicitly Not Supported (Based on exclude_when and limitation notes in Skill docs): Video file download, audio extraction, editing; the current version also does not support batch analysis.
Dependencies: The documentation requires the separate installation of xbrowser (openclaw skills install xbrowser); agent-browser is optional. The workflow relies on the Node.js script scripts/analyze.js.
Trigger keywords (to facilitate invoking the Skill in conversation): 分析抖音视频 (Analyze Douyin video), 抖音视频内容 (Douyin video content), 视频知识点提取 (Video knowledge point extraction), 教学内容分析 (Teaching content analysis), 抖音链接分析 (Douyin link analysis).
Installation and Activation¶
1. Install SkillHub CLI (if not already installed)¶
Refer to https://skillhub.cn/install/skillhub.md for official installation instructions. First, check if the CLI is present:
command -v skillhub && skillhub --version
If not installed, you can execute the complete installation script (recommended by docs):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
2. Install the Skill to the current Agent’s skills directory¶
SkillHub requires the use of --dir during installation pointing to the current Agent’s recognized skills directory; otherwise, it defaults to ./skills/ and may fail to load. Community Skills must be installed with a namespace:
skillhub install douyin-analyzer --namespace user_09d1a78f --dir <your skills directory>
Common paths (from SkillHub installation docs):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
Alternatively, you can ask the Agent in conversation to install it according to official prompts:
Please install `@user_09d1a78f/douyin-analyzer` based on https://skillhub.cn/install/skillhub.md.
3. OpenClaw Side Dependencies (per Skill docs)¶
If the runtime environment is based on OpenClaw, xbrowser must be installed first:
openclaw skills install xbrowser
4. Environment Variables (Optional)¶
| Parameter | Default Value | Description |
|---|---|---|
CDP_HOST |
127.0.0.1 |
CDP Address |
CDP_PORT |
28800 |
Remote debugging port |
SCREENSHOT_DIR |
douyin-screenshots |
Screenshot directory name |
REPORT_DIR |
douyin-screenshots |
Report directory name |
WORKSPACE |
OpenClaw workspace in doc example | Workspace root path |
Example:
export CDP_PORT=9222
export WORKSPACE="$HOME/.openclaw/workspace"
Typical Usage¶
First perform browser remote debugging, then execute the analysis. The official SKILL.md uses Windows Edge as an example; on Linux/macOS, Chrome/Chromium can be used with the equivalent --remote-debugging-port=28800 argument (or consistent with the CDP_PORT environment variable).
Step 1: Start a browser with CDP
taskkill /IM msedge.exe /F
"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --remote-debugging-port=28800
It is recommended to already be logged into Douyin in the debugging browser to reduce cases of redirecting to the login page.
Step 2: Analyze the video
douyin-analyzer "https://v.douyin.com/Mo6r--OixXQ/"
Or call the script directly within the Skill directory:
node scripts/analyze.js "https://www.douyin.com/video/7497104894491905307"
Step 3: View output
The documentation defaults to writing screenshots and reports to douyin-screenshots under the workspace (example path: C:\Users\zhuyi\.openclaw\workspace\douyin-screenshots\). The included examples/sample-analysis.md in the package demonstrates the report structure: video information, knowledge point identification, target audience, teaching quality scoring, and text summary.
In environments like Cursor, you can also directly send a Douyin link and use trigger phrases like “Analyze this Douyin video” or “Teaching content analysis” to let the Agent invoke CDP and multimodal analysis following the Skill workflow.
Applicable Scenarios and Notes¶
Who is it for
- Those who need to quickly summarize knowledge points and audiences for educational Douyin videos, rather than retaining video files
- Those who already have a local browser login state and can accept the CDP debugging method
- Agents equipped with multimodal image recognition capabilities (The example analysis notes the model as
qclaw/pool-hy3-preview, but actual usage depends on your client)
Limitations and Common Pitfalls
- Visual analysis only, does not process audio; explanations outside the screen cannot be restored from the audio track.
- Analysis of single links only, no official batch interface.
- If CDP is not started or the port is inconsistent,
Unable to connect to CDP port 28800will appear; if the page is not fully rendered, it may result in a black screen screenshot. - Douyin’s anti-crawling measures may lead to a login page: ensure the browser session connected via CDP is logged in.
Cannot find module 'xbrowser'may appear if xbrowser is not installed.- SkillHub page statistics (based on scraped data): Rating 100000, ~771 downloads, ~12 installs; may be inconsistent with third-party reposted data, refer to SkillHub for details.
Conclusion¶
The Douyin Smart Analysis Tool consolidates “open link → screenshot → structured teaching report” into a single Agent Skill pipeline, suitable for teaching research notes, self-study reviews, and content research. Installation and coordinates are subject to SkillHub: https://www.skillhub.cn/skills/user_09d1a78f/douyin-analyzer .