explaingit

songsummer920-dazzle/three-scope-map-skill

13VueAudience · vibe coderComplexity · 3/5ActiveSetup · moderate

TLDR

Codex skill that builds a dark-HUD 3D dashboard map with Three.js and GeoJSON, covering world, country, province, city, and district scopes with drilldown.

Mindmap

mindmap
  root((three-scope-map))
    Inputs
      GeoJSON
      Terrain textures
      Theme colour
    Outputs
      3D Vue map
      Drilldown layers
      HUD style
    Use Cases
      Dashboard map
      Region drilldown
      Smart-mine view
    Tech Stack
      Vue 3
      Three.js
      Vite
      Python

Things people build with this

USE CASE 1

Add a 3D dashboard map with country, province, and city drilldown to a Vue app

USE CASE 2

Use Codex to scaffold a Vue 3 plus Vite plus TypeScript project with a Three.js map

USE CASE 3

Apply a dark HUD theme generated from a single accent colour to a 3D map

USE CASE 4

Swap GeoJSON, labels, and fly-line endpoints to retarget the map to a new region

Tech stack

VueThree.jsViteTypeScriptPythonGeoJSON

Getting it running

Difficulty · moderate Time to first run · 1h+

Needs Codex, a Vue 3 plus Vite plus TypeScript project, valid GeoJSON, and Python for the helper scripts.

In plain English

This repository contains a Codex skill called three-scope-map. The skill is a bundle of instructions, scripts, and a Vue template that lets the Codex coding agent build a 3D map for a web dashboard using Three.js and real GeoJSON data. The README is bilingual, with English prose and Chinese prompts. The skill covers five scopes of map: world, country, province, city, and district. Apart from district, each scope supports drilldown into the next level, so a user can click into a country, then a province, then a city. The visual style is what the README calls dark HUD: dark background, accent colours, extruded geometry, gradient sides, terrain textures, outer contour outlines, labels, scatter points, ripple effects, fly lines, hover lift, and a base ring. A theme generator can derive the full colour set from one main colour. Inside the skill is a one-to-one Vue 3 template based on a validated smart-mine dashboard map. The README recommends pointing Codex at this template first rather than asking it to invent a new map component, and gives a sentence to paste into the prompt to enforce that. To change region, only the GeoJSON, labels, terrain scope, fly-line endpoints, drilldown registry, and camera config need replacing. The skill ships several helper scripts in Python. They validate or download GeoJSON, validate or generate terrain textures, generate and apply a theme from one colour, recolour the bundled label SVG, preprocess GeoJSON for smoother runtime rendering, and check that a target project has the required Vue, Vite, and Three.js setup plus the copied template files. Install is by copying the three-scope-map folder into ~/.codex/skills/. The README provides Chinese prompt templates for two cases: starting from an empty folder, where the agent should set up a Vue 3 plus Vite plus TypeScript project from scratch, and adding the 3D map to an existing app. The notes ask users to confirm GeoJSON and texture data licences before any commercial use.

Copy-paste prompts

Prompt 1
Walk me through copying the three-scope-map folder into ~/.codex/skills and pointing Codex at the Vue template prompt.
Prompt 2
Show me how to swap the bundled GeoJSON and terrain textures for a custom city map without breaking drilldown.
Prompt 3
Run the Python helper to generate a dark HUD theme from one accent colour and apply it to the map template.
Prompt 4
Explain the drilldown registry in three-scope-map and how clicks travel from country to province to city scope.
Prompt 5
Help me add ripple effects and fly lines between two cities on the three-scope-map dashboard with custom endpoints.
Open on GitHub → Explain another repo

Generated 2026-05-22 · Model: sonnet-4-6 · Verify against the repo before relying on details.