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

.claude/commands/weather-orchestrator.md

weather-orchestrator is a command for Claude Code from BuaaJoseph/claude-code-best-practice-zh. It costs 12 tokens per session (416 once invoked), scanned A, original, MIT.

A command workflow that gets the current weather in Dubai and creates an SVG weather card. SVG is a file format for graphics that can stay sharp at different sizes.

In plain words
What is it for?
Use it to ask whether the temperature should be shown in Celsius or Fahrenheit, fetch the value, create the card, and save the workflow summary.
Why use it?
It turns a weather lookup into a small visual file and records a summary of the result and where the card was created.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; names the AskUserQuestion tool.

This is BuaaJoseph/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 BuaaJoseph/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/BuaaJoseph/claude-code-best-practice-zh/master/.claude/commands/weather-orchestrator.md
Clone the repo
git clone --depth 1 https://github.com/BuaaJoseph/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/buaajoseph/claude-code-best-practice-zh/weather-orchestrator/github.svg)](https://agentmods.dev/commands/buaajoseph/claude-code-best-practice-zh/weather-orchestrator)
Your own site
<a href="https://agentmods.dev/commands/buaajoseph/claude-code-best-practice-zh/weather-orchestrator"><img src="https://agentmods.dev/badge/commands/buaajoseph/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/buaajoseph/claude-code-best-practice-zh/weather-orchestrator"><img src="https://agentmods.dev/badge/commands/buaajoseph/claude-code-best-practice-zh/weather-orchestrator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 416 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 original No closer match found 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.00012 $0.00416
Opus 5 $0.00006 $0.00208
Sonnet 5 $0.00002 $0.00083
Haiku 4.5 $0.00001 $0.00042

Measured 9d ago against content hash 15160c420b2d, 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.

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

What it actually says

天气编排命令

获取阿联酋迪拜的当前温度并创建可视化 SVG 天气卡片。

工作流

步骤 1:询问用户偏好

使用 AskUserQuestion 工具询问用户希望使用摄氏度还是华氏度。

步骤 2:获取天气数据

使用 Task 工具调用天气 agent:

  • subagent_type: weather-agent
  • description: 获取迪拜天气数据
  • prompt: 获取阿联酋迪拜的当前温度(单位由用户选择)。返回数字温度值和单位。该 agent 有一个预加载的 skill(weather-fetcher),提供了详细说明。
  • model: haiku

等待 agent 完成并捕获返回的温度值和单位。

步骤 3:创建 SVG 天气卡片

使用 Skill 工具调用 weather-svg-creator skill:

  • skill: weather-svg-creator

该 skill 将使用步骤 2 中的温度值和单位(在当前上下文中可用)来创建 SVG 卡片并写入输出文件。

关键要求

  1. 使用 Task 工具调用 Agent:不要使用 bash 命令调用 agent。必须使用 Task 工具。
  2. 使用 Skill 工具调用 SVG 创建器:通过 Skill 工具调用 SVG 创建器,而不是 Task 工具。
  3. 传递用户偏好:在调用 agent 时包含用户的温度单位偏好。
  4. 顺序流程:在进入下一步之前完成每个步骤。

输出摘要

向用户显示清晰的摘要,包括:

  • 请求的温度单位
  • 从迪拜获取的温度
  • SVG 卡片创建于 orchestration-workflow/weather.svg
  • 摘要写入 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 · 46 lines · 12 tokens per session scan A 15160c420b2d

Subscribe to this mod's changes

weather-orchestrator is a command published in the GitHub repository BuaaJoseph/claude-code-best-practice-zh (2 stars, last pushed 4mo ago), licensed MIT. It adds 12 tokens to every session and 416 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.