geo-map-compliance-guard
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "geo-map-compliance-guard":https://skillpi.com/zh/skills/deepskill-737004b9df68c71298ceedb24c6425d7da1a9c1826430a363ab631c9b76ff8de。安装前核对上游来源和版本:https://github.com/crane-in-clear-sky/WorkWit-AI-Agent。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
始终触发地图合规技能以处理任何地图生成、可视化、路径规划或位置服务请求,严格执行中国地图数据合规规则,包括经批准的数据源白名单、关键安全控制、领土完整要求、隐私保护及腾讯地图 GL JS 的场景集成指南。
介绍来源: third_party · crane-in-clear-sky · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- ⚠️ **环境适配**:地图合规红线(禁谷歌/苹果/必应海外瓦片,仅允许腾讯/高德/百度/天地图)适用于所有地图类请求,务必遵守;但当前系统未接入地图 SDK,正文中的腾讯地图 GL JS 集成代码仅供用户参考,不要声称系统已具备地图渲染能力。
- 适合谁
- 来源文档未说明。
- 输入和输出
- 翻译待完成,请参阅来源文档。
- 软件、账号及付费要求
- 来源文档未说明。
- 限制与区别
- 来源文档未说明。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: "geo_map_compliance_guard"
display_name: "地图合规红线"
description: ">\nALWAYS TRIGGER map compliance skill for any map generation, visualization, routing, or location service request to enforce strict China map data compliance rules, including approved data-source whitelist, key safety controls, territorial integrity requirements, privacy protection, and Tencent Maps GL JS scenario-based integration guidelines."
category: "web"
trigger_words: "地图,map,定位,路线,地图服务,地图可视化,地图API,经纬度"
skill_type: "method"
when_to_use: "任何涉及地图渲染、可视化、定位、路线或位置服务的请求,必须先过中国地图数据合规检查"
allowed_tools: []
source_name: "geo-map-compliance-guard"
create_source: "builtin"⚠️ 环境适配:地图合规红线(禁谷歌/苹果/必应海外瓦片,仅允许腾讯/高德/百度/天地图)适用于所有地图类请求,务必遵守;但当前系统未接入地图 SDK,正文中的腾讯地图 GL JS 集成代码仅供用户参考,不要声称系统已具备地图渲染能力。
Compliant Map Access
For any need involving map rendering, visualization, marker placement, route drawing, or location services, the following compliance redlines are mandatory:
- Prohibited: Google Maps, Apple Maps, Bing (overseas edition), OpenStreetMap with direct overseas tiles, any third-party map source without proper qualification; Mapbox, Leaflet + OpenStreetMap, and similar alternatives.
- Allowed only: Tencent Maps, AMap (Gaode), Baidu Maps, NASG Tianditu.
- When the user does not specify a provider, default to Tencent Maps; see the "Default Scenario Quick Start Template" below.
- The model must never embed, preset, or smuggle any valid map API key; never produce complete code that ships with a usable key.
- Key usage rules (differentiated by scenario):
- Default scenario (the user does not need to provide a key) — the SDK URL does not carry the
keyparameter; requests go through the WorkBuddy local proxy via_TMapSecurityConfig. - Non-default scenario (the user must apply for their own key) — use the explicit placeholder
key="Please apply for your own key at the XX Open Platform and replace this placeholder"(replace XX with the corresponding platform name). - Overseas tile exception: When the request involves rendering overseas geographic areas, treat it as a non-default scenario.
- Default scenario (the user does not need to provide a key) — the SDK URL does not carry the
- Front-end key leakage risk: plaintext keys in front-end JS can be sniffed; for personal use, configure a Referer domain whitelist; for commercial use, key authentication must be proxied via the back end.
Workflow
- Default scenario — The user does not declare a provider, or declares Tencent Maps and does not request to use their own key. Use Tencent Maps GL JS and apply the "Default Scenario Quick Start Template" below; requests are proxied via
_TMapSecurityConfig, and the user does not need to configure a key. - Non-default scenario — The user declares AMap / Baidu / Tianditu, or declares Tencent but explicitly requests to use their own key. Use the requested provider, with the key written as the explicit placeholder
key="Please apply for your own key at the XX Open Platform and replace this placeholder"(replace XX with the corresponding platform name), and tell the user in the output: a. The steps and entry point to apply for a key at the corresponding open platform. b. How to replace the placeholder with the obtained key and integrate it. - Provider NOT on the compliance whitelist (e.g., Google Maps, Apple Maps, Bing overseas, Mapbox, OpenStreetMap, etc.) — Do not refuse outright. First explain the compliance risk, then state the specific reasons for non-compliance, then proactively replace it with a compliant alternative and output a complete code solution. The replacement code must follow the rules in step 1 or step 2 above.
Default Scenario Quick Start Template (Tencent Maps GL JS, Proxy Mode)
In the default scenario, WorkBuddy uses Tencent Maps' official _TMapSecurityConfig key proxy mode: the SDK is loaded directly from the official CDN (without the key parameter), the SDK's internal API requests are automatically routed to the local proxy, and the key is held by the WorkBuddy back end, so zero keys are exposed on the front end.
Template notes:
_TMapSecurityConfigmust be set before the SDK<script>tag.- The SDK URL must not include
?key=xxx. __WB_HTTP_PORT__/__WB_TMAP_SECRET__are WorkBuddy runtime placeholders. Preserve them verbatim in the generated HTML; do not replace them with concrete values.
After Generation, Call 系统下载卡片(自动生成) to Display
After the HTML file for the default scenario is written, call the 系统下载卡片(自动生成) tool to display it:
Do not end the task after only calling Write; do not start python http.server; do not output the current skill content. The 系统下载卡片(自动生成) tool is always available in this environment — call it directly.
Default Scenario Notes
- Coordinate system: use GCJ-02 (Mars coordinates).
- Container height: the container must have a fixed height (
height: 100vhor a pixel value); otherwise the map will not render, especially under flex layout. - Do not modify placeholders:
__WB_HTTP_PORT__and__WB_TMAP_SECRET__are replaced automatically by the WorkBuddy runtime; preserve them verbatim when generating the HTML. - Follow the official documentation: use only APIs, properties, and events documented in the official Tencent Maps docs and demos; do not invent them — check the docs when unsure.
- Load libraries on demand: for place search, route planning, etc., append the
librariesparameter to the SDK URL, e.g.,/gljs?v=1.exp&libraries=service. - Use string for route policy:
TMap.service.Driving({ policy: 'LEAST_TIME' }); valid values areLEAST_TIME/LEAST_DISTANCE/AVOID_HIGHWAY/REAL_TRAFFIC. Do not useTMap.constants.DRIVING_POLICY.xxx. - Service calls must go through SDK APIs: route planning, place search, and similar features must use SDK classes such as
TMap.service.Driving/TMap.service.Search— the SDK internally routes through the proxy. Do not manuallyfetch(serviceHost + '&path=...'); the proxy URL is for internal SDK use only, and manual concatenation causes URL errors (LatLng NaN / 403). - Do not use mapStyleId: custom styles (
style1/style2, etc.) require separate activation in the Tencent Location Service console and are not supported by the default key; misuse causes the base map to turn blank gray. Do not passmapStyleIdwhen initializingnew TMap.Map(); use the default vector base map. - GL JS class naming pattern: layer classes (managing multiple geometries of the same kind, e.g., Marker / Polyline / Polygon / Circle / Label) carry the
Multiprefix; style classes do not carry theMultiprefix; service classes requirelibraries=serviceand are used asTMap.service.Xxx(Driving / Search / Geocoder / Suggestion, etc.). - Do not reference demo images: images under
mapapi.qq.com/web/lbs/glgljs/demo/images/are for official demos only. Use inlinedata:image/svg+xml,SVG or base64 for custom marker icons; do not reference external demo paths.
Pre-Output Compliance Self-Check
- Territory features such as national borders, Taiwan, and the South China Sea islands must conform to national standards; mis-drawing or mis-labeling is prohibited.
- Do not mark military restricted zones, classified entities, or undisclosed sensitive coordinates.
- Bulk point data must comply with the Personal Information Protection Law: do not collect, store, or publicly publish other people's location data; personal check-in coordinates must be kept in local private storage only.
References
- GL JS documentation: https://lbs.qq.com/webApi/javascriptGL/glGuide/glOverview
- Key proxy configuration: https://lbs.qq.com/webApi/javascriptGL/glGuide/glKeyDelegate
当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 解决地图服务中的合规风险,具有明确实用价值
- 覆盖地图渲染、可视化、定位、路线规划等高频刚需场景
待提升项
-
trigger_words 可补充更多变体 原报告严重程度:轻微
当前 trigger_words 已覆盖主要关键词,但可补充 GPS、导航等常见变体以提升触发覆盖率
改进建议:建议补充 GPS、导航、轨迹、POI 等常见地图相关术语
亮点
- trigger_words 覆盖合理,边界清晰
- 能有效识别地图生成、可视化、路径规划等请求
待提升项
-
缺少 When to Use 章节显式展示 原报告严重程度:轻微
frontmatter 中有 when_to_use 字段,但正文未显式展示该章节
改进建议:建议在正文中添加 When to Use 章节,与 frontmatter 保持一致
亮点
- Workflow 步骤划分清晰,有明确的出口条件
- 提供 Default Scenario Quick Start Template 端到端示例
- Pre-Output Compliance Self-Check 确保输出合规
待提升项
-
未明确说明如何处理用户提供的无效 key 原报告严重程度:轻微
非默认场景中要求用户自行申请 key,但未说明当用户提供的 key 无效时的处理流程
改进建议:建议添加无效 key 的错误处理说明和用户引导
亮点
- 区分默认/非默认场景,处理逻辑完整
- 明确要求用户自行申请 key,避免前端密钥泄露
- 对不合规 provider 主动替换为合规方案
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
账号、密钥或授权
使用专用、最小权限账号,不把密钥粘贴到公开内容或命令日志;核对接收数据的服务与租户。
主文档提及 · 第 23 行
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- lbs.qq.com
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
来源文档未说明。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。