跳到正文
cccskills
免费在 GitHub 公开

weather

查询全球任意城市的实时天气和未来天气预报。当用户提到天气、气温、降雨、湿度、风力、穿衣建议、出行建议等天气相关话题时使用此技能。支持中英文城市名。

例如:'北京天气怎么样'、'明天上海会下雨吗'、'Tokyo weather forecast'、'这周末适合户外活动吗'。

中文简介正在准备中。当前显示原文说明。

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md2.9 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Weather — 天气查询与预报

使用免费的 Open-Meteo API 查询实时天气和 7 天预报,无需 API Key。

工作流程

1. 解析城市

从用户消息中提取城市名。如果未指定城市,询问用户或使用上次查询的城市(检查 CONTEXT.md)。

2. 获取坐标

使用 Open-Meteo Geocoding API 将城市名转为经纬度:

curl -s "https://geocoding-api.open-meteo.com/v1/search?name=Beijing&count=1&language=zh"

从返回的 JSON 中提取 latitude, longitude, name, country。

3. 查询天气

实时天气 + 7天预报(一次请求全部获取):

curl -s "https://api.open-meteo.com/v1/forecast?latitude={lat}&longitude={lon}&current=temperature_2m,relative_humidity_2m,apparent_temperature,precipitation,weather_code,wind_speed_10m,wind_direction_10m&daily=weather_code,temperature_2m_max,temperature_2m_min,precipitation_sum,precipitation_probability_max,wind_speed_10m_max&timezone=auto&forecast_days=7"

4. 解读天气代码

将 weather_code 转为可读文字:

Code天气Code天气
0晴天 ☀️51-55毛毛雨 🌧️
1-3多云 ⛅61-65雨 🌧️
45-48雾 🌫️71-77雪 ❄️
80-82阵雨 🌦️
95-99雷暴 ⛈️

5. 回复用户

用自然语言回复,包含:

实时天气:

  • 城市名 + 当前温度 + 体感温度
  • 天气状况(晴/多云/雨等)
  • 湿度 + 风速风向
  • 降水量(如果有)

未来预报(按用户需求,默认 3 天):

  • 每天:最高/最低温度 + 天气 + 降水概率

实用建议(可选):

  • 穿衣建议(基于温度和风速)
  • 出行建议(基于降水概率)
  • 紫外线提醒(晴天高温时)

回复示例

🌤️ 北京今日天气

当前温度 22°C(体感 20°C),多云,湿度 45%,东南风 12 km/h。

📅 未来三天预报:
• 明天(周二):晴,18-26°C,降水概率 5%
• 后天(周三):多云转阴,15-22°C,降水概率 35%
• 大后天(周四):小雨,12-18°C,降水概率 80%

💡 建议:今天适合外出,明天气温回升可穿薄外套。周四建议带伞。

注意事项

  • Open-Meteo 免费无限制,无需 API Key
  • 温度单位默认摄氏度,如用户要求可切换华氏度(加 &temperature_unit=fahrenheit)
  • 如果 geocoding 返回多个结果,选第一个(最相关),必要时确认
  • 对中文城市名,geocoding 参数加 &language=zh 获得中文结果

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

<What it does, one line>. Trigger phrases: <phrases>.

中文简介正在准备中。当前显示原文说明。

gabrielmoreira/agent-skills-mirror192026年10月24日 更新

Use this skill whenever the user wants to create or improve a presentation for an academic context — conference papers, seminar talks, thesis defenses, grant briefings, lab meetings, invited lectures, or any presentation where the audience will evaluate reasoning and evidence. Triggers include: 'conference talk', 'seminar slides', 'thesis defense', 'research presentation', 'academic deck', 'academic presentation'. Also triggers when the user asks to 'make slides' in combination with academic content (e.g., 'make slides for my paper on X', 'create a presentation for my dissertation defense', 'build a deck for my grant proposal'). This skill governs CONTENT and STRUCTURE decisions. For the technical work of creating or editing the .pptx file itself, also read the pptx SKILL.md.

中文简介正在准备中。当前显示原文说明。

gabrielmoreira/agent-skills-mirror192026年10月24日 更新

adapt

免费

Shortest English alias for web-adapt / universal-web-adaptation. Use this when adapting an unfamiliar public website generically before creating any site-specific rules.

中文简介正在准备中。当前显示原文说明。

gabrielmoreira/agent-skills-mirror192026年10月24日 更新

Use this skill to audit CLI adapter projects (like opencli) for missing output fields, then batch-generate fixes and submit PRs. Turns AI agents into adapter quality reviewers.

中文简介正在准备中。当前显示原文说明。

gabrielmoreira/agent-skills-mirror192026年10月24日 更新

ads

免费

Operate professional paid advertising across Google, Meta, YouTube, LinkedIn, TikTok, Microsoft, Apple, Amazon, Reddit, Pinterest, Snapchat, and X. Use for account intake, source-grounded audits, strategy, budget and measurement planning, creative production, experiments, reporting, monitoring, and explicitly approved campaign changes. Also trigger on PPC, paid social, retail media, attribution, tracking, landing pages, cross-platform conversion totals, negative keywords or search terms, beta-feature scoring, stale platform claims, API-token or credential setup, campaign deletion, and safe Claude Ads installation or uninstall.

中文简介正在准备中。当前显示原文说明。

gabrielmoreira/agent-skills-mirror192026年10月24日 更新

Audit Amazon Ads profiles, regions, Sponsored Products, Sponsored Brands, Sponsored Display, DSP, portfolios, targeting, search terms, retail readiness, creative, budgets, ACOS, TACOS, reporting, and policy. Use for Amazon Ads, sponsored ads, Amazon PPC, ACOS, TACOS, ASIN advertising, Amazon DSP, or retail-media optimization.

中文简介正在准备中。当前显示原文说明。

gabrielmoreira/agent-skills-mirror192026年10月24日 更新

查看 gabrielmoreira 的全部技能

报告此技能的问题