测试与安全

mapbox-style-quality

mapbox/mapbox-a…t-skills

Expert guidance on validating, optimizing, and ensuring quality of Mapbox styles through validation, accessibility checks, and optimization. Use when preparing styles for production, debugging issues, or ensuring map quality standards.

  • 1991 次安装
  • 83 星标
  • 收录于

安装命令

npx skills add https://github.com/mapbox/mapbox-agent-skills --skill mapbox-style-quality

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
  6. Remove empty layers - Delete layers with no visible paint properties as a final cleanup step
  7. Simplify redundant boolean expressions - Clean up filters with unnecessary boolean logic (e.g., ["all", expr] → expr, ["any", false, expr] → expr)

During Development