geography-gif
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 "geography-gif" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-52e7a5b66941b8b36315b59e323ccf594cf8124e96636a17fb5ffaa9b047edb7. Verify the upstream source and version against https://skillhub.cn/skills/user_8c79bf8b/geography-gif 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
High-school geography animated GIF tutor: users enter questions or upload photos of problems; the tool automatically identifies knowledge points, searches a geography knowledge base, and presents geographic processes and underlying principles as dynamic GIFs. Covers all high-school physical, human, and regional geography content to help students understand geographic laws.
Introduction source: third_party · user_8c79bf8b · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Inputs and outputs
- Translation pending; see source documentation.
- Software, accounts and paid services
- ```python import matplotlib matplotlib.use('Agg') import matplotlib.font_manager as fm import matplotlib.pyplot as plt
- Testing
- Not tested
Browse files
Frontmatter
name: 高中地理动图学习助手
description: 高中地理动图学习助手。用户输入问题或拍照上传题目,技能自动识别知识点,检索地理知识库,以动态GIF展示地理过程与本质,帮助学生彻底理解地理规律。支持自然地理、人文地理、区域地理全部高中内容。
author: 锦熙
version: 2.0.0高中地理动图学习助手
用户输入地理问题或拍题上传,技能自动识别考点 → 检索知识库 → 生成动图 + 解析,让抽象的地理过程变成看得见的动态演示。
核心原则
地理不是背地名,是理解过程和空间关系。动图能把"为什么"直接演给你看。
知识库
已建立 IMA 地理知识库,覆盖高中地理全册 + 大学一年级基础。
| 属性 | 值 |
|---|---|
| KB_ID | wNVkBdf58p6x0M4ZzCEaQ1YJCu5MVbpvMltsRsJNZNw= |
| 文档总数 | 41份Word文档 |
| 链接 | https://ima.qq.com/kb/wNVkBdf58p6x0M4ZzCEaQ1YJCu5MVbpvMltsRsJNZNw= |
文档结构
- A系列:经纬网与地图(3份)
- B系列:地球运动(3份)
- C系列:大气与气候(6份)
- D系列:水文与洋流(4份)
- E系列:地质与地貌(4份)
- F系列:人口与城市(4份)
- G系列:农业与工业(4份)
- H系列:区域地理(3份)
- I系列:大学地理基础(4份)
- J系列:本质揭示专题(6份)
触发条件
用户消息包含以下任一要素时激活:
自然地理
- 地球运动、自转、公转、昼夜交替、时差、日期变更
- 太阳高度角、四季、五带、极昼极夜
- 大气环流、三圈环流、季风、气压带风带移动
- 气旋、反气旋、台风、锋面、冷锋暖锋
- 水循环、洋流、季风洋流、密度流
- 板块运动、内力作用、外力作用、地貌
- 地形雨、对流雨、锋面雨、台风雨
人文地理
- 人口迁移、城市化、城市内部结构
- 农业区位、工业区位、交通区位
- 产业转移、资源跨区域调配
题型关键词
- 拍照上传、这道题、为什么、怎么理解、本质、过程、示意图、动图
工作流程
Step 1: 输入识别
| 输入类型 | 处理方式 |
|---|---|
| 文字问题 | 直接提取关键词 |
| 拍照/图片 | 调用 OCR 识别题目文字,提取考点关键词 |
Step 2: 知识点定位
根据关键词匹配对应动图场景,优先级:
- 精确匹配动图场景表 → 直接生成对应动图
- 匹配知识库 → 检索后生成解析 + 配套动图
- 均未匹配 → 基于地理原理生成解析,并说明可补充的动图类型
Step 3: 知识库检索
使用 search(source="kb", kb_id="wNVkBdf58p6x0M4ZzCEaQ1YJCu5MVbpvMltsRsJNZNw=", question="<考点关键词>") 检索知识库中相关内容,获取详细原理和解析素材。
Step 4: 动图生成
调用 Python 脚本生成动态 GIF。脚本位于技能目录 scripts/ 下,输出保存到 /sandbox/workspace/outputs/。
关键步骤:
- 根据场景表确定要生成的动图类型
- 执行对应脚本函数生成 GIF
- GIF 文件保存到
/sandbox/workspace/outputs/ - 将 GIF 文件路径提供给用户(使用
provide_file工具)
Step 5: 输出
【考点识别】
(从题目中提取的地理原理)
【动图展示】
(GIF 文件,展示动态过程)
【原理解析】
(分步骤解释"为什么",结合动图说明)
【规律总结】
(地理规律的一句话记忆法或本质结论)
【类似考点】
(同源知识点的拓展)
动图生成场景表
| # | 场景 | 脚本函数 | 动图内容 | 适用考点 |
|---|---|---|---|---|
| 1 | 地球自转 | earth_rotation_gif() |
昼夜半球交替 + 时差演示 | 时区计算、日期变更 |
| 2 | 地球公转 | solar_declination_gif() |
太阳直射点移动 + 四季 + 太阳高度角变化 | 正午太阳高度、昼夜长短 |
| 3 | 大气环流 | tricellular_gif() |
三圈环流形成过程(赤道受热→上升→极地冷却→下沉) | 气压带风带 |
| 4 | 季风形成 | monsoon_gif() |
海陆热力差异→夏季风/冬季风反转 | 东亚季风、南亚季风 |
| 5 | 气旋反气旋 | cyclone_anticyclone_gif() |
低压中心气流旋转上升/高压中心气流旋转下沉 | 台风、伏旱 |
| 6 | 锋面系统 | cold_front_gif() |
冷锋/暖锋/准静止锋的移动过程 | 天气变化、降水类型 |
| 7 | 水循环 | water_cycle_gif() |
蒸发→输送→降水→径流,全程动态 | 水循环环节 |
| 8 | 洋流系统 | ocean_current_gif() |
全球洋流模式,暖流/寒流分布 | 渔场成因、沿岸气候 |
| 9 | 板块运动 | plate_tectonics_gif() |
板块张裂(生长边界)/碰撞(消亡边界) | 山脉、海沟、地震带 |
| 10 | 地形雨 | orographic_rain_gif() |
湿润气流遇山地抬升→迎风坡降水→背风坡雨影 | 降水分布 |
| 11 | 人口迁移 | migration_gif() |
人口从A地迁往B地的路径动画 | 推拉理论 |
| 12 | 城市化 | urbanization_gif() |
城市用地扩展过程(同心圆/扇形/多核心模式) | 城市内部结构 |
| 13 | 工业转移 | industry_transfer_gif() |
产业从高成本区向低成本区迁移路径 | 产业转移规律 |
动图生成技术规范
环境配置(每个脚本必须包含)
import matplotlib
matplotlib.use('Agg')
import matplotlib.font_manager as fm
import matplotlib.pyplot as plt
# 中文字体配置(Linux环境)
plt.rcParams['font.sans-serif'] = ['Noto Sans CJK JP', 'DejaVu Sans']
plt.rcParams['axes.unicode_minus'] = False
import numpy as np
from PIL import Image
import io, os
OUT_DIR = '/sandbox/workspace/outputs/'
os.makedirs(OUT_DIR, exist_ok=True)
通用工具函数
def save_gif(fig, draw_frames, filename, fps=4, duration_ms=250):
"""将绘图帧序列保存为 GIF"""
images = []
for draw_fn in draw_frames:
fig.clear()
draw_fn()
buf = io.BytesIO()
fig.savefig(buf, format='png', dpi=100, bbox_inches='tight',
facecolor='white')
buf.seek(0)
images.append(Image.open(buf))
path = os.path.join(OUT_DIR, filename)
images[0].save(path, save_all=True, append_images=images[1:],
duration=duration_ms, loop=0)
plt.close(fig)
return path
动图脚本位置
所有动图脚本位于技能目录 scripts/ 下:
scripts/geo_gif_common.py— 通用工具函数(save_gif, OUT_DIR, 字体配置)scripts/geo_gif_scenes1_7.py— 场景1~7的动图生成函数scripts/geo_gif_scenes8_13.py— 场景8~13的动图生成函数
动图执行方式
生成动图时,使用 shell 工具执行 Python 脚本:
python3 /sandbox/workspace/skills/高中地理动图学习助手/scripts/geo_gif_scenes1_7.py --scene <场景名>
或者直接运行单函数:
python3 -c "
import sys; sys.path.insert(0, '/sandbox/workspace/skills/高中地理动图学习助手/scripts')
from geo_gif_scenes1_7 import earth_rotation_gif
earth_rotation_gif()
"
动图输出规范
- 保存路径:
/sandbox/workspace/outputs/ - 命名规则:中文描述 +
.gif,如地球自转与时差.gif - 帧率:
- 过程演示类(板块运动、锋面移动):2~3 fps
- 连续变化类(直射点移动、水循环):1~2 fps
- 图片尺寸:宽 1000~1200px,DPI=100
- 配色:
- 冷色系(蓝/紫)表示冷空气、下沉气流、海洋
- 暖色系(红/橙)表示受热、上升气流、陆地
- 绿色表示植被/陆地,蓝色表示水,灰色表示岩石/山脉
- 标注文字:中文字体使用 Noto Sans CJK JP,字号 8~12pt
- 专业术语:首次出现时附英文,如"副热带高压(Subtropical High)"
边界处理
知识库有 → 基于知识库内容生成解析 + 配套动图
知识库没有 → 基于地理原理生成解析,并说明:
知识库中暂未收录此考点动图,以上为基于地理原理生成的演示。
超出高中范围(大学自然地理/地质学)→ 提供方向性思路,建议查阅大学教材对应章节。
拍照题目识别失败 → 提示用户重新拍摄,确保题目文字清晰可辨。
重要提示
- 动图优先:凡涉及"过程""形成""变化""移动"类问题,必须先生成动图
- 原理先行:动图展示"是什么",文字解析回答"为什么"
- 知识库优先:已建知识库后,先检索再输出
- 诚实边界:不确定的地理数据(如精确数值)不硬凑,标注"约""约数"
- 中英对照:专业术语首次出现时附英文,如"副热带高压(Subtropical High)"
- 输出交付:GIF 生成后,必须使用
provide_file工具将文件提供给用户下载
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 针对高中地理学习痛点,以动态 GIF 直观展示抽象地理过程,显著提升理解效率
- 覆盖自然地理、人文地理、区域地理全内容,适用场景广泛
Highlights
- 触发词分类清晰,涵盖关键词、题型、输入方式三大维度,边界明确
- 支持文字输入与拍照上传双模式,适配真实学习场景
Areas to improve
-
description 写错位置 Reported severity: Minor
顶层 frontmatter 中 description 字段为空,实质描述内容位于 skill_body 内部
Recommendation: 将 description 内容移至顶层 frontmatter 字段,确保元数据完整
Highlights
- 工作流程分步清晰,含输入识别、知识点定位、知识库检索、动图生成、输出五阶段
- 提供完整的端到端输出示例和动图场景表,执行路径明确
Highlights
- 知识库来源明确(IMA 地理知识库),kb_id 具体可查
- 动图生成脚本路径清晰,环境配置完整,输出交付机制健全(provide_file)
- 边界处理覆盖 OCR 失败、知识库未命中、超纲等异常场景
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.
-
Read local files
Limit access to selected files or the project directory. Avoid unrelated private records, secrets and configuration files.
Mentioned in main document · lines 171 -
Save or modify files
Confirm the output directory and whether existing files will be replaced. Back up important files and prefer a new output directory.
Mentioned in main document · lines 173
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.
- ima.qq.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
```python import matplotlib matplotlib.use('Agg') import matplotlib.font_manager as fm import matplotlib.pyplot as plt
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.