claude-code-best-practice-zh: Command for Claude Code

.claude/commands/weather-orchestrator.md

weather-orchestrator is a command for Claude Code from Rito-w/claude-code-best-practice-zh. It costs 9 tokens per session (452 once invoked), scanned A, a copy of weather-orchestrator, MIT.

A command that gets the current weather in Dubai and produces a visual weather card as an SVG, a scalable image format.

In plain words
What is it for?
Use it when you need Dubai’s current temperature in Celsius or Fahrenheit and an SVG card showing the result.
Why use it?
It turns a weather lookup into a ready-to-use visual while requiring the temperature unit to be chosen first.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter; mentions subagents; names the AskUserQuestion tool.

This is Rito-w/claude-code-best-practice-zh's own configuration. It tells Claude Code how to work on claude-code-best-practice-zh itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-code-best-practice-zh configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Rito-w/claude-code-best-practice-zh. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Rito-w/claude-code-best-practice-zh/main/.claude/commands/weather-orchestrator.md
Clone the repo
git clone --depth 1 https://github.com/Rito-w/claude-code-best-practice-zh

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for weather-orchestrator

README.md
[![agentmods](https://agentmods.dev/badge/commands/rito-w/claude-code-best-practice-zh/weather-orchestrator/github.svg)](https://agentmods.dev/commands/rito-w/claude-code-best-practice-zh/weather-orchestrator)
Your own site
<a href="https://agentmods.dev/commands/rito-w/claude-code-best-practice-zh/weather-orchestrator"><img src="https://agentmods.dev/badge/commands/rito-w/claude-code-best-practice-zh/weather-orchestrator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for weather-orchestrator

Your own site · 80×15
<a href="https://agentmods.dev/commands/rito-w/claude-code-best-practice-zh/weather-orchestrator"><img src="https://agentmods.dev/badge/commands/rito-w/claude-code-best-practice-zh/weather-orchestrator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 452 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00009 $0.00452
Opus 5 $0.00005 $0.00226
Sonnet 5 $0.00002 $0.00090
Haiku 4.5 $0.00001 $0.00045

Measured 9d ago against content hash 7607d1f05d75, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

weather-orchestrator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to weather-orchestrator — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/commands/weather-orchestrator.md · 59 lines

What it actually says

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 user and stop.

Step 3: Create SVG Weather Card

Use the Skill tool to invoke the weather-svg-creator skill:

  • skill: weather-svg-creator

The skill will use the temperature value and unit from Step 2 (available in the current context) to create the SVG card and write output files.

Output Summary

Provide a clear summary to the user showing:

  • Temperature unit requested
  • Temperature fetched from Dubai
  • SVG card created at orchestration-workflow/weather.svg
  • Summary written to orchestration-workflow/output.md
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 59 lines · 9 tokens per session scan A 7607d1f05d75

Subscribe to this mod's changes

weather-orchestrator is a command published in the GitHub repository Rito-w/claude-code-best-practice-zh (10 stars, last pushed 2mo ago), licensed MIT. It adds 9 tokens to every session and 452 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to weather-orchestrator, differing in 0 lines, and is treated as a copy.