Maplibre Layers
Use when adding map layers, managing GeoJSON sources, styling markers, or handling layer interactions. Load for layer registration patterns, markRaw usage, MglGeoJsonSource components, data-driven styling, and layer event handling. Covers the mapLayers store and dynamic layer composition.
Install
/plugin marketplace add Freddy-CHEN-ux/00_claude_skillsThe repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.
npx skills add Freddy-CHEN-ux/00_claude_skills --skill maplibre-layersgit clone --depth 1 https://github.com/Freddy-CHEN-ux/00_claude_skills.git /tmp/00_claude_skills
mkdir -p ~/.claude/skills
cp -r /tmp/00_claude_skills/skills/maplibre-layers ~/.claude/skills/maplibre-layersPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# MapLibre Layers
Layer management patterns for map visualization.
> **Announce:** "I'm using maplibre-layers to implement map layers correctly."
## Layer Registration Pattern
Views register layers via the `mapLayers` store:
```typescript
// src/stores/mapLayers.ts
import { markRaw } from 'vue'
export const useMapLayersStore = defineStore('mapLayers', () => {
const layers = ref<MapLayer[]>([])
function setLayers(newLayers: MapLayer[]) {
// CRITICAL: markRaw prevents Vue from making components reactive
layers.value = newLayers.map(l => ({
...l,
component: markRaw(l.component)
}))
}
function clearLayers() {
layers.value = []
}
return { layers, setLayers, clearLayers }
})
```
**In a view:**
```typescript
// GameView.vue
import CandidatesLayer from '@/components/map/CandidatesLayer.vue'
import { MAP_KEY } from '@/composables/map/useMapCamera'
const mapLayersStore = useMapLayersStore()
onMounted(() => {
mapLayersStore.setLayers([{
key: 'candidates',
component: CandidatesLayer,
props: {
candidates: candidates,
mapKey: MAP_KEY
}
}])
})
onUnmounted(() => {
mapLayersStore.clearLayers()
})
```
**In BaseMap.vue:**
```vue
<template>
<MglMap ...>
<component
v-for="layer in layers"
:key="layer.key"
:is="layer.component"
v-bind="layer.props"
/>
</MglMap>
</template>
```
## GeoJSON Layer Pattern
Use `MglGeoJsonSource` with layer components:Details
- Skill name
maplibre-layers- Repository
- Freddy-CHEN-ux/00_claude_skills
- Path
skills/maplibre-layers/SKILL.md- Repo updated
- 10 January 2026
FAQ
What does the Maplibre Layers skill do?
Use when adding map layers, managing GeoJSON sources, styling markers, or handling layer interactions. Load for layer registration patterns, markRaw usage, MglGeoJsonSource components, data-driven styling, and layer event handling. Covers the mapLayers store and dynamic layer composition.
How do I install the Maplibre Layers skill?
Claude Code plugin: /plugin marketplace add Freddy-CHEN-ux/00_claude_skills. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Maplibre Layers popular?
It lives in Freddy-CHEN-ux/00_claude_skills, which has 8 GitHub stars and 3 forks.
Related skills
Add Integration
8Freddy-CHEN-ux/00_claude_skills
Build a new API integration for Nexus. Load when user mentions "add integration", "new integration", "integrate with", "connect to [service]", or "build [service] integration". Interactive workflow that discovers API endpoints, plans the integration, and creates a project for implementation.
AI Agents
8Freddy-CHEN-ux/00_claude_skills
Production-grade AI agent patterns with MCP integration, agentic RAG, handoff orchestration, multi-layer guardrails, and observability (modern best practices)
AI LLM
8Freddy-CHEN-ux/00_claude_skills
Production LLM engineering skill. Covers strategy selection (prompting vs RAG vs fine-tuning), dataset design, PEFT/LoRA, evaluation workflows, deployment handoff to inference serving, and lifecycle operations with cost/safety controls.
Nextjs
8Freddy-CHEN-ux/00_claude_skills
Next.js conventions for VioletDashboard and Connect
Maplibre Camera
8Freddy-CHEN-ux/00_claude_skills
Use when implementing map camera animations (flyTo, easeTo, jumpTo), handling zoom transitions, or managing bearing/pitch. Load for useMapCamera composable patterns, preventing camera feedback loops, promise-based animations, and globe visibility filtering. ALWAYS use the composable, never direct map access.
Shadcn Vue
8Freddy-CHEN-ux/00_claude_skills
Context and reference for building UI with shadcn-vue components. Load when adding, modifying, or debugging UI components.
Browse the most popular Claude skills, all frontend & design skills, or write your own with the skills generator.