Token导航 LogoToken导航

Agent Skill · 研究检索

posthog-analytics(后猪分析)

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

posthog-analytics 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为调用外部服务;许可证信息还不明确,第三方扫描有未通过项,按安装量在研究检索类的 73,675 个 Skill 里排第 57,864。

总安装 423周安装 18GitHub Stars 4下载 148核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/petekp/agent-skills --skill posthog-analytics

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于辅助数据整理、表格处理和指标计算。posthog-analytics 属于研究检索类 Skill,可作为该场景下的辅助能力补充。适合清洗字段、汇总数据、发现异常或生成统计口径。使用时需确认数据来源、字段含义和时间范围。避免把样本数据当全量事实,涉及敏感数据应先脱敏。当前归类为研究检索,但功能描述更符合数据分析类别。

来源仓库内路径:skills/posthog-analytics

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/petekp/agent-skills --skill posthog-analytics;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要调用外部服务,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

posthog-analytics 怎么安装?

在终端执行 npx skills add https://github.com/petekp/agent-skills --skill posthog-analytics。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

posthog-analytics 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

posthog-analytics 需要什么权限?

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

posthog-analytics 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

posthog-analytics 用的人多吗?

公开数据是累计安装 423 次,近一周安装 18 次,下载 148 次,GitHub 4 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

posthog-analytics 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
posthog-analytics

后猪分析 · 本页

4234调用外部服务未明确未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

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-errors → error-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-run → insight-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

平台分布

Codex

38.31%
按下载量换算57

Claude

31.44%
按下载量换算47

Cursor

16.48%
按下载量换算24

Gemini CLI

9.45%
按下载量换算14

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

通过

权限和风险

调用外部服务

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills