Token导航 LogoToken导航

Agent Skill · 研究检索

mapbox-style-quality(地图框风格质量)

mapbox-style-quality 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

mapbox-style-quality 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为调用外部服务;许可证为 MIT,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 45,786。

总安装 824周安装 33GitHub Stars 44下载 267核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/mapbox/mcp-devkit-server --skill mapbox-style-quality

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。支持基于关键词、任务场景或来源线索进行信息检索与筛选。通过 npx skills add 命令从 GitHub 仓库安装使用。建议确认权限范围和维护状态,避免触发联网或文件读写操作。

mapbox-style-quality 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/mapbox-style-quality

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它需要调用外部服务,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

mapbox-style-quality 怎么安装?

在终端执行 npx skills add https://github.com/mapbox/mcp-devkit-server --skill mapbox-style-quality。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

mapbox-style-quality 支持哪些 AI 工具?

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

mapbox-style-quality 需要什么权限?

权限级别是调用外部服务。该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

mapbox-style-quality 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

mapbox-style-quality 用的人多吗?

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

mapbox-style-quality 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

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

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

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

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
mapbox-style-quality

地图框风格质量 · 本页

82444调用外部服务MIT有提醒

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

SKILL.md 原文

Mapbox Style Quality Skill

This skill provides expert guidance on ensuring Mapbox style quality through validation, accessibility, and optimization tools.

When to Use Quality Tools

Pre-Production Checklist

Before deploying any Mapbox style to production:

  1. Validate all expressions - Catch syntax errors before runtime
  2. Check color contrast - Ensure text is readable (WCAG compliance)
  3. Validate GeoJSON sources - Ensure data integrity
  4. Optimize style - Reduce file size and improve performance
  5. Compare versions - Understand what changed

During Development

When adding GeoJSON data:

  • Always validate external GeoJSON with validate_geojson_tool before using as a source

When writing expressions:

  • Validate expressions with validate_expression_tool as you write them
  • Catch type mismatches early (e.g., using string operator on number)
  • Verify operator availability in your Mapbox GL JS version
  • Test expressions with expected data types

When styling text/labels:

  • Check foreground/background contrast with check_color_contrast_tool
  • Aim for WCAG AA minimum (4.5:1 for normal text, 3:1 for large text)
  • Use AAA standard (7:1 for normal text) for better accessibility
  • Consider different background scenarios (map tiles, overlays)

Before Committing Changes

Compare style versions:

  • Use compare_styles_tool to generate a diff report
  • Review all layer changes, source modifications, and expression updates
  • Understand the impact of your changes
  • Document significant changes in commit messages

Before Deployment

Optimize the style:

  • Run optimize_style_tool to reduce file size
  • Remove unused sources that reference deleted layers
  • Eliminate duplicate layers with identical properties
  • Simplify boolean expressions for better performance
  • Remove empty layers that serve no purpose

Validation Best Practices

GeoJSON Validation

Always validate when:

  • Loading GeoJSON from user uploads
  • Fetching GeoJSON from external APIs
  • Processing GeoJSON from third-party sources
  • Converting between data formats

Common GeoJSON errors:

  • Invalid coordinate ranges (longitude > 180 or < -180)
  • Unclosed polygon rings (first and last coordinates must match)
  • Wrong coordinate order (should be [longitude, latitude], not [latitude, longitude])
  • Missing required properties (type, coordinates, geometry)
  • Invalid geometry types or nesting

Example workflow:

1. Receive GeoJSON data
2. Validate with validate_geojson_tool
3. If valid: Add as source to style
4. If invalid: Fix errors, re-validate

Expression Validation

Validate expressions for:

  • Filter conditions (filter property on layers)
  • Data-driven styling (paint and layout properties)
  • Feature state expressions
  • Dynamic property calculations

Common expression errors:

  • Type mismatches (string operators on numbers)
  • Invalid operator names or wrong syntax
  • Wrong number of arguments for operators
  • Nested expression errors
  • Using unavailable operators for your GL JS version

Prevention strategies:

  • Validate as you write expressions, not at runtime
  • Test expressions with representative data
  • Use type checking (expectedType parameter)
  • Validate in context (layer, filter, paint, layout)

Accessibility Validation

WCAG Levels:

  • AA (minimum): 4.5:1 for normal text, 3:1 for large text
  • AAA (enhanced): 7:1 for normal text, 4.5:1 for large text

Text size categories:

  • Normal: < 18pt or < 14pt bold
  • Large: ≥ 18pt or ≥ 14pt bold

Common scenarios to check:

  • Text labels on map tiles
  • POI labels with background colors
  • Custom markers with text
  • UI overlays on maps
  • Legend text and symbols
  • Attribution text

Testing strategy:

  • Test against both light and dark map tiles
  • Consider overlay backgrounds (popups, modals)
  • Test in different lighting conditions (mobile outdoor use)
  • Verify contrast at different zoom levels

Optimization Best Practices

When to Optimize

Before production deployment:

  • After all development changes are complete
  • After merging multiple feature branches
  • When style has grown significantly over time
  • Before major releases or launches

Benefits of optimization:

  • Faster initial load times
  • Reduced bandwidth usage
  • Better runtime performance
  • Cleaner, more maintainable code

Optimization Types

Remove unused sources:

  • Automatically identifies sources not referenced by any layer
  • Safe to remove without affecting functionality
  • Common after deleting layers or refactoring

Remove duplicate layers:

  • Finds layers with identical properties (excluding ID)
  • Can occur when copying/pasting layers
  • Reduces style complexity and file size

