/install generate-daily-sports-update
Generate Daily Sports Update
This skill runs the daily_sports_update.py script to fetch the latest sports science research and wearable tech news. It automatically handles deduplication, so you can run it frequently without worrying about seeing the same content twice.
Prerequisites
- Python 3: Requires
python3to be installed. - Dependencies: The required Python packages defined in
requirements.txtmust be installed (pip3 install -r requirements.txt). - Environment Variables:
NOTION_TOKEN: The integration token for Notion API.NOTION_PAGE_ID: The ID of the Notion page to sync the daily update to.
- Tools Needed: You must have access to the
run_commandtool to execute the script in a bash terminal.
Instructions
-
Locate the Script: The script
daily_sports_update.pyis located in the user's sports-science-daily directory. You should first ensure you are in the correct working directory. -
Run the update: Use the
run_commandtool to execute the python script.python3 daily_sports_update.py --days 2--days N: (Optional) Number of days to look back (default is 7). If you haven't run it in a while, increase this (e.g.,--days 7or--days 30).--no-history: (Optional) Use this ONLY if you want to force re-fetching of already seen items (e.g., for debugging).
-
Output & Sync:
- The script will generate a local Markdown file named:
YYYY-MM-DD_运动科学日报.md - It will automatically sync the compiled blocks directly to the specified Notion page using the Notion APIs.
- It updates
processed_history.jsonlocally to mark fetched URLs/PMIDs as seen.
- The script will generate a local Markdown file named:
-
Handling "No New Content":
- If the script's terminal output contains "🎉 没有发现新内容" (No new content found), it means all found items in the lookback period have already been processed and synced previously. You can try running with a larger
--daysargument.
- If the script's terminal output contains "🎉 没有发现新内容" (No new content found), it means all found items in the lookback period have already been processed and synced previously. You can try running with a larger
Security & Privacy Note
- External Endpoints Called:
https://eutils.ncbi.nlm.nih.gov: Accessed to fetch PubMed paper statistics and abstracts.https://api.notion.com: Accessed to create and populate the daily reports.- Various RSS feed URLs (e.g., Garmin, MySportScience, YouTube RSS).
- Files Checked: Opens and updates
processed_history.jsonand creates.mdreporting files locally in the working directory. - This skill invokes web requests to fetch relevant sports science data but does not expose any user PII.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install generate-daily-sports-update - 安装完成后,直接呼叫该 Skill 的名称或使用
/generate-daily-sports-update触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Generate Daily Sports Update 是什么?
Runs the sports science crawler to generate a daily report, sync to Notion, and prevent duplicate content. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 352 次。
如何安装 Generate Daily Sports Update?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install generate-daily-sports-update」即可一键安装,无需额外配置。
Generate Daily Sports Update 是免费的吗?
是的,Generate Daily Sports Update 完全免费(开源免费),可自由下载、安装和使用。
Generate Daily Sports Update 支持哪些平台?
Generate Daily Sports Update 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Generate Daily Sports Update?
由 王琛(@w2478328197-arch)开发并维护,当前版本 v1.0.0。