Introduction¶
When asking “Will it rain in Beijing today?” or “What’s the temperature in Shenzhen this weekend?” in a conversation, if the model relies only on training data or ad-hoc web search, the location, timeliness, and data sources often don’t align. Connecting to a weather Open API yourself requires maintaining API keys, administrative region codes, and response formats. Below is an introduction to Tencent Weather (@tencent-adm/tencent-weather) on SkillHub: it encodes the query workflow into a generic SKILL.md, so the Agent first checks the environment according to the documentation, then retrieves current conditions and forecasts via the Tencent News CLI.
What Is This¶
Tencent Weather is an Agent Skill for querying “current weather and weather forecasts,” published by Tencent Weather. On SkillHub, its coordinate is @tencent-adm/tencent-weather, current version 1.0.5, source labeled as enterprise, category life-service, and tagged with requires_api_key=true (you must configure an API Key before calling the underlying capabilities).
In short: when a user asks about the weather in a location in natural language, an Agent with this Skill installed will use the weather capability of tencent-news-cli, covering city-level and district/county-level administrative divisions in China. The data and display rules follow the CLI’s actual output, and the Skill requires the result to end with “Source: Tencent Weather.”
Core Features¶
Based on the SKILL.md in the Skill package and the official description, the verified capabilities include:
- Current Conditions and Forecasts: Queried via the CLI’s
weather-related commands; as of the documentation’s description, the comprehensive response can include current conditions, sunrise/sunset, future weather, life indices, seven-day license plate restrictions for some cities, and warning segments when there are active warnings in the local area (whether they appear depends on the specific query, not a fixed structure). - Administrative Region Granularity: Targets city-level and district/county-level divisions in China; the location parameter should use Adcode (e.g., Beijing
110000). When a user only provides a place name, it must be converted before querying. - Environment Gatekeeping: Before querying, use
cli-stateto check whether the CLI is installed, whether an update is needed, and whether the API Key is configured; if not ready, the Skill requires providing actionable installation and configuration instructions rather than a generic error. - Boundary Description: For scenarios specifically asking about warnings/abnormal weather, the documentation points to the same series’
tencent-weather-alert; subscription and scheduled reminder features are currently not supported by the CLI and this Skill. - Failure Strategy: After a CLI execution failure, do not switch to web search or other data sources for supplementary queries.
Installation and Enablement¶
1. Install the SkillHub CLI (if not already installed)¶
command -v skillhub && skillhub --version
If not installed, you can run the full installation or only the CLI (follow the SkillHub installation documentation):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
2. Install the Skill to the current Agent’s skills directory¶
When installing, you must use --dir to point to the skills directory actually read by the current Agent; otherwise, it will default to ./skills/ and may not be recognized. Common paths (same as the official installation documentation):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
Install Tencent Weather:
skillhub install tencent-weather --namespace tencent-adm --dir ~/.cursor/skills
Replace --dir with the directory corresponding to your current environment. The SkillHub page also supports sending the following script to the Agent, letting it install @tencent-adm/tencent-weather according to https://skillhub.cn/install/skillhub.md.
3. Install and configure tencent-news-cli¶
The Skill depends on the global (or compatible path) tencent-news-cli, which works with scripts/run-cli.sh / run-cli.ps1 in the Skill directory.
macOS / Linux:
curl -fsSL https://mat1.gtimg.com/qqcdn/qqnews/cli/hub/tencent-news/setup.sh | sh
Windows PowerShell:
irm https://mat1.gtimg.com/qqcdn/qqnews/cli/hub/tencent-news/setup.ps1 | iex
After installation, reopen the terminal and confirm availability with tencent-news-cli help.
API Key: Open https://news.qq.com/exchange?scene=appkey in a browser to obtain the Key according to the page, then set it in the local terminal (do not send the real Key to the Agent or write it into a public repository):
tencent-news-cli apikey-set YOUR_KEY
tencent-news-cli apikey-get
The Skill can also set it through the wrapper script (YOUR_KEY is a bare value, without quotes):
sh scripts/run-cli.sh apikey-set KEY
sh scripts/run-cli.sh apikey-get
For Windows, use powershell scripts/run-cli.ps1 apikey-set KEY and other commands; see references/env-setup-guide.md in the Skill package for details.
Typical Usage¶
After the environment is ready, the most common way on the user side is natural language questions, e.g., “What’s the weather like in Shanghai’s Pudong New Area today?” or “Use Adcode 110000 to check Beijing’s weather for the next few days.” The Agent executes in phases according to the Skill.
Phase 1: State Check (in the Skill directory, macOS / Linux example):
sh scripts/cli-state.sh
Pay attention to cliExists, update.needUpdate, and apiKey.status (configured / missing / error) in the JSON. If the CLI is not installed or the Key is missing, first complete the installation and apikey-set in the previous section, then proceed to the query.
Phase 2: Weather Query (commands follow the current CLI’s help weather; don’t hard-code subcommands):
sh scripts/run-cli.sh help weather
Choose commands based on the help; the documentation states that as of 2026-08-07, the CLI mainly uses a single weather command, with common parameters including --adcode (when not passed, it may default to the region based on IP). Example (Adcode must match the location):
sh scripts/run-cli.sh weather --adcode 110000
If the CLI already returns formatted Markdown text, the Skill requires outputting it as-is; if it is structured fields, then organize it into a readable result including location, phenomenon, temperature, etc., and keep **Source: Tencent Weather**.
Use Cases and Notes¶
Who It’s For
- Developers or teams working in clients that support Skills, such as Cursor, Claude Code, Codex, who want stable in-conversation weather queries for Chinese cities and districts/counties.
- Those willing to use the Tencent News CLI + API Key and accept that query results come entirely from this chain (the Skill prohibits switching to other sources on failure).
Limitations and Notes
- API Key must be configured: SkillHub tag
requires_api_key=true; if there is no Key or the Key is invalid, first complete the acquisition andapikey-setaccording to the documentation, and don’t misreport 401/403 as “no data.” - Commands change with CLI versions: Before each query, follow the
help weatheroutput; the parameter descriptions in the documentation are for reference only. - Warning-specific queries: When a user only asks “are there any warnings, recent abnormal weather,” use
tencent-weather-alert, which differs from the regular weather query of this Skill. - No subscription push: Don’t expect the Skill to implement scheduled reminders or proactive push notifications.
- Platform data follows SkillHub: As of the data crawl, this Skill has a rating of 100000, 3503 downloads, and 26 installations; the page data will update, follow the SkillHub detail page.
Conclusion¶
The Tencent Weather Skill encodes “environment check → CLI weather query → standardized output” into an Agent-executable description, suitable for querying current conditions and forecasts at the granularity of Chinese administrative regions. After installing the Skill, remember to complete the tencent-news-cli and API Key, then let the Agent follow cli-state and help weather for queries.
- SkillHub page: https://www.skillhub.cn/skills/tencent-adm/tencent-weather
- Official entry: https://api.skillhub.cn/tencent-adm/tencent-weather