SKILL.md 4.7 KB


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, (6) publish to Hugo blog, and (7) send a brief link message to Discord RobotDaily channel."

arXiv Digest

每日从 arXiv 抓取具身智能、表征学习、强化学习方向的最新论文,经过 LLM 筛选和解读后,归档到 Hugo 博客,并在 Discord RobotDaily 频道推送链接和问候消息。

核心入口

使用 scripts/run_daily.py 作为唯一入口:

# 仅生成简报(dry run)
python3 scripts/run_daily.py

# 生成并推送到 Hugo
python3 scripts/run_daily.py --publish-hugo

# 生成并发送 Discord 链接消息
python3 scripts/run_daily.py --send-discord-link

# 生成并推送两者
python3 scripts/run_daily.py --publish-hugo --send-discord-link

# 跳过 LLM 增强(快速测试)
python3 scripts/run_daily.py --skip-enrich

工作流程

  1. 抓取论文:从 arXiv RSS/API 获取最新论文
  2. 智能评分:基于创新性、应用价值、时效性自动排序
  3. 领域筛选:每个领域(具身智能、表征学习、强化学习)精选 2-3 篇
  4. LLM 增强:使用 lmcpp/Qwen3.5-35B-A3B-UD-Q5_K_XL.gguf 模型生成:
    • 中文摘要翻译
    • 简短价值解读
    • 卡片标签
  5. 渲染输出
    • robotdaily.md - Markdown 归档版本(同步到 Hugo)
  6. Hugo 归档
    • 保存到 site/content/ai-daily/YYYY-MM-DD.md
    • Hugo 自动重新编译并部署到网站
  7. Discord 推送
    • 在 RobotDaily 频道发送简短问候 + Hugo 链接

输出文件

每次运行在 output/YYYY-MM-DD/ 目录生成:

  • candidates.json - 候选论文列表
  • selected.json - 精选论文列表
  • enriched.json - LLM 增强后数据
  • robotdaily.md - Markdown 归档版本

配置

环境变量配置在 arxiv-digest/.env

# LLM 模型(默认使用 lmcpp/Qwen3.5-35B-A3B-UD-Q5_K_XL.gguf)
INSIGHT_MODELS=lmcpp/Qwen3.5-35B-A3B-UD-Q5_K_XL.gguf

# 输出目录
ROBOTDAILY_OUTPUT_DIR=/home/zhn/.openclaw/workspace/skills/robdaily/arxiv-digest/output

# Hugo 内容目录
HUGO_CONTENT_DIR=/home/zhn/.openclaw/workspace/skills/robdaily/site/content/ai-daily

# Discord 机器人令牌(用于发送链接消息)
DISCORD_BOT_TOKEN=your_bot_token_here

# Discord RobotDaily 频道 ID
DISCORD_ROBOTDAILY_CHANNEL_ID=1481632217930141697

# Hugo 网站 URL
HUGO_SITE_URL=https://indigofloyd.space

定时任务

每天上午 10:30(Asia/Shanghai)自动运行:

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/

祝有充实的一天!✨

相关文档

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 发送简短消息:

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/

维护

查看日志

cat arxiv-digest/logs/robotdaily.log

检查输出

ls -la arxiv-digest/output/$(date +%Y-%m-%d)/

验证 Hugo 站点

cd site && hugo --quiet

检查守护进程

# Git 同步守护进程
ps aux | grep git-sync-hugo | grep -v grep

# Hugo 监听守护进程
ps aux | grep watch-hugo.sh | grep -v grep

重启 Hugo

cd /home/zhn/.openclaw/workspace/skills/robdaily/deploy
docker compose restart hugo-personal-site