Token导航 LogoToken导航TokenDH.com
效率敏感数据clawhub未标认证来源可访问clear审计提醒

posthog-analytics后猪分析

Agent Skill

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

总安装

4,176

周安装

174

GitHub Stars

公开资料未说明

下载量

1,392
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install posthog-analytics

简介

通过 API 自动管理 PostHog 仪表板与洞察数据。

  • 支持仪表板 CRUD、队列管理和分析结果导出。
  • 适合自动化数据整理与可视化准备任务。posthog-analytics 属于效率类 Skill,可作为该场景下的辅助能力补充。
  • 安装命令:openclaw skills install posthog-analytics。
  • 涉及敏感数据时应先确认脱敏方式和权限边界。

SKILL.md

name
posthog-analytics
description
Automate PostHog dashboard creation, sync, update, and export via API. Covers dashboard CRUD, insight creation, cohort management, and API-driven analytics workflows.
version
1.2.0
env
required
true
description
PostHog personal API key with read/write access
required
false
default
us.i.posthog.com
description
PostHog API host (EU: eu.i.posthog.com)
required
false
default
us.posthog.com
description
PostHog UI host for dashboard URLs

PostHog Analytics Skill

Automate PostHog dashboard creation, sync, update, and export via API.

Prerequisites

Required Tools

  • curl - HTTP client (pre-installed on macOS/Linux)
  • jq - JSON processor: brew install jq or apt install jq
  • bash - Shell (the script is bash)

PostHog API Key

  1. Go to PostHog Settings → Personal API Keys
  2. Create a new key with read/write access
  3. Export it:
export POSTHOG_PERSONAL_API_KEY=phx_xxx

Note: The API key determines your organization and project. The script uses @current project context (your default project).

Verify Setup

# Test your API key - should return your project info
curl -s -H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
  "https://us.i.posthog.com/api/projects/@current/" | jq '{id, name}'

Expected output:

{
  "id": 209268,
  "name": "Default project"
}

If you get an error, check your API key is correct and has proper permissions.

Quick Start: Blog Analytics Example

Step 1: Write Your Config

Create blog_dashboard.json:

{
  "name": "Blog Analytics",
  "description": "Track blog performance and reader engagement",
  "filter": {"key": "source", "value": "blog"},
  "dashboard_id": null,
  "insights": [
    {"name": "Blog Pageviews (Total)", "type": "pageviews_total"},
    {"name": "Unique Blog Readers", "type": "unique_users"},
    {"name": "Blog Traffic Trend", "type": "traffic_trend"},
    {"name": "Top Blog Posts", "type": "top_pages"}
  ]
}

Note: Set dashboard_id: null for new dashboards.

Step 2: Create Dashboard

./scripts/posthog_sync.sh create blog_dashboard.json

Output:

Creating dashboard: Blog Analytics
Dashboard created: ID 1166599
Creating insight: Blog Pageviews (Total)
{id: 6520531, name: "Blog Pageviews (Total)"}
...
Dashboard URL: https://us.posthog.com/project/209268/dashboard/1166599

The script:

  • Creates a new dashboard in your PostHog project
  • Returns dashboard_id (e.g., 1166599) and project_id (e.g., 209268) in the URL
  • Automatically updates your config file with the dashboard_id

Step 3: Add New Insights (Sync)

Edit config to add new insights, then:

./scripts/posthog_sync.sh sync blog_dashboard.json

Only creates NEW insights. Existing ones (matched by name) are skipped.

Step 4: Update Existing Insights

Changed your filter? Edit config, then:

./scripts/posthog_sync.sh update blog_dashboard.json

Updates ALL insights with current config settings. Use when changing filters.

Step 5: Export Existing Dashboard

./scripts/posthog_sync.sh export 1166599 > exported_dashboard.json

Config Reference

FieldRequiredDescription
nameYesDashboard name
descriptionNoDashboard description
filterNo*Event property filter: {"key": "source", "value": "blog"}
domain_filterNo*URL filter fallback: "blog.sylph.ai"
dashboard_idNoSet to null for create, or existing ID for sync/update
insightsYesArray of insight objects

*At least one filter recommended. filter takes precedence over domain_filter.

Insight Types

TypeDisplayDescription
pageviews_totalBoldNumberTotal pageview count
unique_usersBoldNumberUnique visitors (DAU)
traffic_trendLineGraphTraffic over time
top_pagesTableTop pages breakdown

Optional Insight Fields

FieldDefaultOptions
mathtotaltotal, dau, weekly_active, monthly_active
displayAutoBoldNumber, ActionsLineGraph, ActionsTable
date_range-30d-7d, -30d, -90d, etc.

Environment Variables

VariableRequiredDefaultDescription
POSTHOG_PERSONAL_API_KEYYes-Your API key (determines org/project)
POSTHOG_HOSTNous.i.posthog.comAPI host (EU: eu.i.posthog.com)
POSTHOG_UI_HOSTNous.posthog.comUI host for dashboard URLs

Files

  • scripts/posthog_sync.sh - CLI script (create/sync/update/export)
  • examples/blog_dashboard.json - Example config

References

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

OpenClaw

74.02%
按下载量换算1,030

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

来源信息

继续浏览同类 Skills