posthog-instrumentation by posthog/posthog-for-claude
npx skills add https://github.com/posthog/posthog-for-claude --skill posthog-instrumentation帮助用户在他们的代码中添加 PostHog 分析、事件追踪和功能开关。
// Event tracking
posthog.capture('button_clicked', { button_name: 'signup' })
// Feature flags
if (posthog.isFeatureEnabled('new-feature')) {
// Show new feature
}
// User identification
posthog.identify(userId, { email: user.email })
from posthog import Posthog
posthog = Posthog(api_key='<ph_project_api_key>')
# Event tracking
posthog.capture(distinct_id='user_123', event='purchase_completed')
# Feature flags
if posthog.feature_enabled('new-feature', 'user_123'):
# Show new feature
import { usePostHog } from 'posthog-js/react'
function MyComponent() {
const posthog = usePostHog()
const handleClick = () => {
posthog.capture('button_clicked')
}
}
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
每周安装量
455
代码仓库
GitHub 星标数
10
首次出现
2026年1月22日
安全审计
安装于
opencode415
codex410
gemini-cli406
github-copilot400
cursor391
claude-code358
Help users add PostHog analytics, event tracking, and feature flags to their code.
// Event tracking
posthog.capture('button_clicked', { button_name: 'signup' })
// Feature flags
if (posthog.isFeatureEnabled('new-feature')) {
// Show new feature
}
// User identification
posthog.identify(userId, { email: user.email })
from posthog import Posthog
posthog = Posthog(api_key='<ph_project_api_key>')
# Event tracking
posthog.capture(distinct_id='user_123', event='purchase_completed')
# Feature flags
if posthog.feature_enabled('new-feature', 'user_123'):
# Show new feature
import { usePostHog } from 'posthog-js/react'
function MyComponent() {
const posthog = usePostHog()
const handleClick = () => {
posthog.capture('button_clicked')
}
}
Weekly Installs
455
Repository
GitHub Stars
10
First Seen
Jan 22, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykFail
Installed on
opencode415
codex410
gemini-cli406
github-copilot400
cursor391
claude-code358
网站审计工具 - 使用 squirrelscan CLI 全面检测 SEO、性能、安全及技术问题
39,800 周安装