weather-fetcher

GitHub

获取迪拜当前气温数据。通过调用Open-Meteo API,根据请求单位(摄氏度或华氏度)提取并返回指定格式的温度数值及单位信息。

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

Trigger Scenarios

用户查询迪拜天气 需要获取特定地点实时气温

Install

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

Non-standard path

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

Use without installing

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

Version History

  • 8335ca8 Current 2026-07-25 04:18

Same Skill Collection

.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

Metadata

Files
0
Version
3433a39
Hash
4350c64f
Indexed
2026-07-25 04:18

홈 - 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-29 16:47
浙ICP备14020137号-1