Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计通过

posthog-analytics后猪分析

Agent Skill

用于辅助数据整理、表格处理、CSV/Excel 分析、指标计算和图表准备。它适合让 Agent 清洗字段、汇总数据、发现异常、生成统计口径或把分析结果转成可读说明。使用时需要确认数据来源、字段含义和时间范围,避免把样本数据当全量事实;涉及敏感数据、导出文件或批量写回时,应先确认权限和脱敏边界。

总安装

353

周安装

15

GitHub Stars

35

下载量

124
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:posthog-analytics(后猪分析)
来源仓库:https://github.com/petekp/claude-code-setup
仓库路径:skills/posthog-analytics
安装命令:
npx skills add https://github.com/petekp/claude-code-setup --skill posthog-analytics
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/petekp/claude-code-setup --skill posthog-analytics

简介

posthog-analytics 用于辅助数据整理、表格处理、CSV/Excel 分析、指标计算和图表准备,适合清洗字段、汇总数据、发现异常。

  • 适用于研究检索类任务,特别适合数据统计分析和可视化准备工作。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,支持多宿主环境集成。
  • 使用时需要确认数据来源、字段含义和时间范围,避免把样本数据当全量事实。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

PostHog Analytics Expert

Transform PostHog data into actionable product insights. This skill combines product analytics expertise with the PostHog MCP server to help discover patterns, surface opportunities, and build a data-informed product strategy.

Product Context Management

Before diving into analysis, establish product context. Store discovered knowledge in .claude/product-context.md for persistence across sessions.

First Session: Discovery

  1. Check for existing context: Read .claude/product-context.md if it exists
  2. Interview the user (if context is missing or incomplete):

- What does the product do? Who are the users? - What are the key user actions/conversions? - What business metrics matter most?

  1. Explore PostHog data:

- event-definitions-list - Discover tracked events - properties-list - Understand available properties - insights-get-all - See existing insights - dashboards-get-all - Review current dashboards

  1. Save context: Write discovered knowledge to .claude/product-context.md

Context File Structure

# Product Context

## Product Overview
[What the product does, target users]

## Key Events
| Event | Meaning | Importance |
|-------|---------|------------|
| $pageview | Page visit | Navigation tracking |
| signup_completed | User registered | Core conversion |
| [custom events discovered] | | |

## Important Properties
- user_tier: free/pro/enterprise
- [other key properties]

## Key Metrics
- Primary: [e.g., Weekly Active Users, Conversion Rate]
- Secondary: [e.g., Feature Adoption, Retention]

## Funnels
- Activation: signup → onboarding_complete → first_value_action
- [other key funnels]

## Last Updated: [date]

Core Capabilities

1. Proactive Insight Discovery

When asked to "find insights" or "what's interesting", run this discovery workflow:

1. Trends Analysis
   - query-run: Total events over 30 days (spot volume changes)
   - query-run: DAU/WAU/MAU trends (engagement health)
   - query-run: Key conversion events over time

2. Funnel Health
   - query-run: Core activation funnel
   - query-run: Conversion funnel (trial → paid if SaaS)
   - Look for: Drop-off points, conversion changes

3. Retention Check
   - query-run: Cohort retention (week-over-week)
   - Look for: Retention curve shape, changes over time

4. Feature Adoption
   - query-run: Feature usage by user segment
   - Look for: Underused features, power user patterns

5. Error Impact
   - list-errors: Top errors by occurrence
   - error-details: Impact on user journeys

Insight Presentation Format:

## [Insight Title]
**Finding**: [One sentence summary]
**Evidence**: [Specific numbers/data]
**Impact**: [Why this matters]
**Recommended Action**: [What to do about it]

2. Answering Analytics Questions

Map common questions to PostHog queries:

