agentsclimarketplace

Materialized view visualization pattern

Skill kjuhwa/skills-hub/skills/design/materialized-view-visualization-pattern

Self-correcting knowledge corpus for Claude Code — 9 stable shape clusters, bias-correction pipeline baked into contribution flow. 47 papers, 45 techniques, 1.1k skills.

Install
npx -y skills add kjuhwa/skills-hub --skill materialized-view-visualization-pattern

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Visual layout conventions for rendering materialized view lifecycle (base tables → MV → queries) with staleness indicators

SKILL.md

2.0 KB, 369 tokens by cl100k_base, as published. Nobody here has run it

materialized-view-visualization-pattern

Materialized-view UIs benefit from a three-tier horizontal layout: base tables on the left (source-of-truth with write activity indicators), the materialized view node in the center (showing last-refresh timestamp, row count, and a staleness gauge), and dependent queries/consumers on the right. Use directed edges with animated dots during refresh events to make the ETL/incremental-merge flow visible; color the MV node by staleness state (green: fresh <TTL/3, amber: aging, red: stale beyond TTL, gray: refreshing-in-progress). A secondary lag strip under the MV node plots now() - last_refresh_at over time so users can see refresh cadence versus data drift at a glance.

For the staleness dashboard variant, pair the topology view with a companion panel showing three synchronized metrics: (1) row delta between base and MV, (2) refresh duration histogram, (3) query-hit-on-stale-data counter. When the planner variant is shown, overlay query plans with a boolean "used MV?" badge and a cost-delta vs. base-table plan so the MV's value is quantified per query. Keep all timestamps in a single timezone-aware format and render "X minutes ago" relative labels with a tooltip to the absolute timestamp to avoid the classic ambiguity bugs during DST transitions.

Avoid stacking multiple MVs vertically without grouping — if more than 3 MVs exist, use swim-lanes grouped by refresh strategy (on-commit, scheduled, manual) because mixing strategies in one column makes cadence patterns unreadable. Reserve the top-right corner for a global "refresh storm" indicator that lights up when >30% of MVs are refreshing concurrently, since this is the most common performance pathology users need to spot.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.