- Home
- Skills
- Agents & Orchestration
- Ecommerce Dashboard
Ecommerce Dashboard
Build an interactive Streamlit dashboard for Brazilian e-commerce data with SQL optimization and ML customer clustering.
$1
Ecommerce Dashboard
Example session with this skill installed
Create a dashboard analysis plan for Brazilian e-commerce data including customer segmentation.
- Read your context and instructions
- Compiled the ecommerce dashboard
I have prepared the analysis plan and dashboard structure based on the provided technical requirements. This setup focuses on resolving the data relationship gaps and implementing the K-Means clustering model.
E-commerce Analysis Implementation
| Component | Technical Implementation | Goal |
|---|---|---|
| Data Engine | SQLite with Triple-Join (orders + shopping + products) | Link subcategories to specific orders |
| Preprocessing | StandardScaler for RFM features | Normalize data for cluster stability |
| ML Model | Scikit-Learn KMeans | Segment customers into VIP, Active, and Churn-Risk |
| Frontend | Streamlit Tabs (Overview, Regional, Payments) | Executive-level UI organization |
| Visuals | Plotly Express dynamic charts | Real-time filtering and seasonality tracking |
import pandas as pd
from sklearn.preprocessing import StandardScaler
from sklearn.cluster import KMeans
# Core logic for RFM segmentation
def segment_customers(df):
# Features: Recency, Frequency, Monetary
scaler = StandardScaler()
scaled_data = scaler.fit_transform(df[['recency', 'frequency', 'monetary']])
kmeans = KMeans(n_clusters=3, random_state=42)
df['cluster'] = kmeans.fit_predict(scaled_data)
# Dynamic naming based on cluster centroids
# Cluster 0: High Monetary -> 'VIP'
# Cluster 1: Low Recency -> 'Active'
# Cluster 2: High Recency -> 'Churn Risk'
return df
Next steps
- Ensure the
ecommerce.dbfile is present in the local directory for the SQLite connection. - Run
pip install streamlit pandas plotly scikit-learnto prepare the environment. - Execute
streamlit run app.pyto view the interactive regional sales heatmaps.
Connects securely to your tools. The creator never sees your data.
About this skill
Manual analysis of Brazilian e-commerce datasets often leads to fragmented insights and performance bottlenecks when joining unrelated tables. This skill provides a specialized Streamlit dashboard structure that integrates SQL querying, Pandas processing, and K-Means clustering to surface high-value customer segments and regional sales trends.
What it does
- Multi-source Data Integration executes triple-join SQL queries across orders, shopping, and product tables to resolve missing relational links.
- Dynamic Visualization generates interactive Plotly charts for daily sales evolution, seasonality, and state-level revenue distribution.
- RFM Segmentation implements a Scikit-Learn pipeline using K-Means and StandardScaler to categorize customers by Recency, Frequency, and Monetary value.
- Performance Optimization centralizes filter logic within SQL queries to maintain a single source of truth and reduce frontend latency.
- Market Analysis breaks down payment method market share and subcategory performance.
How it works
- Initialize the SQLite database connection using the provided dataset path.
- Run the specialized SQL joins to synchronize product subcategories with order data.
- Process raw features through the Scikit-Learn pipeline to generate customer clusters.
- Launch the Streamlit interface to explore data across Overview, Regional, and Payments tabs.
Frameworks & tools
This skill utilizes Python 3.12, Streamlit, Pandas, Plotly, SQLite, and Scikit-Learn.
Why this beats prompting it yourself
Writing complex triple-joins for non-relational datasets often results in logic errors or data duplication. This skill provides a proven architecture for RFM clustering and SQL-based filtering that ensures consistent metrics across different dashboard views.
Use cases
- Identify geographic regions with the highest revenue growth.
- Automate the identification of VIP, Active, and Churn-risk customer segments.
- Analyze seasonal sales fluctuations to plan inventory or marketing spend.
- Compare the market share of different payment methods across product categories.
Known limitations
The logic is specifically tuned for the Brazil E-commerce Analytics dataset structure from Kaggle and requires Python 3.12.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 4 days ago
Permissions
No special permissions declared or detected
What's inside
Frequently Asked Questions
New in Agents & Orchestration
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.