finding-replay-for-issue
यह क्या करती है
यह स्किल त्रुटि ट्रैकिंग मुद्दे के लिए सबसे उपयोगी सेशन रिकॉर्डिंग चुनती है, जो शायद सैकड़ों में से एक हो। यह उन डेवलपर्स और सपोर्ट स्टाफ़ के लिए है जो बग से पहले क्या हुआ यह देखना चाहते हैं।
कब इस्तेमाल करें
- ✓जब आप वह रीप्ले देखना चाहें जो दिखाता है कि त्रुटि तक क्या हुआ।
- ✓जब किसी त्रुटि से सैकड़ों रिकॉर्डिंग जुड़ी हों और आपको नहीं पता कि कौन सी देखें।
- ✓जब आप त्रुटि से पहले उपयोगकर्ता ने क्या किया, उसका छोटा सारांश चाहें।
Skill का लिंक
https://github.com/PostHog/posthog/blob/master/products/replay/skills/finding-replay-for-issue/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“इस त्रुटि मुद्दे के लिए सबसे अच्छा सेशन रीप्ले दिखाइए, और उपयोगकर्ता ने उससे पहले क्या किया।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह त्रुटि से जुड़े सेशन को ताज़गी, गतिविधि और उपयोगकर्ता की यात्रा कितनी पूरी है, इन आधारों पर क्रम में लगाती है। फिर यह जाँचती है कि कोई मौजूदा AI सारांश है या नहीं, और ज़रूरत हो तो एक बना सकती है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Finding the best replay for an error tracking issue
When a user says "show me a replay for this error" or "find a recording for issue X", the goal isn't just any linked session — it's the one that best shows what led to the error. Popular issues can have hundreds of linked sessions, and most are crash-only fragments or duplicate occurrences. This skill picks the most useful one.
Available tools
| Tool | Purpose |
|---|---|
posthog:query-error-tracking-issue |
Get issue details (fingerprint, status, volume) |
posthog:execute-sql |
Query exception events to find linked sessions |
posthog:query-session-recordings-list |
Fetch recording metadata for candidate sessions |
posthog:session-recording-get |
Get full details for the selected recording |
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 recording (optional, slow) |
Workflow
Step 1 — Get the issue details
Fetch the error tracking issue to understand what you're looking for:
posthog:query-error-tracking-issue
{
"issueId": "<issue_id>"
}
Note the issue's fingerprint, name, and description — you'll need the fingerprint
to find linked sessions.
Step 2 — Find sessions with this error
Query exception events to get session IDs where this error occurred. Order by recency and include basic context:
posthog:execute-sql
SELECT
$session_id AS session_id,
count() AS occurrences,
min(timestamp) AS first_seen,
max(timestamp) AS last_seen,
any(properties.$current_url) AS url
FROM events
WHERE event = '$exception'
AND properties.$exception_fingerprint = '<fingerprint>'
AND $session_id IS NOT NULL
AND timestamp > now() - INTERVAL 30 DAY
GROUP BY session_id
ORDER BY last_seen DESC
LIMIT 20
This gives you up to 20 candidate sessions. More candidates means better selection.
Step 3 — Rank the candidates
Fetch recording metadata for the candidate sessions to rank them:
posthog:query-session-recordings-list
{
"session_ids": ["<id1>", "<id2>", "<id3>", ...],
"date_from": "-30d"
}
Pick the best recording by filtering out bad candidates, then ranking what's left:
Filter out:
- Sessions under 10 seconds (crash-only fragments, no pre-error context)
- Sessions over 1 hour (too much data to load, error is a needle in a haystack)
Rank by:
- Sweet-spot duration — 2-15 minutes is ideal. Long enough to show the user's journey before the error, short enough to be practical to watch or summarize.
- Active time ratio — compare
active_secondstorecording_duration. A 20-minute recording with 10 seconds of activity is mostly idle tabs — the user walked away. Prefer sessions whereactive_seconds / recording_durationis above 0.3 (30%). - Activity score — higher
activity_scoremeans the user was actively interacting, not idle. More interesting to watch. - Recency — more recent sessions reflect current app behavior.
Step 4 — Present the finding
Fetch full details for the selected recording:
posthog:session-recording-get
{
"id": "<best_recording_id>"
}
Present to the user:
- The recording with a link to watch it
- Why this one — briefly explain the selection ("longest session with the error, user was browsing 3 pages before hitting it")
- Pre-error context — what pages the user visited and key actions before the exception,
derived from the events query in step 2 (the
urlandfirst_seencolumns) - Error frequency — how many times the error occurred in this session
Optional: AI summary via Replay Vision
If the user wants a narrative summary without watching, use Replay Vision — "check-then-scan", since a scanner can only observe a given session once.
Check for an existing summary on the selected recording:
posthog:vision-observations-list { "session_id": "<best_recording_id>" }If an observation has
scanner_snapshot.scanner_typesummarizerand
अक्सर पूछे जाने वाले सवाल
पहला सेशन ही क्यों न चुनें?
जुड़े हुए कई सेशन छोटे क्रैश टुकड़े या डुप्लिकेट होते हैं, इसलिए स्किल उन्हें क्रम में लगाती है ताकि सबसे उपयोगी मिले।
क्या मौजूदा सारांश ज़रूरी है?
नहीं। यह उसे जाँचती है, और रिकॉर्डिंग पर सारांश स्कैन चला सकती है, जो धीमा होता है।
सबसे अच्छा रीप्ले किन कारकों से तय होता है?
ताज़गी, गतिविधि, और त्रुटि से पहले उपयोगकर्ता की यात्रा कितनी पूरी है।
जानकारी
लेखक का मूल विवरण
Finds the most informative session recording linked to an error tracking issue. Use when a user has an error tracking issue ID and wants to watch a replay showing what the user was doing when the error occurred. Ranks linked sessions by recency, activity score, and journey completeness, then summarizes the pre-error context. Replaces blind session picking from potentially hundreds of linked recordings.
repo: PostHog/posthog
लोकप्रियता
- GitHub स्टार
- 41k
- रैंकिंग में स्थान
- #6907
- लाइसेंस
- —
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
depot-ci
41kयह आपके एजेंट को Depot CI वर्कफ़्लो सेट अप करने, चलाने और माइग्रेट करने में मदद करती है, साथ ही रन के लॉग पढ़ने में।
depot-container-builds
41kयह आपके एजेंट को Depot के रिमोट बिल्डर पर Docker इमेज बनाने में मदद करती है, जिसमें मल्टी-प्लेटफ़ॉर्म इमेज और बिल्ड सुधार शामिल हैं।
depot-github-runners
41kयह आपके एजेंट को GitHub Actions जॉब Depot के मैनेज्ड रनर पर ले जाने, रनर का साइज़ और लेबल चुनने, और रनर सेटअप की समस्याएँ ठीक करने में मदद करती है।
editing-agents-md
41kयह आपके एजेंट को तय करने में मदद करती है कि कोई नियम AGENTS.md या CLAUDE.md में जाए या नहीं, और उसे ऐसे लिखे कि फ़ाइल भारी न हो।
मिलती-जुलती skills
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।