weather-3hour-interpret-traffic-10dim
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "weather-3hour-interpret-traffic-10dim" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-41ff723ad31e17b96444b9aa485e2544ffae9fe77dff30172f29c7c9643e4ffe. Verify the upstream source and version against https://skillhub.cn/skills/user_0eb3f130/weather-10traffic before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Provides a 7-day traffic-weather risk forecast and interpretation for a specified city in 3-hour intervals (50 periods). Given a city name (supports fuzzy matching) and optional time points, returns risk analysis and defensive recommendations across 10 traffic risk dimensions: physiological state of drivers/passengers, driver behavior, vehicle performance, vehicle faults and risks, road surface condition, road traffic conditions, traffic management, cargo quality, transport safety, and transport efficiency. Example trigger phrases: traffic weather, traffic risk forecast, road surface risk, driving risk, transport-safety weather, 10-dimension traffic, traffic weather interpretation.
Introduction source: third_party · user_0eb3f130 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Inputs and outputs
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: weather-3hour-interpret-traffic-10dim
description: |
未来7天10维度交通天气风险预报skill。输入城市名称(支持模糊匹配)+ 可选时间点,
返回该城市未来7天(每3小时1个时段,共50个时段)在10个交通风险维度上的风险分析
与防御建议。10个维度分别为:司乘人员生理状态、司机驾驶行为、车辆性能、车辆故障
与风险、路面状态、道路通行条件、交通管理、货物品质、运输安全、运输效率。
触发词:交通天气、交通风险预报、路面风险、行车风险、运输安全天气、
10维度交通、交通天气解读。未来7天10维度交通天气风险预报 skill
用途
对指定城市未来7天逐3小时(共50个时段)的天气信息,从10个交通风险维度进行深度分析,并给出每个维度的风险描述、防御措施和总结短语。
10个交通风险维度:
| 编号 | 维度 | 数据字段 |
|---|---|---|
| a | 司乘人员生理状态 | a1(风险描述) / a2(防御措施) / a3(总结短语) |
| b | 司机驾驶行为 | b1 / b2 / b3 |
| c | 车辆性能 | c1 / c2 / c3 |
| d | 车辆故障与风险 | d1 / d2 / d3 |
| e | 路面状态 | e1 / e2 / e3 |
| f | 道路通行条件 | f1 / f2 / f3 |
| g | 交通管理 | g1 / g2 / g3 |
| h | 货物品质 | h1 / h2 / h3 |
| k | 运输安全 | k1 / k2 / k3 |
| p | 运输效率 | p1 / p2 / p3 |
数据源
JSON 数据由 https://diga2026-1252033877.cos.ap-beijing.myqcloud.com/kg3hour26/{city_id}traffic.json 提供。
city_id:9位数字城市代码,可在city_data.py的CITY_DICT中按名称查找- 返回 JSON 数组,按
date+hour升序排列,共 50 条记录(7天 × 8个3小时间隔:2/5/8/11/14/17/20/23) - 每条记录包含 30 个文本字段(a1-a3、b1-b3、c1-c3、d1-d3、e1-e3、f1-f3、g1-g3、h1-h3、k1-k3、p1-p3)+ city/date/hour 三个索引字段
使用方式
命令行
# 1. 模糊查询城市
python3 main.py search "京" # 列出所有"京"字开头的城市
python3 main.py search "广州" # 精准匹配
# 2. 查看指定城市所有50个时段(默认从今天起)
python3 main.py query "北京"
# 3. 查询特定日期(YYYY-MM-DD)或日期+小时
python3 main.py query "上海" --date 2026-06-15
python3 main.py query "深圳" --date 2026-06-15 --hour 14
# 4. 仅查看高风险时段
python3 main.py query "成都" --risk-only
# 5. 仅输出指定维度
python3 main.py query "杭州" --dims "a,b,c"
# 6. 查看帮助
python3 main.py --help
作为模块调用
from main import TrafficWeather10Dim
tw = TrafficWeather10Dim()
# 模糊查询城市
results = tw.search_city("北京") # -> [('101010100', '北京'), ...]
city_id = results[0][0] # '101010100'
# 拉取并展示数据
report = tw.query("北京")
print(report)
# 指定时间
report = tw.query("北京", date="2026-06-15", hour=14)
print(report)
# 仅看高风险
report = tw.query("北京", risk_only=True)
# 仅看部分维度
report = tw.query("北京", dims="a,b")
匹配规则
城市名称模糊匹配
- 去除空格、全角符号,统一中文比较
- 优先精准完全匹配;精准无果时再前缀匹配;前缀无果时再子串包含
- 同时按城市名模糊、ID 模糊(支持 6-9 位数字短码)
时间匹配
- 用户给定
date和hour时:- 找到当日
hour完全相等的记录 - 无精确匹配时,取距离目标时间最近(小时差绝对值最小)的记录
- 找到当日
- 用户只给定
date时:返回该日 8 个时段中风险最高(或第一个)的记录 - 用户不给时间:返回 50 个时段的关键摘要
文件结构
weather-3hour-interpret-traffic-10dim/
├── SKILL.md # 本文件
├── city_data.py # 内嵌的3249个城市ID-名称映射
├── main.py # 核心 skill 逻辑(命令行 + Python API)
└── test.py # 完整测试套件
输出格式
查询结果以分段标题 + 表格形式呈现,分10个区块对应10个维度,每块包含:
- 风险描述(a1/b1/c1/...)
- 防御措施(a2/b2/c2/...)
- 总结短语(a3/b3/c3/...)
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供未来7天逐3小时、10个交通风险维度的深度分析与防御建议
- 面向物流、出行、交通管理等高频刚需场景,实用价值高
Highlights
- 触发词覆盖全面,包括'交通天气''交通风险预报''路面风险'等,边界清晰
Areas to improve
-
缺少 When to Use 显式章节 Reported severity: Minor
文档结构完整,但未设置显式'When to Use'章节说明典型使用场景
Recommendation: 建议在'用途'章节后增加'When to Use'小节,列举典型用户场景(如物流调度、出行规划等)
Highlights
- Phase/步骤清晰,涵盖用途、数据源、使用方式、匹配规则、文件结构、输出格式
- 提供完整的命令行和模块调用示例,frontmatter 完整
Areas to improve
-
异常处理覆盖不足 Reported severity: Minor
未显式处理网络异常、JSON 解析失败、空结果等场景
Recommendation: 建议在 main.py 中增加 try-catch 块处理网络请求与数据解析异常,并提供友好错误提示
Highlights
- 工具来源明确(腾讯云 COS 链接 + city_data.py 内嵌映射)
- 支持城市名称模糊匹配与时间容错机制,提升用户体验
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- diga2026-1252033877.cos.ap-beijing.myqcloud.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.