globe-gl — Claude Code skill: what it does, how to install
Sets up 3D globe visualizations using globe.gl with WebGL and ThreeJS. Helps configure data layers like points, arcs, and polygons in plain HTML or React.
npx skills add MengTo/Skills --skill globe-gl -a claude-codeWhat globe-gl does
This skill guides the coding agent through setting up globe.gl via ESM imports or script tags, as well as react-globe.gl. It follows a clear workflow: confirm the runtime environment, generate a minimal setup snippet, and apply layer-specific fields. Interactions and extra layers are added only when requested.
Supported visualizations include points, arcs, polygons, paths, heatmaps, hex bins, and custom 3D objects. Container dimensions must be defined explicitly in CSS. The globe automatically fills its parent element.
For mobile screens, reducing point count and size is necessary to prevent WebGL lag. The skill also suggests using a darker globe texture if you need high-contrast neon data overlays.
What it helps with
- embed a 3D globe using ESM modules or standard script tags
- render geospatial data as arcs, points, or country polygons
- integrate globe.gl into a React application using react-globe.gl
- adjust WebGL container sizing and mobile rendering performance
Example prompts for the agent
- Create a 3D globe in plain HTML using globe.gl showing flight arcs
- Add a react-globe.gl component with country polygons and a dark texture
- Set up a ThreeJS globe that plots coordinates from a JSON points dataset
How to install globe-gl
1Skills CLI (Vercel)
npx skills add MengTo/Skills --skill globe-gl -a claude-code2Manually: put the files in place
~/.claude/skills/globe-gl/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/globe-gl/
1Skills CLI (Vercel)
npx skills add MengTo/Skills --skill globe-gl -a codex2Manually: put the files in place
.agents/skills/globe-gl/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add MengTo/Skills --skill globe-gl -a cursor2Manually: put the files in place
.cursor/skills/globe-gl/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install MengTo/Skills globe-gl2Manually: put the files in place
.github/skills/globe-gl/SKILL.md1Skills CLI (Vercel)
npx skills add MengTo/Skills --skill globe-gl -a gemini-cli2Platform CLI
gemini skills install https://github.com/MengTo/Skills --path agent-skills/web-design/globe-glManually: put the files in place
.devin/skills/globe-gl/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add MengTo/Skills --skill globe-gl -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about globe-gl
How do I install globe-gl in Claude Code?
Run npx skills add MengTo/Skills --skill globe-gl -a claude-code. The skill file will be stored at ~/.claude/skills/globe-gl/SKILL.md.
What does the globe-gl skill do?
It provides setup workflows and boilerplate for globe.gl in plain HTML or React. It helps the model pick proper data layers, manage CSS container sizing, and avoid mobile performance issues.
How does the skill handle mobile performance?
It instructs the agent to reduce point count and point size on mobile viewports. This keeps WebGL frame rates stable when rendering heavy datasets.
Source text
SKILL.md · MIT
---
name: globe-gl
description: Use when implementing globe.gl (Globe.GL) for 3D globe data visualization with WebGL/ThreeJS, including setup, data layers (points, arcs, polygons, labels), and integration patterns in plain HTML or React.
---
# Globe.GL Skill
## Workflow
1. Confirm environment (plain HTML, framework, React bindings) and the data layers needed.
2. Provide a minimal quick-start snippet plus the layer-specific fields.
3. Add interactions or extra layers only if requested.
4. Call out container sizing and performance considerations.
## Quick start (ESM)
```html
<script type="module">
import Globe from 'globe.gl';
const myGlobe = new Globe(document.getElementById('globe'))
.globeImageUrl(myImageUrl)
.pointsData(myData);
</script>
```
## Quick start (script tag)
```html
<script src="//cdn.jsdelivr.net/npm/globe.gl"></script>
<script>
const myGlobe = new Globe(document.getElementById('globe'))
.globeImageUrl(myImageUrl)
.pointsData(myData);
</script>
```
## Common layers to mention
- Points
- Arcs
- Polygons
- Paths
- Heatmaps and hex bins
- Labels or HTML elements
- 3D objects and custom layers
## Practical tips
- Size the container with CSS; the globe fills its parent element.
- Reduce point count or size for performance on mobile.
- Use a darker globe texture for neon-style data overlays.
## Questions to ask when specs are missing
- Which layers do you need (points, arcs, polygons, labels)?
- What should the globe size be on desktop vs mobile?
- Do you want drag/rotate interactions or a static globe?
- Is this plain HTML, React (`react-globe.gl`), or another framework?
© MengTo · MIT · MengTo/Skills