exploring-llm-clusters

Cluster LLM traces and generations to identify usage patterns.

58|5|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/PostHog/skills --skill exploring-llm-clusters
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: exploring-llm-clusters
Source: https://github.com/PostHog/skills/tree/main/skills/omnibus/exploring-llm-clusters
Command: npx skills add https://github.com/PostHog/skills --skill exploring-llm-clusters

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Investigate and understand usage patterns in AI/LLM traffic by grouping similar traces and generations into clusters, enabling efficient analysis and pattern discovery.

Core Features & Use Cases

  • Clustering-based exploration of LLM traces and generations to reveal common usage patterns.
  • Retrieve and compare clusters across clustering runs, including cluster size, centroid metrics, and descriptive titles.
  • Drill into individual traces to inspect behavior and compute related metrics like cost and latency for each item.

Quick Start

Load the latest run, inspect the top clusters, and identify patterns to drive investigations.

Frequently Asked Questions about exploring-llm-clusters

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze LLM usage patterns by clustering traces and generations?

To analyze LLM usage patterns, you group similar traces and generations into clusters to reveal common behaviors. This enables efficient pattern discovery and allows you to compare cluster sizes and centroid metrics across clustering runs.

What is the best way to compare LLM cluster behavior across different runs?

The best way to compare LLM cluster behavior is to list and retrieve clustering runs, inspecting cluster size, centroid metrics, and descriptive titles. This allows you to evaluate differences and identify prominent usage patterns across your AI traffic.

Can I compute cost and latency metrics for individual LLM traces within a cluster?

Yes, you can compute cost and latency metrics for individual LLM traces within a cluster. By drilling down into specific generations, you can inspect granular behavior and evaluate the performance of each item.

How do I identify common usage patterns in my AI traffic using LLM analytics?

To identify common usage patterns in AI traffic, apply clustering to your LLM traces and generations. This groups similar interactions, enabling you to drive investigations by inspecting top clusters and evaluating related cost and latency metrics.

Do I need to load a specific clustering run before inspecting LLM analytics clusters?

Yes, you need to load a specific clustering run to inspect LLM analytics clusters. Loading the latest run allows you to retrieve the cluster data, inspect top clusters, and identify patterns to drive your investigations.