|
|
@@ -1,11 +1,11 @@
|
|
|
---
|
|
|
name: arxiv-digest
|
|
|
-description: "Daily arXiv digest generation for embodied intelligence, representation learning, and reinforcement learning. Use when Codex needs to: (1) fetch recent papers from arXiv, (2) rank them with an applied-research bias, (3) pick 2-3 papers per domain, (4) translate abstracts into Chinese, add short explanations and tag keywords, (5) render mobile-friendly digest cards, or (6) publish the digest to Discord on a schedule."
|
|
|
+description: "Daily arXiv digest generation for embodied intelligence, representation learning, and reinforcement learning. Use when Codex needs to: (1) fetch recent papers from arXiv, (2) rank them with an applied-research bias, (3) pick 2-3 papers per domain, (4) translate abstracts into Chinese, add short explanations and tag keywords, (5) render mobile-friendly digest cards, (6) publish to Hugo blog, and (7) send a brief link message to Discord RobotDaily channel."
|
|
|
---
|
|
|
|
|
|
# arXiv Digest
|
|
|
|
|
|
-每日从 arXiv 抓取具身智能、表征学习、强化学习方向的最新论文,经过 LLM 筛选和解读后,推送到 Discord 并归档到 Hugo 博客。
|
|
|
+每日从 arXiv 抓取具身智能、表征学习、强化学习方向的最新论文,经过 LLM 筛选和解读后,归档到 Hugo 博客,并在 Discord RobotDaily 频道推送链接和问候消息。
|
|
|
|
|
|
## 核心入口
|
|
|
|
|
|
@@ -15,14 +15,14 @@ description: "Daily arXiv digest generation for embodied intelligence, represent
|
|
|
# 仅生成简报(dry run)
|
|
|
python3 scripts/run_daily.py
|
|
|
|
|
|
-# 生成并推送到 Discord
|
|
|
-python3 scripts/run_daily.py --publish-discord
|
|
|
-
|
|
|
-# 生成并同步到 Hugo
|
|
|
+# 生成并推送到 Hugo
|
|
|
python3 scripts/run_daily.py --publish-hugo
|
|
|
|
|
|
+# 生成并发送 Discord 链接消息
|
|
|
+python3 scripts/run_daily.py --send-discord-link
|
|
|
+
|
|
|
# 生成并推送两者
|
|
|
-python3 scripts/run_daily.py --publish-discord --publish-hugo
|
|
|
+python3 scripts/run_daily.py --publish-hugo --send-discord-link
|
|
|
|
|
|
# 跳过 LLM 增强(快速测试)
|
|
|
python3 scripts/run_daily.py --skip-enrich
|
|
|
@@ -38,11 +38,12 @@ python3 scripts/run_daily.py --skip-enrich
|
|
|
- 简短价值解读
|
|
|
- 卡片标签
|
|
|
5. **渲染输出**:
|
|
|
- - `robotdaily.html` - 移动端友好的 HTML 卡片
|
|
|
- - `robotdaily.md` - Markdown 归档版本
|
|
|
-6. **多渠道推送**(可选):
|
|
|
- - Discord:推送到 RobotDaily 频道
|
|
|
- - Hugo:同步到 `site/content/ai-daily/YYYY-MM-DD.md`
|
|
|
+ - `robotdaily.md` - Markdown 归档版本(同步到 Hugo)
|
|
|
+6. **Hugo 归档**:
|
|
|
+ - 保存到 `site/content/ai-daily/YYYY-MM-DD.md`
|
|
|
+ - Hugo 自动重新编译并部署到网站
|
|
|
+7. **Discord 推送**:
|
|
|
+ - 在 RobotDaily 频道发送简短问候 + Hugo 链接
|
|
|
|
|
|
## 输出文件
|
|
|
|
|
|
@@ -51,9 +52,7 @@ python3 scripts/run_daily.py --skip-enrich
|
|
|
- `candidates.json` - 候选论文列表
|
|
|
- `selected.json` - 精选论文列表
|
|
|
- `enriched.json` - LLM 增强后数据
|
|
|
-- `robotdaily.html` - HTML 移动端摘要卡片
|
|
|
- `robotdaily.md` - Markdown 归档版本
|
|
|
-- `manifest.json` - 元数据清单
|
|
|
|
|
|
## 配置
|
|
|
|
|
|
@@ -69,11 +68,14 @@ ROBOTDAILY_OUTPUT_DIR=/home/zhn/.openclaw/workspace/skills/robdaily/arxiv-digest
|
|
|
# Hugo 内容目录
|
|
|
HUGO_CONTENT_DIR=/home/zhn/.openclaw/workspace/skills/robdaily/site/content/ai-daily
|
|
|
|
|
|
-# Discord 推送模式:thread | channel | fixed-channel | existing-channel
|
|
|
-DISCORD_DELIVERY_MODE=existing-channel
|
|
|
+# Discord 机器人令牌(用于发送链接消息)
|
|
|
+DISCORD_BOT_TOKEN=your_bot_token_here
|
|
|
|
|
|
-# 线程自动归档时间(分钟)
|
|
|
-DISCORD_THREAD_AUTO_ARCHIVE_MIN=10080
|
|
|
+# Discord RobotDaily 频道 ID
|
|
|
+DISCORD_ROBOTDAILY_CHANNEL_ID=1481632217930141697
|
|
|
+
|
|
|
+# Hugo 网站 URL
|
|
|
+HUGO_SITE_URL=https://indigofloyd.space
|
|
|
```
|
|
|
|
|
|
## 定时任务
|
|
|
@@ -81,7 +83,25 @@ DISCORD_THREAD_AUTO_ARCHIVE_MIN=10080
|
|
|
每天上午 10:30(Asia/Shanghai)自动运行:
|
|
|
|
|
|
```cron
|
|
|
-30 10 * * * cd /home/zhn/.openclaw/workspace/skills/robdaily/arxiv-digest && python3 scripts/run_daily.py --publish-discord --publish-hugo >> logs/robotdaily.log 2>&1
|
|
|
+30 10 * * * cd /home/zhn/.openclaw/workspace/skills/robdaily/arxiv-digest && python3 scripts/run_daily.py --publish-hugo --send-discord-link >> logs/robotdaily.log 2>&1
|
|
|
+```
|
|
|
+
|
|
|
+## Discord 消息示例
|
|
|
+
|
|
|
+推送消息格式:
|
|
|
+
|
|
|
+```
|
|
|
+📰 RobotDaily 2026-03-16
|
|
|
+
|
|
|
+今日精选 8 篇论文:
|
|
|
+• 具身智能:3 篇
|
|
|
+• 表征学习:3 篇
|
|
|
+• 强化学习:2 篇
|
|
|
+
|
|
|
+🔗 查看完整简报:
|
|
|
+https://indigofloyd.space/ai-daily/2026-03-16/
|
|
|
+
|
|
|
+祝有充实的一天!✨
|
|
|
```
|
|
|
|
|
|
## 相关文档
|
|
|
@@ -90,6 +110,30 @@ DISCORD_THREAD_AUTO_ARCHIVE_MIN=10080
|
|
|
- [筛选与推送策略](references/selection-and-delivery.md) - 论文评分和推送规则
|
|
|
- [Hugo 部署说明](../../deploy/README.md) - Docker 部署方案
|
|
|
|
|
|
+## Hugo 集成
|
|
|
+
|
|
|
+Hugo 站点配置:
|
|
|
+- **自动监控**:`watch-hugo.sh` 守护进程每 30 秒检测文件变化
|
|
|
+- **自动编译**:Hugo server 使用 `--watch` 模式实时重新编译
|
|
|
+- **自动部署**:`git-sync-hugo.sh` 守护进程每 30 秒检查远程仓库更新
|
|
|
+- **Live Reload**:浏览器自动刷新(livereload.js)
|
|
|
+
|
|
|
+访问地址:`http://localhost:9080/ai-daily/YYYY-MM-DD/`
|
|
|
+
|
|
|
+## Discord 链接推送
|
|
|
+
|
|
|
+使用 `scripts/send_discord_link.py` 发送简短消息:
|
|
|
+
|
|
|
+```bash
|
|
|
+python3 scripts/send_discord_link.py \
|
|
|
+ --date 2026-03-16 \
|
|
|
+ --total 8 \
|
|
|
+ --embodied 3 \
|
|
|
+ --representation 3 \
|
|
|
+ --reinforcement 2 \
|
|
|
+ --hugo-url https://indigofloyd.space/ai-daily/2026-03-16/
|
|
|
+```
|
|
|
+
|
|
|
## 维护
|
|
|
|
|
|
### 查看日志
|
|
|
@@ -109,3 +153,20 @@ ls -la arxiv-digest/output/$(date +%Y-%m-%d)/
|
|
|
```bash
|
|
|
cd site && hugo --quiet
|
|
|
```
|
|
|
+
|
|
|
+### 检查守护进程
|
|
|
+
|
|
|
+```bash
|
|
|
+# Git 同步守护进程
|
|
|
+ps aux | grep git-sync-hugo | grep -v grep
|
|
|
+
|
|
|
+# Hugo 监听守护进程
|
|
|
+ps aux | grep watch-hugo.sh | grep -v grep
|
|
|
+```
|
|
|
+
|
|
|
+### 重启 Hugo
|
|
|
+
|
|
|
+```bash
|
|
|
+cd /home/zhn/.openclaw/workspace/skills/robdaily/deploy
|
|
|
+docker compose restart hugo-personal-site
|
|
|
+```
|