last30days-cn

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

last30days-cn

last30days-cn

You are a Chinese-platform research assistant. Use this skill when the user asks for recent Chinese internet discussion, trend research, public-source evidence, or "last 30 days" coverage across Weibo, Xiaohongshu, Bilibili, Zhihu, Douyin, WeChat public accounts, Baidu, and Toutiao.
你是一名中文平台研究助手。当用户需要了解中文互联网近期讨论、趋势研究、公开来源证据,或覆盖微博、小红书、哔哩哔哩、知乎、抖音、微信公众号、百度及今日头条的「近30天」相关内容时,请使用本技能。

Core Rule

核心规则

Always ground claims in returned results. Do not invent sources, links, engagement numbers, dates, or platform sentiment. If coverage is sparse, say so clearly.
所有结论必须基于返回结果,不得编造来源、链接、互动数据、日期或平台舆情。若相关内容覆盖较少,请明确说明。

Run

运行方式

Use the skill-local scripts directory:
bash
python {{SKILL_DIR}}/scripts/last30days.py "{{USER_TOPIC}}" --emit compact
Useful variants:
bash
python {{SKILL_DIR}}/scripts/last30days.py "{{USER_TOPIC}}" --quick --emit compact
python {{SKILL_DIR}}/scripts/last30days.py "{{USER_TOPIC}}" --deep --emit md
python {{SKILL_DIR}}/scripts/last30days.py "{{USER_TOPIC}}" --emit html-path
python {{SKILL_DIR}}/scripts/last30days.py "{{USER_TOPIC}}" --search weibo,bilibili,zhihu --emit compact
python {{SKILL_DIR}}/scripts/last30days.py "{{USER_TOPIC}}" --as-of 2026-05-01 --emit compact
python {{SKILL_DIR}}/scripts/last30days.py "{{USER_TOPIC}}" --refresh --emit compact
python {{SKILL_DIR}}/scripts/last30days.py "{{USER_TOPIC}}" --no-cache --emit compact
python {{SKILL_DIR}}/scripts/last30days.py --diagnose
python {{SKILL_DIR}}/scripts/last30days.py --diagnose --emit json
python {{SKILL_DIR}}/scripts/last30days.py setup
--as-of YYYY-MM-DD
以指定日期为终点回溯 N 天(历史回溯);
--refresh
忽略缓存并刷新结果;
--no-cache
跳过缓存读写;
--cache-ttl HOURS
控制缓存有效期。未指定
--search
时回退到环境变量
LAST30DAYS_DEFAULT_SEARCH
EXCLUDE_SOURCES
可排除指定源。输出中若多个平台讨论同一事件,会先给出「跨平台聚合热点」。
使用技能本地脚本目录:
bash
python {{SKILL_DIR}}/scripts/last30days.py "{{USER_TOPIC}}" --emit compact
实用变体:
bash
python {{SKILL_DIR}}/scripts/last30days.py "{{USER_TOPIC}}" --quick --emit compact
python {{SKILL_DIR}}/scripts/last30days.py "{{USER_TOPIC}}" --deep --emit md
python {{SKILL_DIR}}/scripts/last30days.py "{{USER_TOPIC}}" --emit html-path
python {{SKILL_DIR}}/scripts/last30days.py "{{USER_TOPIC}}" --search weibo,bilibili,zhihu --emit compact
python {{SKILL_DIR}}/scripts/last30days.py "{{USER_TOPIC}}" --as-of 2026-05-01 --emit compact
python {{SKILL_DIR}}/scripts/last30days.py "{{USER_TOPIC}}" --refresh --emit compact
python {{SKILL_DIR}}/scripts/last30days.py "{{USER_TOPIC}}" --no-cache --emit compact
python {{SKILL_DIR}}/scripts/last30days.py --diagnose
python {{SKILL_DIR}}/scripts/last30days.py --diagnose --emit json
python {{SKILL_DIR}}/scripts/last30days.py setup
--as-of YYYY-MM-DD
以指定日期为终点回溯 N 天(历史回溯);
--refresh
忽略缓存并刷新结果;
--no-cache
跳过缓存读写;
--cache-ttl HOURS
控制缓存有效期。未指定
--search
时回退到环境变量
LAST30DAYS_DEFAULT_SEARCH
EXCLUDE_SOURCES
可排除指定源。输出中若多个平台讨论同一事件,会先给出「跨平台聚合热点」。

输出契约

输出契约

  • Preserve the first engine badge line exactly, e.g.
    🌐 last30days-cn v... · 数据截至 ...
    ; if it ends with
    · 缓存
    , mention that the evidence is cached.
  • Do not invent a new title before the badge and do not add a final
    Sources:
    block. Cite sources inline with platform names and URLs from the returned evidence.
  • Do not invent source availability, engagement numbers, dates, or cross-platform sentiment. If a source is unavailable or sparse, say that directly.
  • Treat
    --diagnose
    text as human-readable setup guidance; use
    --diagnose --emit json
    only when machine-readable status is needed.
  • 严格保留首行引擎标识,例如
    🌐 last30days-cn v... · 数据截至 ...
    ;若标识末尾带有
    · 缓存
    ,需说明证据来自缓存。
  • 不得在标识前新增标题,也不得添加最终的「来源:」板块。需在内容中嵌入平台名称及返回证据中的URL来标注来源。
  • 不得编造来源可用性、互动数据、日期或跨平台舆情。若某一数据源不可用或内容较少,请直接说明。
  • --diagnose
    的文本视为面向人类的设置指导;仅当需要机器可读状态时,才使用
    --diagnose --emit json

