Data Structure City — Data skill for Claude Code
Type Redis-like commands and watch a hash map, a B-tree, a skip list and an LRU cache change shape side by side, with per-operation cost meters and guided tours that ask you to predict each rehash, sp.
How to install Data Structure City
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open pisan-labs/data-structure-city and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Data Structure City does
Type Redis-like commands and watch a hash map, a B-tree, a skip list and an LRU cache change shape side by side, with per-operation cost meters and guided tours that ask you to predict each rehash, split or eviction. Built with Claude Code.
Alternatives in Data
- NERV UI V2 — Operations Console Component Library — Build web interfaces that feel like NERV designed them 194 ★
- FACT — FACT – Fast Augmented Context Tools: FACT is a lean retrieval pattern that skips vector search 161 ★
- Code Archaeology — Recover the structure, intent, and lineage of old code, data, or analysis 130 ★
README
Data Structure City
Four buildings and one console. Every command you type runs against a **hash map**, a **B-tree**, a **skip list** and an **LRU cache** at the same time, so you can watch each one change shape and compare what the same operation cost in each.
Live:

Built from the idea "Data Structure City" (2026-09-26, #2) in [`pisanuw/daily-project-ideas`](https://github.com/pisanuw/daily-project-ideas).
What you can do
- Type Redis-like commands:
SET key value [EX ticks],GET,DEL,EXPIRE,TTL,TICK,RANGE lo hi,FILL n [prefix],CAPACITY n,SEED n,KEYS,RESET,HELP. Up arrow recalls history;/focuses the console from anywhere. - Watch the internals:
- Hash map: separate chaining, 4 buckets to start, doubles when the load factor would pass 0.75. Collided buckets are outlined; a rehash moves every entry, and the meter shows the spike.
- B-tree: minimum degree 2 (a 2-3-4 tree), CLRS-style: full nodes split on the way down, and deletes borrow from or merge with a sibling on the way down. Splits, merges, borrows, growth and shrinkage are reported.
- Skip list: p = 1/2 towers from a seeded PRNG, so the same commands and
seed build the same city for every student.
SEED npicks another. - LRU cache: hash index plus a recency list, 5 slots by default. Hits move
to the front; a full cache evicts the tail. It forgets on purpose, so
GETcan miss in the cache while the other three buildings hit.
- Read the cost meters: each building shows the last operation's cost, the running mean (the amortized cost) and the worst single operation, split into probes (buckets, nodes, slots visited)
Related Skills
Email Watch
Scan Gmail like a recruiter with eyes on the inbox. Surfaces inbound opportunities, pipeline updates, stale th
Data Engineer Boilerplate
GENERATOR — scaffolds mature folder/boilerplate structure for Airflow 3.1.7 + dbt + PySpark data projects. Out
Fable Sentinel
CLI for keeping Claude Fable 5 prompts, skills, and API traffic in shape — lint anti-patterns, canary silent d
Wholesale Realestate
A Claude Code skill for wholesale real estate investors. Search motivated seller leads by city using live web
Wp Claude Code
A Claude Code-style AI assistant interface for WordPress development and management. Provides intelligent Word
Council Sim
AI-powered city council debate simulator for data center proposals. 5 AI agents debate a data center proposal
Related Agents
Engineering Frontend
Frontend implementation specialist — UI components, responsive design, instrumentation, user docs, and guided
Subscription And Renewal Watch
Monthly subscription and renewal watch for {{owner.name}} (based in {{owner.home_city}}, {{owner.home_country}
Travel Agent
The single entry point for any trip request: a stay, a multi-city itinerary, or both. Gathers requirements (ne