Introduction¶
The map capabilities in WeChat Mini Programs are scattered across the native map component, various overlays (marker, polyline, polygon, circle, etc.), and the Tencent Location Service WebService API documentation. In actual development, common issues include: how to configure component properties and events, how to link markers with callouts, which interface to use for routes and POIs, and whether to use wx.request to directly connect to backend capabilities within the Mini Program. Searching documentation and piecing together examples often takes up a significant amount of time.
Below is an introduction to the “Tencent Map Mini Program Development Skill” on SkillHub: Released by the Tencent Map Location Service team and designed for WeChat Mini Program scenarios, it organizes map components, location capabilities, and WebService calling conventions into a Skill loadable by AI Agents, providing actionable development guidance within conversations based on specific tasks.
What is this¶
The Tencent Map Mini Program Development Skill (ID @tencent-adm/tencentmap-miniprogram-skill, current version v1.0.5) is an enterprise-sourced skill under the SkillHub category dev-programming, published by the Tencent Map Location Service Team.
One-sentence description: When a requirement involves WeChat Mini Program map feature development, load this Skill. The Agent will organize implementation steps according to the guidelines within the skill. When backend location capabilities are involved, the skill instructions uniformly adopt wx.request to directly connect to the Tencent Location Service WebService API (full parameter support). The applicable platform is strictly limited to WeChat Mini Programs.
The SkillHub page is tagged with requires_api_key=true, meaning relevant WebService calls typically require a configured Tencent Location Service Key. For specific application procedures and domain whitelisting, please refer to the official Tencent Location Service documentation.
Core Functions¶
The following capabilities are derived from the official SkillHub description and are consistent with the page content:
- Map Component: Development guidance for the
mapcomponent and common map interactions and display features. - Location Service: Implementation instructions for Mini Program side capabilities such as positioning and location acquisition.
- Marker Management: Display of point markers and labels such as
markerandcallout. - Overlays and Shapes: Polylines, polygons, circles, arcs, etc. (corresponding to scenarios like
polyline,polygon,circle, and arcs mentioned in the introduction). - Route Planning: Navigation and route-related capabilities and interface usage strategies.
- Geocoding: WebService capabilities such as converting between addresses and coordinates.
- POI Search: Interfaces and parameter usage for Point of Interest retrieval.
- Marker Clustering: Aggregated display for large numbers of markers.
- Visualization Layers: Layer capabilities including heatmaps mentioned in the introduction.
The skill description explicitly states: This skill should be loaded when users mention keywords such as map component, marker, callout, polyline, polygon, circle, positioning, navigation, route planning, POI search, geocoding, marker clustering, heatmaps, Tencent Map SDK, etc.
Installation and Activation¶
The skill is based on the universal SKILL.md format and will only be recognized after being installed into the current Agent’s skills directory via SkillHub.
Method 1: Let AI Install via Official Prompt¶
The installation prompt provided on the SkillHub skill page is:
Please install `@tencent-adm/tencentmap-miniprogram-skill` according to https://skillhub.cn/install/skillhub.md.
Send the above content to an AI client that supports Skills. The Agent will complete the CLI check and installation following the SkillHub Installation Instructions.
Method 2: Use skillhub CLI Locally¶
First, confirm if the CLI is installed:
command -v skillhub && skillhub --version
If not installed, you can perform a full installation (including CLI and default Skills) according to the SkillHub documentation:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
When installing the skill, you must use --dir to point to the current Agent’s skills directory (installing to the default ./skills/ might not be recognized). Common path examples provided in the documentation:
| Client | skills Directory (Example) |
|---|---|
| Cursor | ~/.cursor/skills/ |
| Claude Code | ~/.claude/skills/ |
| Codex | ~/.codex/skills/ or .agents/skills/ under the project |
Installation command format (replace <skills directory> with the actual path):
skillhub install @tencent-adm/tencentmap-miniprogram-skill --dir <skills directory>
You can also search first and then install:
skillhub search tencentmap-miniprogram
skillhub install @tencent-adm/tencentmap-miniprogram-skill --dir <skills directory>
After installation, restart or refresh the Agent according to the requirements of your client to activate the skill.
Typical Usage¶
Official materials do not provide separate business code snippets but define usage methods and architectural conventions. You can reproduce this in a conversation following these steps:
-
Load the skill in sessions involving WeChat Mini Program map requirements
Examples: “Usemapin a Mini Program to display multiple store markers and show callouts on click” or “Use WebService for route planning and draw a polyline on the map.” The Agent should read@tencent-adm/tencentmap-miniprogram-skillwhen it matches intents related to maps, positioning, POIs, geocoding, etc. -
Frontend focuses on native WeChat map capabilities
Configure the structure and events formap,markers,polylinein the page WXML/WXSS/JS according to the skill’s guidelines, rather than using generic Web map writing styles detached from the Mini Program runtime environment. -
Backend location capabilities via
wx.request+ WebService
The skill instructions emphasize: Backend service capabilities should uniformly connect directly to the Tencent Location Service WebService API viawx.request, supporting full parameter calls. During implementation, you should configure valid request domains in the Mini Program backend and include the Key required by the platform in requests (consistent withrequires_api_key=true). -
Ask questions by module
Capabilities like marker clustering, heatmaps, POI search, and geocoding can be asked separately to facilitate the Agent referencing the corresponding parameters and precautions by topic within the skill.
Applicable Scenarios and Notes¶
Who is it for
- Engineers developing or maintaining WeChat Mini Programs who need map display, positioning, retrieval, routing, or layer capabilities.
- Teams looking to reduce the friction of switching between component documentation and WebService documentation, using an Agent to generate implementation steps based on unified conventions (especially
wx.requestdirect connection).
Limitations and Precautions
- Platform: Applicable only to WeChat Mini Programs. It is not suitable for generic map solutions in standard H5 or WebViews embedded in Apps (unless separately adapted).
- Key and Compliance: The tag indicates an API Key is required; WebService calls must comply with Tencent Location Service’s terms of use, quotas, and security requirements.
- Skill is development guidance, not a runtime SDK: It guides the Agent on how to organize answers and steps. The Mini Program still needs to be compiled in WeChat Developer Tools, and permissions (such as location authorization) and map performance must be verified on real devices.
- Version: SkillHub currently displays v1.0.5; upgrades can be performed using
skillhubin the corresponding skills directory (refer to the skillhub installation documentation).
SkillHub Statistics (based on page display): Rating 100000, Downloads 5305, Installs 234.
Conclusion¶
WeChat Mini Program map development spans across the component layer and location service APIs, involving many parameters and scattered documentation. The “Tencent Map Mini Program Development Skill” consolidates topics such as components, markers, routes, POIs, geocoding, marker clustering, and visualization layers into a SKILL that Agents can load. It also defines a convention for full-parameter WebService calls via wx.request, making it suitable as a default skill source for map-related requirements.
- SkillHub Skill Page: https://www.skillhub.cn/skills/tencent-adm/tencentmap-miniprogram-skill
- API Entry: https://api.skillhub.cn/tencent-adm/tencentmap-miniprogram-skill