Clustering Analyzer
This Clustering Analyzer identifies patterns & groupings within data clusters, revealing valuable insights for segmentation and understanding.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add clustering-analyzer npx -- -y @trustedskills/clustering-analyzer
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"clustering-analyzer": {
"command": "npx",
"args": [
"-y",
"@trustedskills/clustering-analyzer"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
The Clustering Analyzer skill enables AI agents to identify patterns and groupings within data clusters using various algorithms. It supports K-Means, DBSCAN, and Hierarchical clustering techniques, providing visualization tools like plots and dendrograms for analysis. The skill also offers evaluation metrics such as silhouette scores and cluster statistics to assess the quality of the resulting clusters.
When to use it
- To segment customers based on purchasing behavior from a CSV file.
- To identify distinct groups within a dataset of product reviews.
- To explore potential groupings in sensor data for anomaly detection.
- To determine the optimal number of clusters using the elbow method with K-Means.
Key capabilities
- K-Means Clustering: Partitioning data into k clusters, utilizing the elbow method to find an appropriate 'k'.
- DBSCAN Clustering: Density-based clustering suitable for identifying clusters with arbitrary shapes.
- Hierarchical Clustering: Creates a hierarchy of clusters represented by dendrograms.
- Evaluation Metrics: Calculates silhouette scores and cluster statistics to evaluate cluster quality.
- Visualization: Generates 2D/3D plots, dendrograms, and elbow curves for data exploration.
- Data Export: Exports labeled data and cluster summaries to CSV files.
Example prompts
- "Analyze the 'customers.csv' file using K-Means clustering with 3 clusters."
- "Perform DBSCAN clustering on the 'data.csv' file with eps=0.5 and min_samples=5."
- "Find the optimal number of clusters for the 'data.csv' file using the elbow method with K-Means."
Tips & gotchas
- The skill requires a CSV file as input data; specify columns if needed during loading.
- DBSCAN parameters like
epsandmin_samplessignificantly impact results – experiment to find optimal values. - Familiarity with clustering algorithms (K-Means, DBSCAN, Hierarchical) is helpful for interpreting the results.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.