Skill library

Agent skill Review & testing

Modern Web Design

Review the accessibility of visible web interface elements and interactions.

  • Accessibility
  • Design systems

Install the skill

Installation method

Run the command from your project root with Node.js and npm.

npx skills@latest add https://github.com/freshtechbro/claudedesignskills/tree/main/plugins/bundles/meta-skills/skills/modern-web-design --skill modern-web-design --agent claude-code --yes

Check this file in your project.claude/skills/modern-web-design/SKILL.md

Other ways to install
  • Choose an assistant interactively

    npx skills@latest add https://github.com/freshtechbro/claudedesignskills/tree/main/plugins/bundles/meta-skills/skills/modern-web-design --skill modern-web-design

    Select your assistant and choose the project installation scope.

    Official instructions

The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. A running landing page, its hero asset, Python 3 for the shipped HTML scanner, and browser Performance tools. Use platform HTML and CSS with the bundled design_audit.py as a static check. Confirm actual browser behavior separately.

View operation manual

What this skill helps with

  • Review the accessibility of visible web interface elements and interactions.

Good for

  • Accessible interfaces
Publisher
FreshTechBro
Compatibility
Use platform HTML and CSS with the bundled design_audit.py as a static check. Confirm actual browser behavior separately.
Scenario
Make a landing hero usable before motion loads
Skill name
modern-web-design

Common pitfall

Avoid this prompt

Lazy-load all the images and bring in the hero after the animation library starts.

An LCP image can start loading later, and users can wait longer for the heading and primary action.

Use these steps

  1. Record the mobile viewport’s first render, detected LCP element, and static scan output.
  2. Make headings and actions available up front and reserve space for the real hero asset.
  3. Repeat the trace and validate keyboard, slow loading, and reduced motion.

Hands-on walkthrough

Audit the initial page, keep the hero image discoverable, and measure the same page before and after the change.

Audit the initial page, keep the hero image discoverable, and measure the same page before and after the change.

  1. Capture a concrete baseline

    Record the mobile viewport’s first render, detected LCP element, and static scan output.

    Prompt · Step 1
    Use Modern Web Design on [landing route]. Record a cold-load mobile Performance trace and identify the actual LCP element and main action. Save the route’s HTML response in a temporary file. Run the installed python3 scripts/design_audit.py --file <saved-html> --report <temporary-report> from its skill directory. Reproduce scan candidates in the browser before reporting them.
  2. Keep the initial hero discoverable

    Make headings and actions available up front and reserve space for the real hero asset.

    Prompt · Step 2
    Improve the existing hero without changing its message or action. Keep the heading and CTA in initial HTML. If a hero image is the measured LCP element, make it discoverable from the initial HTML, reserve its space, and keep it eagerly loaded. Consider fetchpriority="high" for that critical image. Put optional decoration behind the static layout and respect prefers-reduced-motion.
  3. Compare matched page loads

    Repeat the trace and validate keyboard, slow loading, and reduced motion.

    • Heading and action are present at initial load.
    • Performance traces use matching conditions and expose actual LCP elements.
    Prompt · Step 3
    Repeat the cold-load trace at the same viewport, throttling, and cache settings. Compare the LCP element, hero request start, and when the CTA is usable. Test the keyboard path and reduced motion. Share both measurements and any layout or rendering trade-offs you observed.

Workflow lookup

Use the documented calls with the version selected for the walkthrough.

Scan a saved HTML fileAPI
Command or reference
python3 scripts/design_audit.py --file <html> --report <output>
Examples
Run from the installed skill directory and use temporary input and report paths.
Prioritize the measured hero imageAPI
Command or reference
fetchpriority="high"
Examples
Apply to the critical image when it is the measured LCP element and confirm in the Network trace.

FAQ

Can the HTML audit calculate LCP?

It scans source patterns in a saved file. Use a browser trace to find the real LCP element and timing.

Where are the skill materials?

Open the project skill folder printed by the installer for SKILL.md and any bundled resources. The app’s runtime libraries are managed separately in its own package manifest.