PluginWorks in Claude CodeCurrent
Fullstory
Connect Claude to Fullstory to query behavioral analytics, session replays, and customer experience insights.
0
Try it
See what this would do for you. No sign-up needed.
Install in Claude Code
Run these in Claude Code, in order. The first adds the marketplace, the second installs the plugin.
Step 1
/plugin marketplace add anthropics/claude-plugins-official
Step 2
/plugin install fullstory@claude-plugins-official
Review commands before running them. Promptu never runs code on your machine or pushes changes to your repo.
What's inside
5 skills
- comparisons
- friction-analysis
- general-analysis
- idea-generation
- session-review
1 agent
1 MCP server
Security scan
Passed
Promptu's text scan of the files it could read didn't match any known risky patterns. It doesn't run the plugin, and a clean scan doesn't mean the plugin is safe.
Automated pattern check of 9 file(s) found nothing risky. Not a full audit.
Details
# Fullstory MCP Plugin
Connect Claude or Cursor to [Fullstory](https://www.fullstory.com) to query behavioral analytics, session data, and customer experience insights directly from your AI workflows.
**Only available to [Fullstory MCP beta program participants](https://www.fullstory.com/platform/mcp/).**
## What is Fullstory?
Fullstory captures and analyzes digital experience data — session replays, user journeys, rage clicks, errors, and more — to help teams understand how customers interact with their products.
## What this plugin does
This plugin exposes the Fullstory MCP server to Claude, allowing you to:
- Query session and event data
- Analyze user behavior and funnel metrics
- Retrieve customer experience insights
- Explore behavioral analytics programmatically
Available tools are auto-discoverable once the server is connected. See the [Fullstory API docs](https://developer.fullstory.com) for details on what data is accessible.
## Prerequisites
- **A fullstory account that is part of the [Fullstory MCP beta program](https://www.fullstory.com/blog/fullstory-mcp/)**
- [Claude Code](https://claude.com/product/claude-code) or [Cursor](https://www.cursor.com)
- A Fullstory account with API access
- A Fullstory API key (generate one in your Fullstory account settings)
## Setup
- [Claude Code](https://developer.fullstory.com/mcp/client-setup/claude-code/)
- [Cursor](https://developer.fullstory.com/mcp/client-setup/cursor/)
## Available Tools
Tools are auto-discoverable from the Fullstory MCP server once connected. Use Claude to list available tools or refer to the [Fullstory Developer Documentation](https://developer.Fullstory.com) for the full API reference.
## Support
- [Fullstory Developer Docs](https://developer.Fullstory.com)
- [Fullstory Support](https://help.Fullstory.com)
- [Fullstory Homepage](https://www.Fullstory.com)
## skills/comparisons/SKILL.md
---
name: comparisons
description: How to structure A vs B comparisons in Fullstory — when to use dimensionality (event/session properties) vs separate segments (user-level properties), and why the distinction matters for correctness.
user-invocable: false
---
# Comparisons
When the user asks to compare A vs B, the right mechanism depends on what the comparison axis is. Use the decision table below to classify it — the user doesn't need to know this distinction exists.
## Event/session properties → dimensionality
If the comparison axis describes the context of an individual event at the moment it fired — not the user who triggered it — use dimensionality. Common examples: device type, browser, OS, page URL, element. But the rule is the principle, not the list: if the property travels with the event, not the user, it belongs here. Express it as a single `top_n` metric with the comparison axis as the grouping dimension.
Example: "rage clicks on mobile vs desktop" → `fullstory:build_metric(query="rage clicks by device type", output_type="top_n")`. The result table shows mobile and desktop as separate rows.
To refine an established comparison metric (e.g., "add a Chrome-only filter"), pass its `metric_id` to `fullstory:update_metric` with a refinement instruction rather than rebuilding.
**Do not use segments for event properties.** Building a "mobile users" segment and a "desktop users" segment would assign all of a user's rage clicks to whichever device they ever used — even clicks that happened on the other device.
## User-level properties → separate segments
Properties that describe a user rather than an event should use segments. The key mechanism: Fullstory resolves user properties to the user's **last known value** for that key. This canonical value is what segment queries match against — so you're asking "what bucket is this user in now?", not "what was their value at the moment of each event?".
Built-in user properties that work this way: `signed_up` (signed-up status), `first_seen` / `last_seen` (dates), `total_sessions` (engagement depth), and any custom user properties (`user_var_string`, `user_var_int`, etc.) set via `setUserProperties` — e.g. plan type or account ID. Build one metric and one segment per cohort, then compute each cohort in sequence: attach the segment via `fullstory:update_metric(metric_id, segment_id)`, call `fullstory:compute_metric(metric_id)`, store the result, then repeat with the next segment. Present the results side by side. Do not pass `segment_id` directly to `fullstory:compute_metric`.
Example: "do enterprise users experience more errors than free users?" → build two segments (enterprise, free), build one metric (errors), compute twice.
To refine a cohort after it's been built (e.g., "also exclude trial users from the free segment"), use `fullstory:update_segment` with the existing `segment_definition` rather than rebuilding with `fullstory:build_segment`.
Using `top_n` dimensionality for user properties is valid if you specifically want point-in-time values — each event is attributed to the user property value at the moment it fired. If a user changed plan tier mid-period, their events will be split across both values. For most comparisons you want the canonical (current) value, which is why segments are the default choice.
## Decision table
| Comparison axis | Type | Mechanism |
|----------------|------|-----------|
| Device type, browser, OS | Event property | Dimensionality |
| Page URL, element | Event property | Dimensionality |
| `signed_up`, `first_seen`, `last_seen` | User property | Segments |
| `total_sessions` | User property | Segments |
| `user_var_*` (custom user properties) | User property | Segments |
If you can't tell whether a property is event-level or user-level, default to dimensionality — it's more precise and uses fewer API calls.
## Why the wrong choice produces wrong results
**Segments for event properties (the temporal scope problem):** A segment matches users by their canonical properties, then includes all of that user's events. Alice uses both mobile and desktop during a 30-day window. She rage-clicks 5 times — all on desktop. With a "mobile users" segment, Alice qualifies (she used mobile once), so all 5 desktop rage clicks inflate the mobile count. With a device-type dimension, each rage click is tagged with the device it actually fired on — all 5 go to desktop, zero to mobile.
**Dimensionality for user properties (the split-value problem):** Bob was on the free plan for two weeks, then upgraded to enterprise. Using `top_n` grouped by plan tier, his events split — two weeks of errors under "free", two weeks under "enterprise". If the question was "do enterprise users see more errors?", Bob's pre-upgrade errors are excluded from the enterprise count. With segments, Bob's canonical value is "enterprise" (last known), so all his events count toward the enterprise cohort.
## skills/friction-analysis/SKILL.md
---
name: friction-analysis
description: Finds where users struggle on a page or flow and whether a suspected problem is real. Ranks Fullstory's frustration and error signals, separates real problems from buttons people are meant to click many times, measures how many users each problem affects, and uses session replays to show what happened. Use when someone asks where users are struggling, what is broken on a page or flow, for top pain points or a friction audit, why users give up at a step, whether a rage click is real, whether pages feel slow, whether people keep retrying, re-typing or going back and forth, whether a mobile app keeps crashing, or whether a problem from support tickets is widespread or affects only a few people.
---
# Friction Analysis
## Goal
Find where users struggle and report problems the team can act on. Every finding needs:
- **A confirmation.** Frustration signals find leads; a Step 3 check confirms one before it becomes a finding.
- **An explanation** of what happened, from replay.
- **A size:** how many users were affected, out of how many.
## Related Skills
- `general-analysis`: metrics, segments, and count or trend questions with nothing suspected broken.
- `comparisons`: structuring an A vs B comparison; decides which signals are worth comparing.
- `session-review`: full diagnosis of a single session.
- `idea-generation`: what to build next, not what is broken.
- For a Fullstory Opportunities list, call `fullstory:get_opportunities` and stop.
## Step 1: Match the Depth to the Question
| If the question is like | Do this |
|---|---|
| "Is this rage click real?" | Run the Step 3 checks on that one element, then give a short, direct answer. |
| "Where do users struggle in checkout?" | Sweep every signal on that page or flow and rank them. |
| "Which pages have the most frustration?" | Sweep, then run Step 3 on the top two or three pages before reporting their order: confirm each page's leading element is a real control, not a container, and read one replay per page. |
If someone reports a page stuck loading, always run Step 3c, even when no frustration signal fires on that page. For anything else, stop once a Step 3 check and a replay support the answer.
## Step 2: Find the Signals
**Run the sweep.** Call `fullstory:discover_groups` scoped to the area.
**Set the time range once, and reuse it on every later call.** `fullstory:discover_groups` defaults to the last 24 hours, not whatever you used last. Use 30 days. If a 30-day call times out, switch to 7 days and call those results provisional.
**Use `fullstory:discover_groups`, not `fullstory:build_metric`, for click friction on a page.** A URL-path filter can silently return a fraction of the real count, because it misses pages whose URLs don't contain the path you guessed, and it raises no error. Funnels, custom-event counts, and signals with no built-in equivalent still need `fullstory:build_metric` or `fullstory:build_funnel`; a noise-only sweep is the cue to build one.
### Add one or two signals the sweep misses
Do this before stats or replays. The sweep returns rage, dead and error clicks by element, page refresh, abandoned form and app crash by page, network error by path, and uncaught exception and console error by text. That set misses struggle that looks different in a form, a search tool or a mobile app. Pick the rows below that fit the area, build each with `fullstory:build_metric`, `fullstory:build_segment` or `fullstory:build_funnel`, with exact numbers: "at least 2 times within 60 seconds," not "a few times quickly."
| If the area is | Check |
|---|---|
| A form, sign-up or checkout | the same field changed at least 3 times within 60 seconds; submit clicked twice within two minutes with a network error; slow load |
| Search or a list | the search box changed several times (group by search text for what people look for); back and forth between results and a detail page |
| A slow or content-heavy page | page-speed signals (Core Web Vitals and load times); thrashed cursor; a long active stretch with no clicks (rule out bots first) |
| A mobile app | crashes, force restarts, pinch to zoom (text too small), low memory; the app backgrounded within about 30 seconds of an error |
| Any page with error messages | an error message on screen that no error event records: watch the message element and group by URL |
Rank hits against the sweep's own groups in Step 4.
### Invent a signal if none of the built-in signals measure what was asked
Some struggle has no Fullstory signal: booking duration, redone work, a step finished only on a second visit. Define it as an event sequence, build it, compare it to a baseline group, confirm it in one replay, and state the definition in the answer.
### Check who produced the signals
Check the top groups for three things that skew a count: one city dominating, the company's own staff (users whose email is on the company's domain), and automated traffic. Segment automated traffic on Suspicious Activity signals rather than OS or user agent.
If automated traffic is a small share of a group, say nothing about it. If it is large enough to change the number, recompute the group without it and give both figures, since it changes how big a problem is, not whether the flow is broken. Never stop at "it's bots."
### An empty result is not proof of health
Three causes for a zero:
1. **Not captured in this account.** A missing signal returns nothing, not an error; on mobile, zero crashes or force restarts often means they aren't captured. Say so.
2. **Too few users affected.** Fullstory hides groups below a minimum affected-user count, higher on busier sites.
3. **The page is healthy.**
Rule out the first two before calling a zero good news.
## Step 3: Check Each Signal
### 3a. Check what was clicked
**Rage clicks fire on rapid repeated clicks in one spot, and some controls are built for exactly that:** pagination arrows, quantity steppers, carousel dots. Whether the element is broken is the next check.
**A dead click only matters on something that looks clickable.** Open a session, call `fullstory:session_get_a11y_tree` at the time of the click, and read the role: a `button` or `link` that did nothing is a finding, plain text or a container is not. An element named for a whole screen or card absorbs every click inside it, so confirm in replay what was hit.
**Get the element's total clicks before calling a dead-click count high or low.** Thirteen out of 50 is a problem; thirteen out of 13,000 is not.
### 3b. Compare against a baseline
Measure the same behavior where it should be ordinary: if users who reloaded after a failed request do so at about the rate of users who reloaded after any request, the reloads are routine. Build a funnel to find where a flow stops.
**Run the signals against users who completed the flow, not only those who dropped out.** A completion rate shows people got through, not that it was easy. A signal at the same rate in both groups is not what causes drop-out; heavy rage clicking alongside healthy completion means people finish and it costs them. Pull completer replays that carry frustration signals.
### 3c. Look for failures that leave no click signal
A request that never returns, or one that fails into an empty state like "No results found," produces no dead click and no error click. Believe a report of a stuck page with clean signals and watch two or three sessions: a stalled page reads as repeated clicks, a long wait, then the user leaving.
**Watched elements can put a number on this.** A watched element fires `RENDERED` on entering the DOM and `VISIBLE` on entering the viewport, each with a duration (`element_render_duration`, `element_visible_duration`). Two readings matter:
- **Visible duration on a loading element** (spinner, skeleton, progress bar) measures a stalled request directly; no click signal catches that.
- **A large gap between rendered and visible counts** means the element is on the page and users aren't seeing it.
Scan watched element names for a state nobody wants: loading, spinner, skeleton, progress, error, warning, invalid, failed, retry, empty, no results, unavailable. No duration threshold is published, so compare against the same element on a working page. If the useful element isn't watched, say so in Step 5.
## Step 4: Measure and Explain
### Measure
Call `fullstory:get_opportunity_stats` with the group's ids, plus the sweep's scope and time range. A signal you built in Step 2 has no group ids, so size it with `fullstory:compute_metric` or `fullstory:compute_funnel` instead. `frustration_rate_change` and `error_rate_change` compare sessions that hit the problem to sessions on the same page that didn't; they contrast two groups, not a trend.
| frustration | error | Reads as |
|---|---|---|
| High | Flat or negative | The control confuses people. Design owns it. |
| High | High | Something is failing and frustration follows. Engineering owns it. |
Ignore `error_rate_change` on an error-type signal (network error, uncaught exception, console error): every affected session has an error by definition, inflating the number by construction. Read frustration only.
### Keep numbers comparable
Compare two time ranges ending today before calling a problem stopped. Name every denominator and match it to the question: `user_pct` is a share of your scope, `user_percentage_on_page` a share of that page's visitors. Never reuse a share computed for a different scope.
Before saying slowness drives people away, compare outcomes after slow loads against fast ones, such as reload or exit rate: same-page slow loads and reloads don't prove causation.
**Read a web vital against its neighbours,** not alone: against Google's band, and against the same vital on the pages either side of it in the flow. A slow page between two fast ones is a bottleneck worth fixing; a slow page between two equally slow ones is site-wide, and fixing it moves nothing. Bands: LCP good at or under 2.5s, poor over 4s; CLS good under 0.1, poor over 0.25; INP good at or under 200ms, poor over 500ms. INP replaced FID in March 2024; do not report FID.
### Explain with replay
Pull 2 to 3 sessions per finding with `fullstory:get_sessions_for_opportunity`, passing the same scope as the sweep so the replays come from the surface you measured, and copy each `session_url` exactly. For a signal you built in Step 2, use `fullstory:get_sessions` or `fullstory:get_funnel_sessions`.
**Never describe a session you cannot link.** If a sentence says what a user did, the `session_url` goes next to it. "Session available on request" means you did not open one, so cut the sentence.
Pull more than you need and replace any session that turns out to be a different problem, automated, or an unrelated exit. Never count one you dropped.
Events don't show the screen; for any claim about what a user saw, call `fullstory:session_open`, `fullstory:session_screenshot` at that moment, then `fullstory:session_close`. Two identical screenshots from different times mean the tool returned the wrong frame; fall back to event order and say so. Before recommending an error message, check whether one already appears.
### Check the group is big enough to report
Before a group becomes a finding, set its affected users against the page's total visitors over the same window. Four users on a page with 200 monthly visitors is noise no matter how large its frustration lift or how high it ranks. Ranking first in a scoped sweep only means nothing bigger turned up, and on a low-traffic surface the whole list can be noise.
Once a group clears that bar, rank by what happened to the user, not by count alone: open a session where the signal fired and watch the minute after it.
If nothing on the surface clears the bar, say the surface is quiet on friction signals and go measure how many people start the thing against how many finish it. That gap is a finding; a four-user dead click is not.
### Do not name a cause from one session
Two sessions have to show the same sequence before you name a cause. One session is a lead and you label it as one.
Describe only what the events record. A screenshot shows what was on screen, not why, so do not write that a control was disabled, that an overlay swallowed a click, or that a user clicked again and got nothing, unless separate events show it. Never attach behavior you did not observe to a named user or account.
## Step 5: Write the Answer
1. **Answer first:** where the flow breaks and why, in one or two sentences.
2. **Top three findings,** each with users affected and their share of the page's visitors, what replay showed, what rules out competing explanations, the fix, and what to log to confirm it worked.
3. **Full signal table** with users, share and events.
4. **Why nobody caught it:** name what the team measures that missed this, a broken metric or an aggregate that hides it.
5. **Also checked:** each extra or invented signal from Step 2 and what it showed. Fold into another section if that reads better.
6. **Leads,** one line each.
Skip tool notes and workarounds unless they change the answer.
## Tool Notes
- Pass `default_metric_id`, `group_id` and `group_id_fallback` together; dropping one silently matches the wrong group.
- `compare_to_previous` can report every group as new. Compare two explicit time ranges instead.
- `group_id_fallback: true` means the name is a CSS selector. Name the element from replay.
- Page load time reads 1ms when the page never finished loading, so filter with "at least".
- `/create/` links can't be opened by others; save the object or link the replay.
## skills/general-analysis/SKILL.md
---
name: general-analysis
description: Fullstory analytics workflow — the default way to answer any question about user behavior. Use whenever someone asks how many, what percentage, which pages, whether something is trending, where users drop off, what users did before or after an action, or how two cohorts compare — and also when they describe a business question that needs numbers behind it without ever saying "metric", "funnel", or "segment". Covers building and computing metrics, segments, funnels, and journeys, verifying that what got built is what was actually asked for, and pulling sessions to explain why the numbers look the way they do. Not for reviewing one specific session, or for setting up capture and instrumentation.
---
# Fullstory Analytics
## When to use
Use this skill whenever answering the question takes a number out of Fullstory — a count, rate, percentage, breakdown, trend, drop-off, what users did before or after an action, or one cohort against another. That includes business questions that never name a primitive ("is checkout getting worse?", "which accounts are struggling?"). Pulling sessions is in scope when they're evidence for a number you computed.
## Skip when
- **One specific session.** A session URL, a named user, "what happened to this person" — that's the `session-review` skill.
- **Instrumentation and capture.** Defining events, custom properties, privacy rules, or installing the snippet. This skill reads data that already exists; it can't make Fullstory record something new.
- **Account and product configuration.** Users, permissions, integrations, data export setup.
- **No Fullstory data in the loop.** A number the user already has, or one that lives in another system.
Handing off isn't an exit. If a session review turns into "how often does this happen?", that part is this skill.
## The five primitives
Pick the primitive first; the tools follow from it.
- **Segment** — a cohort of users (the "who"). A filter, not a measurement. It narrows whose data everything else runs against.
- **Metric** — a measurement (the "what" and "how much"). Every count, rate, breakdown, and trend is a metric.
- **Funnel** — a strictly ordered sequence (the "where do they drop off"). Step counts, step-to-step conversion, and median time between steps.
- **Journey** — what happens around a single anchor event (the "what else do they do"). Unordered fan-out before or after one pivot, not a fixed sequence.
- **Session** — evidence (the "why"). Qualitative. Use sessions to explain a number, never to produce one.
Funnel vs. journey is the distinction people get wrong most often. A funnel asks "of the users who did A, how many went on to do B then C?" — you already know the steps. A journey asks "users did A; what did they do next?" — you don't know the steps and want the data to tell you.
## Build → Confirm → Compute
Every `build_*` and `update_*` tool is a language model translating a sentence into a structured definition. That translation is non-deterministic and it is the single largest source of wrong answers in this workflow — not because it fails loudly, but because it succeeds *plausibly*. A metric that filtered on the wrong URL still returns a clean, believable number. Nothing in the result signals the mistake.
So treat the returned definition as the contract, and read it before you trust anything computed from it:
1. **Build.** Call the builder. Capture both the ID and the returned definition/description.
2. **Confirm.** Read what actually got built and compare it against what was asked. See "Confirming the build" below — this beat is what makes the answer trustworthy.
3. **Compute.** Run the compute tool, then present the number with its URL.
Two rules that hold across every tool here:
- **IDs come from tool responses, never from memory or construction.** A `metric_id`, `segment_id`, `funnel_id`, `journey_id`, `device_id`, or `session_id` should always trace back to a response you actually received. Fabricated IDs look real and fail in confusing ways.
- **`fullstory:update_metric`, `fullstory:update_funnel`, `fullstory:update_journey`, and `fullstory:update_segment` return a NEW id and leave the source object untouched.** Carry the new id forward. Computing the old id after an update is a silent no-op that looks like the refinement did nothing.
## Step 0: Classify intent, and confirm scope if it's missing
| What they're asking | Route to |
|---|---|
| "how many", "what's the count/rate/percentage" | `single_number` metric |
| "which pages", "top N", "by browser", "breakdown by" | `top_n` metric |
| "over time", "by day", "is it getting worse" | `trend` metric |
| "mobile vs desktop", "A vs B", "compare" | the `comparisons` skill |
| "where do users drop off", "conversion through X → Y → Z", "how long does it take to complete" | funnel → `references/funnels.md` |
| "what do users do after X", "what led to Y", "where do they go next" | journey → `references/journeys.md` |
| "show me sessions", "let me watch some examples" | `fullstory:get_sessions` with `metric_id` or `segment_id` |
| "why is this happening" | compute first, then `references/sessions.md` |
**Scope is part of the question.** A request like "how's checkout doing?" or "where are users struggling?" has no defined boundary, and every boundary you pick silently produces a different answer. When the scope genuinely isn't recoverable from the conversation, ask once, concretely — which pages or flows matter, which users count, what time window — and offer a reasonable default so the user can just say "yes". Don't interrogate: if the request names its own scope, or the default is obvious, build and move on.
## Step 1: Search before building
Users often don't know what already exists in their Fullstory account. Search first even when the question sounds ad-hoc — an object the customer's team built and uses encodes how *they* define conversion or struggle, which is usually better than a fresh guess.
- Metrics and segments: `fullstory:get_metric(regex=...)`, `fullstory:get_segment(regex=...)`
- Funnels and journeys: `fullstory:get_funnel(regex=...)`, `fullstory:get_journey(regex=...)`
Start broad, then narrow (for "rage clicks on checkout", try `checkout` before `checkout.*rage`). Results carry a rendered description of the filters, steps, or pivot — judge relevance from that, not from the name, which is often auto-generated and misleading.
If nothing matches, say so and confirm before building. If things come back but none fit the question, say what you found and why it doesn't fit, then confirm.
**Ranking duplicates:** when 2+ plausible metric or segment candidates come back, call `fullstory:get_view_counts` on their IDs (up to 10, most name-similar first) to rank by popularity. If one has roughly 5x the views of the next, treat it as canonical and say you're using the most-used version. If the top few are comparable, present them with what each one measures and ask. If all are near zero, flag them as likely stale and offer to build fresh. `fullstory:get_view_counts` only accepts `object_type` of `segment` or `metric` — for funnels and journeys, rank by `last_updated_at` and `created_by` from the search result instead.
## Step 2: Build
Metrics are the common case and are covered here; funnels and journeys have their own reference files.
Call `fullstory:build_metric` with a descriptive `query` and the `output_type` from Step 0.
- **Pass the user's phrasing through.** Rates ("bounce rate", "conversion rate", "error rate") must stay as rate phrasing — simplifying "error rate" to "error count" drops the denominator and produces a different, wrong number. Same for comparison phrasing ("vs last week", "week over week"): pass it verbatim and you get one metric covering both windows, rather than two metrics you have to reconcile by hand.
- **Get the unit of measurement right** before building — it's the most common source of misleading results. If the question is about "customers", "accounts", or "organizations", clarify whether that means individual users or users grouped by an account property, and build accordingly.
- **Exclusions need a segment.** `fullstory:build_metric` cannot express "excluding users who…" or "users who did NOT do X" — the filter tree has no negation. Call `fullstory:build_segment` with the negation phrasing verbatim, then pass the returned `segment_id` to `fullstory:build_metric(segment_id=...)`. Putting the exclusion in the query text gets it silently dropped or misread as a positive filter.
- **Simple user-property filters don't need a segment.** "unique users on app.example.com where email does not contain @example.com" goes straight into the query. Reach for a segment when you need segment semantics: a behavioral cohort ("users who did X"), a saved/named cohort, or several cohorts to compare.
- **Scoping to a cohort at build time:** `fullstory:build_metric` accepts `segment_id` directly. For a metric that already exists, attach with `fullstory:update_metric(metric_id, segment_id)` first and compute the returned id. `fullstory:compute_metric` does **not** take a `segment_id`.
Segments: call `fullstory:build_segment` and reference by `segment_id` afterward. Reuse a `segment_id` across questions in the same conversation rather than rebuilding it.
More on metric behavior — dimensions, revenue, time ranges, and the six `fullstory:update_metric` modes — is in `references/metrics.md`.
## Step 3: Confirming the build
Before computing, check that what was built is what was asked. The failure mode to catch is a definition that is *reasonable but not what the user meant* — it will produce a number that looks fine and is wrong.
Read the returned definition (or the `metric_description` / `funnel_description` / `journey_description`) and check the handful of things the translator has to guess at:
- **Page vs. URL.** "which pages" defaults to raw URL paths, not named pages. A filter on a named page and a filter on a URL substring are different populations.
- **Event set.** Did it filter on the event type you meant — clicks vs. rage clicks vs. page views vs. a defined event with a similar name?
- **Value casing and exact strings.** Custom property values, element names, and event names are matched as given.
- **Aggregation.** Event count vs. unique sessions vs. unique users. These are three different numbers for the same filter.
- **Time range.** Defaults to `last_30_days` for metrics, segments, and funnels; `last_7_days` for journeys.
- **Output shape and grouping.** `top_n` without a grouping dimension isn't a breakdown.
- **Scope.** If you attached a segment, confirm it's on the object you're about to compute — not on the pre-update id.
When something is off, refine with the `update_*` tool rather than rebuilding from scratch: a refinement is a targeted edit, a rebuild re-rolls every decision the translator already got right. Then re-read the result.
Don't narrate this check. It's a read, not a report — mention it only when it caught something.
## Step 4: Compute and present
`fullstory:compute_metric(metric_id)`. `time_range` / `start_date` + `end_date` override the saved window for that call only, without modifying the metric.
Present in plain language with context:
- Numbers: "12,340 dead clicks over the last 30 days"
- Tables: highlight the top rows; include percentages when a total is available
- Trends: call out direction, magnitude, and inflection points
Always surface the object URL (`metric_url`, `funnel_url`, `journey_url`, `segment_url`) so the user can verify in the Fullstory UI. Surface it as soon as a build or update returns it — don't wait for the compute.
## References
Load these when the situation calls for it:
- `references/metrics.md` — metric behavior in depth: `fullstory:update_metric` modes, dimension gotchas, revenue, time ranges
- `references/funnels.md` — ordered conversion flows, drop-off, and time-to-complete
- `references/journeys.md` — what users do before or after one anchor event
- `references/validation.md` — when a result is zero, anomalous, implausible, or the user is skeptical
- `references/sessions.md` — investigating sessions to explain a number
## Guidelines
- Default `time_range` is `last_30_days` (`last_7_days` for journeys). Ask before using a different window unless the user specified one.
- An invalid `time_range` is a hard error, not a silent fallback. Use the enum values, or pass `start_date` + `end_date` together as ISO 8601 (dates or full timestamps) for anything else — "this week", "yesterday", and "since the release" need concrete dates.
- Reuse `segment_id`, `metric_id`, `funnel_id`, and `journey_id` within a conversation. Don't rebuild what the user has already established.
- To reshape an existing metric (a count they now want as a trend), use `fullstory:update_metric` with the existing `metric_id` and the new `output_type`. Fall back to `fullstory:build_metric` only for a fundamentally different question or a ratio metric.
- If `fullstory:build_multi_metric` is available in this session, prefer it over `fullstory:build_metric` — it handles several measures and formulas in one object, and can build anything `fullstory:build_metric` can.
- Every number you report should come from a compute or read tool. Don't derive a figure by arithmetic on results that measure different populations, and don't estimate one.
## skills/idea-generation/SKILL.md
---
name: idea-generation
description: Finds product improvement ideas a team has not already considered. Searches the metrics, segments and funnels the team already built, builds the ones that are missing, measures how many users each idea affects against a baseline, and pulls session replays as evidence. Returns 3 to 5 ranked proposals, each with what is new about it, a user count with its baseline, and replay links. Use when someone asks what to build next, how to improve a product area or flow, what the team is missing, for data-backed product ideas or proposals, or what changed after a release. If the user only wants the list of Fullstory Opportunities, call the Opportunities tools directly instead. For counts, rates and trends use general-analysis, for A vs B mechanics use comparisons, and for one session use session-review.
---
# Idea Generation
## Goal
Produce 3 to 5 product proposals that the team has not already considered. Every proposal must pass three tests:
- **New.** It is not already on a dashboard, in the backlog, shipped, in progress, or returned by `fullstory:get_opportunities`. The obvious findings, such as the biggest funnel drop-off or the most rage-clicked element, are usually already known. Proposing them again does not help the team.
- **Fixable by the audience.** The team receiving the proposal can fix it with a product change: UI, copy, flow, defaults, or a feature. A problem that only a backend team, an infrastructure team, or a third party can fix does not qualify. Step 1e explains how to decide who the audience is.
- **Measurable.** You can state how many users it affects, as a count and as a share of a named total, next to the same number for a baseline group.
A finding that fails any test is an observation, not a proposal. Put observations in Emerging Signals (Step 5) or drop them.
## Related Skills
- `general-analysis`: how to build and compute metrics and segments.
- `comparisons`: how to structure an A vs B comparison. This skill decides what is worth comparing.
- `session-review`: deep diagnosis of a single session.
- If the user only wants to see their Fullstory Opportunities, call `fullstory:get_opportunities` directly and stop. This skill treats that list as things the team already knows, not as the answer.
## Workflow
1. Frame the question and fix the definitions.
2. Find leads. Start with existing metrics, segments and funnels, because reading them is cheap. Most of the run happens here.
3. Measure each lead against a baseline.
4. Pull session replays, only for the leads you plan to present.
5. Filter, rank and write the proposals.
## Step 1: Frame the Question
### 1a. State the question in one sentence
Many requests contain more than one question. "Improve retention" can mean "do these users convert at a lower rate?" or "what makes users come back?" Each needs different analysis. Pick the reading that best matches the user's words, state it in one sentence, and name the reading you did not pick.
Also name the **area** you are studying: the pages, screens or feature the question is about, such as "the checkout flow" or "the search results page". The rest of this skill calls it the area.
### 1b. Retention questions need a return-visit lead
Fixing problems in a flow helps subsequent users complete the flow the first time. It does not give them a reason to come back to the product. If the question is about repeat use or retention, at least one lead must be about what brings users back:
1. List what the product does to prompt users to come back, instead of relying on them to remember. This depends on the product. A store might have saved searches, price-drop or back-in-stock alerts, wishlists and reminder emails. A software tool might have scheduled reports, alerts and shared links. A content site might have follows and subscriptions.
2. Measure what share of users used at least one of them.
3. Compare users who returned with users who did not. Check whether the users who returned used one of them more often.
Look for this directly. A missing reason to return does not show up in frustration or error signals, because nothing breaks.
### 1c. Ask the user at most two questions
Send one message and skip any question the request already answers:
1. Which flow or product area should I look at, and over what time range? If the user leaves this to you, pick the product areas with the most traffic, use the last 30 days, and state what you picked.
2. What does the team already know here? This includes dashboards they watch, backlog items, recent releases, and work in progress. Say that you will not propose any of it back.
The second question matters most, because anything the team already knows cannot count as new. If the user does not know or does not answer, build the known list yourself in Step 2 from the existing objects and from `fullstory:get_opportunities`, and list what you excluded in the output.
Do not ask for permission to start or for how much to cover. Decide the scope yourself, run it, and report what you covered.
### 1d. Fix five definitions before computing anything
Write these down before the first compute call, and repeat them in the caveats section of the output so a reader can check them. Do not change them after you have a number.
```
POPULATION The users you are studying, as the exact filter that selects them.
OUTCOME The single event or page view that counts as success.
TIME RANGE One date range, used for every number in the run.
DENOMINATOR Every rate or percentage is a share of some total. Name that total.
BASELINE The comparison group, and why it is a fair comparison.
```
If these change during a run, two runs of the same question can use different baselines and reach opposite conclusions, and nothing in the output shows that the math changed.
These definitions apply to th

