weather-fetcher

GitHub

获取迪拜当前气温数据。通过WebFetch调用Open-Meteo API,解析JSON响应提取温度值与单位,并按指定格式返回摄氏或华氏度结果。

.claude/skills/weather-fetcher/SKILL.md shanraisshan/claude-code-best-practice

触发场景

查询迪拜天气 获取特定地点气温

安装

npx skills add shanraisshan/claude-code-best-practice --skill weather-fetcher -g -y
更多选项

非标准路径

npx skills add https://github.com/shanraisshan/claude-code-best-practice/tree/main/.claude/skills/weather-fetcher -g -y

不安装直接使用

npx skills use shanraisshan/claude-code-best-practice@weather-fetcher

指定 Agent (Claude Code)

npx skills add shanraisshan/claude-code-best-practice --skill weather-fetcher -a claude-code -g -y

安装 repo 全部 skill

npx skills add shanraisshan/claude-code-best-practice --all -g -y

预览 repo 内 skill

npx skills add shanraisshan/claude-code-best-practice --list

SKILL.md

Frontmatter
{
    "name": "weather-fetcher",
    "description": "Instructions for fetching current weather temperature data for Dubai, UAE from Open-Meteo API",
    "allowed-tools": [
        "WebFetch(*)"
    ],
    "user-invocable": false
}

Weather Fetcher Skill

This skill provides instructions for fetching current weather data.

Task

Fetch the current temperature for Dubai, UAE in the requested unit (Celsius or Fahrenheit).

Instructions

  1. Fetch Weather Data: Use the WebFetch tool to get current weather data for Dubai from the Open-Meteo API.

    For Celsius:

    • URL: https://api.open-meteo.com/v1/forecast?latitude=25.2048&longitude=55.2708&current=temperature_2m&temperature_unit=celsius

    For Fahrenheit:

    • URL: https://api.open-meteo.com/v1/forecast?latitude=25.2048&longitude=55.2708&current=temperature_2m&temperature_unit=fahrenheit
  2. Extract Temperature: From the JSON response, extract the current temperature:

    • Field: current.temperature_2m
    • Unit label is in: current_units.temperature_2m
  3. Return Result: Return the temperature value and unit clearly.

Expected Output

After completing this skill's instructions:

Current Dubai Temperature: [X]°[C/F]
Unit: [Celsius/Fahrenheit]

Notes

  • Only fetch the temperature, do not perform any transformations or write any files
  • Open-Meteo is free, requires no API key, and uses coordinate-based lookups for reliability
  • Dubai coordinates: latitude 25.2048, longitude 55.2708
  • Return the numeric temperature value and unit clearly
  • Support both Celsius and Fahrenheit based on the caller's request

版本历史

  • 8335ca8 当前 2026-07-25 04:18

同 Skill 集合

.claude/skills/agent-browser/SKILL.md
.claude/skills/presentation/presentation-structure/SKILL.md
.claude/skills/presentation/presentation-styling/SKILL.md
.claude/skills/presentation/vibe-to-agentic-framework/SKILL.md
.claude/skills/time-skill/SKILL.md
.claude/skills/weather-svg-creator/SKILL.md
agent-teams/.claude/skills/time-fetcher/SKILL.md
agent-teams/.claude/skills/time-svg-creator/SKILL.md

元信息

文件数
0
版本
674d11d
Hash
4350c64f
收录时间
2026-07-25 04:18

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-18 20:52
浙ICP备14020137号-1