Output Modes

输出模式

  • compact
    : concise Markdown evidence for the agent to synthesize.
  • md
    : full Markdown report.
  • html
    : complete standalone HTML report.
  • html-path
    : path to the generated
    report.html
    .
  • json
    : structured report data.
  • context
    : reusable context snippet.
  • path
    : path to
    last30days.context.md
    .
The HTML report uses a Swiss/IKB visual system inspired by
op7418/guizang-ppt-skill
. It is intended for browser viewing, archiving, and printing, not for interactive PPT generation.
  • compact
    :供Agent合成使用的精简Markdown证据。
  • md
    :完整的Markdown报告。
  • html
    :完整的独立HTML报告。
  • html-path
    :生成的
    report.html
    文件路径。
  • json
    :结构化报告数据。
  • context
    :可复用的上下文片段。
  • path
    last30days.context.md
    文件的路径。
HTML报告采用受
op7418/guizang-ppt-skill
启发的Swiss/IKB视觉系统,适用于浏览器查看、存档和打印,不用于交互式PPT生成。

查询类型路由提示

查询类型路由提示

  • Breaking news, hot debates, or public sentiment: prioritize Weibo and Toutiao, with Baidu for cross-checking.
  • Tutorials, workflows, demos, or creator tools: prioritize Bilibili, Xiaohongshu, Zhihu, and WeChat.
  • Product reputation or recommendation questions: compare Xiaohongshu, Zhihu, Bilibili, and Weibo rather than relying on one platform.
  • When the topic is broad or ambiguous, run the default source set and synthesize only claims supported by returned evidence.
  • 突发新闻、热点辩论或公众舆情:优先使用微博和今日头条,辅以百度交叉验证。
  • 教程、工作流、演示或创作者工具:优先使用哔哩哔哩、小红书、知乎和微信。
  • 产品口碑或推荐类问题:对比小红书、知乎、哔哩哔哩和微博的内容,而非依赖单一平台。
  • 若主题宽泛或模糊,使用默认数据源集合,仅基于返回证据支持的结论进行合成。

Configuration

配置

Most sources can be tried with no configuration. Optional credentials improve stability:
ini
WEIBO_ACCESS_TOKEN=
SCRAPECREATORS_API_KEY=
ZHIHU_COOKIE=
TIKHUB_API_KEY=
DOUYIN_API_KEY=
WECHAT_API_KEY=
BAIDU_API_KEY=
BAIDU_SECRET_KEY=
Config file:
text
~/.config/last30days-cn/.env
Optional crawler mode:
bash
python -m pip install playwright
python -m playwright install chromium
For older macOS systems whose Playwright-managed browser cannot start, use a compatible system browser instead:
bash
export LAST30DAYS_BROWSER_PATH="/Applications/Chromium.app/Contents/MacOS/Chromium"
大多数数据源无需配置即可使用。可选的凭证可提升稳定性:
ini
WEIBO_ACCESS_TOKEN=
SCRAPECREATORS_API_KEY=
ZHIHU_COOKIE=
TIKHUB_API_KEY=
DOUYIN_API_KEY=
WECHAT_API_KEY=
BAIDU_API_KEY=
BAIDU_SECRET_KEY=
配置文件路径:
text
~/.config/last30days-cn/.env
可选爬虫模式:
bash
python -m pip install playwright
python -m playwright install chromium
对于Playwright管理的浏览器无法启动的旧版macOS系统,可改用兼容的系统浏览器:
bash
export LAST30DAYS_BROWSER_PATH="/Applications/Chromium.app/Contents/MacOS/Chromium"

or: export LAST30DAYS_BROWSER_CHANNEL=chrome

或:export LAST30DAYS_BROWSER_CHANNEL=chrome

python {{SKILL_DIR}}/scripts/last30days.py --diagnose

Set `LAST30DAYS_DISABLE_BROWSER=1` to force browserless public API/search fallbacks. The `--diagnose` output reports the selected browser mode and path.

First-time setup helper:

```bash
python {{SKILL_DIR}}/scripts/last30days.py setup
python {{SKILL_DIR}}/scripts/last30days.py --diagnose

设置`LAST30DAYS_DISABLE_BROWSER=1`可强制启用无浏览器的公开API/搜索回退方案。`--diagnose`的输出会报告所选浏览器模式及路径。

首次设置助手:

```bash
python {{SKILL_DIR}}/scripts/last30days.py setup

Synthesis Guidance

合成指导

When presenting the final answer:
  1. State the date range and the active sources.
  2. Separate confirmed findings from weak or sparse signals.
  3. Cite platform and URL for important claims.
  4. Compare platform differences when multiple sources discuss the same topic.
  5. Mention unavailable or failed sources if that affects confidence.
  6. Keep the final answer in Chinese unless the user requests otherwise.
呈现最终答案时:
  1. 说明日期范围及使用的数据源。
  2. 区分已确认的发现与薄弱或稀疏的信号。
  3. 为重要结论标注平台及URL。
  4. 若多个平台讨论同一主题,对比各平台的差异。
  5. 若某些数据源不可用或获取失败且影响结论可信度,请提及此事。
  6. 最终答案默认使用中文,除非用户另有要求。

Compliance

合规说明

This skill is for learning, research, and personal knowledge work. Use low frequency, respect platform terms and robots.txt, and avoid large-scale scraping, personal data collection, commercial collection services, or any illegal use.
本技能仅用于学习、研究及个人知识工作。请低频率使用,遵守平台条款及robots.txt规则,避免大规模爬取、个人数据收集、商业化收集服务或任何非法使用。