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

.claude/commands/weather-orchestrator.md

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

A command workflow that gets Dubai’s current temperature and creates an SVG weather card. SVG is a file format for images that stay sharp at any size.

In plain words
What is it for?
Use it to retrieve Dubai’s temperature, create a weather card at orchestration-workflow/weather.svg, and save a summary in orchestration-workflow/output.md.
Why use it?
It removes the need to fetch the weather and format a visual card by hand. It also asks whether to use Celsius or Fahrenheit before starting.

Command for Claude Code

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

This is clxzl/claude-code-best-practice-cn's own configuration. It tells Claude Code how to work on claude-code-best-practice-cn 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-cn configures →

Reuse

Borrowing it

Nothing to install: this file belongs to clxzl/claude-code-best-practice-cn. 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/clxzl/claude-code-best-practice-cn/main/.claude/commands/weather-orchestrator.md
Clone the repo
git clone --depth 1 https://github.com/clxzl/claude-code-best-practice-cn

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/clxzl/claude-code-best-practice-cn/weather-orchestrator/github.svg)](https://agentmods.dev/commands/clxzl/claude-code-best-practice-cn/weather-orchestrator)
Your own site
<a href="https://agentmods.dev/commands/clxzl/claude-code-best-practice-cn/weather-orchestrator"><img src="https://agentmods.dev/badge/commands/clxzl/claude-code-best-practice-cn/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/clxzl/claude-code-best-practice-cn/weather-orchestrator"><img src="https://agentmods.dev/badge/commands/clxzl/claude-code-best-practice-cn/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 423 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.00423
Opus 5 $0.00006 $0.00211
Sonnet 5 $0.00002 $0.00085
Haiku 4.5 $0.00001 $0.00042

Measured 10d ago against content hash 0dc0c914c577, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 10d 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 · 47 lines

What it actually says

Weather Orchestrator 命令

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

工作流

步骤 1:询问用户偏好

使用 AskUserQuestion 工具询问用户想要摄氏度还是华氏度温度。

步骤 2:获取天气数据

使用 Task 工具调用 weather 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 Creator:通过 Skill 工具调用 SVG creator,而不是 Task 工具。
  3. 传递用户偏好:调用 Agent 时包含用户的温度单位偏好。
  4. 顺序执行:完成每一步后再进行下一步。

输出摘要

向用户提供清晰的摘要,显示:

  • 请求的温度单位
  • 从迪拜获取的温度
  • orchestration-workflow/weather.svg 创建的 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. 10d ago First seen · 47 lines · 12 tokens per session scan A 0dc0c914c577

Subscribe to this mod's changes

weather-orchestrator is a command published in the GitHub repository clxzl/claude-code-best-practice-cn (127 stars, last pushed 4mo ago), licensed MIT. It adds 12 tokens to every session and 423 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-30.