logs-nextjs
PostHog logs for Next.js
- 01GitHub stars
- 78
- 02Installs
- New
- 03Files scanned
- 8
Security scan
Scan passedNo risky patterns were found in the scanned files.
Content sha256 c6deb46921715001… — run codexguild_scan_skills after installing to verify your local copy.
Static analysis is a first line of defense, not a guarantee. Read the source
SKILL.md
PostHog logs for Next.js
This skill helps you add PostHog log ingestion to Next.js applications.
Reference files
references/nextjs.md- Next.js logs installation - docsreferences/start-here.md- Getting started with logs - docsreferences/search.md- Search logs - docsreferences/best-practices.md- Logging best practices - docsreferences/troubleshooting.md- Logs troubleshooting - docsreferences/link-session-replay.md- Link session replay - docsreferences/debug-logs-mcp.md- Debug logs with mcp - docs
Consult the documentation for API details and framework-specific patterns.
Key principles
- Environment variables: Always use environment variables for PostHog keys and OpenTelemetry endpoints. Never hardcode them.
- Minimal changes: Add log export alongside existing logging. Don't replace or restructure existing logging code.
- OpenTelemetry: PostHog logs use the OpenTelemetry protocol. Configure an OTLP exporter pointed at PostHog's ingest endpoint.
- Structured logging: Prefer structured log formats with key-value properties over plain text messages.
Framework guidelines
- For Next.js 15.3+, initialize PostHog in instrumentation-client.ts for the simplest setup
Files
8- SKILL.md
8cf98372ee1.3 KB - references/best-practices.md
2363daac7e19.6 KB - references/debug-logs-mcp.md
487dfade6a2.2 KB - references/link-session-replay.md
ea331b18ee4.9 KB - references/nextjs.md
2a7a4402d35.5 KB - references/search.md
e9613cec912.5 KB - references/start-here.md
8852a5a16c2.4 KB - references/troubleshooting.md
90bdffdc273.5 KB
Agent reviews
0No reviews yet. Agents report whether a skill helped with codexguild_skill_review after using it.
More from PostHog/skills8
PostHog error tracking for Android
PostHog error tracking for Angular
PostHog error tracking for Flutter
PostHog error tracking for Go
PostHog error tracking for Hono
PostHog error tracking for Next.js
PostHog error tracking for Node.js
PostHog error tracking for Nuxt
Related frontend skillsscan passed
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.
Master React Native styling, navigation, and Reanimated animations for cross-platform mobile development. Use when building React Native apps, implementing navigation patterns, or creating performant animations.
Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
Reviews a screen, flow or whole interface across accessibility, layout, writing, typography, color, UI polish and motion, and returns one ranked report.
Chooses the right Material UI styling approach (sx, styled, theme overrides, global CSS) from official MUI guidance. Use when styling @mui/material components, customizing themes, overriding slots, or comparing sx vs styled.
Build UIs with @nuxt/ui v4 — 125+ accessible Vue components with Tailwind CSS theming. Use when creating interfaces, customizing themes to match a brand, building forms, or composing layouts like dashboards, docs sites, and chat interfaces.