HAR to JMX Lite — HAR to JMeter 5.6 & Redacted API Docs

    by SunQi

    1

    Zero-dependency Python CLI to turn browser HAR captures into redacted Markdown API docs and JMeter 5.6 .jmx test plans with noise filtering and leak validation.

    Free

    Security scanned

    Works with the AI Agents you already use

    HAR to JMX Lite — HAR to JMeter 5.6 & Redacted API Docs

    Example session with this skill installed

    Scan the traffic.har file to show me which hosts were captured, then generate a redacted English API document named endpoints.md.

    • Read your context and instructions
    • Compiled the har to jmx

    I have scanned the capture file and generated the requested documentation. The scan identified traffic across three hosts, with static assets (CSS/JS) automatically excluded from the results.

    Host Summary

    • api.staging.example.com (14 endpoints)
    • auth.example.com (2 endpoints)
    • cdn.example.com (Filtered: Static content)

    API Documentation Summary

    MethodEndpointHostDescription
    POST/v1/loginauth.example.comAuthentication request (Credentials Redacted)
    GET/v1/user/profileapi.staging.example.comFetch user account details
    PUT/v1/settingsapi.staging.example.comUpdate user preferences
    GET/v1/ordersapi.staging.example.comList recent transaction history

    Security & Redaction

    The following headers were identified and redacted in endpoints.md:

    • Authorization: [REDACTED]
    • Cookie: [REDACTED]
    • X-Session-ID: [REDACTED]

    Next steps

    1. Review endpoints.md to confirm all sensitive business logic was captured.
    2. Run the jmx command with --allow-host api.staging.example.com to generate a targeted load test.
    3. Consult references/jmeter-guardrails.md before executing the test plan in JMeter.

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

    About this skill

    Browser .har exports are noisy and risky to share raw: they mix static .js/.css/image traffic with real API calls and embed live Authorization or Cookie credentials.

    HAR to JMX Lite gives your coding agent a zero-dependency Python 3.9+ CLI (scripts/har_to_jmx_lite.py) to convert .har captures into clean test assets:

    • Smart Noise Filtering (scan): Drops static assets, OPTIONS preflight requests, and non-HTTP traffic; normalizes numeric IDs and UUIDs into /{id} and /{uuid}.
    • Credential-Redacted API Docs (doc): Generates EN/ZH Markdown documentation with Authorization, Cookie, and API-key headers automatically redacted.
    • JMeter 5.6 Ready & 417-Safe (jmx): Generates parameterized .jmx plans (${PROTOCOL}, ${BASE_HOST}, ${BASE_PORT}, ${AUTH_TOKEN}) and avoids the reverse-proxy 417 Expectation Failed pitfall.
    • Fail-Closed Static Validator (validate): Verifies XML structure and blocks leaked Bearer/JWT tokens.

    Open Source (MIT License, Free) — Full source code, demo HAR fixture, unit tests, and CI available in repository sunqi-2025/har-to-jmx-lite on GitHub.

    Requires Python 3.9+. Does not automate dynamic token correlation (e.g., extracting a login token for subsequent requests). Not for use on production hosts.

    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 10 days ago

    • Free with an Agensi account

    Software
    Python

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Listed10 days ago

    What's inside

    Creator

    S

    SunQi

    3 skills on Agensi

    Frequently Asked Questions

    This skill automates the tedious process of turning browser network captures into structured API documentation and functional JMeter test plans, while ensuring sensitive credentials like cookies and tokens are automatically redacted.

    The skill generates XML files fully compatible with JMeter 5.6 and higher, and standard Markdown documentation that can be read by any common viewer or repository host.

    Yes, the skill includes built-in noise filtering that automatically excludes static assets (images, CSS, JS) and third-party trackers, allowing you to focus purely on your backend API logic.

    While the tool automatically redacts headers like 'Authorization' and 'Cookie', it does not currently handle dynamic session token extraction; you will need to manually parameterize those variables within JMeter.

    The skill is designed for environments running Python 3.9 or higher and operates entirely using the standard library, meaning no third-party 'pip' installations are required.

    You receive the full Python-based conversion engine, the CLI interface for managing scans and generation, and documentation on how to integrate it into your existing testing workflow.

    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