Official agent skill

Debugging Local Replay

by PostHog in PostHog/posthog-foss

Debugs why session recordings aren't appearing in the local dev environment.

OfficialMITAuto-check passedBackend & APIs

Install Debugging Local Replay

skills CLI
$ npx skills add PostHog/posthog-foss --skill debugging-local-replay -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install PostHog/posthog-foss debugging-local-replay --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/PostHog/posthog-foss.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/debugging-local-replay .claude/skills/debugging-local-replay && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
debugging-local-replay
GitHub stars
721
Token cost
~1.9k tokens
SKILL.md length
748 words
Files
2 (incl. references)
Skills in repo
213
Repo updated
First seen
Licence
MIT

At a glance

Debugs why session recordings aren't appearing in the local dev environment.

  • Works in 4 steps: Is the SDK even trying to record? → Are the required processes running? → Is data flowing through Kafka? → …
  • A developer reports that local replay ingestion isnt working
  • SKILL.md covers Quick symptom guide, The local replay pipeline, Step 1 — Is the SDK even… and Step 2 — Are the required…, plus 3 more sections
  • Calls pnpm, docker and clickhouse

What it does

Debugging Local Replay is an agent skill from PostHog/posthog-foss, published by the product's own GitHub organization. Debugs why session recordings aren't appearing in the local dev environment. Use when a developer reports that local replay ingestion isn't working, recordings aren't showing up despite /s calls, or the replay pipeline seems broken after hogli start. Covers the full local pipeline: SDK capture, Caddy proxy, capture-replay (Rust), Kafka, ingestion-sessionreplay (Node), recording-api (Node), SeaweedFS, and common failure modes like orphaned processes, stuck phrocs workers, and trigger misconfiguration.

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/common-failures.md`).

It sits in Backend & APIs, covering Event-driven systems and Debugging. It works with Apache Kafka and Rust. The repository describes itself as: PostHog FOSS is a read-only mirror of PostHog, with all proprietary code removed. NOTE: This repo is synced automatically from the main PostHog repo. Please raise any issues and… The licence is MIT.

When your agent uses it

  • A developer reports that local replay ingestion isnt working
  • Recordings arent showing up despite /s calls
  • The replay pipeline seems broken after hogli start
  • Misconfiguration

Example prompts

  • “t working, recordings aren”
  • “Use the debugging-local-replay skill to debug why session recordings aren't appearing in the local dev environment”
  • “/debugging-local-replay”

Requirements

  • Docker

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Is the SDK even trying to record?
  2. Are the required processes running?
  3. Is data flowing through Kafka?
  4. Check SeaweedFS

What it can do on your machine

Read from SKILL.md and the folder at commit 2c48221. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • pnpm
    • docker
    • clickhouse
    • curl
    • tsx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pnpm, docker and curl, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Debugging Local Replay loads about 1.9k tokens when it runs, and up to ~3.3k if it reads all its reference files. Until then it costs about 132 tokens; SKILL.md has 748 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~132
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from PostHog/posthog-foss at commit 2c48221, republished under its MIT licence (© PostHog). 748 words, ~1,874 tokens.

Download SKILL.mdSave it as .claude/skills/debugging-local-replay/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
debugging-local-replay
description
Debugs why session recordings aren't appearing in the local dev environment. Use when a developer reports that local replay ingestion isn't working, recordings aren't showing up despite /s calls, or the replay pipeline seems broken after hogli start. Covers the full local pipeline: SDK capture, Caddy proxy, capture-replay (Rust), Kafka, ingestion-sessionreplay (Node), recording-api (Node), SeaweedFS, and common failure modes like orphaned processes, stuck phrocs workers, and trigger misconfiguration.

Debugging local session replay

When a developer says "local replay isn't working" or "recordings aren't showing up", work through these layers in order. The local replay pipeline has several moving parts and failures are usually silent.

Quick symptom guide

SymptomLikely cause
No /s calls in Network tabSDK not recording — triggers, settings, or recorder script issue (Step 1)
/s calls return 200 but no recordings in listIngestion pipeline broken — capture-replay, Kafka, or ingestion-sessionreplay (Steps 2-3)
Recordings listed but playback stuck on "Buffering..."recording-api (port 6741) not running (Step 2)
Recorder script MIME type or CORS error in consoleFrontend build stale — need pnpm build + pnpm copy-scripts (Step 1)

The local replay pipeline

text
Browser SDK  →  /s endpoint (Caddy proxy :8000)
             →  capture-replay (Rust, :3306)
             →  Kafka (session_recording_snapshot_item_events topic)
             →  ingestion-sessionreplay (Node, :6740, PLUGIN_SERVER_MODE=recordings-blob-ingestion-v2)
             →  SeaweedFS (blob storage, :8333)
             →  recording-api (Node, :6741, PLUGIN_SERVER_MODE=recording-api)
             →  Frontend

A break at any point in this chain means no recordings in the UI. The diagnostic approach is to find where the chain breaks.

Step 1 — Is the SDK even trying to record?

Ask the developer to open browser DevTools Network tab and filter for /s.

If no /s calls at all: The SDK isn't attempting to send recording data. Investigate client-side causes:

  • Triggers configured in project settings. If URL triggers, event triggers, or linked flag triggers are set up, recording won't start until a trigger fires. This is the most common cause for developers who've been testing trigger features. Check Session replay settings in the local UI (Project settings > Session replay). Remove or adjust triggers to allow recording to start.
  • Recording disabled in project settings. Session replay may be toggled off.
  • Sample rate set too low. If $replay_sample_rate is < 1.0, sessions may be sampled out.
  • SDK not initialized with recording. Check the local app's PostHog initialization — session_recording must not be explicitly disabled.
  • Wrong PostHog host. The local app must point to http://localhost:8000 (or wherever the local Caddy proxy is running).
  • Ad blocker. Even in local dev, browser extensions can block the recorder script or /s endpoint.
  • Recorder script failed to load (MIME type / CORS error). The browser console may show MIME type ('text/html') is not executable for posthog-recorder.js or a CORS error for lazy-recorder.js. This means Django is serving an HTML page (usually the login redirect) instead of the JS file — the static recorder scripts are stale or missing. See recorder script build failure.

If /s calls are happening with 200 responses: The SDK is recording and capture is receiving data. The break is downstream — proceed to Step 2.

If /s calls are returning errors (4xx/5xx): The capture service may be down or misconfigured. Check capture-replay in phrocs.

Step 2 — Are the required processes running?

Check that these phrocs processes are running and healthy. A "running" process that never produced output after tsx watch src/index.ts is effectively dead.

Show full SKILL.md (305 more words)Show less
Key processes and their ports
ProcessPortWhat it does
capture-replay3306Rust service receiving /s, writes to Kafka
ingestion-sessionreplay6740Node consumer processing recordings from Kafka
recording-api6741Node service serving replay data to the frontend

Verify with:

bash
lsof -nP -i :3306 -i :6740 -i :6741

If ports are not listening: The processes haven't started or are stuck. See common failures.

If ports are listening: The pipeline processes are running. Proceed to Step 3.

Docker dependencies

These Docker containers must be running and healthy:

ContainerPurpose
posthog-kafka-1Message bus for recording events
posthog-db-1Postgres for metadata
posthog-redis7-1Redis for state
posthog-clickhouse-1ClickHouse for session data
seaweedfs-mainBlob storage for recording data

Check with:

bash
docker ps --format "table {{.Names}}\t{{.Status}}" | grep -E "kafka|db|redis7|clickhouse|seaweed"

All should show (healthy) except seaweedfs which doesn't have a health check. If seaweedfs-main is missing, the replay Docker profile may not be active — check the docker-compose phrocs process output for --profile replay.

Step 3 — Is data flowing through Kafka?

If capture-replay is running and receiving /s calls, data should land on the session_recording_snapshot_item_events Kafka topic. Check the Kafka UI at http://localhost:8080 (if the debug_tools intent is enabled) or use kcat:

bash
kcat -b localhost:9092 -t session_recording_snapshot_item_events -C -c 5 -e

If the topic is empty or doesn't exist: capture-replay isn't writing to Kafka. Check its phrocs logs for Kafka connection errors.

If data is on the topic but recordings don't appear: ingestion-sessionreplay isn't consuming. Check if it's stuck, crashed, or if an orphaned process is holding the consumer group (see common failures).

Step 4 — Check SeaweedFS

Ingestion writes recording blobs to SeaweedFS. Verify it's accessible:

bash
curl -s http://localhost:8333/ | head -5

The SESSION_RECORDING_V2_S3_ENDPOINT env var must be set correctly. In bin/start, this defaults to http://seaweedfs:8333 (the Docker hostname). Host processes resolve this via Docker networking.

Common failures reference

See common failures for detailed diagnosis of:

  • Orphaned Node processes holding Kafka consumer groups
  • Processes stuck at bin/wait-for-docker
  • tsx watch silently swallowing crashes
  • Port conflicts between Docker and host processes
  • Cargo build lock contention on startup

© PostHog, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in .agents/skills/debugging-local-replay of PostHog/posthog-foss.

  • SKILL.md
  • references/common-failures.md

Open the folder on GitHubat commit 2c48221

Compare with similar skills

Debugging Local Replay next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Debugging Local Replay compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Debugging Local Replay this skillPostHog/posthog-foss721—~1.9kAutomated safety check: PassMIT
Flowfile Frame And CodegenEdwardvaneechoud/Flowfile370—~12kAutomated safety check: PassMIT
Windmill Trigger Type Checklistwindmill-labs/windmill18k—~4.7kAutomated safety check: PassCustom licence
Opensource Guide Coachcalf-ai/calfkit-sdk1491 repos~2.1kAutomated safety check: PassApache-2.0
123 Java Design Patternsjabrena/plinth445—~1.1kAutomated safety check: PassApache-2.0
MQTTX CLIemqx/MQTTX5.1k—~1.9kAutomated safety check: PassApache-2.0

Similar skills

  • Flowfile Frame And Codegen

    Edwardvaneechoud/Flowfile

    Deep dive into flowfileframe — the Polars-LazyFrame-shaped Python API that builds an in-process flowfilecore FlowGraph as a side effect of every method call — covering the FlowFrame/Expr internals…

    370 GitHub stars~12k tokensUpdated yesterday
    Data & AnalyticsAuto-check passed
  • Windmill Trigger Type Checklist

    windmill-labs/windmill

    Checklist of every backend, frontend, CLI and capture change needed to add a new TriggerCrud-based trigger type, such as Azure, GCP or Kafka, to Windmill.

    18k GitHub stars~4.7k tokensUpdated today
    Backend & APIsAuto-check passed
  • Opensource Guide Coach

    calf-ai/calfkit-sdk

    A skill your agent uses when a user wants guidance on starting, contributing to, growing, governing, funding, securing, or sustaining an open source project, or asks about contributor onboarding…

    149 GitHub starsUsed in 1 repo~2.1k tokens
    Backend & APIsAuto-check passed
  • A skill your agent uses when you need to select, review, or implement Java design and integration patterns — including classic Java design patterns, REST API patterns, Kafka and event-driven…

    445 GitHub stars~1.1k tokensUpdated today
    Backend & APIsAuto-check passed
  • MQTTX CLI

    emqx/MQTTX

    Operates the `mqttx` command line client to connect, publish, subscribe, benchmark and simulate data against an MQTT broker, with TLS and MQTT 5 support.

    5.1k GitHub stars~1.9k tokensUpdated 6 days ago
    Backend & APIsAuto-check passed
  • Foundatio

    FoundatioFx/Foundatio

    A skill your agent uses when working with Foundatio infrastructure abstractions for .NET -- caching, queuing, messaging, file storage, distributed locking, or background jobs.

    2.1k GitHub stars~3.9k tokensUpdated today
    Backend & APIsAuto-check passed

More from PostHog/posthog-foss

All 213 skills in this repo
  • Authoring Log Alerts

    PostHog/posthog-foss

    Official

    Author useful, low-noise log alerts on services in a PostHog project.

    721 GitHub stars~3k tokensUpdated today
    Auto-check passed
  • Autoresolving PR Conflicts

    PostHog/posthog-foss

    Official

    Operating procedure for the conflict-autoresolver agent: sweep open PostHog/posthog PRs that conflict with master, resolve the trivial conflicts (generated artifacts deterministically, source…

    721 GitHub stars~4.2k tokensUpdated today
    Auto-check passed
  • Official

    Help users debug PostHog Error Tracking stack-trace symbolication for any supported platform — JavaScript/TypeScript web, React Native (Hermes), Android (Proguard / R8), or iOS / macOS (dSYM).

    721 GitHub stars~2.2k tokensUpdated today
    Auto-check passed
  • Exploring Apm Traces

    PostHog/posthog-foss

    Official

    Investigates distributed application performance using PostHog APM (OpenTelemetry span) data via MCP.

    721 GitHub stars~3.5k tokensUpdated today
    Auto-check passed
  • Exploring LLM Traces

    PostHog/posthog-foss

    Official

    Debug and inspect LLM/AI agent traces using PostHog's MCP tools.

    721 GitHub stars~4.4k tokensUpdated today
    Auto-check passed
  • Investigate Metric

    PostHog/posthog-foss

    Official

    Diagnose why a product metric changed (dropped, spiked, or plateaued) by orchestrating breakdowns, actors, paths, lifecycle, retention, and annotations queries.

    721 GitHub stars~1.9k tokensUpdated today
    Auto-check passed

Questions about Debugging Local Replay

What does Debugging Local Replay do?

Debugs why session recordings aren't appearing in the local dev environment. Debugging Local Replay is an agent skill from PostHog/posthog-foss, published by the product's own GitHub organization. Debugs why session recordings aren't appearing in the local dev environment.

When should I use Debugging Local Replay?

Debugging Local Replay fits situations like: A developer reports that local replay ingestion isnt working; recordings arent showing up despite /s calls; the replay pipeline seems broken after hogli start; misconfiguration.

How do I install Debugging Local Replay in Claude Code?

Run `npx skills add PostHog/posthog-foss --skill debugging-local-replay -a claude-code`. Or copy the skill folder (.agents/skills/debugging-local-replay in PostHog/posthog-foss) into .claude/skills/debugging-local-replay in your project. Claude Code loads it when a task matches its description.

How do I install Debugging Local Replay in Codex?

Run `npx skills add PostHog/posthog-foss --skill debugging-local-replay -a codex`. Or copy the skill folder (.agents/skills/debugging-local-replay in PostHog/posthog-foss) into .agents/skills/debugging-local-replay in your project. Codex loads it when a task matches its description.

Can I use Debugging Local Replay in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add PostHog/posthog-foss --skill debugging-local-replay -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/debugging-local-replay, .gemini/skills/debugging-local-replay, .github/skills/debugging-local-replay and .opencode/skills/debugging-local-replay in your project.

What does Debugging Local Replay need to run?

Going by SKILL.md and its folder, Debugging Local Replay needs the command-line tools its instructions call (pnpm, docker, clickhouse, curl and tsx). Our summary lists: Docker.

Does Debugging Local Replay access the network?

SKILL.md contains no URLs. Its commands use docker and curl, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Debugging Local Replay safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Debugging Local Replay use?

Debugging Local Replay is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Debugging Local Replay use?

About 1.9k tokens (SKILL.md is roughly 7.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.5k tokens, read only when the agent opens those files.

What are the alternatives to Debugging Local Replay?

Skills that share tags, products or a category with Debugging Local Replay: Flowfile Frame And Codegen (Edwardvaneechoud/Flowfile, 370 stars), Windmill Trigger Type Checklist (windmill-labs/windmill, 18k stars), Opensource Guide Coach (calf-ai/calfkit-sdk, 149 stars) and 123 Java Design Patterns (jabrena/plinth, 445 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Debugging Local Replay?

PostHog (a GitHub organization, an official publisher) maintains it in PostHog/posthog-foss, which has 721 GitHub stars. The repository holds 213 skills in this directory. The repository was last updated on October 7, 2026.

Source: PostHog/posthog-foss on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.