/polymath-streaming:data-lake-layoutfrom polymath-streaming
Design the physical data lake — zones, paths, Parquet and Delta/Iceberg, file sizing, partitioning, compaction, lifecycle tiers.
Ships in polymath-streaming. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A lake's performance and cost are decided by its physical layout: how many files, how big, how partitioned, which table format, and where cold data lives. The logical model sits on top of this, so get the foundation right.
Mode: analytical — judgment inside a fixed frame. Keep the output shape; every verdict cites its evidence; unknowns are marked [TBD] or [VERIFY], never filled in.
Not this when: you are modeling the data (grain, dimensions, medallion semantics) — polymath-streaming:data-modeling; tuning Spark/Databricks jobs — polymath-streaming:lakehouse-performance; building the pipelines — data-pipeline.
polymath-database:data-retention-archiving), and cloud/provider constraints./{zone}/{domain}/{dataset}/… with partition folders only where partitioning is intended. Lowercase, no spaces, no PII in paths. Never encode schema version or environment inconsistently. Avoid deep nesting that inflates listing cost.OPTIMIZE/rewrite_data_files) and write-time batching.ls; renames on object stores aren't atomic (use committers/table formats); strongly consistent now on major clouds, but design commit protocols anyway.VACUUM, expire_snapshots, remove orphan files) to reclaim storage — coordinate with time-travel needs; compact before archiving. Replication/versioning on raw only if needed.event-schema-evolution for upstream contracts), quarantine invalid rows with the reason, and keep lineage/metadata (dataset descriptions, owners, freshness) in a catalog.DELETE/MERGE followed by VACUUM/snapshot expiry and backup aging.Data lake layout: retail analytics on ADLS Gen2 (Delta Lake, Unity Catalog)
Zones (one storage account each): raw / silver / gold ; plus quarantine + scratch (7 d expiry)
Paths: abfss://silver@lake/sales/orders/ (Delta) — no partition folders; liquid clustering (order_date, store_id)
Formats: raw — Avro (Event Hubs Capture) & CSV as delivered, immutable; bronze/silver/gold — Delta (Parquet + ZSTD)
Table format: Delta (Databricks primary; Iceberg UniForm for Trino readers) [VERIFY: engine matrix]
File sizing: target ≈ 256 MB–1 GB; auto compaction + predictive optimization; Capture files (5 min windows) compacted hourly into bronze
Partitioning: gold.daily_sales by sale_date (1.2 GB/day → fine); everything else clustered, not partitioned
Object-store: 8 hash-prefixed landing folders for the telemetry feed (throttle avoidance) [VERIFY: only if 503s]; no ls-based discovery (catalog only)
Lifecycle: raw → cool at 30 d, archive at 365 d; silver/gold hot; VACUUM 7 d; snapshots 30 d; scratch 7 d
Quality: schema enforcement at silver; quarantine table with reason code; owners/descriptions in the catalog
Security: RBAC per domain on containers; PII columns masked in gold; CMK per zone; erasure via DELETE + VACUUM + 35 d backup aging
Health metrics: avg file size per table (> 128 MB), files per partition, compaction lag, bytes scanned per query, $ per TB-month
Open: [TBD: retention for raw clickstream — legal/product decision]
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mohammadbafkar/polymath --plugin polymath-streaming9 skills in this plugin
/azure-event-hubs-designDesign and size Azure Event Hubs — tier, throughput units, partitions, consumer groups, checkpointing, Capture, Kafka endpoint./data-modelingModel analytical data — dimensional (star/snowflake) vs normalized vs lakehouse medallion layers, grain, partitioning, slowly-changing dimensions, and schema evolution./data-pipelineDesign a data pipeline — ETL vs ELT, batch vs streaming, orchestration/DAG, idempotent backfills, schema handling, data-quality checks, and lineage.Other plugins' skills for the same job