Map Commander: Unified Collaboration Entry for Tencent Maps Skill

Introduction

When working on map-related requirements in an Agent, a common practice is to separately look for documentation and corresponding Skills for JS API, WebService, and LBS whenever encountering tasks like “drawing maps,” “searching POIs,” or “calculating routes.” These capabilities have different boundaries and require different keys, and one must manually determine which pipeline to follow within the conversation. The Map Commander consolidates Tencent Maps-related capabilities into a single entry point: it identifies the requirement type via skills and then coordinates the official sub-skills for execution. Results are saved and previewed as HTML files with special effects, rather than pasting large blocks of code in the reply.

What is this

Map Commander (Coordinate @user_fcba917f/map-commander) is a community Skill on SkillHub, categorized under dev-programming. The current version is 1.0.2, published by user_fcba917f, and authored by WorkBuddy AI. The creation and last update time is 2026-05-20. The page tag is requires_api_key=true, indicating a dependency on Tencent Maps-related API Keys.

In one sentence, its positioning is: Unified Collaboration Entry for Tencent Maps. When users express intents related to Tencent Maps, location services, LBS, POI, route planning, geocoding, etc., this skill acts as a unified entry point, automatically identifying requirements and coordinating the following official sub-skills:

Sub-Skill Responsibilities
tencentmap-jsapi-gl-skill Web-side map applications (display, overlays, visualization)
tencentmap-webservice-skill WebService API (geocoding, POI search, route planning, weather, etc.)
tencentmap-lbs-skill Location Service LBS (POI search, route planning, trajectory visualization)

Official documentation pages: SkillHub API, SkillHub Display Page.

Core Features

Requirement Routing and Sub-Skill Collaboration

Users only need to describe map tasks in natural language; the skill side is responsible for determining whether to invoke JS API capabilities, WebService, or LBS, and then handing over to the corresponding sub-skills. The coverage scope listed in the materials includes: map application development (web, mini-programs, apps), location data analysis and visualization, address/coordinate conversion and geocoding, route planning and navigation, surrounding search and POI, geofencing and area analysis, trajectory and tourism planning, etc.

Common trigger words include: Tencent Maps, map development, location service, LBS, POI search, route planning, geocoding, coordinate conversion.

Dialogue Output: HTML File + Preview

The dialogue output mode of this skill is HTML File + Preview. When invoking, you should:

  1. Generate a complete HTML (DOCTYPE, head containing style, body).
  2. Use the Write tool to save it to the workspace (e.g., map-output.html).
  3. Use preview_url to open the file.
  4. Explain in one or two sentences in the reply that the task is complete.

The materials explicitly require: Do not use ```html code blocks in the conversation to replace files and previews.

The HTML must adhere to cyberpunk visual and interaction specifications, such as primary color #00d4ff, secondary color #7b2dff, and accent color #ff00ff; gradient text (background-clip: text), glow effects, hover effects (translateY + scale), sweeping light effects (::before + left animation), pulsation (@keyframes pulse); background containing particles, scan lines, and grids; card hover 3D effects and border glow; @media for mobile adaptation. The content area needs to include: Title area (gradient + glow), Parameters/Data (cards + alternating animations), Steps (timeline + connection line animations), Results (grid + hover scaling).

Example triggers (from official documentation):

  • User: “Search for coffee shops in Beijing” → Generate map-output.html → preview_url preview.
  • User: “Plan a running route” → Route map, data panel, calories and other dynamic number displays.

Fallback Mechanism upon API Failure

When a Tencent Maps API call fails, the skill switches to web search (WebSearch), marks “Data Source: Web Search (API Unavailable)” in the HTML, and prompts that precision may be lower than the API. Search strategies include:

  • Geocoding failure → “Place Name + Address + Latitude/Longitude”
  • POI search failure → “Type + City + Recommendation”
  • Route planning failure → “Origin → Destination Route”
  • Weather query failure → “City + Weather Forecast”

The fallback data source is described as: Web Search (WebSearch tool).

Installation and Activation

When installing or referencing on SkillHub, use the page coordinate as the standard:

@user_fcba917f/map-commander

Version 1.0.2, source community. Specific installation commands in Cursor, Codex CLI, or Claude Code should be based on the client you are using and the current SkillHub documentation; this material does not provide one-click installation statements for different clients. After installation, please configure keys according to the requirements of each sub-skill.

Sub-skill key dependencies (from official documentation):

Sub-Skill Environment Variable
tencentmap-jsapi-gl-skill TMAP_JSAPI_KEY
tencentmap-webservice-skill TMAP_WEBSERVICE_KEY
tencentmap-lbs-skill TMAP_WEBSERVICE_KEY

If not configured or if the Key is invalid, the above WebSearch fallback path may be triggered, and results need to be distinguished in the page’s data source field.

Typical Usage

Below introduces usage consistent with official examples to facilitate reproduction in Agent conversations.

  1. Use trigger words or natural language to describe the task (e.g., POI search, route planning, geocoding).
  2. Wait for the skill to route to the corresponding sub-skill and fetch data (or use fallback search).
  3. View the generated map-output.html in the workspace and open it via the preview tool.
  4. If the API is unavailable, confirm within the HTML whether it is marked as a web search source.

For route-type requirements, the page can be expected to contain a route visualization area, metric cards, and timeline steps; search-type requirements mainly consist of POI/parameter cards and result grids, with specific fields depending on sub-skill returns and task types.

Applicable Scenarios and Notes

Who it is for: Developers who need to quickly complete Tencent Maps capability combinations within Agent conversations and want results delivered as previewable HTML; involves scripts or prototype verification for Web Maps, WebService, and LBS.

Limitations and Notes:

  • Must configure TMAP_JSAPI_KEY or TMAP_WEBSERVICE_KEY (depending on the sub-skill); otherwise, it is easy to fall into the WebSearch fallback, reducing precision and structural integrity.
  • The output form is fixed as writing a file + preview, not suitable for scenarios where “just a curl command in chat” is needed.
  • HTML effects and layout are part of the skill contract. When customizing themes, you must still meet the animation and area requirements in the materials to avoid inconsistency with the skill’s expectations.
  • SkillHub page statistics (as of material capture): Rating 100000, Downloads 4275, Installs 29; Community source, maintenance rhythm is subject to SkillHub update records.

Conclusion

Map Commander consolidates three types of official Tencent Maps sub-skills into a single entry point, reducing the cost of selecting Skills through requirement identification, and unifying the delivery form with cyberpunk style HTML + previews. For installation and details, see https://www.skillhub.cn/skills/user_fcba917f/map-commander.

羽毛球分组比赛记分
小程序二维码

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

Xiaoye