Simplify expressions:

  • Converts ["all", true] → true
  • Converts ["any", false] → false
  • Converts ["!", false] → true
  • Converts ["!", true] → false
  • Improves expression evaluation performance

Remove empty layers:

  • Removes layers with no paint or layout properties
  • Preserves background layers (valid even when empty)
  • Cleans up incomplete or placeholder layers

Consolidate filters:

  • Identifies groups of layers with identical filter expressions
  • Highlights opportunities for layer consolidation
  • Doesn't automatically consolidate (informational only)

Optimization Strategy

Recommended order:

  1. Remove unused sources first (reduces noise for other checks)
  2. Remove duplicate layers (eliminates redundancy)
  3. Simplify expressions (improves readability and performance)
  4. Remove empty layers (final cleanup)
  5. Review consolidation opportunities (manual step)

Selective optimization:

// All optimizations (recommended for production)
optimize_style_tool({ style })

// Specific optimizations only
optimize_style_tool({
  style,
  optimizations: ['remove-unused-sources', 'simplify-expressions']
})

Review before deploying:

  • Check the optimization report
  • Verify size savings (percentReduction)
  • Review the list of changes (optimizations array)
  • Test the optimized style before deployment

Style Comparison Workflow

When to Compare Styles

Before merging changes:

  • Review what changed in your feature branch
  • Ensure no unintended modifications
  • Generate change summary for PR description

When investigating issues:

  • Compare working version vs. broken version
  • Identify what changed between versions
  • Narrow down root cause of problems

During migrations:

  • Compare old format vs. new format
  • Verify data integrity after conversion
  • Document transformation differences

Comparison Best Practices

Use ignoreMetadata flag:

// Ignore metadata differences (id, owner, created, modified)
compare_styles_tool({
  styleA: oldStyle,
  styleB: newStyle,
  ignoreMetadata: true
})

Focus on meaningful changes:

  • Layer additions/removals
  • Source changes
  • Expression modifications
  • Paint/layout property updates

Document significant changes:

  • Note breaking changes in documentation
  • Update style version numbers
  • Communicate changes to team/users

Quality Workflow Examples

Basic Quality Check

1. Validate expressions in style
2. Check color contrast for text layers
3. Optimize if needed

Full Pre-Production Workflow

1. Validate all GeoJSON sources
2. Validate all expressions (filters, paint, layout)
3. Check color contrast for all text layers
4. Compare with previous production version
5. Optimize style
6. Test optimized style
7. Deploy

Troubleshooting Workflow

1. Compare working vs. broken style
2. Identify differences
3. Validate suspicious expressions
4. Check GeoJSON data if source-related
5. Verify color contrast if visibility issue

Refactoring Workflow

1. Create backup of current style
2. Make refactoring changes
3. Compare before vs. after
4. Validate all modified expressions
5. Optimize to clean up
6. Review size impact

Common Issues and Solutions

Runtime Expression Errors

Problem: Map throws expression errors at runtime Solution: Validate expressions with validate_expression_tool during development Prevention: Add expression validation to pre-commit hooks or CI/CD

Poor Text Readability

Problem: Text labels are hard to read on map Solution: Check contrast with check_color_contrast_tool, adjust colors to meet WCAG AA Prevention: Test text on both light and dark backgrounds, check at different zoom levels

Large Style File Size

Problem: Style takes long to load or transfer Solution: Run optimize_style_tool to remove redundancies and simplify Prevention: Regularly optimize during development, remove unused sources immediately

Invalid GeoJSON Source

Problem: GeoJSON source fails to load or render Solution: Validate with validate_geojson_tool, fix coordinate issues, verify structure Prevention: Validate all external GeoJSON before adding to style

Unexpected Style Changes

Problem: Style changed but unsure what modified Solution: Use compare_styles_tool to generate diff report Prevention: Compare before/after for all significant changes, document modifications

Integration with Development Workflow

Git Pre-Commit Hook

# Validate expressions before commit
npm run validate-style

# Optimize before commit (optional)
npm run optimize-style

CI/CD Pipeline

1. Validate all expressions
2. Check accessibility compliance
3. Run optimization (warning if significant savings)
4. Compare with production version
5. Generate quality report

Code Review Checklist

  • All expressions validated
  • Text contrast meets WCAG AA
  • GeoJSON sources validated
  • Style optimized for production
  • Changes documented in comparison report

Best Practices Summary

During Development:

  • Validate expressions as you write them
  • Check GeoJSON data when adding sources
  • Test color contrast for new text layers

Before Committing:

  • Compare with previous version
  • Document significant changes
  • Validate modified expressions

Before Production:

  • Run full validation suite
  • Check accessibility compliance
  • Optimize style
  • Test optimized version
  • Generate quality report

Regular Maintenance:

  • Periodically optimize to prevent bloat
  • Review and consolidate similar layers
  • Update expressions to use simpler forms
  • Remove deprecated or unused code

Tool Quick Reference

ToolUse WhenOutput
validate_geojson_toolAdding GeoJSON sourcesValid/invalid + error list
validate_expression_toolWriting expressionsValid/invalid + error list
check_color_contrast_toolStyling text labelsPasses/fails + WCAG levels
compare_styles_toolReviewing changesDiff report with paths
optimize_style_toolBefore deploymentOptimized style + savings

Additional Resources

平台分布

Claude Code

30.1%
按下载量换算80

OpenCode

22.35%
按下载量换算60

Gemini CLI

18.69%
按下载量换算50

Antigravity

13.44%
按下载量换算36

Codex

8.78%
按下载量换算23

windsurf

3.49%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

调用外部服务

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

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

继续浏览同类 Skills