zer09/pi-config/pp-posthog
Claude Code and agent skill by zer09/pi-config
- community
Checking that the SKILL.md file is still in the repository.
Access PostHog from Pi through the local `posthog-pp-cli`. Use for PostHog reads, feature flags, experiments, persons, dashboards, errors, events, LLM traces, cache hydration/sync/search, flag blast-radius or rollout checks, and when the user asks to query or check PostHog data.
Install
npx vskill@latest install zer09/pi-config/pp-posthogSKILL.md
The same SKILL.md was published earlier as zer09/pi-config/pp-posthog.
PostHog CLI
Use the local posthog-pp-cli for PostHog reads and carefully gated writes. PostHog is an external hosted service: stay read-only unless the user explicitly requests the exact create, update, delete, import, bulk update, or other remote mutation.
Core rules
- Verify the binary before use:
command -v posthog-pp-cli && posthog-pp-cli --version. - If missing, suggest
npx -y @mvanhorn/printing-press-library install posthog --cli-only; do not install unless the user asks. - Verify connectivity with
posthog-pp-cli doctoronly within an authorized authenticated-read task. For offline maintenance, use version and help checks only. Do not print tokens, OAuth headers, config secrets, cookies,api_token, or full config files. - Prefer
--agentfor read-only commands. Use--selectfor output filtering only when the subcommand's--helpdefines that meaning; see the command reference for the events exception. - Do not print raw
users retrieve @meoutput. It can include email and team tokens; parse only the fields needed, usually.results.team.project_id. - Treat
posthog-pp-cli syncas local cache hydration: it reads from PostHog and writes local SQLite. Run it when the user asks to hydrate, sync, search offline, or refresh stale cache. - For remote mutations, do a
--dry-runfirst when supported and ask for confirmation unless the user has already requested that exact mutation. Remember--agentincludes--yes, so do not use it casually on destructive commands. - Never automatically replay a write after an ambiguous transport or 5xx failure. Inspect the target state before any separately authorized retry; the write may already have succeeded.
Read workflow
- Check health:
``bash posthog-pp-cli doctor ``
- Resolve the current project ID without printing the full user response:
``bash tmp=$(mktemp) trap 'rm -f "$tmp"' EXIT posthog-pp-cli users retrieve @me --agent > "$tmp" project_id=$(jq -r '.results.team.project_id // .team.project_id' "$tmp") ``
- Inspect help before syntax-sensitive commands:
``bash posthog-pp-cli --help posthog-pp-cli projects feature-flags list --help ``
- Run bounded reads with
--agentand help-confirmed output filtering:
``bash posthog-pp-cli projects feature-flags list <project_id> --limit 20 --agent --select id,key,active ``
Cache and offline analysis
Hydrate or refresh the local cache when the user asks:
Parse the final sync_summary and summarize warning counts instead of dumping all output. Expected non-fatal warnings include denied scopes for resources the token cannot read.
After sync, use local-capable commands:
Command reference
Read commands for tested command shapes, feature-flag safety recipes, local cache/search usage, and known command-surface drift.
Important local note: installed CLI versions may differ from the generated README. If a README command fails, trust posthog-pp-cli --help and posthog-pp-cli api from the installed binary. Treat posthog-pp-cli which as a fuzzy discovery hint and verify its suggestions with --help before use.
Maintenance
Update this Local Skill using ../../../docs/skills/pp-posthog-update-process.md. Preserve the local invariants in ../../../docs/skills/local-skill-update-invariants.md, keep hosted-service safety gates in this runtime file, and keep longer command catalogs in references/.
Security
- Security scanPassed, 98 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingagent/skills/pp-posthog/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/zer09/pi-config/pp-posthog)