amap — Claude Code skill: what it does, how to install
Calls AMap Web Service API via local scripts for geocoding, route planning, POI search, and weather. Helps the agent query maps directly without an MCP server.
npx skills add kaichen/amap-skill --skill amap -a claude-codeWhat amap does
The skill connects directly to the AMap Web Service API through scripts without running an MCP server. It handles geocoding and reverse geocoding. The tool also looks up weather forecasts, measures distance, and queries POI data. When given plain text addresses, the workflow selects address-specific commands for navigation.
Execution requires the Bun runtime and an AMAP_MAPS_API_KEY environment variable. The skill supports only this key. Commands run via bun scripts/amap.ts following the map in references/command-map.md.
Output returns as raw AMap JSON without field wrappers. Any non-zero API business status is treated as failure. That prevents silent errors.
What it helps with
- convert plain addresses into coordinates using AMap geocoding
- calculate travel routes using address-based commands
- fetch weather forecasts and POI data via AMap API
- resolve approximate locations from IP addresses
Example prompts for the agent
- Find coordinates and weather for Beijing using AMap
- Plan a driving route between these two addresses using AMap
- Search for nearby restaurants with AMap POI query
How to install amap
1Skills CLI (Vercel)
npx skills add kaichen/amap-skill --skill amap -a claude-code2Manually: put the files in place
~/.claude/skills/amap/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/amap/
1Skills CLI (Vercel)
npx skills add kaichen/amap-skill --skill amap -a codex2Manually: put the files in place
.agents/skills/amap/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add kaichen/amap-skill --skill amap -a cursor2Manually: put the files in place
.cursor/skills/amap/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install kaichen/amap-skill amap2Manually: put the files in place
.github/skills/amap/SKILL.md1Skills CLI (Vercel)
npx skills add kaichen/amap-skill --skill amap -a gemini-cli2Platform CLI
gemini skills install https://github.com/kaichen/amap-skill --path skills/amapManually: put the files in place
.devin/skills/amap/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add kaichen/amap-skill --skill amap -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about amap
How to install amap in Claude Code?
Run npx skills add kaichen/amap-skill --skill amap -a claude-code in your terminal.
What does the amap skill do?
It sends requests to the AMap Web Service API using local Bun scripts. The skill geocodes addresses, calculates routes, fetches weather reports, and searches POI data.
Does amap require an MCP server?
No, this skill is script-first and does not run an MCP server. You only need the Bun runtime and an AMAP_MAPS_API_KEY environment variable.
Source text
SKILL.md · MIT
--- name: amap description: 通过脚本直连高德 Web Service API 完成地理编码、逆地理编码、IP 定位、天气、路径规划、距离测量和 POI 查询。用户要求“高德/AMap 查询”“路线规划”“地理编码”“POI 搜索”或需要用命令行脚本调用高德 API 时使用。 --- # AMap Skill ## Quick Start 1. Ensure `AMAP_MAPS_API_KEY` is set. 2. Run `bun scripts/amap.ts --help` in this skill directory. 3. Pick the matching command from `references/command-map.md`. ## Workflow 1. Validate user intent and select one command. 2. Prefer address commands for route planning when users provide plain addresses. 3. Keep output as raw AMap JSON without wrapping fields. 4. 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 `AMAP_MAPS_API_KEY` is supported.
© kaichen · MIT · kaichen/amap-skill