web_site_mode — Claude Code prompt: what it does and how to install
The web_site_mode Claude Code prompt switches the current tab between a site's mobile and desktop versions. It reloads the page and remembers the selected mode for that site.
The prompt changes the current site to its mobile layout or back to desktop, then reloads the page. Desktop is the default. Mobile mode is reserved for cases where the desktop page fails or is hard to read on the screen.
The selected mode is remembered for that site. References collected before a switch become stale.
What it helps with
open a site's mobile layout in the current tab
switch a site back to its desktop layout
reload a page after changing its display mode
Example prompts for the agent
Switch the current tab to the site's mobile version.
Change this site back to desktop mode and reload the page.
How to install web_site_mode
Manually: put the files in place
.claude/commands/web_site_mode.md
How to use
Paste the text at the start of a chat or into project instructions
Questions about web_site_mode
How do I install web_site_mode in Claude Code?
Add the command file at .claude/commands/web_site_mode.md.
What does web_site_mode do?
It switches the current tab between a site's mobile and desktop versions, reloads the page, and remembers the choice for that site.
When does web_site_mode use the mobile version?
Use mobile mode when the desktop page does not work or is difficult to read on the screen.
Source text
web_site_mode.md · Apache-2.0
Pages open as the desktop version by default. Switch the current tab's site to the mobile version (or back to desktop) and reload the page; the choice is remembered for that site. Use mobile only when the desktop page does not work or is unreadable on this screen. Earlier refs become stale.