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

.claude/agents/weather-agent.md

weather-agent is an agent for Claude Code from BuaaJoseph/claude-code-best-practice-zh. It costs 39 tokens per session (615 once invoked), scanned A, a copy of weather-agent, MIT.

An agent that retrieves the current weather in Dubai, United Arab Emirates, using Open-Meteo. It reports the temperature in the unit requested by the caller and can compare it with a previous reading.

In plain words
What is it for?
Getting and reporting Dubai's current temperature in Celsius or Fahrenheit, with a previous-reading comparison when available.
Why use it?
It removes the need to look up Dubai's current temperature manually. The input does not describe broader weather support.

Agent for Claude Code

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/buaajoseph/claude-code-best-practice-zh/weather-agent/github.svg)](https://agentmods.dev/agents/buaajoseph/claude-code-best-practice-zh/weather-agent)
Your own site
<a href="https://agentmods.dev/agents/buaajoseph/claude-code-best-practice-zh/weather-agent"><img src="https://agentmods.dev/badge/agents/buaajoseph/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/buaajoseph/claude-code-best-practice-zh/weather-agent"><img src="https://agentmods.dev/badge/agents/buaajoseph/claude-code-best-practice-zh/weather-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 615 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 91% 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.00039 $0.00615
Opus 5.5 $0.00016 $0.00246
Sonnet 5.5 $0.00008 $0.00123
Haiku 4.5 $0.00004 $0.00061

Measured 1mo ago against content hash 627633243a31, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-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 1mo 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

91% identical to weather-agent — 25 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/agents/weather-agent.md · 78 lines

What it actually says

天气代理

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

你的任务

按照预加载 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. 1mo ago First seen · 78 lines · 39 tokens per session scan A 627633243a31

Subscribe to this mod's changes

weather-agent is an agent published in the GitHub repository BuaaJoseph/claude-code-best-practice-zh (2 stars, last pushed 6mo ago), licensed MIT. It adds 39 tokens to every session and 615 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 91% identical to weather-agent, differing in 25 lines, and is treated as a copy.

Related

Other agents, from other repositories

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

Context7-Expert

Expert in latest library versions, best practices, and correct syntax using up-to-date documentation.

github/awesome-copilot · 22 tokens