Skillpedia
التحليل وجداول البيانات41k · #6904

investigate-metric

ما الذي تفعله

تشرح هذه المهارة سبب تغيّر مخطط في PostHog، باستخدام التفصيلات والقمع والاحتفاظ وغيرها من الاستعلامات المرتبطة. وهي مناسبة للمحللين ومديري المنتجات الذين يحتاجون إلى سبب التغيير.

متى تستخدمها

  • ✓عندما ينخفض مقياس أو يرتفع فجأة وتريد معرفة السبب.
  • ✓عندما يطلب منك أحدهم شرح مخطط لا تستطيع قراءته.
  • ✓عندما يتغير قمع أو احتفاظ أو دورة حياة وتحتاج إلى الجذر الحقيقي للمشكلة.

رابط المهارة

https://github.com/PostHog/posthog/blob/master/products/product_analytics/skills/investigate-metric/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/PostHog/posthog/blob/master/products/product_analytics/skills/investigate-metric/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“انخفضت التسجيلات بشكل حاد يوم الثلاثاء الماضي. اكتشف السبب.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

تشغّل المهارة عدة استعلامات مرتبطة، مثل التفصيلات حسب الخاصية وقائمة المستخدمين وراء التغيير، ثم تفحص التعليقات التوضيحية بحثاً عن أحداث قد تفسر التغيير. وتجمع النتائج في سبب مرجح.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

Investigating a metric change

For "why did X change?" questions about a saved insight, dashboard tile, or pasted query, and for "explain this chart" or "walk me through this" when the user names no change. Don't load this skill for plain "what is X?" questions — only when there's a chart or an observed change to explain.

Tools

Targets PostHog MCP v2. Typed query tools accept the query body directly — pass kind, series, dateRange as top-level fields, do not wrap in InsightVizNode.

Tool Purpose
posthog:query-trends Trends (count over time)
posthog:query-funnel Funnels (multi-step conversion)
posthog:query-retention Retention (cohort return rates)
posthog:query-stickiness Stickiness (active days per user)
posthog:query-lifecycle Lifecycle (new/returning/resurrecting/dormant)
posthog:query-paths Paths (navigation flow)
posthog:query-trends-actors Users behind a trend bucket (trends source only)
posthog:execute-sql Existing SQL insights and custom analysis
posthog:read-data-schema Discover events, properties, sample values
posthog:insight-get / -query Fetch a saved insight's metadata / data
posthog:explain-chart Walk the user through a trends chart (Step 5)

Plus the standard PostHog tools the playbooks reference by name (feature-flag-get-all, experiment-list, annotations-list, query-error-tracking-issues-list, query-logs, query-session-recordings-list, cohorts-list/-create, annotation-create, insight-create).

Helper scripts

  • compare_to_prior_periods.py — auto-detects interval and compares recent values to the natural cycle (day-of-week, hour-of-week, or sequential). Use to resolve step 2.2 cheaply.
  • breakdown_attribution.py — ranks breakdown segments by absolute delta and flags offsetting moves.
python3 scripts/compare_to_prior_periods.py < query_result.json
WINDOW=7 python3 scripts/breakdown_attribution.py < breakdown_result.json

Step 1 — Classify the metric

Read query.kind from the source the user pointed at:

  • Saved insight (URL, short_id): posthog:insight-get → query.kind. Use posthog:insight-query if you also need the numbers.
  • A query you already ran or the user pasted: read kind directly.
  • A metric the user only names, such as "signups", or shows in a screenshot: find its event with posthog:read-data-schema and run it as one series over time with posthog:query-trends. That query is your TrendsQuery. When query-trends cannot express the metric, such as a warehouse-only metric or a custom SQL join, run it with posthog:execute-sql and treat it as a HogQLQuery.
  • Nothing pointed at, or several events could be the metric: ask which one. Don't guess.
kind Playbook
TrendsQuery trend-playbook.md
FunnelsQuery funnel-playbook.md
RetentionQuery retention-playbook.md
StickinessQuery stickiness-playbook.md
LifecycleQuery lifecycle-playbook.md
PathsQuery paths-playbook.md
HogQLQuery route by what the SQL aggregates (see below)

If kind === "TrendsQuery" and trendsFilter.display === "BoxPlot", use box-plot-playbook.md — distribution metric, no breakdowns.

For HogQLQuery insights, classify by the SQL's shape: count over time → trend playbook, multi-step conversion → funnel playbook, cohort return → retention playbook. Run the SQL through posthog:execute-sql to get the data, then follow the closest playbook's steps. See HogQL insights in shared-patterns.md.

الأسئلة الشائعة

هل تعمل فقط مع التحليلات المحفوظة؟

لا. تستطيع العمل أيضاً من عنصر لوحة متابعة أو من استعلام تلصقه.

هل ستشرح لي ما هو المقياس؟

لا. هي للتغييرات أو المخططات التي تحتاج إلى تفسير، لا للتعريفات البسيطة.

كيف تجد المستخدمين وراء التغيير؟

تستخدم استعلام الفاعلين في الاتجاهات لمعرفة من في الفئة التي تغيّرت.

التفاصيل

الوصف الأصلي من المؤلف

Diagnose why a product metric changed (dropped, spiked, or plateaued) by orchestrating breakdowns, actors, paths, lifecycle, retention, and annotations queries. Use when the user reports an anomaly, asks "why did X change?", asks to explain or walk them through a chart, or needs root-cause analysis for a trend, funnel, retention, stickiness, or lifecycle metric.

repo: PostHog/posthog

الشعبية

نجوم GitHub
41k
الترتيب
#6904
الترخيص
—
آخر تحديث
2‏/11‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة