Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

geohash-spatial-code-maps

БесплатноБез исполняемых скриптовНе проверен

Geohash encoding/decoding in TypeScript or Rust — bit interleaving, the base32 alphabet, precision and cell geometry, neighbour/adjacency computation…

pproencaот pproenca★ 231 звезда на GitHub

Об этом скилле

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

Priority Category Impact Prefix Rules
1 Encoding & Bit Interleaving CRITICAL enc- 6
2 Precision & Cell Geometry CRITICAL prec- 5
3 Neighbours & Adjacency HIGH nbr- 5
4 Proximity & Range Queries HIGH qry- 5
5 Codebase-as-Map Spatial Layout HIGH map- 7
6 Decoding & Bounding Boxes MEDIUM-HIGH dec- 4
7 Spatial Indexing & Storage MEDIUM-HIGH idx- 5
8 Navigation & Rendering MEDIUM nav- 5

Quick Reference

1. Encoding & Bit Interleaving (CRITICAL)

2. Precision & Cell Geometry (CRITICAL)

3. Neighbours & Adjacency (HIGH)

4. Proximity & Range Queries (HIGH)

Полный SKILL.md на GitHub

Установить geohash-spatial-code-maps в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

AGENTS.mdassets/templates/_template.mdmetadata.jsonreferences/_sections.mdreferences/dec-avoid-roundtrip-reencode.mdreferences/dec-decode-to-bbox.mdreferences/dec-precompute-reverse-alphabet.mdreferences/dec-symmetric-interval-reconstruction.mdreferences/enc-base32-alphabet.mdreferences/enc-binary-chop-no-float-drift.mdreferences/enc-five-bit-char-boundary.mdreferences/enc-integer-morton-encode.mdreferences/enc-interleave-longitude-first.mdreferences/enc-normalize-input-domain.mdreferences/idx-db-prefix-index.mdreferences/idx-integer-sortable-key.mdreferences/idx-range-query-from-covering-set.mdreferences/idx-sorted-string-range-scan.mdreferences/idx-trie-hierarchical-bucketing.mdreferences/map-coupling-implies-proximity.mdreferences/map-deterministic-projection.mdreferences/map-normalize-to-geohash-domain.mdreferences/map-persist-coordinate-sidecar.mdreferences/map-precision-as-architectural-level.mdreferences/map-prefix-as-domain-region.mdreferences/map-stable-coordinates.mdreferences/nav-breadcrumb-prefix-path.mdreferences/nav-cluster-by-prefix.mdreferences/nav-level-of-detail-aggregation.mdreferences/nav-precision-to-zoom-levels.mdreferences/nav-tile-lazy-loading.mdreferences/nbr-antimeridian-wrap.mdreferences/nbr-canonical-lookup-tables.mdreferences/nbr-eight-neighbor-set.mdreferences/nbr-integer-level-neighbors.mdreferences/nbr-pole-handling.mdreferences/prec-avoid-mixed-precision.mdreferences/prec-cells-are-not-square.mdreferences/prec-cells-shrink-toward-poles.mdreferences/prec-choose-from-error-radius.md

FAQ

Что делает скилл geohash-spatial-code-maps?

Geohash encoding/decoding in TypeScript or Rust — bit interleaving, the base32 alphabet, precision and cell geometry, neighbour/adjacency computation, proximity and bounding-box queries, and geohash-backed spatial indexing. Also covers the "codebase as a navigable 2D map" pattern — projecting a codebase into a coordinate plane, geohashing it so prefixes become business-domain regions, and navigating it like Google Maps (zoom, tiles, level-of-detail, clustering, deep links). Trigger when implementing, reviewing, or debugging geohash work — even when the user does not say "geohash" but the work involves spatial hashing, Morton/Z-order codes, proximity search on lat/lon, or mapping and visualising code structure spatially. Contains 42 impact-ordered rules with TypeScript and Rust examples.

Как установить скилл geohash-spatial-code-maps?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл geohash-spatial-code-maps запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить geohash-spatial-code-maps с