使用方法
- 复制安装命令,在自己的智能体环境安装前先检查源码包。
- 从原始文档核对所需工具、凭据和支持的宿主。
- 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/nphu0811/pmg-skills --skill pmg-map-motion开始前需了解
- 安装不包含模型订阅、API 额度或访问文件的权限。
- 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。
PMG Map Motion (pmg-map-motion)
Specialized motion intelligence for geographic maps, territorial markets, logistics routes, and location markers in PowerPoint presentations.
Core Mental Model
Preserve geographic truth, spatial proportions, and verified coordinates. - Landmass baselines settle into place to orient the viewer. - Location markers drop into verified coordinates with authoritative settling. - Hub radar rings ripple outward to indicate active regional clusters. - Logistics and travel routes progressively trace along the travel trajectory. - Telemetry and demographic overlays dock adjacent to active territory highlights.
Supported Patterns
| Pattern | Shared Primitive | Native PPTX Effect | Semantic Application |
|---|---|---|---|
| `region_highlight` | HIGHLIGHT | pulse / fade | Illuminates territory polygon with glowing accent fill. |
| `route_progression` | DRAW | wipe (directional) | Route path vector traces from origin to destination. |
| `marker_drop` | MOVE | fly_in (down) | Pin marker drops into geographic coordinate. |
| `marker_pulse` | HIGHLIGHT | pulse | Concentric radar ring ripples from active hub. |
| `geo_zoom` | FOCUS | scale (1.15x - 1.25x) | Macro push-in focusing on metropolitan sub-region. |
Python API Usage
from pmg.motion_planners import MapMotionPlanner
planner = MapMotionPlanner()
intents = planner.plan_motion({
"pattern": "route_progression",
"base_map_id": "vietnam_map",
"locations": [
{"id": "pin_hanoi", "label": "Hanoi Hub", "pulse_id": "pulse_hanoi"},
{"id": "pin_danang", "label": "Da Nang Node"},
{"id": "pin_hcmc", "label": "HCMC Hub", "pulse_id": "pulse_hcmc"},
],
"routes": [
{"id": "route_hn_dn", "direction": "down"},
{"id": "route_dn_hcm", "direction": "down"},
]
})
for intent in intents:
print(f"[{intent.target_id}] -> {intent.primitive.value} ({intent.semantic_purpose})")
