weather-orchestrator
From shanraisshan
Fetch Dubai weather and create an SVG weather card
Install
/weather-orchestratorFacts
- Repository
- shanraisshan/claude-code-best-practice
- Status
- Actively maintained
- Last commit
- Declared tools
- Model
- haiku
- Source file
- .claude/commands/weather-orchestrator.md
Source preview
The instructions Claude Code reads when this command runs.
# 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
Wait for the agent to complete and capture the returned temperature value and unit.
**Fail-closed guardrail**: If the agent does not return a numeric temperature and unit, DO NOT proceed to Step 3. Report the failure to the useView full source on GitHub →Other slash commands
feature-development
★ 229,918Workflow command scaffold for feature-development in everything-claude-code.
affaan-mupdated 15d agoMITdatabase-migration
★ 229,918Workflow command scaffold for database-migration in everything-claude-code.
affaan-mupdated 15d agoMITadd-language-rules
★ 229,918Workflow command scaffold for add-language-rules in everything-claude-code.
affaan-mupdated 15d agoMITcommit-push-pr
★ 137,934Commit, push, and open a PR
anthropicsupdated 14d agodedupe
★ 137,934Find duplicate GitHub issues
anthropicsupdated 14d agotriage-issue
★ 137,934Triage GitHub issues by analyzing and applying labels
anthropicsupdated 14d ago