Turn ChatGPT into a web developer on your own computer
Use Shellway and Google Chrome's open-source Modern Web Guidance so ChatGPT fixes your real website code with today's best practices.
ChatGPT writes good web code, but on its own it cannot see your project, run your build or check what it changed. And it often reaches for patterns that were normal years ago: hand-made form validation, JavaScript where plain HTML now works, images without loading priorities.
Two things fix that. Shellway lets ChatGPT work in the project folder on your own computer: read the files, run commands, edit code and run your tests. Modern Web Guidance is an open-source set of guides from the Google Chrome team (Apache-2.0) that tells AI agents how to build web features the modern way, with fallbacks and known gotchas.
What you need
- ChatGPT with Shellway connected (free plan, no card).
- The Shellway app running on the computer that has your website project.
- Node.js 22 or newer on that computer (Modern Web Guidance runs with
npx).
Step 1: let ChatGPT look up the guidance
Nothing to install by hand. In ChatGPT, turn on Shellway and say:
"In ~/code/my-site, run DISABLE_TELEMETRY=1 npx modern-web-guidance search 'sign-up form' and show me the guide ids."
The search runs offline on your computer. Then ask ChatGPT to retrieve a guide, for example npx modern-web-guidance retrieve autofill-sign-up-form, and use it.
Step 2: scan your project for old patterns
"Run npx modern-web-guidance legacy-scan . in ~/code/my-site, explain each finding in plain words and tell me which ones matter for my visitors."
Step 3: fix one thing at a time
Good first fixes that help real visitors:
- Forms that fill themselves: correct
autocompletevalues on sign-up, sign-in, address and payment forms, so phones and password managers fill them in one tap. - Codes that paste themselves: one-time-code fields that iOS and Android can fill from the message.
- Faster pages: image and script loading priorities so the first screen appears sooner.
- Clear errors: validation that waits until the visitor has typed, instead of shouting red text on an empty form.
Ask: "Using the autofill-sign-up-form guide, fix the sign-up form in ~/code/my-site, run the tests, and show me the diff before you commit."
Good habits
- Commit to git before asking for changes, so you can undo anything.
- Ask for the diff and the test results every time.
- Try one guide per change; it keeps reviews short.
Ready-made prompts are in the prompt library. Modern Web Guidance lives at github.com/GoogleChrome/modern-web-guidance; it is a Chrome team project, not part of Shellway.