news-analysis
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseNews Analysis Skill
News Analysis Skill
将每日热点新闻搜索并整理写入 Obsidian。
Search, organize and write daily hot news to Obsidian.
安装方法
Installation Method
bash
npx skills add https://github.com/Rinsonlaw/law-skills.gitbash
npx skills add https://github.com/Rinsonlaw/law-skills.git工作流程
Workflow
第一步:获取 Obsidian 路径
Step 1: Get Obsidian Path
使用 skill 获取本机 Obsidian vault 路径。
/obsidianUse the skill to get the local Obsidian vault path.
/obsidian第二步:搜索热点新闻
Step 2: Search for Hot News
使用 分多角度搜索今日热点新闻:
mmx search querybash
DATE=$(date +%Y-%m-%d)
mmx search query "国际新闻 $DATE"
mmx search query "国内时政 $DATE"
mmx search query "财经新闻 $DATE"
mmx search query "科技AI $DATE"Use to search today's hot news from multiple perspectives:
mmx search querybash
DATE=$(date +%Y-%m-%d)
mmx search query "国际新闻 $DATE"
mmx search query "国内时政 $DATE"
mmx search query "财经新闻 $DATE"
mmx search query "科技AI $DATE"第三步:整理新闻内容
Step 3: Organize News Content
对每条热点新闻:
- 写 100 字以内的核心内容摘要
- 保留原文链接
- 标注新闻来源和时间
For each hot news item:
- Write a core content summary within 100 words
- Keep the original link
- Label the news source and time
第四步:写入 Obsidian
Step 4: Write to Obsidian
- 确定写入路径:
{Obsidian路径}/news/ - 文件命名格式:
$(date +%Y-%m-%d_%H:%M:%S)_{热点新闻}.md - 按以下格式写入:
markdown
undefined- Determine the write path:
{Obsidian Path}/news/ - File naming format:
$(date +%Y-%m-%d_%H:%M:%S)_{热点新闻}.md - Write in the following format:
markdown
undefined今日热点新闻30条 | $(date +%Y-%m-%d)
30 Hot News of Today | $(date +%Y-%m-%d)
🌏 国际动态
🌏 International News
[序号]. [新闻标题]
[Serial Number]. [News Title]
摘要:[100字以内核心内容]
来源:媒体名称1 | 媒体名称2 | ...
...
Summary: [Core content within 100 words]
Source: [Media Name1](Original Link1) | [Media Name2](Original Link2) | ...
...
🇨🇳 国内时政
🇨🇳 Domestic Politics
[序号]. [新闻标题]
[Serial Number]. [News Title]
摘要:[100字左右核心内容] 来源:媒体名称1 | 媒体名称2 | ...
...
Summary: [Core content around 100 words] Source: [Media Name1](Original Link1) | [Media Name2](Original Link2) | ...
...
💰 财经新闻
💰 Financial News
[序号]. [新闻标题]
[Serial Number]. [News Title]
摘要:[100字左右核心内容] 来源:媒体名称1 | 媒体名称2 | ...
...
Summary: [Core content around 100 words] Source: [Media Name1](Original Link1) | [Media Name2](Original Link2) | ...
...
🤖 科技·AI
🤖 Technology & AI
[序号]. [新闻标题]
[Serial Number]. [News Title]
摘要:[100字左右核心内容] 来源:媒体名称1 | 媒体名称2 | ...
...
Summary: [Core content around 100 words] Source: [Media Name1](Original Link1) | [Media Name2](Original Link2) | ...
...
📈 趋势归纳
📈 Trend Summary
[对今日新闻的趋势分析,分点叙述,每个点不超过100字]
整理时间:$(date +%Y-%m-%d\ %H:%M:%S)
整理工具:[工具名称比如MiniMax AI + OpenClaw]
undefined[In-depth analysis of today's news trends, listed in points, each point no more than 100 words]
Organization Time: $(date +%Y-%m-%d\ %H:%M:%S)
Organization Tool: [Tool Name e.g. MiniMax AI + OpenClaw]
undefined注意事项
Notes
- 所有新闻的序号要从1开始,依次递增到30
- 摘要需精炼,控制在 100 字左右
- 所有链接必须保留原文地址
- 趋势归纳部分要有深度分析,不只是罗列
- 文件名中时间精确到秒,避免重复
- All news items should be numbered starting from 1 and incrementing up to 30
- Summaries need to be concise, controlled around 100 words
- All links must retain the original address
- The trend summary section requires in-depth analysis, not just listing
- The time in the file name should be precise to the second to avoid duplicates
错误处理
Error Handling
- 若 Obsidian vault 不存在,提示用户检查路径
- 若 news 文件夹不存在,自动创建:
mkdir -p "{Obsidian路径}/news" - 若 mmx search 无结果,输出"今日未找到热点新闻"并退出
- If the Obsidian vault does not exist, prompt the user to check the path
- If the news folder does not exist, create it automatically:
mkdir -p "{Obsidian Path}/news" - If mmx search returns no results, output "No hot news found today" and exit