integration-nextjs-app-router — community integration-nextjs-app-router, peerpull, community, ide skills

v1.8.1

このスキルについて

Next.js App Router アプリケーションで PostHog 分析をシームレスに統合する必要があるフロントエンド エージェントに最適です。 PostHog integration for Next.js App Router applications

nicholasmartin nicholasmartin
[0]
[0]
Updated: 3/8/2026

Killer-Skills Review

Decision support comes first. Repository text comes second.

Reference-Only Page Review Score: 7/11

This page remains useful for operators, but Killer-Skills treats it as reference material instead of a primary organic landing page.

Original recommendation layer Concrete use-case guidance Explicit limitations and caution
Review Score
7/11
Quality Score
34
Canonical Locale
en
Detected Body Locale
en

Next.js App Router アプリケーションで PostHog 分析をシームレスに統合する必要があるフロントエンド エージェントに最適です。 PostHog integration for Next.js App Router applications

このスキルを使用する理由

エージェントが PostHog 分析を使用してユーザーの行動を追跡し、Next.js アプリを最適化する能力を提供し、Next.js App Router との設定と統合のためのワークフローを提供し、PostHog のイベント追跡と分析機能を活用します。

おすすめ

Next.js App Router アプリケーションで PostHog 分析をシームレスに統合する必要があるフロントエンド エージェントに最適です。

実現可能なユースケース for integration-nextjs-app-router

Next.js App Router アプリケーションに PostHog 分析を統合する
ユーザーの行動を追跡し、アプリのパフォーマンスを最適化する
Next.js App Router 用の PostHog 分析ワークフローを設定する

! セキュリティと制限

  • PostHog の設定と構成が必要
  • Next.js App Router アプリケーションに特有
  • 事前に定義された統合ワークフローに従う

Why this page is reference-only

  • - Current locale does not satisfy the locale-governance contract.
  • - The underlying skill quality score is below the review floor.

Source Boundary

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

After The Review

Decide The Next Action Before You Keep Reading Repository Material

Killer-Skills should not stop at opening repository instructions. It should help you decide whether to install this skill, when to cross-check against trusted collections, and when to move into workflow rollout.

Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is integration-nextjs-app-router?

Next.js App Router アプリケーションで PostHog 分析をシームレスに統合する必要があるフロントエンド エージェントに最適です。 PostHog integration for Next.js App Router applications

How do I install integration-nextjs-app-router?

Run the command: npx killer-skills add nicholasmartin/peerpull/integration-nextjs-app-router. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for integration-nextjs-app-router?

Key use cases include: Next.js App Router アプリケーションに PostHog 分析を統合する, ユーザーの行動を追跡し、アプリのパフォーマンスを最適化する, Next.js App Router 用の PostHog 分析ワークフローを設定する.

Which IDEs are compatible with integration-nextjs-app-router?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for integration-nextjs-app-router?

PostHog の設定と構成が必要. Next.js App Router アプリケーションに特有. 事前に定義された統合ワークフローに従う.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add nicholasmartin/peerpull/integration-nextjs-app-router. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use integration-nextjs-app-router immediately in the current project.

! Reference-Only Mode

This page remains useful for installation and reference, but Killer-Skills no longer treats it as a primary indexable landing page. Read the review above before relying on the upstream repository instructions.

Upstream Repository Material

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

Upstream Source

integration-nextjs-app-router

Install integration-nextjs-app-router, an AI agent skill for AI agent workflows and automation. Review the use cases, limitations, and setup path before...

SKILL.md
Readonly
Upstream Repository Material
The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.
Supporting Evidence

PostHog integration for Next.js App Router

This skill helps you add PostHog analytics to Next.js App Router applications.

Workflow

Follow these steps in order to complete the integration:

  1. basic-integration-1.0-begin.md - PostHog Setup - Begin ← Start here
  2. basic-integration-1.1-edit.md - PostHog Setup - Edit
  3. basic-integration-1.2-revise.md - PostHog Setup - Revise
  4. basic-integration-1.3-conclude.md - PostHog Setup - Conclusion

Reference files

  • EXAMPLE.md - Next.js App Router example project code
  • next-js.md - Next.js - docs
  • identify-users.md - Identify users - docs
  • basic-integration-1.0-begin.md - PostHog setup - begin
  • basic-integration-1.1-edit.md - PostHog setup - edit
  • basic-integration-1.2-revise.md - PostHog setup - revise
  • basic-integration-1.3-conclude.md - PostHog setup - conclusion

The example project shows the target implementation pattern. Consult the documentation for API details.

Key principles

  • Environment variables: Always use environment variables for PostHog keys. Never hardcode them.
  • Minimal changes: Add PostHog code alongside existing integrations. Don't replace or restructure existing code.
  • Match the example: Your implementation should follow the example project's patterns as closely as possible.

Framework guidelines

  • For Next.js 15.3+, initialize PostHog in instrumentation-client.ts for the simplest setup
  • For feature flags, use useFeatureFlagEnabled() or useFeatureFlagPayload() hooks - they handle loading states and external sync automatically
  • Add analytics capture in event handlers where user actions occur, NOT in useEffect reacting to state changes
  • Do NOT use useEffect for data transformation - calculate derived values during render instead
  • Do NOT use useEffect to respond to user events - put that logic in the event handler itself
  • Do NOT use useEffect to chain state updates - calculate all related updates together in the event handler
  • Do NOT use useEffect to notify parent components - call the parent callback alongside setState in the event handler
  • To reset component state when a prop changes, pass the prop as the component's key instead of using useEffect
  • useEffect is ONLY for synchronizing with external systems (non-React widgets, browser APIs, network subscriptions)

Identifying users

Identify users during login and signup events. Refer to the example code and documentation for the correct identify pattern for this framework. If both frontend and backend code exist, pass the client-side session and distinct ID using X-POSTHOG-DISTINCT-ID and X-POSTHOG-SESSION-ID headers to maintain correlation.

Error tracking

Add PostHog error tracking to relevant files, particularly around critical user flows and API boundaries.

関連スキル

Looking for an alternative to integration-nextjs-app-router or another community skill for your workflow? Explore these related open-source skills.

すべて表示

openclaw-release-maintainer

Logo of openclaw
openclaw

Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

333.8k
0
AI

widget-generator

Logo of f
f

カスタマイズ可能なウィジェットプラグインをprompts.chatのフィードシステム用に生成する

149.6k
0
AI

flags

Logo of vercel
vercel

React フレームワーク

138.4k
0
ブラウザ

pr-review

Logo of pytorch
pytorch

Pythonにおけるテンソルと動的ニューラルネットワーク(強力なGPUアクセラレーション)

98.6k
0
開発者