Works with the AI Agents you already use

    Browser Recorder & Offline Replay

    by Kalu Madari

    1

    Record and replay deterministic browser sessions offline using Playwright and CDP for bug reproduction and testing.

    Free

    Security scanned
    Browser Recorder & Offline Replay

    Browser Recorder & Offline Replay

    Example session with this skill installed

    Record a 15-second session of https://example.com/dashboard and verify it can be replayed offline in strict mode.

    • Read your context and instructions
    • Compiled the browser recorder

    Session recording and verification completed successfully. The recording is stored in the local captures directory.

    Capture and Replay Report

    MetricValue
    Capture Directorycaptures/2026-11-30_14-05-22
    Duration15 Seconds
    Total Requests Captured42
    WebSocket Frames12
    DOM Snapshots3
    Replay StatusPASS
    Fulfilled (Strict Mode)42
    Fatal Errors0
    Pending Requests0
    
    # To view the capture manifest:
    cat captures/2026-11-30_14-05-22/manifest.jsonl
    
    # To replay the session again in headed mode:
    python replay_cli.py captures/2026-11-30_14-05-22 --headed
    

    Next steps

    1. Inspect interactions.jsonl to verify user click paths were recorded correctly.
    2. Run a diff between this dom_snapshots/ folder and a previous run to identify UI regressions.
    3. Integrate the replay_cli.py command into your CI pipeline for offline smoke testing.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Debugging flaky tests or reproducing production bugs is impossible when the live environment changes every minute. This skill records full browser sessions to disk, allowing you to replay them in a strictly offline environment for deterministic testing and analysis.

    What it does

    • Network Capture records every HTTP/S request, response body, and WebSocket frame using Playwright and CDP.
    • Strict Mock Replay serves sessions back from disk, blocking all live network access to ensure the environment is frozen.
    • DOM Snapshots takes point-in-time snapshots of the document structure during the recording phase.
    • Interaction Tracking logs clicks, inputs, and navigation events for accurate session reconstruction.
    • CLI & GUI Interfaces provides both a terminal-based automation flow and a Tkinter-based dashboard for manual control.

    How it works

    1. Initialize the recorder by providing a target URL and a capture duration.
    2. Execute the record_cli.py script to generate a timestamped directory containing the manifest and response bodies.
    3. Verify the capture by running replay_cli.py against the generated folder path.
    4. Analyze the output report, which details fulfilled requests and any fatal errors or pending responses.

    Frameworks & tools

    Built with Python, Playwright, and Chrome DevTools Protocol (CDP). It uses Tkinter for its optional graphical interface and writes data in JSONL format for easy parsing.

    Why this beats prompting it yourself

    Building a reliable network interceptor that handles binary response bodies and WebSockets is complex and prone to race conditions. This skill provides a production-ready capture manifest and replay engine that enforces strict network isolation without manual mocking.

    Use cases

    • Record a specific bug sequence to create a portable, reproducible test case for developers.
    • Run regression tests in CI environments without providing access to internal staging backends.
    • Snapshot a web application state for offline visual diffing and DOM audits.
    • Archive the network state of a site for compliance or forensic analysis.

    Known limitations

    Requires Chromium to be installed via Playwright. Record duration must be specified upfront in the CLI or stopped manually in the GUI.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 5 days ago

    • Free with an Agensi account

    Permissions

    Terminal / Shell
    Browser
    Write Files

    You can checkout full source code at https://github.com/kalu-madari/Browser-Recorder

    Listed5 days ago

    What's inside

    Frequently Asked Questions

    This skill solves the 'flaky test' problem by capturing a live web session—including all network traffic and DOM states—and saving it to disk. You can then replay that exact session offline, ensuring that your tests or bug reproductions remain consistent even if the live website changes.

    You will receive the complete Python source code for the recorder and replayer, the CLI tools, the Tkinter GUI dashboard, and a README for quick setup. It also includes the manifest schema used for storing session data in JSONL format.

    Yes, the 'Strict Mock Replay' mode completely blocks live network access. The replayer serves data exclusively from the recorded local files, making it ideal for running tests in secure or air-gapped CI/CD environments where external backend access is restricted.

    The skill is designed for Python-based AI agents and automation frameworks. It requires Python 3.8+, Playwright, and a Chromium installation, making it compatible with most modern AI agent environments that support shell execution or Python scripting.

    Unlike standard mocks that require manual effort, this skill automatically captures every HTTP/S request, binary response body, and WebSocket frame in real-time. It eliminates the need to manually write mock data, saving hours of development time when dealing with complex, data-heavy applications.

    New in Testing & Debugging

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Testing & Debugging.

    Free