Context Analytics

by stars-end

skill

|

Skill Details

Repository Files

1 file in this skill directory


name: context-analytics description: | Portfolio analytics, metrics calculation, performance tracking, and dashboard data. Use when working with analytics code, files, or integration. Invoke when navigating analytics codebase, searching for analytics files, debugging analytics errors, or discussing analytics patterns. Keywords: analytics, analytics tags: []

analytics Context

Files: 12 files, 2603 LOC

Quick navigation for analytics area. Indexed 2025-11-22.

Quick Navigation

Database (Active)

  • supabase/migrations/20250925120003_analytics_engine_optimization_notes.sql ✅ CURRENT
  • supabase/migrations/20250930201801_add_multi_level_analytics_functions.sql ✅ CURRENT
  • supabase/migrations/20250930201803_add_multi_level_analytics_functions.sql ✅ CURRENT

Frontend (Active)

  • frontend/src/services/analyticsApi.ts ✅ CURRENT

Frontend (Active)

  • frontend/src/components/AnalyticsDashboard.tsx ✅ CURRENT

Backend (Active)

  • backend/analytics_supabase.py ✅ CURRENT

Backend (Active)

  • backend/api/analytics_api.py ✅ CURRENT
  • backend/api/analytics_api_original.py ✅ CURRENT

Backend (Active)

  • backend/services/analytics_service.py ✅ CURRENT

Backend (Deprecated)

  • backend/api/analytics_api_backup.py ❌ DO NOT EDIT
  • backend/api/analytics_api_backup_pre_clerk.py ❌ DO NOT EDIT

Frontend (Test)

  • frontend/src/tests/services/analyticsApi.test.ts

How to Use This Skill

When navigating analytics code:

  • Use file paths with line numbers for precise navigation
  • Check "CURRENT" markers for actively maintained files
  • Avoid "DO NOT EDIT" files (backups, deprecated)
  • Look for entry points (classes, main functions)

Common tasks:

  • Find API endpoints: Look for *_api.py:* files
  • Find business logic: Look for *_service*.py or engine classes
  • Find data models: Look for *_models.py or schema definitions
  • Find tests: Check "Tests" section

Serena Quick Commands

# Get symbol overview for a file
mcp__serena__get_symbols_overview(
  relative_path="<file_path_from_above>"
)

# Find specific symbol
mcp__serena__find_symbol(
  name_path="ClassName.method_name",
  relative_path="<file_path>",
  include_body=True
)

# Search for pattern
mcp__serena__search_for_pattern(
  substring_pattern="search_term",
  relative_path="<directory>"
)

Maintenance

Regenerate this skill:

scripts/area-context-update analytics

Edit area definition:

# Edit .context/area-config.yml
# Then regenerate
scripts/area-context-update analytics

Area: analytics Last Updated: 2025-11-22 Maintenance: Manual (regenerate as needed) Auto-activation: Triggers on "analytics", "navigate analytics", "analytics files"

Related Skills

Attack Tree Construction

Build comprehensive attack trees to visualize threat paths. Use when mapping attack scenarios, identifying defense gaps, or communicating security risks to stakeholders.

skill

Grafana Dashboards

Create and manage production Grafana dashboards for real-time visualization of system and application metrics. Use when building monitoring dashboards, visualizing metrics, or creating operational observability interfaces.

skill

Matplotlib

Foundational plotting library. Create line plots, scatter, bar, histograms, heatmaps, 3D, subplots, export PNG/PDF/SVG, for scientific visualization and publication figures.

skill

Scientific Visualization

Create publication figures with matplotlib/seaborn/plotly. Multi-panel layouts, error bars, significance markers, colorblind-safe, export PDF/EPS/TIFF, for journal-ready scientific plots.

skill

Seaborn

Statistical visualization. Scatter, box, violin, heatmaps, pair plots, regression, correlation matrices, KDE, faceted plots, for exploratory analysis and publication figures.

skill

Shap

Model interpretability and explainability using SHAP (SHapley Additive exPlanations). Use this skill when explaining machine learning model predictions, computing feature importance, generating SHAP plots (waterfall, beeswarm, bar, scatter, force, heatmap), debugging models, analyzing model bias or fairness, comparing models, or implementing explainable AI. Works with tree-based models (XGBoost, LightGBM, Random Forest), deep learning (TensorFlow, PyTorch), linear models, and any black-box model

skill

Pydeseq2

Differential gene expression analysis (Python DESeq2). Identify DE genes from bulk RNA-seq counts, Wald tests, FDR correction, volcano/MA plots, for RNA-seq analysis.

skill

Query Writing

For writing and executing SQL queries - from simple single-table queries to complex multi-table JOINs and aggregations

skill

Pydeseq2

Differential gene expression analysis (Python DESeq2). Identify DE genes from bulk RNA-seq counts, Wald tests, FDR correction, volcano/MA plots, for RNA-seq analysis.

skill

Scientific Visualization

Meta-skill for publication-ready figures. Use when creating journal submission figures requiring multi-panel layouts, significance annotations, error bars, colorblind-safe palettes, and specific journal formatting (Nature, Science, Cell). Orchestrates matplotlib/seaborn/plotly with publication styles. For quick exploration use seaborn or plotly directly.

skill

Skill Information

Category:Skill
Last Updated:11/30/2025