cn-platform-intel
Skill1 starsChanged 3 months agoMITView on GitHub
国内平台(B站/抖音)免费情报查询。当用户想查国内平台的热点、高赞评论、视频内容、平台意见时使用。B站:热榜 API、高赞评论 API、搜索页 WebFetch;抖音:trending-hub 或市场 douyin-* 技能;视频内容提取蒸馏衔接 video-distill。全部免费。
- Reads credentials
In this repository5 other files it gives its agents.
- command-centerSkill
- feel-calibratorSkill
- skill-orchestratorSkill
- structured-handleSkill
- video-distillSkill
The file
Files
国内平台情报员
B站(免费直连,已实测畅通)
- 热榜:
curl "https://api.bilibili.com/x/web-interface/ranking/v2?rid=0&type=all"→ JSON,data.list[].title取标题 - 高赞评论:
curl "https://api.bilibili.com/x/v2/reply?type=1&oid=<avid>&sort=2"→ 评论内容在data.replies[].content.message(sort=2 按点赞) - 搜索(API 反爬,用搜索页):WebFetch
https://search.bilibili.com/all?keyword=<词>可拿到视频标题+链接(免费、无验证码) - 用 Python 解析 JSON 时注意用绝对路径写临时文件(Windows Git Bash 的 /tmp 可能找不到)
结果处理约定(每次请求后必做)
- 校验响应:先确认 HTTP 200 + 内容是合法 JSON;失败或非 JSON → 按降级阶梯走(见"坑"),不硬解析。
- 抽取要点:只取需要的字段(标题/评论/链接),不贴原始 JSON 给用户。
- 大白话呈现:结果用中文列表/表格整理(Top10 标题、Top5 评论),每条附一句"为什么值得关注"。
- 空结果处理:返回空列表 → 如实说"今天没搜到相关内容",不编造。
抖音(直连反爬,别硬试)
- 热榜/账号数据:用已装 trending-hub 技能(7 大平台热搜聚合)
- 深度需求(指定账号作品):市场技能 douyin-works-crawler / douyin-daily-hot / douyin-video-downloader(部分市场技能可能暂不可用,装前安全审计)
- 内容搜索:WebSearch 限定 douyin.com 可命中部分视频(如"AI 提示词 技巧")
- 免费下载正路:抖音视频页/分享页正文拿不到(未登录隐藏);yt-dlp --cookies-from-browser chrome/edge 在 Windows 失败(DPAPI 解密 / cookie 数据库被浏览器锁定);手动 cookies.txt:用户装浏览器扩展 "Get cookies.txt LOCALLY"(免费开源)→ 打开抖音网页 → 只导出抖音域 cookie → 保存到本地 →
yt-dlp --cookies <文件> -f ba/b -x --audio-format m4a -o out.%(ext)s <视频链接>。注意提醒用户只导抖音的 cookie,别把全部网站 cookie 交出来(隐私)。 - 市场技能 douyin-video-downloader(已装 v1.0.1)走 redfox.hk 接口,需 REDFOX_API_KEY(免费额度未知),用户未配置。
视频内容提取 → 蒸馏
- 走 video-distill 技能:yt-dlp 下载音频 → faster-whisper 本地转写 → 蒸馏成要点
- 环境:
<你的 python venv 路径(已装 yt-dlp、faster-whisper)>;模型<你的本地模型路径(faster-whisper base)> - 传参方式:用户给视频链接 → video-distill 自动下载音频再转写;用户给本地文件(mp3/录屏)→ 跳过下载直接转写。两种输入都支持,按实际情况选。
- 质量标准:蒸馏质量由 video-distill 的"蒸馏质量标准"负责(保留结论/数字/方法/金句,输出≤原文10%),本技能只负责把视频交过去,不重复做蒸馏。
使用场景(用户需求触发)
- 用户提需求涉及大众话题/创作/工具/方法论 → 主动去国内平台查相关意见和评论区高赞建议
- "帮我看看 B站/抖音 上关于 X 怎么说" → 热榜/搜索/评论
- "把视频内容提炼成干货" → video-distill
使用示例
示例 1 · 查今日热榜:
用户:"今天 B站 在聊什么?"
→ curl 热榜 API → 取 data.list[].title → 列 Top10 标题 + 一句点评示例 2 · 查某视频高赞评论:
用户:"这个视频(链接)下面大家怎么评论?"
→ 取视频 avid → curl 评论 API(sort=2)→ 列 Top5 高赞评论原文示例 3 · 搜索某话题:
用户:"B站 上关于 'AI 绘画' 有什么好视频?"
→ WebFetch 搜索页 → 列视频标题+链接(免费、无验证码)禁止(Do NOT)
- 禁止绕过平台风控硬爬(如抖音直连已被反爬,别硬试,走替代路径)。
- 禁止采集用户隐私数据(只查公开内容)。
- 禁止把平台的付费/会员内容违规提取。
- 禁止在 API 风控时无限重试刷接口(会加重封禁风险,按降级阶梯走)。
坑(Gotchas)
- B站热榜 API 偶发风控(-352 错误)→ 降级阶梯:①先试 API → ②失败换手机 UA 重试(
curl -A "Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) ...",实测有效)→ ③仍失败再降级 WebFetchhttps://www.bilibili.com/v/popular/all。风控多为临时,别一次失败就当永久失效 - B站搜索 API 反爬(返回 HTML 验证页)→ 用 WebFetch 搜索页,别用 curl
- B站字幕需登录(yt-dlp cookies-from-browser 在 Windows 报 DPAPI 解密失败)→ 走音频+whisper
- 抖音一切直连基本被挡 → 一律走 trending-hub / 市场技能
- 市场技能安装偶发失败(DOWNLOAD_ERROR fetch failed)→ 换时间重试
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

