> Investigates a session recording by gathering metadata, person profile, same-session events, and linked error tracking issues in one pass. Use when a user provides a recording or session ID and wants to understand what happened — who the user was, what they did, what errors occurred, and whether there are related error tracking issues. Replaces the manual chain of session-recording-get, persons-retrieve, execute-sql, and query-error-tracking-issues-list.
npx skills add https://github.com/PostHog/skills --skill investigating-replay
When a user asks "what happened in this session?" or provides a recording/session ID
to investigate, gather all relevant context in parallel rather than making them
ask for each piece.
| Tool | Purpose |
| ------------------------------------------ | -------------------------------------------------------- |
| posthog:session-recording-get | Recording metadata (duration, counts, status) |
| posthog:persons-retrieve | Person profile (properties, distinct IDs) |
| posthog:execute-sql | Query events, errors, and page views in session |
| posthog:query-error-tracking-issues-list | Find error tracking issues linked to the session |
| posthog:vision-observations-list | Check for an existing Replay Vision AI summary |
| posthog:vision-scanners-list | Find summarizer scanners (scanner_type=summarizer) |
| posthog:vision-scanners-scan-session | Run a summarizer scanner on the session (slow, optional) |
| posthog:vision-scanners-create | Create a temporary summarizer scanner (ask first) |
| posthog:vision-scanners-delete | Delete a temporary scanner after summarizing |
Start with the recording to get metadata and the person's distinct ID:
posthog:session-recording-get
{
"id": "<recording_id>"
}
The response includes distinct_id, person, duration, interaction counts,
console error counts, and viewing status. Use the distinct_id to fetch
the full person profile:
posthog:persons-retrieve
{
"id": "<person_uuid_from_recording>"
}
Get the timeline of what the user did during the session:
posthog:execute-sql
SELECT
timestamp,
event,
properties.$current_url AS url,
properties.$browser AS browser,
properties.$os AS os,
properties.$device_type AS device_type,
properties.$screen_width AS screen_width
FROM events
WHERE $session_id = '<session_id>'
ORDER BY timestamp ASC
LIMIT 200
For sessions with many events, focus on the most informative ones:
posthog:execute-sql
SELECT
timestamp,
event,
properties.$current_url AS url,
if(event = '$exception', properties.$exception_message, null) AS exception_message,
if(event = '$exception', properties.$exception_type, null) AS exception_type
FROM events
WHERE $session_id = '<session_id>'
AND event IN ('$pageview', '$pageleave', '$autocapture', '$exception', '$rageclick')
ORDER BY timestamp ASC
LIMIT 100
If the recording has console errors or exceptions, find related error tracking issues:
posthog:execute-sql
SELECT DISTINCT
properties.$exception_fingerprint AS fingerprint,
properties.$exception_type AS type,
properties.$exception_message AS message,
count() AS occurrences
FROM events
WHERE $session_id = '<session_id>'
AND event = '$exception'
GROUP BY fingerprint, type, message
ORDER BY occurrences DESC
LIMIT 10
If fingerprints are found, search for the corresponding error tracking issues
to provide links and status:
posthog:query-error-tracking-issues-list
{
"searchQuery": "<exception_type or message>"
}
Present the findings as a coherent narrative:
If the user wants a deeper analysis without reading through events manually,
offer a Replay Vision summary. Follow "check-then-scan" — don't scan blindly,
a scanner can only observe a given session once.
posthog:vision-observations-list
{
"session_id": "<session_id>"
}
Look for an observation where scanner_snapshot.scanner_type is summarizer
and status is succeeded. If found, read scanner_result.model_output
(title, summary, intent, outcome, friction_points, keywords) — done,
no new scan needed.
posthog:vision-scanners-list
{
"scanner_type": "summarizer"
}
No summarizer scanner? Run a temporary one below.
several minutes (rasterize + LLM):
posthog:vision-scanners-scan-session
{
"id": "<scanner_id>",
"session_id": "<session_id>"
}
vision-observations-list (step 1) untilthe new observation reaches succeeded.
If the project has no summarizer scanner, you can still produce a one-off summary
with a throwaway scanner — but ask the user's permission before creating anything.
this one session.
only runs when you trigger it on demand, so it won't touch other sessions or
burn quota in the background:
posthog:vision-scanners-create
{
"name": "Temporary on-demand summary",
"scanner_type": "summarizer",
"scanner_config": {
"prompt": "Summarize what the user was trying to do, whether they succeeded, and any friction they hit."
},
"query": { "kind": "RecordingsQuery" },
"model": "gemini-3-flash-preview",
"enabled": false
}
posthog:vision-scanners-scan-session
{
"id": "<new_scanner_id>",
"session_id": "<session_id>"
}
Poll vision-observations-list until the observation reaches succeeded and
read scanner_result.model_output.
ask the user if they want to keep the temporary scanner or delete it with
vision-scanners-delete. Deleting is safe: the summary you just read is also
emitted as an event that persists after the scanner is gone, so cleaning up the
temporary scanner does not lose the result.
Note this rather than suggesting something is broken.
to dig into exceptions. If it's 0, skip step 3.
start_url from the recording tells you where the user's journey began —use this to frame the narrative.
person is null on the recording, the user was anonymous.Person properties won't be available, but events still are.
Integration with protocols.io API for managing scientific protocols. This skill should be used when working with protocols.io to search, create, update, or publish protocols; manage protocol steps and materials; handle discussions and comments; organize workspaces; upload and manage files; or integrate protocols.io functionality into workflows. Applicable for protocol discovery, collaborative protocol development, experiment tracking, lab protocol management, and scientific documentation.
Analyzes job descriptions and generates tailored resumes that highlight relevant experience, skills, and achievements to maximize interview chances
Generate Excalidraw diagrams from natural language descriptions. Use when asked to "create a diagram", "make a flowchart", "visualize a process", "draw a system architecture", "create a mind map", or "generate an Excalidraw file". Supports flowcharts, relationship diagrams, mind maps, and system architecture diagrams. Outputs .excalidraw JSON files that can be opened directly in Excalidraw.
Build and distribute Expo development clients locally or via TestFlight
Use when you have a written implementation plan to execute in a separate session with review checkpoints
Data structure for annotated matrices in single-cell analysis. Use when working with .h5ad files or integrating with the scverse ecosystem. This is the data format skill—for analysis workflows use scanpy; for probabilistic models use scvi-tools; for population-scale queries use cellxgene-census.
Benchling R&D platform integration. Access registry (DNA, proteins), inventory, ELN entries, workflows via API, build Benchling Apps, query Data Warehouse, for lab data management automation.
Comprehensive molecular biology toolkit. Use for sequence manipulation, file parsing (FASTA/GenBank/PDB), phylogenetics, and programmatic NCBI/PubMed access (Bio.Entrez). Best for batch processing, custom bioinformatics pipelines, BLAST automation. For quick lookups use gget; for multi-service integration use bioservices.
Take posthog/investigating-replay from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.