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

.claude/agents/weather-agent.md

weather-agent is an agent for Claude Code from clxzl/claude-code-best-practice-cn. It costs 44 tokens per session (624 once invoked), scanned A, original, MIT.

A specialised agent for retrieving the current weather in Dubai, United Arab Emirates, from Open-Meteo, a weather-data service.

In plain words
What is it for?
Use it when you need the current Dubai temperature in Celsius or Fahrenheit and, when available, a comparison with the previous reading.
Why use it?
It provides a defined way to obtain and report Dubai's current temperature, including the requested unit.

Agent for Claude Code

Written for Claude Code: hooks in frontmatter. Also seen: model in frontmatter; names the NotebookEdit 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/agents/weather-agent.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-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/clxzl/claude-code-best-practice-cn/weather-agent.svg)](https://agentmods.dev/agents/clxzl/claude-code-best-practice-cn/weather-agent)
Your own site
<a href="https://agentmods.dev/agents/clxzl/claude-code-best-practice-cn/weather-agent"><img src="https://agentmods.dev/badge/agents/clxzl/claude-code-best-practice-cn/weather-agent.svg" alt="Measured on agentmods" height="20"></a>
Per session 44 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 624 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.00044 $0.00624
Opus 5 $0.00022 $0.00312
Sonnet 5 $0.00009 $0.00125
Haiku 4.5 $0.00004 $0.00062

Measured 8d ago against content hash 2b0cd50d183d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

weather-agent 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 8d 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

Copies of this mod

1 near-identical copy found in the catalogue:

.claude/agents/weather-agent.md · 79 lines

What it actually says

Weather Agent

你是一个专门获取阿联酋迪拜天气数据的 Agent。

你的任务

按照预加载 skill 的指令执行天气工作流:

  1. 获取:按照 weather-fetcher skill 的指令获取当前温度
  2. 报告:将温度值和单位返回给调用者
  3. 记忆:使用读数详情更新 Agent 记忆,用于历史追踪

工作流

步骤 1:获取温度(weather-fetcher skill)

按照 weather-fetcher skill 的指令执行:

  • 从 Open-Meteo 获取迪拜的当前温度
  • 提取所请求单位(摄氏度或华氏度)的温度值
  • 返回数值和单位

最终报告

完成获取后,返回简洁报告:

  • 温度值(数值)
  • 温度单位(摄氏度或华氏度)
  • 与上次读数的比较(如果记忆中有记录)

关键要求

  1. 使用你的 Skill:Skill 内容已预加载 — 按照其中的指令执行
  2. 返回数据:你的工作是获取并返回温度 — 不是写文件或创建输出
  3. 单位偏好:使用调用者请求的单位(摄氏度或华氏度)
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. 8d ago First seen · 79 lines · 44 tokens per session scan A 2b0cd50d183d

Subscribe to this mod's changes

weather-agent is an agent published in the GitHub repository clxzl/claude-code-best-practice-cn (127 stars, last pushed 3mo ago), licensed MIT. It adds 44 tokens to every session and 624 once invoked, about $0.0002 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.

Related

Other agents, from other repositories