feature-usage-feed
What it does
This skill sets up an automated check that finds common use cases for an AI feature in production and streams the examples to Slack. It is for product teams who want to learn how people actually use their AI features.
When to use it
- βWhen you want to know how users really use an AI feature, rather than how you assume they do.
- βWhen you want a regular Slack feed of real examples for your team to read.
- βWhen you plan docs or improvements and need the common use cases first.
Skill link
https://github.com/PostHog/posthog/blob/master/products/ai_observability/skills/feature-usage-feed/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βSet up a Slack feed that shows the common ways people use our session summary feature.β
5 new skills a week. 1 minute to read.
How it works
It sets up an AI judge check that labels the use case in each trace, then sends the results to a Slack channel. Some steps are often done in PostHog's web interface, so you may need to finish the setup there.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Building a feature usage feed via LLM evals
Some PostHog features (group session summaries, single session summaries, replay AI search, error tracking AI debug, etc.) generate hundreds or thousands of LLM traces per week. Reading them by hand is not feasible. This skill covers the end-to-end pattern for turning that trace volume into a live Slack feed of canonical use cases β what users are actually doing with the feature.
The workflow is mixed, and leans UI. Trace inspection and filter discovery (steps 1-2) are MCP-driven. Eval creation, dry-running, and enabling (steps 4-5) are MCP-driven when posthog:llma-evaluation-* tools are exposed to your agent β but they often aren't, in which case fall back to the UI (Data pipeline β destinations for the alert is always UI). Each step flags its UI fallback. Expect to finish in the UI even when you start from chat.
When to use
- "How are people actually using [feature X] in production?"
- "Can we identify the canonical use cases for [feature X] so we can write better docs / prioritize improvements?"
- "I want a Slack feed of representative usage examples without manually skimming traces."
- "Set up a feed of use cases for [feature X] in #team-[area]-usage."
If the user just wants to debug a single trace or tune an existing eval, redirect to exploring-llm-traces or exploring-llm-evaluations instead.
Two filter patterns
This skill supports two different ways to scope an eval to "the feature you care about":
Pattern A β Feature-native trace_id prefix. For standalone features that emit their own $ai_trace_id pattern (e.g. session-summary:group:, replay-search:, error-tracking-specific flows). Filter on the prefix.
Pattern B β PostHog AI agent mode. For features the user interacts with via PostHog AI in a specific agent mode (error tracking, product analytics, session replay, SQL, flags, surveys, AI observability). Filter on ai_product = 'posthog_ai' AND agent_mode = '<mode>'. This requires PR #55160 (merged April 2026) to be deployed, which threads agent_mode and supermode onto every $ai_generation emitted by the chat agent loop. A useful ergonomic side-effect: agent_mode IS NOT NULL is a reliable "user-facing chat turn" filter β batch jobs and tool-internal LLM calls go through different code paths and have agent_mode=null, so they're excluded for free.
If the user asks "what are users trying to DO in [ET / replay / SQL / flags / surveys] mode of PostHog AI", that's Pattern B. If they ask "what use cases does [standalone feature] cover", that's Pattern A. Pick the pattern first β the prompt, filter, and Slack channel naming all follow from it.
Prerequisites
| Requirement | How to verify |
|---|---|
(Pattern A) Feature emits $ai_generation events with a stable $ai_trace_id pattern |
posthog:execute-sql for distinct $ai_trace_id prefixes |
(Pattern B) agent_mode property is present on recent $ai_generation events |
posthog:execute-sql group-by properties.agent_mode on recent ai_product='posthog_ai' events. Null bucket is normal (batch jobs + tool-internal calls) β you want non-null coverage across the modes you care about. |
$session_id is attached to the $ai_generation events (links trace to trigger session) |
posthog:execute-sql for countIf($session_id IS NOT NULL) / count() |
$session_id is also attached to the $ai_evaluation events (lets the Slack alert link to the session) |
Same query but on $ai_evaluation even |
FAQ
Why use an AI judge for this?
Trace volume is too large to read by hand, so an AI judge sorts the use cases at scale.
Do I need to finish setup in the web app?
Often yes. Creating the Slack alert destination is done in the interface.
Which features is it best for?
It works best for AI features that produce many traces each week.
Details
Original description by the author
Set up an LLM-judge evaluation that extracts canonical use cases for a PostHog feature at scale and streams the results to a Slack channel as a live feed. Use when someone wants to understand how users are actually using a specific AI/LLM-powered feature in production β what they're investigating, what questions they're trying to answer, and what patterns surface β without manually reading hundreds of traces. Assumes the feature emits `$ai_generation` and `$ai_evaluation` events with `$session_id` linkage to the trigger user's recording (the standard setup post the session-summary linkage PRs)
repo: PostHog/posthog
Popularity
- GitHub stars
- 41k
- Ranking position
- #6834
- License
- β
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
depot-ci
41kHelps your agent set up and run Depot CI workflows, a GitHub Actions alternative, including migrating existing workflows and reading run logs.
depot-container-builds
41kHelps your agent build Docker images on Depot's remote builders, including multi-platform images, pushing to registries, and fixing build failures.
depot-github-runners
41kHelps your agent move GitHub Actions jobs to Depot-managed runners, choosing runner sizes and labels, and troubleshooting runner setup issues.
editing-agents-md
41kHelps your agent decide whether a rule belongs in an AGENTS.md or CLAUDE.md file, and write it so it sticks without bloating the file.
Similar skills
knowledge-automation
394kHelps your agent set up a recurring job that brings new content into your Knowledge vault on a schedule, then checks that the job runs.
knowledge-source-ingest
394kHelps your agent keep a Knowledge vault current with new items from chat channels, feeds, or mailboxes, without re-adding what it already has.
benchmark
280kHelps your agent measure code speed and performance. It's useful for ensuring things are fast and finding slowness issues.