Sign in
Explore
Prompts · PromptBusiness & OpsReviewed

weather-orchestrator

Fetches the Dubai weather and creates an SVG weather card, asking the user for a preference first.

Kind
Prompt
Works with
Claude Code
Source
shanraisshan/claude-code-best-practice @ 6d0844baf620
Path
.claude/commands/weather-orchestrator.md
License
MIT
Jobs
Automation
InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
# Weather Orchestrator Command

Fetch the current temperature for Dubai, UAE and create a visual SVG weather card.

## Execution Contract (non-negotiable)

You MUST complete this command by delegating to the `weather-agent` subagent. You are forbidden from:

- Fetching weather data yourself via Bash, WebFetch, or any other tool
- Skipping Step 1 (the user's unit preference is required input to the agent)
- Calling `weather-svg-creator` before the agent returns a temperature

If you cannot invoke the Agent tool, stop and report the error to the user. Do not improvise.

## Workflow

### Step 1: Ask User Preference

Use the AskUserQuestion tool to ask the user whether they want the temperature in Celsius or Fahrenheit. Capture the selected unit before proceeding.

### Step 2: Fetch Weather Data via Agent

Use the Agent tool to invoke the weather agent:

- subagent_type: weather-agent
- description: Fetch Dubai weather data
- prompt: Fetch the current temperature for Dubai, UAE in [unit requested by user]. Return the numeric temperature value and unit. The agent has a preloaded skill (weather-fetcher) that provides the detailed instructions.
- model: haiku
…