Skip to content
mapbox avatar

Mapbox Style Quality

Quality-assurance guidance for Mapbox styles covering expression, GeoJSON, contrast, and optimization checks before production.

CCM score
63 of 100
skills.sh installs
2.1K
GitHub stars
88
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers pre-production validation of expressions, GeoJSON sources, WCAG text contrast, style diffs, and optimization
  • Provides tool guidance for validate_expression_tool, validate_geojson_tool, check_color_contrast_tool, compare_styles_tool, and optimize_style_tool
  • Enforces WCAG AA contrast minimums (4.5:1 normal text, 3:1 large text) with an optional AAA target of 7:1
  • Includes reference files on optimization, style comparison, and CI integration with git pre-commit hooks

Install

$ npx -y skills add mapbox/mapbox-agent-skills --skill mapbox-style-quality -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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

When adding GeoJSON data:

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

When writing expressions:

Details

Repository
github.com/mapbox/mapbox-agent-skills
Categories
Frontend & UI Code, Testing & QA
First seen
Apr 16, 2026

More from mapbox/mapbox-agent-skills

All 18

Similar to Mapbox Style Quality

More Frontend & UI Code