mapbox avatar

Mapbox Style Quality

This is your pre-deployment checklist in skill form. It validates Mapbox style expressions before runtime errors bite you, checks WCAG color contrast ratios for text labels (4.5:1 for AA, 7:1 for AAA), and optimizes styles by removing empty layers and simplifying redundant boolean logic. The workflow is straightforward: validate your GeoJSON sources, check expressions as you write them, verify text readability, compare versions before committing, then optimize before shipping. It's honestly just good hygiene for production maps, the kind of stuff you skip when prototyping but absolutely need before real users see your work. The comparison tool is especially handy when you inherit someone else's style and need to understand what actually changed between versions.

skills.sh installs
2K
GitHub stars
86
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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:

Sponsors

Details

Repository
github.com/mapbox/mapbox-agent-skills
Categories
Code Review & Quality, AI & Agent Building, Debugging, Design & UI/UX
First seen
Apr 16, 2026

More from mapbox/mapbox-agent-skills

All 18
1getsentry avatararchitecture-reviewgetsentry/wardenStaff-level codebase health review. Finds monolithic modules, silent failures, type safety gaps, test coverage holes, and LLM-friendliness issues.692skills.sh installs
2davila7 avatarmove-code-qualitydavila7/claude-code-templatesAnalyzes Move language packages against the official Move Book Code Quality Checklist. Use this skill when reviewing Move code, checking Move 2024 Edition compl333skills.sh installs
3rknall avatarPython Backend Architecture Reviewrknall/claude-skillsComprehensive design architecture review for Python backend applications. Use this skill when users ask you to review, analyze, or provide feedback on backend a0skills.sh installs
4tirth8205 avatarRefactor Safelytirth8205/code-review-graphPlan and execute safe refactoring using dependency analysis323skills.sh installs
5dietrichgebert avatarponytaildietrichgebert/ponytailForces the laziest solution that actually works, simplest, shortest, most minimal. Channels a senior dev who has seen everything: question whether the task need124.4Kskills.sh installs
6dietrichgebert avatarponytail-auditdietrichgebert/ponytailWhole-repo audit for over-engineering. Like ponytail-review, but scans the entire codebase instead of a diff: a ranked list of what to delete, simplify, or repl55.5Kskills.sh installs