Question PatternApproach
"How many users..."query-run with TrendsQuery, math: "dau" or "total"
"What % convert..."query-run with FunnelsQuery
"Where do users drop off..."FunnelsQuery → analyze step-by-step conversion
"Which feature is most used..."TrendsQuery with breakdown by feature/event
"How is X changing over time..."TrendsQuery with interval: "day" or "week"
"Who are our power users..."TrendsQuery with breakdown by user property
"What's causing errors..."list-errorserror-details for top issues

3. Dashboard Creation

When building dashboards, follow this structure:

Executive Dashboard (high-level health):

  • Active users (DAU/WAU/MAU)
  • Core conversion rate
  • Retention (week 1, week 4)
  • Revenue metrics (if applicable)

Product Dashboard (feature-level):

  • Feature adoption rates
  • Feature engagement depth
  • User journey completion
  • Error rates by feature

Growth Dashboard (acquisition/activation):

  • Signup funnel
  • Activation funnel
  • Traffic sources (if tracked)
  • Onboarding completion

Workflow:

  1. dashboard-create with descriptive name
  2. Build insights with query-runinsight-create-from-query
  3. Add to dashboard with add-insight-to-dashboard
  4. Organize with dashboard-reorder-tiles

4. Experiment Design

When setting up A/B tests:

  1. Clarify hypothesis: What change, expected impact, and why
  2. Find existing flags: feature-flag-get-all (reuse if appropriate)
  3. Choose metrics: Use event-definitions-list to find trackable events
  4. Set up experiment: experiment-create with:

- Clear name and description - Primary metric (what you're optimizing) - Secondary metrics (guardrails) - Appropriate sample size (MDE guidance)

See references/experiments.md for detailed experiment patterns.

5. Cohort & Segment Analysis

For understanding user segments:

1. Define cohort criteria (user properties, behaviors)
2. Compare cohorts on key metrics:
   - query-run with breakdownFilter by cohort property
   - Conversion rates per segment
   - Retention per segment
3. Identify highest-value segments
4. Recommend targeting strategies

Query Patterns

TrendsQuery (counts over time)

{
  "kind": "InsightVizNode",
  "source": {
    "kind": "TrendsQuery",
    "dateRange": {"date_from": "-30d"},
    "interval": "day",
    "series": [{
      "kind": "EventsNode",
      "event": "event_name",
      "custom_name": "Display Name",
      "math": "total"
    }]
  }
}

Math options: total, dau, weekly_active, monthly_active, unique_session, avg, sum, min, max

FunnelsQuery (conversion analysis)

{
  "kind": "InsightVizNode",
  "source": {
    "kind": "FunnelsQuery",
    "dateRange": {"date_from": "-30d"},
    "series": [
      {"kind": "EventsNode", "event": "step_1", "custom_name": "Step 1"},
      {"kind": "EventsNode", "event": "step_2", "custom_name": "Step 2"},
      {"kind": "EventsNode", "event": "step_3", "custom_name": "Step 3"}
    ],
    "funnelsFilter": {
      "funnelWindowInterval": 7,
      "funnelWindowIntervalUnit": "day"
    }
  }
}

Breakdown Analysis

Add to any query:

"breakdownFilter": {
  "breakdown": "property_name",
  "breakdown_type": "event"  // or "person"
}

SaaS Metrics Framework

For SaaS products, prioritize these metrics:

MetricQuery ApproachWhy It Matters
Activation RateFunnel: signup → key_actionValidates onboarding
DAU/MAU RatioTrends: DAU ÷ MAUEngagement stickiness
Feature AdoptionTrends: feature_used by userProduct-market fit signals
Retention (D7, D30)Cohort retention queryLong-term value predictor
Conversion (Trial→Paid)Funnel: trial_start → subscriptionRevenue health
Expansion RevenueTrends: upgrade eventsGrowth efficiency
Churn IndicatorsDeclining usage patternsEarly warning system

Resources

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.35%
按下载量换算48

Claude

27.74%
按下载量换算34

Cursor

18.13%
按下载量换算22

Gemini CLI

9.81%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills