posthog-local-dev-loop
Sets up a fast local development environment for PostHog with hot reload and testing capabilities, enhancing development workflows.
Install this skill
Security score
The posthog-local-dev-loop skill was audited on May 12, 2026 and we found 19 security issues across 3 threat categories. Review the findings below before installing.
Categories Tested
Security Issues
Template literal with variable interpolation in command context
| 188 | distinctId: `test-${Date.now()}`, |
Template literal with variable interpolation in command context
| 197 | const flags = await ph.getAllFlags(`test-${Date.now()}`); |
Access to .env file
| 53 | ├── .env.local # Dev keys (git-ignored) |
Access to .env file
| 54 | ├── .env.example # Template: NEXT_PUBLIC_POSTHOG_KEY=phc_... |
Access to .env file
| 68 | client = new PostHog(process.env.NEXT_PUBLIC_POSTHOG_KEY!, { |
Access to .env file
| 69 | host: process.env.POSTHOG_HOST || 'https://us.i.posthog.com', |
Access to .env file
| 70 | flushAt: process.env.NODE_ENV === 'development' ? 1 : 20, |
Access to .env file
| 71 | flushInterval: process.env.NODE_ENV === 'development' ? 0 : 10000, |
Access to .env file
| 92 | posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY!, { |
Access to .env file
| 95 | if (process.env.NODE_ENV === 'development') { |
Access to .env file
| 104 | if (process.env.NODE_ENV === 'test') { |
Access to .env file
| 173 | const POSTHOG_KEY = process.env.POSTHOG_TEST_KEY; |
Access to .env file
| 220 | | Events not in dev dashboard | Wrong project key | Verify `.env.local` has dev project `phc_` key | |
External URL reference
| 69 | host: process.env.POSTHOG_HOST || 'https://us.i.posthog.com', |
External URL reference
| 93 | api_host: 'https://us.i.posthog.com', |
External URL reference
| 177 | host: 'https://us.i.posthog.com', |
External URL reference
| 234 | - [posthog-node Documentation](https://posthog.com/docs/libraries/node) |
External URL reference
| 235 | - [posthog-js Debug Mode](https://posthog.com/docs/libraries/js) |
External URL reference
| 236 | - [Vitest Mocking](https://vitest.dev/guide/mocking) |