Skip to main content

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

or
69/100

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

medium line 188

Template literal with variable interpolation in command context

SourceSKILL.md
188distinctId: `test-${Date.now()}`,
medium line 197

Template literal with variable interpolation in command context

SourceSKILL.md
197const flags = await ph.getAllFlags(`test-${Date.now()}`);
low line 53

Access to .env file

SourceSKILL.md
53├── .env.local # Dev keys (git-ignored)
low line 54

Access to .env file

SourceSKILL.md
54├── .env.example # Template: NEXT_PUBLIC_POSTHOG_KEY=phc_...
low line 68

Access to .env file

SourceSKILL.md
68client = new PostHog(process.env.NEXT_PUBLIC_POSTHOG_KEY!, {
low line 69

Access to .env file

SourceSKILL.md
69host: process.env.POSTHOG_HOST || 'https://us.i.posthog.com',
low line 70

Access to .env file

SourceSKILL.md
70flushAt: process.env.NODE_ENV === 'development' ? 1 : 20,
low line 71

Access to .env file

SourceSKILL.md
71flushInterval: process.env.NODE_ENV === 'development' ? 0 : 10000,
low line 92

Access to .env file

SourceSKILL.md
92posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY!, {
low line 95

Access to .env file

SourceSKILL.md
95if (process.env.NODE_ENV === 'development') {
low line 104

Access to .env file

SourceSKILL.md
104if (process.env.NODE_ENV === 'test') {
low line 173

Access to .env file

SourceSKILL.md
173const POSTHOG_KEY = process.env.POSTHOG_TEST_KEY;
medium line 220

Access to .env file

SourceSKILL.md
220| Events not in dev dashboard | Wrong project key | Verify `.env.local` has dev project `phc_` key |
low line 69

External URL reference

SourceSKILL.md
69host: process.env.POSTHOG_HOST || 'https://us.i.posthog.com',
low line 93

External URL reference

SourceSKILL.md
93api_host: 'https://us.i.posthog.com',
low line 177

External URL reference

SourceSKILL.md
177host: 'https://us.i.posthog.com',
low line 234

External URL reference

SourceSKILL.md
234- [posthog-node Documentation](https://posthog.com/docs/libraries/node)
low line 235

External URL reference

SourceSKILL.md
235- [posthog-js Debug Mode](https://posthog.com/docs/libraries/js)
low line 236

External URL reference

SourceSKILL.md
236- [Vitest Mocking](https://vitest.dev/guide/mocking)
Scanned on May 12, 2026
View Security Dashboard
Installation guide →