Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
pproenca avatar

Geohash Spatial Code Maps

  • 69 installs
  • 191 repo stars
  • Updated July 24, 2026
  • pproenca/dot-skills

geohash-spatial-code-maps is a Claude Code skill for ai & agent building.

About

geohash-spatial-code-maps is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted coding.

  • geohash-spatial-code-maps
  • AI & Agent Building
  • AI-coding skill

Geohash Spatial Code Maps by the numbers

  • 69 all-time installs (skills.sh)
  • +6 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #5,760 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
npx skills add https://github.com/pproenca/dot-skills --skill geohash-spatial-code-maps

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs69
repo stars191
Last updatedJuly 24, 2026
Repositorypproenca/dot-skills

How do I helps with ai & agent building tasks during AI-assisted development.?

Helps with ai & agent building tasks during AI-assisted development.

Who is it for?

Best when you're working on ai & agent building and need structured help with geohash spatial code maps.

Skip if: Teams with no ai & agent building needs, or anyone wanting a generic chat assistant without this specific workflow.

When should I use this skill?

When you need to helps with ai & agent building tasks during AI-assisted development., or when geohash-spatial-code-maps is a claude code skill for ai & agent building.

What you get

Structured output aligned to geohash-spatial-code-maps: geohash-spatial-code-maps, AI & Agent Building.

Files

SKILL.mdMarkdownGitHub ↗

Geohash & Spatial Code Maps Best Practices

How to implement geohashes correctly in TypeScript and Rust, how to query and index them at scale, and how to apply them to the "codebase as a navigable 2D map" pattern — projecting code into a plane so geohash prefixes become domain regions you can fly through like Google Maps. Contains 42 rules across 8 categories, prioritised by impact.

When to Apply

Reference these guidelines when:

  • Implementing or reviewing a geohash encoder/decoder in TypeScript or Rust (bit interleaving, base32, precision, neighbours)
  • Building proximity / radius / bounding-box search on lat/lon data, or storing geohashes as index keys (SQL B-tree, Redis sorted sets)
  • Debugging the classic geohash bugs — swapped axes, wrong alphabet, border false negatives, off-by-one cells at high precision
  • Projecting a codebase (or any abstract graph) into a 2D plane and geohashing it so prefixes name business domains or features
  • Navigating a geohashed dataset like a slippy map: zoom-to-precision, viewport tile loading, level-of-detail aggregation, prefix clustering, deep links

A note on scope

Categories 1–4, 6, and 7 are textbook geohashing, drawn from authoritative sources (the geohash spec, the davetroy/geohash-js neighbour tables, Redis, Elasticsearch). Categories 5 (map-) and 8 (nav-) are a novel synthesis — there is no canonical "geohash your codebase" library, so those rules derive design principles from established techniques (deterministic graph layout, Morton/Z-order keys, slippy-map tiling, software cartography). They are honest about when the pattern is overkill.

Rule Categories by Priority

PriorityCategoryImpactPrefixRules
1Encoding & Bit InterleavingCRITICALenc-6
2Precision & Cell GeometryCRITICALprec-5
3Neighbours & AdjacencyHIGHnbr-5
4Proximity & Range QueriesHIGHqry-5
5Codebase-as-Map Spatial LayoutHIGHmap-7
6Decoding & Bounding BoxesMEDIUM-HIGHdec-4
7Spatial Indexing & StorageMEDIUM-HIGHidx-5
8Navigation & RenderingMEDIUMnav-5

Quick Reference

1. Encoding & Bit Interleaving (CRITICAL)

  • `enc-interleave-longitude-first` — Interleave longitude on even bits, latitude on odd
  • `enc-base32-alphabet` — Use the geohash base32 alphabet, not RFC 4648
  • `enc-integer-morton-encode` — Encode to an interleaved 64-bit integer for speed and sortable keys
  • `enc-binary-chop-no-float-drift` — Recompute interval midpoints; never accumulate a float step
  • `enc-normalize-input-domain` — Clamp latitude, wrap longitude, reject non-finite input
  • `enc-five-bit-char-boundary` — Accumulate exactly five bits per character

2. Precision & Cell Geometry (CRITICAL)

  • `prec-choose-from-error-radius` — Choose geohash length from the required error radius
  • `prec-cells-are-not-square` — Treat cells as rectangles whose aspect flips with length
  • `prec-error-is-half-cell` — Report decoded accuracy as half the cell, not the full cell
  • `prec-cells-shrink-toward-poles` — Scale longitude metres by cos(latitude)
  • `prec-avoid-mixed-precision` — Normalise to one precision before comparing or storing

