Commit 7bd3dc1
[skill+prompt] Add mapbox-style-quality skill and prepare-style-for-production prompt
Adds comprehensive style quality validation capabilities:
Skill:
- Created mapbox-style-quality skill document (390+ lines)
- Pre-production checklist and validation best practices
- Guidance on expression validation, GeoJSON validation, and accessibility
- Optimization strategies and workflow recommendations
- Integration patterns for Git hooks, CI/CD, and code review
Prompt:
- Created prepare-style-for-production prompt
- Orchestrates validation workflow using 5 quality tools:
* validate_expression_tool - Validate expressions in filters/paint/layout
* validate_geojson_tool - Validate GeoJSON sources
* check_color_contrast_tool - WCAG accessibility compliance
* optimize_style_tool - Remove redundancies and optimize
* compare_styles_tool - Compare versions (implicit in workflow)
- Configurable WCAG level (AA/AAA) and optional optimization skip
- Generates comprehensive quality report with deployment readiness assessment
Testing:
- 15 test cases for PrepareStyleForProductionPrompt
- All 386 tests passing
- Updated prompt registry tests
Documentation:
- Updated README with new skill listing
- Added prompt documentation with usage examples
- Cross-referenced skill and prompt
Related PRs:
- PR #50: validate_geojson_tool
- PR #51: validate_expression_tool
- PR #52: compare_styles_tool
- PR #53: check_color_contrast_tool
- PR #54: optimize_style_tool
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent e279a15 commit 7bd3dc1
6 files changed
Lines changed: 906 additions & 3 deletions
File tree
- skills/mapbox-style-quality
- src/prompts
- test/prompts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
463 | 463 | | |
464 | 464 | | |
465 | 465 | | |
| 466 | + | |
466 | 467 | | |
467 | 468 | | |
468 | 469 | | |
| |||
673 | 674 | | |
674 | 675 | | |
675 | 676 | | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
676 | 710 | | |
677 | 711 | | |
678 | 712 | | |
| |||
0 commit comments