← 返回 Skills 市场
murphys7017

和风天气查询功能

作者 murphys7017 · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
2423
总下载
2
收藏
16
当前安装
1
版本数
在 OpenClaw 中安装
/install qweather
功能描述
天气查询:使用和风天气(JWT+Host)获取实时天气与未来预报;支持城市名/LocationID/经纬度;缺省地点可用 QWEATHER_DEFAULT_LOCATION。
安全使用建议
This skill mostly does what it says (weather lookups), but it expects enterprise-style JWT credentials and a private key while the registry metadata declares no required secrets. Before installing, ask the author to: 1) explicitly list required env vars and the primary credential in the registry (PROJECT_ID, CREDENTIALS_ID, QWEATHER_PRIVATE_KEY_PATH or QWEATHER_API_HOST); 2) remove any checked-in private key files (or confirm the file is only a harmless placeholder) and instead require the private key path be provided via a secure env var or secret store; 3) confirm the API_HOST and other config are not hard-coded placeholders; and 4) document why QWEATHER_FREE_API_KEY and QWEATHER_DEFAULT_LOCATION are needed. If you cannot verify those, avoid installing or running the skill with real credentials on sensitive systems.
功能分析
Type: OpenClaw Skill Name: qweather Version: 1.0.0 The skill is designed to query weather data using the QWeather API, which requires JWT authentication. This involves reading a private key from a file (`lib/ed25519-private.txt` is a template, but the code in `lib/qweather_jwt_session.js` and `lib/gen_qweather_token.js` uses `fs.readFileSync` to load it). While this file access is necessary for the skill's stated purpose of JWT signing, it represents a high-risk capability (direct access to a private key file) that could be exploited if the `PRIVATE_KEY_PATH` configuration were maliciously altered. Additionally, the `gen_qweather_token.js` utility script logs the generated JWT token to the console, which could be a minor information leak in certain environments.
能力评估
Purpose & Capability
The skill's code and SKILL.md implement weather lookups via QWeather (and fallbacks to Open-Meteo), which matches the declared purpose. However, the implementation expects a QWeather JWT flow (PROJECT_ID, CREDENTIALS_ID, PRIVATE_KEY_PATH, API_HOST) but the registry metadata lists no required env vars/credentials. That mismatch (hidden/undeclared credentials) is unexpected for a simple weather skill.
Instruction Scope
SKILL.md instructs the agent to use the bundled tools (location lookup, now, forecast) and references env vars such as QWEATHER_DEFAULT_LOCATION and QWEATHER_PRIVATE_KEY_PATH. The code reads a private key file (CONFIG.PRIVATE_KEY_PATH) from disk, signs JWTs, and calls external APIs. The instructions are not overly broad, but they rely on reading local key material and several environment variables that are not declared in the skill metadata — this expands the runtime surface without making that explicit.
Install Mechanism
There is no install spec and no downloads. The skill is instruction+code only and uses standard Node libraries (crypto, axios). No external installers or remote archives are used.
Credentials
The code requires private key material and QWeather credentials (PROJECT_ID, CREDENTIALS_ID, PRIVATE_KEY_PATH, API_HOST) to use the enterprise JWT-backed API, and also checks process.env.QWEATHER_FREE_API_KEY and QWEATHER_DEFAULT_LOCATION in fallback code. None of these are declared in the skill's required env/credential metadata. Additionally the repo includes lib/ed25519-private.txt which does not contain a key but an openssl command wrapped in PEM markers — its presence is unusual and could be a placeholder or a mistaken checked-in secret. Requiring private keys or API keys without declaring them is disproportionate and surprising to users.
Persistence & Privilege
always is false and there is no code that attempts to modify other skills or global agent settings. The skill does read files from its own package (the configured PRIVATE_KEY_PATH) but does not request persistent system privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install qweather
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /qweather 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of weather-query skill for QWeather integration. - Provides real-time weather and forecasts using QWeather API (JWT+Host). - Supports queries by city name, LocationID, or latitude/longitude. - Allows “today/tomorrow/the day after/future N days” forecast expressions. - Automatically resolves location input or uses QWEATHER_DEFAULT_LOCATION if set. - Returns comprehensive weather details: condition, temperature, humidity, wind, observation time, and daily forecast highlights. - Outputs clear errors with env variable guidance on API failure.
元数据
Slug qweather
版本 1.0.0
许可证
累计安装 18
当前安装数 16
历史版本数 1
常见问题

和风天气查询功能 是什么?

天气查询:使用和风天气(JWT+Host)获取实时天气与未来预报;支持城市名/LocationID/经纬度;缺省地点可用 QWEATHER_DEFAULT_LOCATION。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 2423 次。

如何安装 和风天气查询功能?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install qweather」即可一键安装,无需额外配置。

和风天气查询功能 是免费的吗?

是的,和风天气查询功能 完全免费(开源免费),可自由下载、安装和使用。

和风天气查询功能 支持哪些平台?

和风天气查询功能 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 和风天气查询功能?

由 murphys7017(@murphys7017)开发并维护,当前版本 v1.0.0。

💬 留言讨论