3. Neighbours & Adjacency (HIGH)

  • `nbr-canonical-lookup-tables` — Compute neighbours with the canonical border/neighbour tables
  • `nbr-antimeridian-wrap` — Wrap east/west neighbours across the antimeridian
  • `nbr-pole-handling` — Return no neighbour past the poles
  • `nbr-integer-level-neighbors` — Compute neighbours on the de-interleaved integer
  • `nbr-eight-neighbor-set` — Build the full eight-neighbour set for proximity

4. Proximity & Range Queries (HIGH)

  • `qry-search-cell-plus-neighbors` — Query the cell plus its eight neighbours, never the prefix alone
  • `qry-precision-from-radius` — Match query precision to the search radius
  • `qry-bbox-range-decomposition` — Decompose a bounding box into covering geohash ranges
  • `qry-refine-with-haversine` — Refine geohash candidates with true distance
  • `qry-expand-precision-when-sparse` — Widen the search by dropping a prefix character on sparse cells

5. Codebase-as-Map Spatial Layout (HIGH)

  • `map-deterministic-projection` — Project code into 2D from a structural signal, not arbitrary layout
  • `map-stable-coordinates` — Make coordinates reproducible and incremental-stable
  • `map-normalize-to-geohash-domain` — Normalise the code plane into the geohash lat/lon domain
  • `map-coupling-implies-proximity` — Validate that coupled code lands in the same region
  • `map-prefix-as-domain-region` — Treat a geohash prefix as a named domain region
  • `map-precision-as-architectural-level` — Map prefix length to architectural level
  • `map-persist-coordinate-sidecar` — Persist the file-to-geohash assignment as a committed sidecar

6. Decoding & Bounding Boxes (MEDIUM-HIGH)

  • `dec-decode-to-bbox` — Decode to a bounding box, then derive the centre
  • `dec-symmetric-interval-reconstruction` — Decode by mirroring the encoder's interval halving
  • `dec-avoid-roundtrip-reencode` — Keep the original hash; don't decode-then-re-encode
  • `dec-precompute-reverse-alphabet` — Decode with a precomputed reverse-alphabet table

7. Spatial Indexing & Storage (MEDIUM-HIGH)

  • `idx-sorted-string-range-scan` — Store geohashes as sorted strings for prefix range scans
  • `idx-integer-sortable-key` — Use the interleaved integer as a compact sortable key
  • `idx-db-prefix-index` — Make prefix queries sargable in Postgres and Redis
  • `idx-range-query-from-covering-set` — Execute a box query as range scans over the covering set
  • `idx-trie-hierarchical-bucketing` — Aggregate by region with a geohash trie

8. Navigation & Rendering (MEDIUM)

  • `nav-precision-to-zoom-levels` — Map geohash precision to zoom levels
  • `nav-level-of-detail-aggregation` — Render aggregated prefix buckets when zoomed out
  • `nav-tile-lazy-loading` — Load only the geohash cells in the viewport
  • `nav-cluster-by-prefix` — Cluster overlapping markers by shared prefix
  • `nav-breadcrumb-prefix-path` — Use the geohash prefix as navigation state and deep link

How to Use

Read individual reference files for detailed explanations, code examples, and "when NOT to apply" guidance:

  • Section definitions — Category structure and impact levels
  • Rule template — Template for adding new rules

Rules cross-link via [[other-rule-slug]]; follow them when a related pattern is referenced. To build a code map end to end, the spine is: `map-deterministic-projection``map-normalize-to-geohash-domain` → encode (category 1) → `map-prefix-as-domain-region` → navigate (category 8).

Reference Files

FileDescription
references/_sections.mdCategory definitions and ordering
assets/templates/_template.mdTemplate for new rules
metadata.jsonVersion and reference information

Related skills

FAQ

What does geohash-spatial-code-maps do?

geohash-spatial-code-maps is a Claude Code skill for ai & agent building.

When should I use geohash-spatial-code-maps?

When you need to helps with ai & agent building tasks during AI-assisted development., or when geohash-spatial-code-maps is a claude code skill for ai & agent building.

What are the main capabilities?

geohash-spatial-code-maps; AI & Agent Building; AI-coding skill.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.