Tencent Maps Mini Program Development Skills: Agent Development Guide for WeChat Mini Program Maps and Location Services

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:

  1. Map Component: Development guidance for the map component and common map interactions and display features.
  2. Location Service: Implementation instructions for Mini Program side capabilities such as positioning and location acquisition.
  3. Marker Management: Display of point markers and labels such as marker and callout.
  4. Overlays and Shapes: Polylines, polygons, circles, arcs, etc. (corresponding to scenarios like polyline, polygon, circle, and arcs mentioned in the introduction).
  5. Route Planning: Navigation and route-related capabilities and interface usage strategies.
  6. Geocoding: WebService capabilities such as converting between addresses and coordinates.
  7. POI Search: Interfaces and parameter usage for Point of Interest retrieval.
  8. Marker Clustering: Aggregated display for large numbers of markers.
  9. 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:

  1. Load the skill in sessions involving WeChat Mini Program map requirements
    Examples: “Use map in 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-skill when it matches intents related to maps, positioning, POIs, geocoding, etc.

  2. Frontend focuses on native WeChat map capabilities
    Configure the structure and events for map, markers, polyline in 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.

  3. 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 via wx.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 with requires_api_key=true).

  4. 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.request direct 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 skillhub in 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
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye