posthog-cheshire
Instrument and operate PostHog analytics for Cheshire Terminal (US cloud project 473072). Use when wiring posthog-js / posthog-node, cookieless privacy opt-in, wallet identify on SIWS, session replay, product events (wallet_connected, pump/dbc launches, agents, staking), or verifying capture to us.i.posthog.com.
- License 许可
- MIT
- 最近更新
- 2026-10-08
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- posthog-cheshire
- license
- MIT
- version
- 1.1.0
- metadata
- { "author": "cheshire-terminal", "version": "1.1.0", "homepage": "https://us.posthog.com/project/473072", "posthog_host": "https://us.i.posthog.com", "posthog_project_id": "473072" }
- description
- Instrument and operate PostHog analytics for Cheshire Terminal (US cloud project 473072). Use when wiring posthog-js / posthog-node, cookieless privacy opt-in, wallet identify on SIWS, session replay, product events (wallet_connected, pump/dbc launches, agents, staking), or verifying capture to us.i.posthog.com.
- compatibility
- POSTHOG_API_KEY / VITE_POSTHOG_KEY optional (browser has default project key); network to us.i.posthog.com
02 资源文件 5
- 参考文档metadata.json486 B
- 参考文档references/events.md2.5 KB
- 参考文档references/privacy.md1.9 KB
- 脚本scripts/check-posthog-env.sh2.1 KB
- 参考文档verification.json1.6 KB
03 SKILL.md 正文
PostHog for Cheshire Terminal
Project
| Key | Value |
|---|---|
| Cloud | US https://us.i.posthog.com |
| Project ID | 473072 |
| Inbox | https://us.posthog.com/project/473072/inbox |
| Replay | Product Analytics → Session replay |
Operating flow
- Respect privacy first — no capture until analytics opt-in
- Browser:
client/src/lib/posthog.ts(cookieless memory persistence) - Server:
server/lib/posthog.ts(posthog-node) - Identify wallet on connect and session restore
- Capture named product events only (see events reference)
- Verify in Network tab + PostHog Live events
Load details when needed:
- references/events.md — product event catalog
- references/privacy.md — cookieless + opt-in rules
- scripts/check-posthog-env.sh — env readiness (no secret print)
Env
POSTHOG_API_KEY=phc_... # server (posthog-node)
POSTHOG_HOST=https://us.i.posthog.com
VITE_POSTHOG_KEY=phc_... # browser (optional; client has project default)
VITE_POSTHOG_HOST=https://us.i.posthog.com
VITE_POSTHOG_DISABLED=true # hard kill switch for browser
Never commit raw keys; never log them.
Browser (posthog-js)
// client/src/lib/posthog.ts
posthog.init(key, {
api_host: "https://us.i.posthog.com",
defaults: "2026-05-30",
person_profiles: "identified_only",
capture_pageview: false, // SPA pageviews via capturePageView()
persistence: "memory",
disable_persistence: true,
opt_out_capturing_by_default: true,
disable_session_recording: !allowReplay,
});
Helpers:
| Helper | When |
|---|---|
initPostHog() |
App boot |
identifyWallet(address) |
SIWS connect + session restore |
capturePageView(path) |
SPA route change (if opted in) |
captureEvent(name, props) |
Product events |
resetPostHogIdentity() |
Logout / wallet disconnect |
applyPrivacyToPostHog() |
Privacy prefs changed |
Server (posthog-node)
server/lib/posthog.ts — singleton with exception autocapture. Capture from routes after successful mutations (pump, dbc, agents, staking, auth). Always pass distinctId as wallet or stable principal — never raw secrets.
Verify
- Opt into analytics in privacy UI
- Network → requests to
us.i.posthog.com - Wallet connect → person identified by address
- Session replay only if analytics and replay opted in
- Live events: wallet_connected, pageviews, product actions
bash skills-store/posthog-cheshire/scripts/check-posthog-env.sh
Rules
- Cookieless by default — no tracking cookies
- No capture without explicit analytics consent
- Do not attach private keys, seed phrases, full API keys, or raw JWT secrets to events
- Prefer wallet address as
distinctIdfor holder identity - Keep event names snake_case and stable (see events reference)
04 同仓库更多 Skills
zkrouter
Self-hosted OpenAI-compatible LLM router — smart tier-based routing, ZK-stamped routing decisions, mode overrides, free OpenRouter at install via the Birth bot. Save 60-80% on inference costs by routing to the cheapest capable model across 12+ OpenRouter models.
zk
For custom ZK Solana programs and privacy-preserving applications to prevent double spending. Guide to integrate rent-free nullifier PDAs for double-spend prevention.
zk-omni-messaging
Zero-knowledge omnichain messaging between Robinhood Chain and Solana using CheshireZkOmniMessenger (msgType 4) with nullifier anti-replay and the zk-omni-relayer service.
zerion-wallet-data
Use when the user asks to check a wallet's portfolio, token balances, DeFi positions, PnL, transaction history, or NFTs. Provides interpreted on-chain data across 40+ EVM chains and Solana via x402 pay-per-request or API key — no raw RPC decoding needed.
youtube-clipper
YouTube 视频智能剪辑工具。下载视频和字幕,AI 分析生成精细章节(几分钟级别), 用户选择片段后自动剪辑、翻译字幕为中英双语、烧录字幕到视频,并生成总结文案。 使用场景:当用户需要剪辑 YouTube 视频、生成短视频片段、制作双语字幕版本时。 关键词:视频剪辑、YouTube、字幕翻译、双语字幕、视频下载、clip video
yield-optimization
Multi-chain yield optimization via yield.xyz (StakeKit). Discover 2,988+ yield opportunities across 75+ blockchains, build deposit/withdrawal transactions with shell scripts, and sign them with a MoonPay wallet. Use when the user wants to earn yield, find the best lending or staking rate, enter/exit a position, or check portfolio balances.