daily-weather-guide

Send daily scheduled weather reports and personalized travel guidance based on the user’s city (down to district). Core elements include temperature comparison with yesterday (clothing reference), PM2.5 air quality, precipitation probability, and UV index, with travel-mode-specific advice (driving/cycling/walking/public transit). Use cases include setting daily weather pushes, asking about today/tomorrow’s weather or whether to bring an umbrella, and initial setup guidance for city, travel mode, and push time.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "daily-weather-guide" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-03fedc8770979e43d9e4561f444cb45b3a9d490df8b0e9b7b036b43f39eed584. Verify the upstream source and version against https://skillhub.cn/skills/user_3a02a591/yesterdayweather before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Send daily scheduled weather reports and personalized travel guidance based on the user’s city (down to district). Core elements include temperature comparison with yesterday (clothing reference), PM2.5 air quality, precipitation probability, and UV index, with travel-mode-specific advice (driving/cycling/walking/public transit). Use cases include setting daily weather pushes, asking about today/tomorrow’s weather or whether to bring an umbrella, and initial setup guidance for city, travel mode, and push time.

0 Downloads

Introduction source: third_party · user_3a02a591 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Inputs and outputs
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: daily-weather-guide
description: |
  每日天气及出行指南——根据用户所在城市(精确到区),每天定时推送天气报告和个性化出行建议。
  核心亮点:⭐温度与昨天的对比变化(穿衣参考)、PM2.5空气质量、降雨概率、紫外线防晒指数、根据出行方式(开车/骑行/步行/公共交通)给出针对性建议。
  使用场景:(1) 用户说"帮我设置每天天气推送" (2) 用户说"今天天气怎么样" (3) 用户说"明天需要带伞吗" (4) 用户说"设置天气提醒" (5) 用户说"每日出行指南" (6) 首次使用时自动引导配置城市、出行方式和推送时间。

每日天气及出行指南

概述

为用户提供每日天气推送服务,核心关注温度与昨天的对比变化,帮助用户快速决定今天穿什么、带什么出门。

数据来源:Open-Meteo(完全免费、无需API Key、全球覆盖、数据准确)。

工作流程

首次使用 → 初始化配置

检测用户是否已配置(通过 longterm-memory MCP 搜索 daily-weather-config)。

未配置时,按照 setup-guide.md 引导用户完成:

  1. 后台静默尝试 IP 定位
  2. 使用 ask_followup_question 工具弹出选项,让用户点击选择城市、出行方式、推送时间(禁止让用户手动输入文字)
  3. 收到选项后保存配置到 longterm-memory

日常推送 → 获取天气并推送

  1. 从 longterm-memory 读取用户配置
  2. 根据配置获取天气数据:
    • 自动模式:python3 scripts/fetch_weather.py --auto-locate --travel-mode {模式}
    • 固定城市:python3 scripts/fetch_weather.py --city "{城市}" --travel-mode {模式}
  3. 优先通过邮件推送(若已配置 ~/.weather_email_config.json):
    python3 scripts/send_email.py --content "{天气报告内容}"
  4. 若未配置邮件,则直接在对话中展示报告

即时查询 → 用户主动问天气

用户随时可以问"今天天气怎么样",直接运行脚本获取并展示。

定时任务设置

使用 cron 工具 创建定时推送任务:

cron工具参数:
- action: "add"
- jobName: "每日天气出行指南"
- jobKind: "cron"
- cronExpression: "30 8 * * *"  (默认8:30,根据用户设置调整)
- jobMessage: 内容见下方模板

jobMessage 模板:

请执行每日天气推送任务:
1. 使用 longterm-memory MCP 读取 daily-weather-config 获取用户配置
2. 根据配置中的 location_mode 决定定位方式:
   - auto模式:运行 python3 /data/workspace/.agent/skills/daily-weather-guide/scripts/fetch_weather.py --auto-locate --travel-mode "{travel_mode}"
   - fixed模式:运行 python3 /data/workspace/.agent/skills/daily-weather-guide/scripts/fetch_weather.py --city "{fixed_city}" --travel-mode "{travel_mode}"
3. 将脚本输出的天气报告通过 notify 工具推送给用户
You must use the notify tool to proactively inform me of the results, whether they are successful or an exception.

推送报告格式

报告包含以下核心模块(按重要性排序):

  1. 🌡️ 温度变化对比(最重要!)

    • 今天 vs 昨天的最高温、最低温、均温对比表格
    • 温差变化趋势图标(🔺升温 / 🔻降温)
    • 穿衣建议(基于温差幅度)
  2. 天气概况

    • 天气状况 + emoji
    • 降雨概率及预计降水量
  3. ☀️ 紫外线指数

    • UV指数 + 等级 + 防晒建议
  4. 😷 空气质量

    • PM2.5 数值 + 等级
    • AQI 指数
  5. 🚀 个性化出行建议

    • 根据用户选择的出行方式定制

脚本用法参考

# 自动IP定位获取天气
python3 scripts/fetch_weather.py --auto-locate --travel-mode "开车"

# 指定城市
python3 scripts/fetch_weather.py --city "深圳市南山区" --travel-mode "公共交通"

# 指定坐标
python3 scripts/fetch_weather.py --lat 22.54 --lon 113.93 --travel-mode "骑行"

# 仅获取IP定位
python3 scripts/fetch_weather.py --locate-only

# 仅地理编码
python3 scripts/fetch_weather.py --geocode "北京市海淀区"

# 输出原始JSON数据
python3 scripts/fetch_weather.py --city "上海" --json

配置修改

用户随时可以说"修改天气推送设置"来重新配置:

  • 更换城市 / 切换定位模式
  • 更换出行方式
  • 调整推送时间
  • 暂停 / 恢复推送(通过 cron 工具的 remove/add 操作)

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 解决高频刚需场景:每日天气查询与个性化出行建议
  • 核心亮点突出:温度对比变化、多维度天气指标、多种出行方式适配
Trigger Precision90/100

Highlights

  • 触发场景覆盖全面,包含6种典型用户表达
  • 边界清晰,不易与其他天气类Skill混淆
Structure and Standards75/100

Areas to improve

  • 缺少When to Use显式章节 Reported severity: Minor

    文档中未设置独立的When to Use章节,使用场景描述嵌入在description中

    Recommendation: 建议在正文开头增加显式的When to Use章节,提升可读性

Highlights

  • Phase划分清晰:首次配置、日常推送、即时查询、定时任务
  • 提供完整的cron配置示例和脚本用法参考
Execution Reliability70/100

Areas to improve

  • 外部依赖文件未说明创建方式 Reported severity: Minor

    邮件推送依赖~/.weather_email_config.json文件,但未说明如何创建和配置

    Recommendation: 建议补充该配置文件的创建说明或提供默认模板

Highlights

  • 脚本路径和参数使用规范,占位符正确
  • 异常处理机制完善:通过notify工具反馈执行结果
  • cron任务管理有add/remove机制,支持暂停恢复
Evidence Verifiability (mean of the first four)80/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.