Claude Code Best Practice Skills: Dubai Weather Fetcher

shanraisshan/claude-code-best-practice

Fetch current Dubai temperature data from the example’s Open-Meteo endpoint.

Contenuto aggiornato: SKILL.md
Punteggio di qualità 79/100
git clone https://github.com/shanraisshan/claude-code-best-practice.git
68.987Stelle6866ForkUltimo push del repository

Informazioni sullo Skill

Fetch current Dubai temperature data from the example’s Open-Meteo endpoint. This community practice repository includes nine Skill entrypoints. Several are deliberately narrow examples, such as Dubai weather cards and local time outputs; presentation guidance targets the repository’s existing deck. Preserve that scope when reusing them.

SKILL.md

Autore: shanraisshan · shanraisshan/claude-code-best-practice · MIT · SKILL.md @ 95f8656

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

# 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

Perché lo abbiamo scelto

Useful as a concrete reference for Claude Code orchestration and repository conventions. Inspect the small time and weather examples to understand the wiring, then adapt the fixed inputs deliberately.

A cosa serve

  • Fetch current Dubai temperature data from the example’s Open-Meteo endpoint.

Setup and use

Open the checkout in Claude Code to read its .claude/skills. The agent-teams examples have their own project root; presentation entrypoints share the existing deck and styling.

ComandoA cosa serve
git clone https://github.com/shanraisshan/claude-code-best-practice.gitGet the upstream package or workspace using the documented setup route.

Upstream README and setupTask entrypoint and supporting files

Prima di usarlo

  • Use Claude Code and the upstream checkout. Browser tasks require agent-browser; time examples assume their stated timezones and shell tools, while weather examples need the documented API.

Agenti supportati

Claude Code

Fonti e riferimenti

Le fonti originali sono collegate qui sotto. Gli spunti pratici sono suggerimenti editoriali di SkillHey.