← Back to Skills Marketplace
ruochenlyu

北京花粉监测

by RuochenLyu · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ Security Clean
139
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install beijing-pollen-monitor
Description
查询北京花粉实时监测和预报数据,生成包含区级浓度、站点趋势、总量预报与分类预报的结果。北京 16 个固定站点,每区一个,用区名指定。
README (SKILL.md)

查询北京公共花粉监测与预报数据。北京共 16 个固定监测站(每区一个),用区名指定查询目标。

使用场景

使用本 skill 当用户需要:

  • 某个区今天的花粉情况和建议(优先用 daily
  • 某个区当前监测和全市概况(用 report
  • 北京全市花粉概览(用 overview
  • 全部站点实时读数(用 stations
  • 单站点 24 小时历史趋势(用 history
  • 查询某个区的花粉预报(用 forecast
  • 每天固定时间发送某个区的晨报(用 daily
  • 结构化 JSON 用于下游自动化

不要使用本 skill:

  • 查询北京以外的花粉数据
  • 直接发送通知(本 skill 只负责查询,通知由调用方处理)

入口

./scripts/beijing-pollen-query.sh query --mode \x3Cmode> [options]

推荐工作流:默认晨报

用户说"查一下海淀今天花粉"或"每天给我发花粉情况"时,优先使用 daily 模式:

# 文本格式 — 适合直接展示给用户或推送通知
./scripts/beijing-pollen-query.sh query --mode daily --district 海淀 --format text

读取返回 JSON 的 .data.text 字段即为可读晨报。

# JSON 格式 — 适合程序进一步处理
./scripts/beijing-pollen-query.sh query --mode daily --district 海淀

daily 模式自动完成:当前监测 + 24h 相对变化 + 今天总量预报 + 明后天趋势 + 分类提示,不再强调北京其他区。

推荐工作流:即时查询

用户说"看一下海淀现在花粉高不高"时,使用 report 模式:

./scripts/beijing-pollen-query.sh query --mode report --district 海淀 --format text

report 模式自动完成:查询全市概览 → 定位目标站点 → 获取 24h 历史 → 汇总为即时简报。

推荐工作流:预报查询

用户说"看一下海淀明天花粉"或"海淀区花粉预报怎么样"时,使用 forecast 模式:

./scripts/beijing-pollen-query.sh query --mode forecast --district 海淀 --format text

forecast 模式返回:目标区总量等级预报 + 分类花粉预报 + 对应解释。

推荐工作流:定时晨报

用户说"每天早上 8 点发朝阳区今天花粉情况"时,优先使用 daily 模式:

./scripts/beijing-pollen-query.sh query --mode daily --district 朝阳 --format text

daily 模式自动完成:当前监测 + 24h 相对变化 + 今天总量预报 + 明后天趋势 + 分类提示,不再强调北京其他区。

模式选择

用户意图 模式 命令
某个区今天花粉情况 daily --mode daily --district 海淀
某个区的即时监测简报 report --mode report --district 海淀
全市概况 overview --mode overview
所有站点数据 stations --mode stations
某站点 24h 变化 history --mode history --district 朝阳
某个区的花粉预报 forecast --mode forecast --district 海淀
每日定时晨报 daily --mode daily --district 朝阳

参数

参数 说明 默认值
--district 区名,模糊匹配(海淀、海淀区均可)
--station-id 站点 ID(history 替代方式)
--format jsontext json
--limit 热点站点数量 5
--timeout-ms HTTP 超时(毫秒) 8000

可用区名:东城、西城、朝阳、海淀、丰台、石景山、门头沟、房山、通州、顺义、昌平、大兴、怀柔、平谷、密云、延庆

输出约定

  • 始终输出 JSON
  • 成功时 ok: true,失败时 ok: false 并附非零退出码
  • text 格式将可读文本包裹在 {"data":{"text":"..."}}
  • 无效区名时会列出所有可用区名
  • 主结果对象包含 value_familymeaning,用于区分区级实时、站点观测、总量预报、分类预报的不同语义

详细 JSON 结构见 references/api-contract.md

Usage Guidance
This skill appears coherent: it bundles a Bash script that uses curl and jq to query Beijing pollen APIs and format results as JSON/text. Before installing, you may (1) quickly review scripts/beijing-pollen-query.sh yourself to confirm there are no unexpected network endpoints or commands (it calls pollenwechat.bjpws.com), (2) run it in a controlled environment if you are concerned about outbound network requests, and (3) note it does not request any credentials or access to your local files. If you rely on a specific upstream service, verify that pollenwechat.bjpws.com is the intended data provider for your use.
Capability Analysis
Type: OpenClaw Skill Name: beijing-pollen-monitor Version: 1.0.1 The beijing-pollen-monitor skill is a legitimate tool designed to query and report pollen data for Beijing districts. The core logic in scripts/beijing-pollen-query.sh uses curl and jq to interact with a specific, relevant domain (pollenwechat.bjpws.com) and includes robust data normalization and error handling. There are no signs of data exfiltration, malicious execution, or prompt injection; the instructions in SKILL.md and the configuration in agents/openai.yaml are strictly aligned with the stated functionality.
Capability Assessment
Purpose & Capability
Name/description map directly to a shell script that queries Beijing pollen endpoints. Declared runtime requirements (curl, jq) and the included script (scripts/beijing-pollen-query.sh) are appropriate and expected for making HTTP requests and JSON processing.
Instruction Scope
SKILL.md restricts behavior to querying upstream pollen APIs and formatting results. Runtime instructions invoke the included script with explicit modes (daily/report/forecast/etc.). There are no instructions to read unrelated system files, collect arbitrary host data, or transmit data to endpoints outside the documented BASE_URL (pollenwechat.bjpws.com).
Install Mechanism
No install spec — the skill is instruction-only with a bundled script. No downloads, installers, or archive extraction are performed by the skill itself, minimizing install-time risk.
Credentials
No environment variables, credentials, or config paths are required. The script uses only network access to the documented upstream APIs; there are no requests for unrelated secrets or broad system credentials.
Persistence & Privilege
Skill is user-invocable and not forced-always. It does not request persistent/system-wide privileges or modify other skills' configs. Allowing autonomous invocation is the platform default and does not create additional incoherence here.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install beijing-pollen-monitor
  3. After installation, invoke the skill by name or use /beijing-pollen-monitor
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
Add forecast mode, daily briefing, and layered value explanations
v1.0.0
beijing-pollen-monitor 1.0.0 - 首次发布:支持查询北京16区花粉实时监测数据。 - 新增每日花粉简报,包含区级浓度、24小时趋势和全市概况。 - 支持多模式查询:report(简报)、overview(全市)、stations(所有站点)、history(单站点历史)。 - 提供结构化 JSON 和可读文本输出,便于自动化处理和用户推送。 - 支持模糊区名匹配及详细参数选项,易于集成至多场景工作流。
Metadata
Slug beijing-pollen-monitor
Version 1.0.1
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is 北京花粉监测?

查询北京花粉实时监测和预报数据,生成包含区级浓度、站点趋势、总量预报与分类预报的结果。北京 16 个固定站点,每区一个,用区名指定。 It is an AI Agent Skill for Claude Code / OpenClaw, with 139 downloads so far.

How do I install 北京花粉监测?

Run "/install beijing-pollen-monitor" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is 北京花粉监测 free?

Yes, 北京花粉监测 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does 北京花粉监测 support?

北京花粉监测 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created 北京花粉监测?

It is built and maintained by RuochenLyu (@ruochenlyu); the current version is v1.0.1.

💬 Comments