Skip to content

localhost-legend/maplibre-agent-skills

 
 

Repository files navigation

MapLibre Agent Skills

Curated guidance for AI assistants building MapLibre GL JS applications — covering ecosystem and open-source best practices.

Agent skills are markdown files that AI coding assistants read as context. When you ask an AI agent to implement something using MapLibre, these skills give the AI the judgment to avoid common API gotchas, and suggest patterns that work.

New skills are prioritized based on periodic demand mining — tracking documented AI failures in GitHub issues, Stack Overflow, and community Slack. Each skill is tested with Promptfoo evals to verify it improves AI responses on real developer questions.

Available Skills

Skill Use when
maplibre-tile-sources Choosing how to supply map data; deciding between GeoJSON and tiles; configuring a basemap; debugging blank maps or missing labels
maplibre-pmtiles-patterns Hosting tiles without a tile server; static or serverless deployments; converting from MBTiles; generating tiles from OSM or GeoJSON
maplibre-mapbox-migration Moving an existing Mapbox GL JS app to MapLibre; evaluating MapLibre as an open-source alternative

Development

Each skill lives under skills/<skill-name>/:

  • SKILL.md — Required. YAML front-matter (name, description) plus markdown content.
  • AGENTS.md — Optional. Short reference for the LLM.

See CONTRIBUTING.md to add or improve a skill. All experience levels welcome, but please note, since we are trying to improve on genAI baseline contributions to MapLibre development, skills or contributions generated entirely by AI agents will likely be rejected.

Install

Installing skills into your project means AI assistants automatically pick them up when you describe a task — no need to define context manually each time.

Without the CLI

Skills are plain markdown.

  • Paste into chat: Open any SKILL.md above and paste it directly into your AI assistant's context window.
  • Copy to your project: Drop a SKILL.md into .claude/skills/, .cursor/rules/, or append it to .github/copilot-instructions.md.
  • Symlink for local development:
mkdir -p .claude
ln -s /path/to/maplibre-agent-skills/skills .claude/skills

Via the skills CLI

The skills CLI is a package manager for AI agent skills. It places skill files in the right location for your tool automatically, and supports 40+ agents.

# List available skills
npx skills add maplibre/maplibre-agent-skills --list

# Install all skills
npx skills add maplibre/maplibre-agent-skills

# Install a single skill
npx skills add maplibre/maplibre-agent-skills --skill maplibre-tile-sources

By default, skills are installed per project. To install globally (e.g. to your user profile):

npx skills add maplibre/maplibre-agent-skills -g

To install for a specific agent:

npx skills add maplibre/maplibre-agent-skills -a claude-code
npx skills add maplibre/maplibre-agent-skills -a cursor
npx skills add maplibre/maplibre-agent-skills -a vscode

See Supported Agents for the full list.

Once installed, you can manage skills with:

Command Description
npx skills list List installed skills (alias: ls)
npx skills find [query] Search for skills interactively or by keyword
npx skills remove [skills] Remove installed skills from agents
npx skills check Check for available skill updates
npx skills update Update all installed skills to latest versions
npx skills init [name] Create a new SKILL.md template

License

MIT License. Copyright (c) MapLibre and contributors. See LICENSE.md and NOTICE for more information.

About

Community-maintained agent skills for MapLibre GL JS — helping AI coding assistants write better mapping code

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 91.6%
  • Shell 8.4%