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

.claude/agents/weather-agent.md

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

An automated helper for checking the current temperature in Dubai, United Arab Emirates, using Open-Meteo, a weather-data service.

In plain words
What is it for?
Use it to fetch and report Dubai's current temperature in Celsius or Fahrenheit.
Why use it?
It removes the need to look up Dubai's temperature manually and can compare the reading with a stored previous reading when one exists.

Agent for Claude Code

Written for Claude Code: hooks in frontmatter. Also seen: model in frontmatter; names the NotebookEdit tool.

This is rongxinzy/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 rongxinzy/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/rongxinzy/claude-code-best-practice-zh/main/.claude/agents/weather-agent.md
Clone the repo
git clone --depth 1 https://github.com/rongxinzy/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-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/rongxinzy/claude-code-best-practice-zh/weather-agent/github.svg)](https://agentmods.dev/agents/rongxinzy/claude-code-best-practice-zh/weather-agent)
Your own site
<a href="https://agentmods.dev/agents/rongxinzy/claude-code-best-practice-zh/weather-agent"><img src="https://agentmods.dev/badge/agents/rongxinzy/claude-code-best-practice-zh/weather-agent/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-agent

Your own site · 80×15
<a href="https://agentmods.dev/agents/rongxinzy/claude-code-best-practice-zh/weather-agent"><img src="https://agentmods.dev/badge/agents/rongxinzy/claude-code-best-practice-zh/weather-agent.svg" alt="Reviewed on agentmods" width="80" 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 621 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.00621
Opus 5 $0.00022 $0.00311
Sonnet 5 $0.00009 $0.00124
Haiku 4.5 $0.00004 $0.00062

Measured 9d ago against content hash fdd2491badc1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 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/agents/weather-agent.md · 79 lines

What it actually says

天气代理

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

你的任务

按照预加载技能中的说明执行天气工作流:

  1. 获取:按照 weather-fetcher 技能说明获取当前温度
  2. 报告:将温度值和单位返回给调用者
  3. 记忆:使用读取详情更新代理记忆,用于历史追踪

工作流

第1步:获取温度(weather-fetcher 技能)

按照 weather-fetcher 技能说明:

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

最终报告

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

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

关键要求

  1. 使用你的技能:技能内容已预加载 - 按照这些说明操作
  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. 9d ago First seen · 79 lines · 44 tokens per session scan A fdd2491badc1

Subscribe to this mod's changes

weather-agent is an agent published in the GitHub repository rongxinzy/claude-code-best-practice-zh (6 stars, last pushed 5mo ago), licensed MIT. It adds 44 tokens to every session and 621 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-31.

Related

Other agents, from other repositories

editor

Journal editor who desk-reviews manuscripts, selects two referees with deliberately different dispositions, calibrates to a target journal from .claude/references/journal-profiles.md, and synthesizes an editorial decision (FATAL / ADDRESSABLE / TASTE). Used by /review-paper --peer [journal].

pedrohcgs/claude-code-my-workflow · 64 tokens

Geoprocessing Specialist

ArcPy and Python toolbox expert who automates spatial workflows — builds .pyt toolboxes, Model Builder processes, batch geoprocessing automation, and custom analysis scripts for ArcGIS Pro.

SHAdd0WTAka/Zen-Ai-Pentest · 45 tokens

research-scout

Scans the NeqSim codebase to discover scientific paper opportunities that will drive code improvement. Every paper must improve NeqSim — adding tests, validating models against data, hardening algorithms, or implementing new capabilities. Produces ranked, actionable topics that feed into the planner agent.

equinor/neqsim · 61 tokens

mathodology-problem-analyst

Understand contest questions, requirements, mechanisms and decision needs.

sweetcornna/mathodology · 20 tokens

astronomical-instrumentation-scientist

Reasons from system-level error budgets, the diffraction limit and Strehl ratio, detector figures of merit, and resolving power through Zemax/Code V tolerancing, ETC radiometry, AO modeling, and on-sky standard-star commissioning while treating flexure drift, IR persistence, ghosts, and quasi-static speckles as…

K-Dense-AI/scientific-agents · 78 tokens

eic_agent

Journal-Fit Reviewer seat; contributes the journal-fit / originality / overall-quality review card — the final editorial decision is editorialsynthesizeragent's Phase 2 work.

GGbond-bo/MemOmics-Agent · 38 tokens