maplibre-expressions

Official

Avoid MapLibre expression gotchas.

Authorboettiger-lab
Version1.0.0
Installs0

System Documentation

What problem does it solve?

MapLibre GL JS expressions trip up LLMs due to legacy syntax and subtle pitfalls in filters and paint expressions; this guide helps you write robust, correct expressions.

Core Features & Use Cases

  • Clear guidance on when to use match vs in for categorical membership and how to structure expressions for filters and paint.
  • Practical examples highlighting common traps and how to fix them, including the legacy in syntax pitfall with bare field names.
  • Quick-start workflows for implementing safe, predictable MapLibre expressions in web maps.

Quick Start

Write a MapLibre paint expression that uses match to color categories and includes a fallback color.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: maplibre-expressions
Download link: https://github.com/boettiger-lab/agent-skills/archive/main.zip#maplibre-expressions

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.