All skills
mapbox avatar

/mapbox-style-quality

@65bab68 official
by mapboxmapbox/mapbox-agent-skills80 stars
17

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.

Use this Skill: https://skilld.dev/gh/mapbox/mapbox-agent-skills/mapbox-style-quality

This session only. Nothing lands on disk.

referencesci-integration.md

≈153 tokens on demand. Your agent reads this file only when SKILL.md points to it.

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

Source: SKILL.md on GitHub

1 warning17d5 checks · Risk SAFE
  • Gen Agent Trust Hub17d

    The skill provides guidance, documentation, and best practices for validating and optimizing Mapbox styles. No security issues or malicious patterns were found.

  • Socket17d

    No alerts

  • Snyk17d

    Risk: LOW · No issues

  • Runlayer7mo

    2/2 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 65bab68. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 10 hours ago.

Activeupdated 6 months ago
  • mapbox
  • style-validation
  • accessibility
  • wcag
  • geojson
  • expressions
  • optimization
  • color-contrast

README badge

README badge for mapbox/mapbox-agent-skills/mapbox-style-quality

Validates Mapbox styles for syntax errors, accessibility compliance, and performance issues using GeoJSON validation, expression checking, color contrast analysis, and optimization tools. Targets pre-production workflows, debugging map quality problems, and ensuring WCAG text contrast standards before deployment.

Generated from the current SKILL.md.

What does this skill validate?
It validates Mapbox style expressions, GeoJSON sources, color contrast for text layers (WCAG compliance), and provides tools to compare style versions and optimize file size.
Does this work with all Mapbox GL JS versions?
The skill validates expressions against operator availability, but you should verify your specific Mapbox GL JS version when validating—the validation will catch version-specific operator issues.
What accessibility standards does it check?
It checks color contrast for WCAG AA (4.5:1 for normal text, 3:1 for large text) and AAA (7:1 for normal text, 4.5:1 for large text) standards.
Can this fix GeoJSON errors automatically?
No. The skill validates GeoJSON and reports errors (invalid coordinates, unclosed rings, wrong order), but you must fix them manually before re-validation.
Does this integrate with CI/CD?
The skill references CI/CD integration patterns in `references/ci-integration.md`, including pre-commit hooks and pipeline steps, but does not bundle CI configuration itself.

Generated from the current SKILL.md. These answers refresh after source changes.