cartography
Skill by cap-collectif
Guides developers through building interactive maps with Leaflet and react-leaflet in the admin-next project. It covers markers, clustering, popups, geolocation and Mapbox tiles.
Install cartography
Built from the published package, never by AI.
git clone --depth 1 https://github.com/cap-collectif/cap-collectif /tmp/cap-collectif && mkdir -p ~/.claude/skills && cp -r /tmp/cap-collectif/.claude/skills/cartography ~/.claude/skills/cartographyRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/cap-collectif/cap-collectif /tmp/cap-collectif && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/cap-collectif/.claude/skills/cartography ~/.gemini/antigravity-cli/skills/cartographyAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill is an implementation guide for interactive maps in the admin-next/ directory. It uses Leaflet 1.9.4 and react-leaflet 4.2.1, with react-leaflet-markercluster for grouping markers. It covers markers, popups, custom icons, zoom and locate controls, geolocation, and Mapbox tiles and geocoding.
The guide provides React and Next.js code patterns. These include a dynamically imported map component with SSR disabled, Relay pagination for markers, a hook that syncs map bounds and center to the URL with nuqs, and an error boundary fallback. It points to example files in the cap-collectif project. It is aimed at developers working on that codebase.
Written from the project's SKILL.md and checked against it.
What it can do
- Map containerSets up a MapContainer with a Mapbox tile layer, a default France center and a maximum zoom of 18.
- Marker clusteringGroups large sets of markers with MarkerClusterGroup and recommended cluster options.
- Custom markersBuilds styled markers with L.divIcon and attaches popups to them.
- Map controlsAdds zoom in, zoom out and locate buttons with ARIA labels.
- GeolocationProvides a hook that calls map.locate and handles location found and error events.
- URL syncStores map bounds and center in URL query parameters using nuqs and restores them on load.
- Relay paginationLoads markers in batches, filtered by the visible map bounds.
- Error fallbackShows an ErrorBoundary message with a retry button when the map fails to load.
What you need
- Mapbox tokens for tiles and geocoding
- Next.js project
- Relay for GraphQL data
- @cap-collectif/ui components
Try asking
- Add a Leaflet map with clustered markers for proposals in admin-next.
- Create a custom divIcon marker colored by category with a popup.
- Sync the map bounds and center to the URL with nuqs.
Good to know
- Leaflet does not support server-side rendering, so the map must be loaded with ssr disabled.
- Written for the admin-next/ project and refers to its files and components.
- Some code snippets in the guide are incomplete.
- Clustering is recommended for more than 50 markers.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/cartography/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to cartography
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
cartography: common questions
Does this work with server-side rendering in Next.js?
The guide says Leaflet does not support SSR. It recommends a dynamic import with ssr set to false for every map component.
How are markers shown when there are many of them?
The guide recommends MarkerClusterGroup for more than 50 markers and Relay pagination loaded within the visible bounds.
Which map tiles and services does it use?
The guide uses Mapbox for tiles and geocoding, through a CapcoTileLayer and a getMapboxUrl helper.
How do I install cartography?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is cartography free?
The code is published under the AGPL-3.0 licence. The service it connects to may have its own pricing.
Is cartography safe to use?
It scores 53 of 100. Grades: maintenance A, licence C, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to cartography?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
