AI Agent Hub
Back to skills
Tencent Weather Query icon

Tencent Weather Query

Life Service Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please install @tencent-adm/tencent-weather according to https://skillhub.cn/install/skillhub.md.

About this skill

Problem it solves

Tencent Weather Query targets a concrete workflow: users ask for current conditions, hourly forecasts, or multi-day trends, while weather subcommands may vary across CLI versions. Hard-coding city names, parameter names, or guessed commands can break. The skill keeps weather lookups inside tencent-news-cli capabilities and lets the agent choose commands and parameters from the current CLI help.

How it works

The flow has two layers. First, the environment layer checks CLI presence, update status, and API Key readiness; if setup is missing, it follows install, update, or key-configuration steps, with all non-state commands executed through run-cli. Second, the query layer runs help weather first, then selects the command for real-time, forecast, or trend data. Location parameters should use Adcode when possible, for example 110000 for Beijing; missing time is treated as now or today. If the CLI returns complete Markdown or readable text, it is preserved. If it returns structured fields, the result is formatted to include location, weather phenomenon, temperature, and any other available fields.

Boundaries

The skill only reports information returned by the CLI or directly mapped from its fields; it does not add external weather data. If a CLI command fails, it stops instead of falling back to WebSearch or another source, and surfaces permission, Gatekeeper, security-software, or path issues for user handling.

Use Cases

  • When a user asks for Beijing's weather in an agent chat, it follows the current help weather output to call the real-time weather command and returns temperature and conditions.
  • It organizes Shanghai's three-day forecast into a readable list, separating dates, temperature, precipitation, and wind fields returned by the CLI.
  • When the user provides only a city name without an Adcode, it converts the name to the matching Adcode before running the weather command to avoid invalid location parameters.
  • If the query fails due to permissions, Gatekeeper, or security software, it follows the CLI error guidance instead of falling back to WebSearch for weather data.

Best For

  • Product engineers who need agents to query city weather through the Tencent Weather CLI and output temperature, conditions, and precipitation fields
  • Integration engineers debugging tencent-news-cli permissions, API Key setup, and help weather command mapping
  • Business developers who need weather results limited to actual CLI outputs without adding external weather data
  • Platform engineers maintaining run-cli script differences across macOS, Linux, and Windows while troubleshooting failed weather commands