Real time analytics
Skill sairam0424/MindForge/.mindforge/skills/real-time-analytics
MindForge: The Enterprise Agentic Framework for Claude Code & Antigravity. High-performance autonomous execution, wave-parallelism, and multi-tier governance for production-grade AI engineering.
npx -y skills add sairam0424/MindForge --skill real-time-analyticsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 1 stars1 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.
SKILL.md
3.4 KB, 608 tokens by cl100k_base, as published. Nobody here has run it
Skill — Real-Time Analytics
When this skill activates
This skill activates when building sub-second query systems for analytical workloads, implementing real-time dashboards, or designing OLAP architectures. Use when users need live insights rather than batch-refreshed reports.
Mandatory actions when this skill is active
Before writing any code
- Profile query patterns to identify: aggregation dimensions, filter selectivity, time ranges, and concurrency requirements for index and materialization strategy
- Select appropriate OLAP engine: ClickHouse (fast scans, columnar), Druid (streaming ingestion, roll-ups), Pinot (low-latency queries), Redshift (AWS ecosystem)
- Design pre-aggregation strategy: which dimensions to roll up, granularity levels (minute/hour/day), and cardinality explosion prevention
- Calculate data volume and query throughput requirements: events/sec, retention period, query concurrency, and acceptable latency (p95/p99)
During implementation
- Implement streaming ingestion pipeline: Kafka → transformation → OLAP store with exactly-once semantics and backpressure handling
- Design table schema optimized for query patterns: sorting keys matching filters, partition keys for time pruning, materialized columns for computed fields
- Create pre-aggregation jobs for common metrics: tumbling windows for counts/sums, HyperLogLog for distinct counts, quantile sketches for percentiles
- Build materialized views for expensive joins and aggregations: incrementally updated, proper indexing, and staleness monitoring
- Implement query optimization: partition pruning, secondary indexes, caching layer (Redis), and query result memoization
- Design data retention policies: hot tier (recent, full granularity), warm tier (older, partial roll-up), cold tier (archived, summarized)
- Create query routing layer: directing simple queries to pre-aggregations, complex queries to raw data with circuit breakers for expensive operations
After implementation
- Build monitoring for ingestion pipeline: lag, throughput, error rates, and duplicate detection with alerting on anomalies
- Create query performance dashboards: latency percentiles, query volume, cache hit rates, expensive queries, and optimization opportunities
- Generate cost analysis reports: storage by tier, compute costs, query costs, and optimization recommendations (better indexes, more pre-aggs)
- Document query best practices: efficient filtering, avoiding full scans, using pre-aggregations, and when to use caching
Self-check before task completion
- Query latency meets SLA (typically p95 <1s, p99 <3s) for common dashboard queries under expected concurrency
- Pre-aggregation strategy covers 80%+ of query patterns with automated refresh and staleness monitoring
- Ingestion pipeline handles peak load with <1 minute lag and proper backpressure to prevent data loss
- Data retention policy implemented with automated tiering and archival to optimize costs
- Query optimization tested with partition pruning verified and slow query identification for further tuning