一键导入
daily-news-briefing
Automates the generation and delivery of a daily news briefing covering finance, military, and technology sectors.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Automates the generation and delivery of a daily news briefing covering finance, military, and technology sectors.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Clone/create/fork repos; manage remotes, releases.
Run LLM inference with llama.cpp on CPU, Apple Silicon, AMD/Intel GPUs, or NVIDIA — plus GGUF model conversion and quantization (2–8 bit with K-quants and imatrix). Covers CLI, Python bindings, OpenAI-compatible server, and Ollama/LM Studio integration. Use for edge deployment, M1/M2/M3/M4 Macs, CUDA-less environments, or flexible local quantization.
Gmail, Calendar, Drive, Contacts, Sheets, and Docs integration for Hermes. Uses Hermes-managed OAuth2 setup, prefers the Google Workspace CLI (`gws`) when available for broader API coverage, and falls back to the Python client libraries otherwise.
Manage Linear issues, projects, and teams via the GraphQL API. Create, update, search, and organize issues. Uses API key auth (no OAuth needed). All operations via curl — no dependencies.
搜索、提取当日财经/军事/科技新闻,格式化后通过飞书推送
从飞书表格读取周报数据(JAVA组),汇总整理后通过邮件发送
| title | Daily News Briefing Workflow |
| emoji | 📈⚔️💻 |
| name | daily-news-briefing |
| description | Automates the generation and delivery of a daily news briefing covering finance, military, and technology sectors. |
| usage | Use this skill to generate and push a daily news briefing covering finance, military, and technology sectors. |
| input_schema | {"type":"object","properties":{"schedule_time":{"type":"string","description":"The time to send the briefing (default is '10:00 AM')."},"sections":{"type":"array","items":{"type":"string"},"description":"List of sections to include (default is ['finance', 'military', 'technology'])."}},"required":[]} |
This skill automates the process of generating and pushing a daily news briefing with real-time updates across multiple sectors.
This user's environment uses Firecrawl API v2 (key: fc-5805f00749234abf8c75c682748a2633, endpoint: /v2/search) for supplemental search. Sina Feed API is the primary source for same-day news due to Firecrawl's unreliable date filtering. The productivity/news-briefing skill has additional Feishu push details.
For weather jobs: free wttr.in API requires no key.
https://feed.mix.sina.com.cn/api/roll/get?pageid=153&lid={lid}&k=&num=15&page=1&r=0.5
| Section | lid | Notes |
|---|---|---|
| Finance | 2516 | Returns ~50 items, timestamps in Unix epoch |
| Tech | 2515 | Returns ~50 items, timestamps in Unix epoch |
| General | 2517 | ⚠️ Returns finance content — NOT reliable for military. Use browser for military. |
Response shape: {"result": {"data": [{"title", "intro", "ctime" (Unix timestamp), "url"}]}}
Filtering for military content from lid=2517: keywords include 军, 武, 舰, 导, 战, 部队, 军事, 国防, 伊朗, 以色列, 俄罗斯, 乌克兰, 北约.
⚠️ Critical: The Sina military API (lid=2514) returns cached data from 2023. Do NOT use it. Instead:
browser_navigate('https://mil.news.sina.com.cn/')browser_snapshot() to extract the news list — headings and timestamps are in the page accessibility treebrowser_click(ref) to open individual articlesbrowser_console("JSON.stringify([...document.querySelectorAll('p')].map(p=>p.textContent))")The military page renders dates as "今天 HH:MM" (today) or "6月9日 HH:MM" (recent).
Fetch Finance News
# Use lid=2516, iterate items and convert ctime
import subprocess, json
from datetime import datetime
result = subprocess.run(['curl', '-s', '--max-time', '15',
'https://feed.mix.sina.com.cn/api/roll/get?pageid=153&lid=2516&k=&num=15&page=1&r=0.5',
'-H', 'Referer: https://news.sina.com.cn/'],
capture_output=True, text=True, timeout=20)
data = json.loads(result.stdout)
for i in data['result']['data']:
ts = int(i['ctime'])
dt = datetime.fromtimestamp(ts).strftime('%Y-%m-%d %H:%M')
print(f"[{dt}] {i['title']} | {i['intro']} | {i['url']}")
Fetch Tech News — same API with lid=2515
Fetch Military News — browser only (see above)
Extract Article Detail (optional, for fuller summaries):
# Sina article pages may use GB2312 encoding
result = subprocess.run(['curl', '-s', '--max-time', '15', URL,
'-H', 'User-Agent: Mozilla/5.0'], capture_output=True, text=True, timeout=20)
text = result.stdout # bytes — decode with errors='ignore'
paras = re.findall(r'<p[^>]*>([^<]+)</p>', text)
article = ' '.join(p.strip() for p in paras if len(p.strip()) > 30)
Format & Output — use the template below.
📰 每日新闻速报 | YYYY年MM月DD日
@何旭
## 💰 财经要闻
**① 新闻标题**
正文摘要约300字,涵盖事件核心信息及各方反应。
*来源:新浪财经 | YYYY年MM月DD日*
## ⚔️ 军事动态
**① 新闻标题**
正文摘要约300字,涵盖事件核心信息及各方反应。
*来源:新浪军事 | YYYY年MM月DD日*
## 💻 科技前沿
**① 新闻标题**
正文摘要约300字,涵盖事件核心信息及各方反应。
*来源:新浪科技 | YYYY年MM月DD日*
01这是模型/搜索服务 API Key 在 cron 子进程中不可见或失效,通常不是飞书凭证问题。最稳方案是绕开 LLM 调用:
no_agent=True 脚本模式,让脚本 stdout 直接作为推送内容,避免模型 API Key 401 导致任务失败。/root/.hermes/scripts/daily_news_briefing_noagent.py。它使用新浪 Feed API 拉取财经/科技,并从新闻流关键词筛选军事相关新闻;无需大模型或 Firecrawl Key。cronjob(action='update', job_id='<id>', no_agent=True, script='daily_news_briefing_noagent.py', prompt='', skills=[], deliver='feishu:oc_YOUR_CHAT_ID')origin 或 feishu:助手群,优先用明确 chat_id:feishu:oc_YOUR_CHAT_ID,避免 DM/群/topic 名称解析歧义。no_agent 脚本内部不要再直接调用飞书发送 API。脚本只 print() 最终正文,由 Hermes cron 统一投递;否则会出现脚本自发到错误 chat(如 DM)+ cron 再把 SUCCESS/ERROR 当正文发群的错乱。.env 或 /etc/environment。last_status=ok。必须:
SUCCESS/ERROR/401;cronjob(action='run', job_id=...) 手动触发;cronjob(action='list'),确认 last_status=ok 且 last_delivery_error=null;~/.hermes/logs/agent.log,确认 Job '<id>': delivered to feishu:oc_YOUR_CHAT_ID via live adapter。See productivity/news-briefing skill for full cron 401 fix patterns (prompt embedding + no_agent script).
这是模型生成的响应超出了输出长度限制,不是 API 或认证问题。症状:输出文件只有 ~1800-2000 字节,job 状态显示 error,last_error 为 RuntimeError: Response truncated due to output length limit。
修复方法(已验证有效):
daily-news-briefing 技能Firecrawl API /v2/search does not reliably filter by date. Searching "2026年6月13日 财经" may return articles from 2026-06-11 or earlier. Use Sina Feed API as primary for same-day news (lid=2516 finance, lid=2515 tech). Reserve Firecrawl for supplemental search or when Sina Feed API is unavailable.
lid values near the target range (e.g., 2514–2525)k={keyword} parameter for search-based retrievallid=2516 (finance) and filterweb_search(query="site:mil.news.sina.com.cn 2026年6月12日 军事") to find the live URL/zonghe/ subdirectory are more reliable than those under other pathsweb_extract fails, fall back to browser_navigate + browser_snapshot to read the article content directlyrollxml endpoint is deprecated. Always use the HTML page (https://mil.news.sina.com.cn/) via browser.decode('gb2312', errors='ignore') or errors='ignore' with UTF-8.① Kospi指数暴跌逾3% 地缘风险重创芯片股 韩国基准股指周三大幅下跌,芯片股延续跌势且受美国袭击伊朗等地缘政治因素影响……Kospi 200波动性指数周二首度突破90创下纪录。 来源:新浪财经 | 2026年6月10日
① 罗斯福号航母领衔参加2026环太军演 以罗斯福号航母为核心的海军编队已领衔参加2026年环太平洋军事演习……演习涵盖海上补给、反潜作战、多国舰艇协同等科目。 来源:新浪军事 | 2026年6月9日
① iOS 27体验:App冷启动快30% 4K滑动加载提升70% WWDC 2026发布的iOS 27虽被吐槽"挤牙膏",实测数据却显示其性能提升显著:App冷启动速度平均快30%…… 来源:苹果汇 / 新浪科技 | 2026年6月10日