Agentara amap
通过脚本直连高德 Web Service API 完成地理编码、逆地理编码、IP 定位、天气、路径规划、距离测量和 POI 查询。用户要求“高德/AMap 查询”“路线规划”“地理编码”“POI 搜索”或需要用命令行脚本调用高德 API 时使用。
install
source · Clone the upstream repo
git clone https://github.com/MagicCube/agentara
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/MagicCube/agentara "$T" && mkdir -p ~/.claude/skills && cp -r "$T/user-home/.claude/skills/amap" ~/.claude/skills/magiccube-agentara-amap && rm -rf "$T"
manifest:
user-home/.claude/skills/amap/SKILL.mdsource content
AMap Skill
Quick Start
- Ensure
is set.AMAP_MAPS_API_KEY - Run
in this skill directory.bun scripts/amap.ts --help - Pick the matching command from
.references/command-map.md
Workflow
- Validate user intent and select one command.
- Prefer address commands for route planning when users provide plain addresses.
- Keep output as raw AMap JSON without wrapping fields.
- Treat any non-zero API business state as failure.
Commands
- Full command mapping:
references/command-map.md - Ready-to-run examples:
references/examples.md
Notes
- This skill is script-first and does not run an MCP server.
- Only
is supported.AMAP_MAPS_API_KEY