kendrick-oppong/geoskills/geospatial-system-architecture

Claude Code and agent skill by kendrick-oppong/geoskills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when designing the overall architecture of a WebGIS/geospatial product — service boundaries between ingestion/processing/tile-serving/API layers, caching strategy at each layer, scaling considerations, and Docker/deployment topology for a stack combining GDAL, PostGIS, a tile server, and a NestJS/Next.js application layer.

Install

npx vskill@latest install kendrick-oppong/geoskills/geospatial-system-architecture

SKILL.md

The same SKILL.md was published earlier as kendrick-oppong/geoskills/geospatial-system-architecture.

Geospatial System Architecture

When to use this skill

  • Designing a new WebGIS product's overall system topology from scratch
  • Deciding service boundaries between data ingestion, processing, storage, tiling, and the application API
  • "How should these pieces fit together" for a stack like NestJS + PostGIS + a tile server + a Next.js/Electron frontend

Reference architecture (layered)

[Raw data sources] -> [Ingestion/ETL] -> [Storage] -> [Processing] -> [Serving] -> [Application/Frontend]
satellite imagery GDAL/rasterio PostGIS/ ML/analysis Tile server Next.js / Electron
field data uploads ogr2ogr scripts object storage jobs + CDN cache NestJS API layer
third-party APIs (batch/queue) (COG/GeoParquet) OGC API/REST

Key architectural decisions and defaults:

  • Ingestion is asynchronous/queued, not synchronous with user requests — large file processing (reprojection, tiling, index-building) belongs in a background job queue (BullMQ over Redis pairs naturally with a NestJS backend), never blocking an HTTP request.
  • Separate "hot" serving path from "cold" processing path: the API/tile-serving layer that users hit directly should read from pre-processed, indexed, cache-friendly stores (PostGIS with indexes, pre-generated tiles, COGs) — never run expensive on-demand geoprocessing (large reprojection, heavy raster analysis) inside a user-facing request.
  • Cache aggressively at the layer closest to the client: CDN for static tiles (PMTiles/COG/MBTiles-served-as-static-files) is cheaper and more scalable than caching at the application layer, which is cheaper than repeatedly querying the database.
  • Choose static vs dynamic tiling per dataset (see vector-tile-pipeline) as a first-order architectural decision, not an afterthought — this determines whether a whole tile-serving service is even needed.
  • Keep geoprocessing dependencies (GDAL, PROJ) containerized and pinned: version mismatches between GDAL/PROJ versions across environments are a very common source of "works on my machine" geospatial bugs — a Docker image with pinned GDAL/PROJ versions used consistently across dev/CI/prod avoids this class of bug entirely.

Checklist

  • [ ] Is there a clear boundary between synchronous request-serving code and asynchronous heavy processing (job queue), so a large upload/reprocessing task can't block or crash the API process?
  • [ ] Is the tile-serving decision (static+CDN vs dynamic tile server) made deliberately per dataset rather than defaulting to "run a tile server for everything"?
  • [ ] Are GDAL/PROJ/geospatial library versions pinned and identical across dev, CI, and production (containerized) — mismatches here cause subtle reprojection/format bugs that are hard to reproduce
  • [ ] Is there an appropriate caching layer at each tier (CDN → application cache → database), with TTLs matched to how often the underlying data actually changes?
  • [ ] Does the architecture separate the "public-facing API contract" (versioned, stable) from internal processing implementation details, so processing pipelines can be swapped/upgraded without breaking API consumers?
  • [ ] For a desktop (Electron) + web (Next.js) dual-frontend product sharing a NestJS backend, is spatial business logic centralized in the backend/shared package rather than duplicated per frontend?
  • [ ] Is there a plan for horizontal scaling of the tile-serving and API layers independently from the (typically harder-to-scale) database layer — read replicas, connection pooling (PgBouncer), or read-optimized caches in front of PostGIS?

Common pitfalls

  • Running expensive geoprocessing synchronously inside an HTTP request handler: a single large upload triggering an in-request reprojection/tiling job will time out or block the event loop (especially damaging in a single-threaded Node/NestJS process without offloading to workers).
  • Standing up a dynamic tile server for every layer "to be safe": unnecessary operational surface for data that rarely changes — decide per-dataset.
  • Unpinned GDAL/PROJ versions across environments: a classic source of bugs that only appear in production and are hard to trace to a library version mismatch.
  • Duplicating spatial business logic between an Electron desktop app and a web frontend instead of centralizing it in a shared backend service or shared package — leads to divergent behavior over time.
  • No read/write separation as data volume grows: routing all read-heavy tile/API queries through the same primary database connection pool as writes limits scaling headroom unnecessarily early.

Related skills

  • vector-tile-pipeline — the static-vs-dynamic tiling decision referenced above
  • postgis-geospatial — the database layer's own scaling/indexing concerns
  • geospatial-testing-strategy — testing this kind of multi-layer system

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/kendrick-oppong/geoskills/geospatial-system-architecture/badge)](https://verified-skill.com/skills/kendrick-oppong/geoskills/geospatial-system-architecture)

Something wrong with this skill or its page? Tell us.