Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    responsive ui debug

    1

    Diagnose and fix horizontal overflow, broken flexbox layouts, and mobile viewport bugs using measurement-based scripts.

    $5

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    responsive ui debug

    responsive ui debug

    Example session with this skill installed

    The mobile version of index.html is scrolling sideways. Can you find what's causing the overflow and fix it?

    • Read your context and instructions
    • Compiled the responsive ui debug
    • Generated the design tokens stylesheet

    I have diagnosed the horizontal overflow in index.html. Using the diagnostic script, I identified that a grid container was propping the page open to 491px on a 390px viewport because of a long URL in a child element.

    Diagnostic Results

    ViewportElementWidthOverlap
    390pxmain.content-wrapper491px+101px
    390pxspan.user-bio-link480px+90px

    The main element is the outermost culprit. It uses display: grid with 1fr tracks, which defaults to minmax(auto, 1fr). The long URL inside the bio link is preventing the grid track from shrinking.

    Applied Fixes

    /* Optimized grid track to allow shrinkage */
    .content-wrapper {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
    }
    
    /* Force long URLs to wrap and allow container to shrink */
    .user-bio-link {
      display: block;
      width: 100%;
      min-width: 0;
      word-break: break-all;
    }
    

    I re-ran the diagnostic tool at 390px, 768px, and 1440px widths. All tests passed with 0px horizontal overflow.

    Next steps

    • Verify the word-break appearance on the bio link to ensure it meets design standards.
    • Check if other grid containers in dashboard.html require similar minmax(0, 1fr) safety nets.

    index.html

    CSS · design tokens

    Generated

    Example file from a real run - the skill writes it into your workspace.

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

    About this skill

    Stop guessing why your layouts break on mobile. This skill provides a measurement-first workflow for identifying and fixing responsive UI bugs, specifically targeting horizontal overflow, disappearing gutters, and layout shifts. It replaces visual guesswork with data-driven diagnostics to find the exact DOM element propping a container open.

    What it does

    • Horizontal overflow detection identifying elements wider than the viewport that cause sideways scrolling.
    • Interaction-based debugging triggering clicks on UI components to find layout breaks that only appear in specific states.
    • Grid and flex repair applying min-width and minmax corrections to prevent containers from resisting shrinkage.
    • Typography constraints fixing unbreakable strings and long URLs that force containers to expand.
    • Spacing audits resolving shorthand property collisions that cause side padding to disappear.

    How it works

    1. Run diagnostics using scripts/diagnose.py to render the page at multiple viewport widths and list the specific overflow culprits.
    2. Reproduce interactions by passing selectors to the diagnostic tool to check for layout regressions during state changes.
    3. Apply targeted fixes based on the measurement data, focusing on the outermost offending parent element.
    4. Verify the fix by re-running the diagnostic script to ensure the exit code is clean before committing code.

    Frameworks & tools

    Works with any HTML/CSS stack, including React, Vue, Tailwind, and static sites. Uses Playwright for headless browser rendering and DOM measurement.

    Why this beats prompting it yourself

    Generic prompts often result in the LLM suggesting overflow-x: hidden as a band-aid. This skill enforces a "measure before touching" rule, ensuring you fix the root cause (like flexbox intrinsic sizing) instead of hiding the symptoms.

    Use cases

    • Fix pages that scroll sideways on iPhone but look fine on desktop.
    • Debug cards that overflow only after a "read more" button is clicked.
    • Restore missing side margins caused by CSS shorthand overrides.
    • Cap line lengths for better readability on ultra-wide monitors.

    Known limitations

    Requires Playwright and Chromium to be installed in the environment. It cannot diagnose bugs that only occur on physical device hardware sensors or specific legacy mobile browsers.

    Requires Playwright and Chromium for measurements. Cannot diagnose hardware-specific mobile sensor bugs or legacy IE layout issues.

    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 any payment.

    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

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 27 days ago

    Requires

    Python

    Permissions

    Terminal / Shell
    Browser

    What it does: Diagnoses and fixes responsive layout bugs in HTML/CSS pages — horizontal overflow, broken mobile/desktop layouts, bugs that only appear after an interaction, and side padding that silently disappears — by measuring the actual rendered page instead of reasoning about CSS blind. How it works: Runs scripts/diagnose.py (Playwright) to render the page at several widths, detect horizontal overflow, and name the specific outermost offending element — optionally clicking through interactive states one at a time to catch bugs that only surface after a selection. Matches the culprit to one of several documented recurring causes (grid/flex children that won't shrink, unbreakable long strings, form controls with intrinsic HTML-attribute widths, padding shorthand clobbering long-hand values, unbounded text measure on desktop), applies the single matching fix, then re-runs the diagnostic to confirm before considering it done — the script's exit code doubles as a pass/fail regression check. Guardrails: Never guesses from the stylesheet without measuring first. Fixes the outermost culprit, not whatever inner element happens to visually break. Never calls the fix complete without re-measuring — overflow-x: hidden as a bare backstop is explicitly flagged as hiding the symptom, not fixing it.

    Listed27 days ago
    Updated7 days ago

    What's inside

    Frequently Asked Questions

    This skill identifies the exact DOM elements causing horizontal overflow, broken flexbox sizing, and disappearing margins, replacing common 'overflow-x: hidden' band-aids with data-driven root cause fixes.

    The skill requires an environment with Playwright and Chromium installed to perform its headless browser measurements and layout audits.

    Yes, you can pass specific selectors to the diagnostic tool to test how your layout responds during clicks or state changes, catching bugs that only appear after user interaction.

    You receive a suite of measurement-based scripts (including diagnose.py), a standardized workflow for responsive debugging, and technical documentation for integration.

    It works with any HTML/CSS architecture, including modern frameworks like React and Vue or utility-first libraries like Tailwind CSS, as it analyzes the rendered DOM.

    While it excels at viewport and container-based bugs, it cannot diagnose issues caused by physical hardware sensors or rendering quirks unique to legacy mobile browsers.

    New in Frontend & Web Apps