skills/baidu-map-webapi/SKILL.md
百度地图 webapi 开发指南。在编写、审查或调试使用百度地图webAPI的代码时应运用此技能,也适用于直接调用百度地图API获取结果的场景。涵盖:地图位置搜索、POI检索、路线规划、建议出发时间、路线耗时预测、实时路况、行政区划查询、地址坐标转换、沿途交通事件、天气查询、智能推荐上车点等。当用户提及出发时间、导航路线、地点查询、坐标转换、地图相关开发需求时自动触发。
npx skillsauth add baidu-maps/webapi-skills baidu-map-webapiInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
百度地图 webapi 版本开发指南。包含地图位置搜索、路线导航、行政区划等核心模块的 API 说明和代码示例,既可直接调用 API 获取结果,也可帮助开发者快速集成百度地图服务。
遇到以下任意场景时,均应读取本指南并调用对应 API:
在使用本技能的任何场景中,请遵守以下通用准则:
百度地图提供两个服务端点,必须根据使用场景选择正确的端点:
| 端点类型 | Base URL | 适用场景 |
|---|---|---|
| 标准端点 | https://api.map.baidu.com/ | 正式开发、生产环境、为用户生成的代码 |
| 高级功能体验端点 | https://api.map.baidu.com/map_service/ | 百度地图官方提供,仅供大模型直接调用时快速体验高级权限功能 |
使用规则:
https://api.map.baidu.com/AK(Access Key)是使用技能之前的必须参数:
BMAP_WEBAPI_AK 中的 AKBMAP_WEBAPI_AK为空时, 提示用户:请先前往百度地图开放平台申请服务端的AKexport BMAP_WEBAPI_AK="百度地图AK"
$BMAP_WEBAPI_AK, 示例如下:curl "https://api.map.baidu.com/place/v3/region?query=美食®ion=北京&ak=$BMAP_WEBAPI_AK"
address_to_poi 转换任何需要将用户输入的地名或地址文本转换为坐标/UID 的场景,优先参考:
recipes/address_to_poi.md— 地址/地名转坐标与 POI UID
该文件描述了两种输入类型的判断方法和对应调用方式:
references/geocoding APIreferences/administrative_region_search API向算路接口(驾车/步行/骑行/公交)传参时:
推荐:同时传坐标 + uid(绑路更精准,尤其对大型 POI) origin_uid / destination_uid 有值时必传
UID 通过 references/address_to_poi.md 描述的方法获取。
遇到以下场景时,优先使用对应 recipe,内含完整调用链、参数说明和可运行代码示例。 单个 API 用法请查阅下方「快速参考」。
| recipe 文件 | 适用场景 | 权限要求 |
|---|---|---|
| recipes/address_to_poi.md | 地址文本或地名 → 坐标 + POI UID(算路前置步骤) | 标准 AK |
| recipe 文件 | 适用场景 | 权限要求 |
|---|---|---|
| recipes/route_to_named_place.md | 用户说出地名 → 规划驾车路线 | 标准 AK |
| recipes/smart_departure_time.md | "几点出发才能准时到" | ⚠️ 高级权限 |
| recipes/traffic_aware_route.md | 预测未来某时刻出发的路况耗时 | ⚠️ 高级权限 |
| recipe 文件 | 适用场景 | 权限要求 |
|---|---|---|
| recipes/nearby_poi_search.md | 搜索用户附近的某类地点 | 标准 AK |
| recipes/poi_search_to_detail.md | 关键词搜索 → 获取 POI 完整详情 | 标准 AK |
| recipe 文件 | 适用场景 | 权限要求 |
|---|---|---|
| recipes/address_to_full_location.md | 地址文本 → 坐标 + 行政区划 | 标准 AK |
| recipes/coordinate_to_structured_address.md | 坐标 → 结构化地址 + 行政区划 | 标准 AK |
| recipe 文件 | 适用场景 | 权限要求 |
|---|---|---|
| recipes/weather_query.md | 通过城市名称/行政区划编码/坐标, 获取当地详细的天气信息 | 标准 AK |
references/constants.md - 通用常量:状态码references/global_reverse_geocoding.md - 全球逆地理编码: 坐标转位置信息references/reverse_geocoding_agent.md - 逆地理编码智能体: 智能逆地理编码地址解析references/administrative_region_search.md - 行政区划区域检索: 行政区划地点检索references/circular_region_search.md - 圆形区域检索: 圆形区域地点检索references/multi_dimensional_search.md - 多维检索: 多条件智能检索POIreferences/place_detail_search.md - 地点详情检索: 获取指定地点详细信息references/place_input_suggestion.md - 地点输入提示: 地点输入提示匹配references/geocoding.md - 地理编码: 地址解析为坐标references/admin_division_query.md - 行政区划查询: 查询中国行政区划信息references/domestic_weather_query.md - 国内天气查询: 国内天气查询多功能接口references/overseas_weather_query.md - 海外天气查询: 查询海外城市天气references/cycling_route_planning.md - 骑行路线规划: 骑行路线规划方案检索references/driving_route_planning.md - 驾车路线规划: 驾车路线规划与路况预测
references/capabilities/driving_route_duration.md - 驾车路线历史耗时: 设置驾车路线历史耗时references/capabilities/future_driving_route.md - 未来驾车路线规划: 预测未来驾车路线耗时references/capabilities/suggested_departure_time.md - 建议出发时间: 高级权限出行时间建议references/capabilities/waypoint_route_planning.md - 途经点智能路线规划: 智能优化途经点顺序references/motorcycle_route_planning.md - 摩托车路线规划: 摩托车路线规划服务references/transit_route_planning.md - 公交路线规划: 多交通方式路线规划references/walking_route_planning.md - 步行路线规划: 步行路线规划推荐决策路径:
recipes/ 目录下对应 recipereferences/ 目录每个 references 参考文件包含:
每个 recipes 场景包含:
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.
development
Maintainer workflow for OpenClaw releases, prereleases, changelog release notes, and publish validation. Use when Codex needs to prepare or verify stable or beta release steps, align version naming, assemble release notes, check release auth requirements, or validate publish-time commands and artifacts.
development
Run, watch, debug, and extend OpenClaw QA testing with qa-lab and qa-channel. Use when Codex needs to execute the repo-backed QA suite, inspect live QA artifacts, debug failing scenarios, add new QA scenarios, or explain the OpenClaw QA workflow. Prefer the live OpenAI lane with regular openai/gpt-5.4 in fast mode; do not use gpt-5.4-pro or gpt-5.4-mini unless the user explicitly overrides that policy.
development
End-to-end Parallels smoke, upgrade, and rerun workflow for OpenClaw across macOS, Windows, and Linux guests. Use when Codex needs to run, rerun, debug, or interpret VM-based install, onboarding, gateway smoke tests, latest-release-to-main upgrade checks, fresh snapshot retests, or optional Discord roundtrip verification under Parallels.