debugging-local-replay
Skill by PostHog
Debugs why session recordings don't appear in the local PostHog dev environment. Built for developers whose local replay pipeline seems broken after hogli start.
Install debugging-local-replay
Built from the published package, never by AI.
git clone --depth 1 https://github.com/PostHog/posthog /tmp/posthog && mkdir -p ~/.claude/skills && cp -r /tmp/posthog/.agents/skills/debugging-local-replay ~/.claude/skills/debugging-local-replayRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/PostHog/posthog /tmp/posthog && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/posthog/.agents/skills/debugging-local-replay ~/.gemini/antigravity-cli/skills/debugging-local-replayAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install debugging-local-replay in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill walks through the local session replay pipeline in order when recordings do not show up. It starts with the browser SDK and the /s requests, then checks the phrocs processes and their ports, the Docker containers, Kafka topic data, and SeaweedFS blob storage. The source lists the chain as SDK, Caddy proxy, capture-replay (Rust), Kafka, ingestion-sessionreplay (Node), recording-api (Node), SeaweedFS, and the frontend.
It is intended for developers working on PostHog locally who report that replay ingestion is not working. A reference file covers common failures such as orphaned processes, stuck workers, and trigger misconfiguration.
Written from the project's SKILL.md and checked against it.
What it can do
- SDK recording checkChecks whether the browser SDK sends /s requests, including triggers, sample rate and PostHog host settings.
- Process and port checkChecks that capture-replay, ingestion-sessionreplay and recording-api are running on their ports.
- Docker dependency checkLists the Docker containers the local replay pipeline needs and their expected health status.
- Kafka data checkReads sample messages from the session_recording_snapshot_item_events topic with kcat to confirm data flows.
- SeaweedFS checkVerifies that SeaweedFS blob storage is reachable and that the S3 endpoint variable is set correctly.
- Common failure referencePoints to diagnosis notes for orphaned processes, stuck wait-for-docker, silent tsx crashes and port conflicts.
What you need
- Local PostHog development environment started with hogli start
- Docker with the kafka, db, redis7, clickhouse and seaweedfs containers
- lsof command line tool
- kcat for reading Kafka topics
- Browser DevTools for inspecting /s requests
Try asking
- Session recordings are not showing up locally after hogli start. Help me debug it.
- My browser sends /s calls but no recordings appear. Which pipeline layer is broken?
- Check whether capture-replay, ingestion-sessionreplay and recording-api are listening on their ports.
Good to know
- Written for the local development environment only.
- The Kafka UI check depends on the debug_tools intent being enabled.
- The seaweedfs-main container has no health check, so its status must be checked another way.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/debugging-local-replay/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md7 KB -
references/common-failures.md6 KB
Alternatives to debugging-local-replay
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
debugging-local-replay: common questions
What should I check first if recordings are missing locally?
The skill says to open the browser Network tab and filter for /s calls. If there are none, the SDK is not recording and the cause is client side.
Which ports does the local replay pipeline use?
The source lists port 3306 for capture-replay, 6740 for ingestion-sessionreplay, and 6741 for recording-api. SeaweedFS uses port 8333 and the Caddy proxy uses port 8000.
What does a 200 response on /s mean?
The source says the SDK is recording and capture is receiving data, so the break is downstream in Kafka or ingestion.
How do I install debugging-local-replay?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is debugging-local-replay free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is debugging-local-replay safe to use?
It scores 88 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to debugging-local-replay?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
