Token导航 LogoToken导航

Agent Skill · 待分类

map-generator(地图生成器)

map-generator 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

map-generator 是待分类类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描有未通过项,按安装量在待分类类的 11,209 个 Skill 里排第 9,348。

总安装 245周安装 10GitHub Stars 2下载 78核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:map-generator(地图生成器)
来源仓库:https://github.com/vishalsachdev/claude-skills
仓库路径:skills/map-generator
安装命令:
npx skills add https://github.com/vishalsachdev/claude-skills --skill map-generator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/vishalsachdev/claude-skills --skill map-generator

这个 Skill 是做什么的

这个 Skill 的分类还没最终确定,用法以来源仓库的说明为准。

map-generator 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理时使用。它能协助处理仓库状态、代码变更及协作相关事项。

可通过 npx skills add 命令从指定 GitHub 仓库安装并使用。建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/map-generator

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/vishalsachdev/claude-skills --skill map-genera…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

map-generator 怎么安装?

在终端执行 npx skills add https://github.com/vishalsachdev/claude-skills --skill map-generator。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

map-generator 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

map-generator 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

map-generator 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

map-generator 用的人多吗?

公开数据是累计安装 245 次,近一周安装 10 次,下载 78 次,GitHub 2 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

map-generator 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理待分类类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

待分类类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
infsh-cli

infsh CLI · Codex、Claude

4,374,576382权限未标注未明确未收录
ai-video-generation

AI 视频生成 · Codex、Claude

4,313,376382调用外部服务未明确有提醒
lark-openapi-explorer

云雀 OpenAPI 浏览器 · Codex、Claude

2,064,1209,011需要联网未明确有提醒
lark-workflow-standup-report

Lark 工作流程站立报告 · Codex、Claude

2,041,6328,978需要联网未明确通过
use-my-browser

使用我的浏览器 · Codex、Claude

1,848,49140操作浏览器未明确未通过
map-generator

地图生成器 · 本页

2452操作浏览器未明确未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Map Generator Skill

This skill creates interactive Leaflet maps as MicroSims for intelligent textbooks built with MkDocs Material theme.

When to Use This Skill

Use this skill when users request:

  • Geographic visualizations (regions, countries, cities)
  • Location-based data displays (historical sites, landmarks)
  • Campus or facility maps
  • Travel route visualizations
  • Custom maps with markers, layers, or highlighted borders
  • Educational geography content

Workflow

Step 1: Gather Map Requirements

Ask the user for the following information:

  1. Map Purpose: What geographic data are we visualizing?
  2. Geographic Region: Region name, country, city, or coordinates
  3. Markers/Points: What locations need markers? (names, coordinates, descriptions)
  4. Map Layers: Do you need multiple layers (satellite, terrain, street map)?
  5. Borders/Regions: Do any borders or regions need to be highlighted?
  6. Zoom Level: Initial zoom level (1-18, where 1 is world view, 18 is building level)
  7. Interactive Features: Popups, custom markers, layer controls?
  8. Educational Context: Related concepts, Bloom's taxonomy level, target audience

Example user input: "Create a map showing major universities in California with markers for each campus"

Step 2: Create Directory Structure

Create the MicroSim directory:

docs/sims/[map-name]/

Naming convention: Use kebab-case (e.g., california-universities, ancient-rome-map, world-capitals)

Step 3: Create map-data.json (Optional)

If the map includes markers or GeoJSON data, create a map-data.json file:

{
  "center": {
    "lat": 37.7749,
    "lng": -122.4194
  },
  "zoom": 10,
  "title": "Map Title",
  "subtitle": "Map Subtitle",
  "markers": [
    {
      "lat": 37.7749,
      "lng": -122.4194,
      "title": "Location Name",
      "description": "Location description",
      "category": "category-name"
    }
  ]
}

For borders/regions: Use GeoJSON format for complex geometries.

Step 4: Create main.html

Create main.html using the template from assets/template-iframe-main.html:

Key elements:

  • Leaflet CDN links (CSS and JS)
  • Map container div with id="map"
  • Optional controls section for layer toggles
  • Script reference to script.js
  • Minimal padding/margins for iframe embedding

Replace placeholders:

  • {{TITLE}} - Map title
  • {{SUBTITLE}} - Map subtitle
  • {{MAP_HEIGHT}} - Map container height (default: 400px)

Step 5: Create style.css

Create style.css using the template from assets/template-iframe-style.css:

Critical requirements for iframe embedding:

  • body {margin: 0; padding: 0;} - No body margins
  • Minimal margins throughout (2px max for headings)
  • Fixed height for #map container
  • Responsive breakpoints for mobile
  • aliceblue background (repository standard)

Customization options:

  • Map height (adjust based on content needs)
  • Control button styling
  • Marker popup styling

Step 6: Create script.js

Create script.js using the template from assets/template-script.js:

Core functionality:

  1. Initialize Leaflet map with center coordinates and zoom level
  2. Add tile layer (OpenStreetMap default, or custom)
  3. Add markers with popups
  4. Optional: Add GeoJSON layers for borders/regions
  5. Optional: Add layer controls for toggling map types

