Home / Prompts / Code

Fix my site with Modern Web Guidance

Scan your website for outdated patterns, then fix its forms and page loading with Google Chrome's open-source Modern Web Guidance.

CodeStep by step

The prompt

In my website project at ~/code/my-site (change the path): 1) run DISABLE_TELEMETRY=1 npx modern-web-guidance legacy-scan . and explain each finding in plain words; 2) run npx modern-web-guidance search 'sign-up form' and retrieve the best guide; 3) fix only the sign-up and sign-in forms using that guide (autocomplete, input types, labels); 4) run my tests; 5) show me the diff before you commit. Do not change anything else.

What the AI will do

  1. Runs the legacy scan on your site project and explains each finding in plain words.
  2. Finds the sign-up form guide and fixes only your sign-up and sign-in forms.
  3. Runs your tests and shows you the diff before committing.

On Windows, Mac and Linux

All three: Node.js with npx must be installed. Windows PowerShell sets the variable differently: $env:DISABLE_TELEMETRY=1; npx modern-web-guidance legacy-scan .

How to use it

  1. Make sure Shellway is connected in ChatGPT, Claude or Cursor.
  2. Paste the prompt and change the folder names or paths to match your computer.
  3. Review the plan your AI shows before you confirm any changes.

Example reply

An illustration of a typical answer. Your AI will show the real files, names and numbers from your computer.

legacy-scan found 6 items:
- 2 email fields without autocomplete="username"
- OTP field uses type="tel"
- 3 inputs without a <label>
Plan: fix the 2 forms only, run npm test, show the diff.
Tests: 24 passed. Diff ready: 2 files, +14 -9 lines. Commit?

Tips

  • Commit to git first so every change can be undone.
  • Next run: search 'image loading priority' or 'one-time code' and fix one thing per run.

Good to know

Your AI shows its plan before it changes anything, and your rules on the computer still apply: read-only mode, allowed folders and blocked commands, with a backup before each file edit (safety rules). Works in ChatGPT, Claude, Claude Code and Cursor; the free plan gives 50 actions a day (pricing).

Related prompts