Use whenever the user wants a geographic map, addresses, point locations, choropleth or heat layers, neighborhood analysis, real-world routes, delivery coverage, GIS, census/statistics by territory, H3/PostGIS, 3D geographic visualization, fictional interactive worlds/fantasy atlases, or a publication-ready cartographic PDF.
Install
npx skillscat add arisnachy/phoenix-harnes/apps-cli-config-agent-presets-code-skills-geo-intelligence Install via the SkillsCat registry.
Phoenix Geo Intelligence — Universal Mission Engine capability
Phoenix is universal. Geographic mapping is a reusable capability for research,
business, logistics, healthcare, policy, statistics, tourism and reporting.
Kira should infer the user's natural intent and choose a sensible output
without asking the user to specify an engine or JSON schema.
Conversation contract
- Prefer an interactive geo_map block (version 1) inside the same chat
when the goal is exploration or choosing places; preserve surrounding
human-friendly explanation and allow map selection back into the composer. - For finished studies create reproducible GeoJSON, a geo-map.json, data
tables, statistics and a PDF, with clean legend, source, unit, date,
coordinate system and methods. Use the native map's PDF export button
or the CLI PDF command. Avoid giant raw JSON walls in the chat. - For one location: marker + address and verified point. For travel: real
provider route, never a straight line described as a driving route.
For territorial statistics: use actual data and color by declared metric
and polarity; do not invent denominators, regions, boundaries or claims. - Bind each map to the actual conversation/session ID through the chat UI.
Do not reuse MiniBrowser state across conversations. Persist datasets in a
durable workspace directory; never trust staging as permanent storage. - Access private location data only with authorization; do not send clinical
case addresses, precise locations of patients, secrets or private household
records to external providers without informed consent. Prefer aggregated
reporting with minimum-size thresholds for sensitive data.
Existing tools (check executable availability first)
Convert CSV or GeoJSON with real coordinates to a map with metadata and PDF:
pnpm geo --input datos.geojson --output mapa.geo-map.json --source "Fuente real" --title "Análisis territorial" --theme research --polarity neutral --report metodo.md --pdf mapa.pdf
pnpm test:geoNominatim-compatible geocoding (requires a privately configured instance or
licensed provider; do not call nominatim.openstreetmap.org for generic
Phoenix geocoding, and do not use forbidden autocomplete/bulk lookup):
pnpm geo:operations geocode --address "DIRECCION" --endpoint https://geocodificador-autorizado.example --output lugares.geojson
pnpm geo:operations reverse --position "[-70.7,19.45]" --endpoint https://geocodificador-autorizado.exampleActual OSRM geometry/distance/duration from a configured routing service:
pnpm geo:operations route --input paradas.json --profile driving --endpoint https://router-autorizado.example --output ruta.geojsonSpatial database (requires PostgreSQL, PostGIS, psql and account configured
via PG* environment vars; H3 also requires h3/h3_postgis extension):
pnpm geo:db init
pnpm geo:db import --workspace proyecto --scene mapa1 --input datos.geojson
pnpm geo:db hex --workspace proyecto --scene mapa1 --size 500 --map hex.geo-map.json --output hex.geojson
pnpm geo:db h3 --workspace proyecto --scene mapa1 --resolution 8 --map h3.geo-map.json --output h3.geojsonThe geo_map UI can represent points, routes/lines, polygons and circles;
supports layer visibility, color metrics, 2D/3D thematic extrusions, selections,
CSV/GeoJSON/SVG/PDF export. The 3D mode is a projected thematic surface: it
does NOT claim DEM-accurate terrain altitude without actual DEM data.
The Node PDF and chat PDF contain source-attributed vector geography rather
than pretending to show unlicensed raster map tiles. Do not claim PostGIS,
routing, geocoding, H3, live GPS, real-time traffic or publication unless a
real response was obtained and checked.
Use the tools already connected to Phoenix for data collection and authorized
geocoding; do not ask for provider credentials in public chat. If a provider
is not configured, preserve the project, explain exactly what configuration is
missing, and continue completing the parts that can be executed offline.
Report quality gate
Check underlying data and statistical definitions; never silently use sums
for rates, count of points for prevalence or reverse polarity of heat colors.
Record source/year/unit/denominator and spatial resolution. For H3 geometry
the PostGIS H3 extension is authoritative, not a planar imitation.
Always distinguish 2D basemap, map 3D extrusions and actual DEM terrain.
Validate output PDFs and GeoJSON before declaring them ready.
Mapas ficticios y narrativos (Isla Bruma, mundos de fantasía, videojuegos)
Ruta de entrega obligatoria: el motor ahora expone phoenix_scene_map como
herramienta model-facing. Llamar a esa herramienta para crear y publicar
mapas narrativos; el propio adaptador valida el esquema y adjunta un artefacto
con MIME application/vnd.phoenix.scene-map+json. Para Isla Bruma demo:phoenix_scene_map({title:"Isla Bruma",demo:true}). No basta escribir JSON
ni un párrafo; no se considera "publicado" hasta que la herramienta devuelvaartifactId. Eso confirma emisión, NO render del cliente.
Si la herramienta no está disponible, entregar un scene_map válido inline
como alternativa e informar que no hubo publicación de artefacto.
No usar geo_map con OpenStreetMap para mundos inventados. En su lugar,
emitir un componente scene_map en un bloque de respuesta generative-ui
válido (o artefacto JSON con MIME application/vnd.phoenix.scene-map+json).
Es un motor SVG interactivo nativo que funciona sin internet ni navegador.
Para un mapa ficticio solicitado en el chat, entregar el mapa renderizable
en el mismo turno, no solo declarar «lo publiqué». Ejemplo MÍNIMO — adaptar
nombres, historia y puntos a la solicitud del usuario:
{"component":"scene_map","version":1,"props":{"id":"isla-bruma","title":"Isla Bruma","subtitle":"Atlas exploratorio de un mundo imaginario","theme":"fantasy","description":"Cartografía narrativa ficticia, no geografía real.","places":[{"id":"puerto","name":"Puerto de la Niebla","x":22,"y":67,"kind":"port","description":"El puerto donde llegan las barcas al amanecer."},{"id":"bosque","name":"Bosque Susurrante","x":37,"y":62,"kind":"forest","description":"Árboles milenarios y senderos cubiertos de musgo."},{"id":"torre","name":"Torre del Viento","x":66,"y":32,"kind":"tower","description":"Una torre antigua domina los pasos montañosos."},{"id":"ruinas","name":"Ruinas del Alba","x":68,"y":69,"kind":"ruins","description":"Restos de un santuario perdido."},{"id":"ciudad","name":"Ciudad de Sal","x":52,"y":49,"kind":"city","description":"Capital de los cartógrafos de Bruma."}],"routes":[{"from":"puerto","to":"bosque","label":"Senda de musgo"},{"from":"bosque","to":"ciudad"},{"from":"ciudad","to":"torre"},{"from":"ciudad","to":"ruinas"}]}}Parámetros estrictos: lugares en coordenadas artísticas x,y entre 5 y
95 (no latitud/longitud), tipos city, port, forest, mountain,ruins, castle, tower, temple, cave, village, 2 a 35
lugares, con description para cada uno. Se pueden añadircoast como 8 a 64 pares [x,y] y routes entre identificadores
válidos. Evita iniciar navegadores. El usuario puede seleccionar sitios,
consultarlos a Kira y exportar SVG vectorial.
Regla anti-falsos positivos: Si no se ha entregado explícitamente
el bloque scene_map/artefacto válido y no hay evidencia del render,
NO responder «publicado», «probado» o «funciona». Entregar el contrato
nativo y comprobar lo emitido en el transcript. Si no se puede verificar
el clic, comunicar esa limitación, pero no confundir emisión de JSON
con render confirmado. Nunca sustituir el mapa solicitado por una
descripción de lo que supuestamente creaste.