Replace placeholders:

  • {{CENTER_LAT}}, {{CENTER_LNG}} - Map center coordinates
  • {{ZOOM}} - Initial zoom level
  • {{MARKERS}} - Marker data array
  • {{TILE_LAYER}} - Tile layer URL (OpenStreetMap, satellite, etc.)

Common tile layers:

  • OpenStreetMap: https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png
  • Satellite: https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}
  • Terrain: https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png

Step 7: Create index.md

Create index.md using the template from assets/template-index.md:

Structure:

  • Title and overview
  • iframe embed (width="100%", height="700", frameborder="0")
  • Link to fullscreen view
  • Features section (interactive elements)
  • Customization guide (how to modify the map)
  • Technical details (library version, dependencies)
  • Use cases
  • References

iframe embed format:

<iframe src="main.html" width="100%" height="700" frameborder="0"></iframe>

[View Fullscreen](main.html){:target="_blank"}

Step 8: Create metadata.json

Create metadata.json using the template from assets/template-metadata.json:

Dublin Core fields:

  • title, description, subject, creator, date, type, format, language
  • coverage, rights, audience

Map-specific fields:

  • map_type: "interactive", "choropleth", "route", etc.
  • center_lat, center_lng: Center coordinates
  • zoom_level: Initial zoom level
  • marker_count: Number of markers
  • concepts: Array of related concepts
  • bloom_taxonomy: Cognitive level (Remember, Understand, Apply, etc.)

Step 9: Update mkdocs.yml Navigation

Add the new map to the navigation in mkdocs.yml:

nav:
  - MicroSims:
      - Introduction: sims/index.md
      - [Map Name]: sims/[map-name]/index.md

Naming: Use Title Case for navigation labels

Step 10: Test and Validate

Perform these validation steps:

  1. Direct HTML test: Open docs/sims/[map-name]/main.html in browser

- Verify map loads correctly - Test zoom and pan controls - Click markers to verify popups - Test responsive behavior (resize window)

  1. MkDocs test: Run mkdocs serve and navigate to the map page

- Verify iframe embedding works - Check margins/padding (should be minimal) - Test fullscreen link - Verify navigation link works

  1. Browser compatibility: Test in Chrome, Firefox, Safari
  2. Mobile test: Verify responsive behavior on mobile devices

Common Map Patterns

Simple Marker Map

Basic map with multiple markers:

const markers = [
  { lat: 40.7128, lng: -74.0060, title: "New York", description: "The Big Apple" },
  { lat: 34.0522, lng: -118.2437, title: "Los Angeles", description: "City of Angels" }
];

markers.forEach(marker => {
  L.marker([marker.lat, marker.lng])
    .bindPopup(`<b>${marker.title}</b><br>${marker.description}`)
    .addTo(map);
});

Highlighted Region (GeoJSON)

Show a highlighted border or region:

const region = {
  "type": "Feature",
  "geometry": {
    "type": "Polygon",
    "coordinates": [[...]]
  }
};

L.geoJSON(region, {
  style: { color: 'red', weight: 3, fillOpacity: 0.2 }
}).addTo(map);

Layer Controls

Toggle between map types:

const street = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png');
const satellite = L.tileLayer('https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}');

const baseMaps = {
  "Street": street,
  "Satellite": satellite
};

L.control.layers(baseMaps).addTo(map);
street.addTo(map); // Default layer

Custom Marker Icons

Use custom icons for different categories:

const universityIcon = L.icon({
  iconUrl: 'university-icon.png',
  iconSize: [32, 32],
  iconAnchor: [16, 32],
  popupAnchor: [0, -32]
});

L.marker([lat, lng], { icon: universityIcon }).addTo(map);

Educational Considerations

Bloom's Taxonomy Alignment

  • Remember: Identify locations on a map
  • Understand: Explain geographic relationships
  • Apply: Use maps for problem-solving (routes, distances)
  • Analyze: Compare geographic patterns
  • Evaluate: Assess geographic data quality
  • Create: Design custom maps for specific purposes

Accessibility

  • Ensure marker popups have descriptive text
  • Provide text alternatives for visual information
  • Use high-contrast colors for highlighted regions
  • Include keyboard navigation support

Performance

  • Limit markers to <100 for optimal performance
  • Use marker clustering for large datasets: const markers = L.markerClusterGroup(); markers.addLayer(L.marker([lat, lng])); map.addLayer(markers);

Troubleshooting

Map not displaying

  • Check that Leaflet CDN links are correct
  • Verify #map div has a fixed height in CSS
  • Ensure coordinates are in decimal format (not DMS)

Markers not appearing

  • Verify latitude/longitude order (lat first, lng second)
  • Check that coordinates are within valid ranges (-90 to 90 lat, -180 to 180 lng)
  • Ensure markers are added after map initialization

Iframe not fitting properly

  • Verify body {margin: 0; padding: 0;} in CSS
  • Check iframe height in index.md (adjust if needed)
  • Ensure container has minimal margins

References

Version History

  • v1.0 (2025-01-16): Initial release with basic marker maps, layer controls, and GeoJSON support

平台分布

Codex

38.35%
按下载量换算30

Claude

31.25%
按下载量换算24

Cursor

16.99%
按下载量换算13

Gemini CLI

9.47%
按下载量换算7

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills