Show in Browser Skill
Render the most recent assistant response (or specific content if the user specifies) as a well-formatted HTML page and open it in the default browser.
Steps
Generate a temporary HTML file at
/tmp/claude-response-<timestamp>.htmlwith:- Clean, semantic HTML with a system-ui font, reasonable max-width, and good contrast.
- Proper heading structure for screen reader accessibility.
- The content from the most recent response (or what the user specifies via
$ARGUMENTS).
Detect the platform and open with the matching command, then schedule cleanup:
# macOS open /tmp/claude-response-<timestamp>.html && sleep 5 && rm /tmp/claude-response-<timestamp>.html & # Linux xdg-open /tmp/claude-response-<timestamp>.html && sleep 5 && rm /tmp/claude-response-<timestamp>.html & # WSL (opens in the Windows default browser) wslview /tmp/claude-response-<timestamp>.html && sleep 5 && rm /tmp/claude-response-<timestamp>.html & # Windows (Git Bash / native) start /tmp/claude-response-<timestamp>.html && sleep 5 && rm /tmp/claude-response-<timestamp>.html &Detect via
uname -a/$OSTYPE(check/proc/versionfor "microsoft" to identify WSL).The browser loads the content into memory immediately, so deleting after a few seconds is safe.
Accessibility notes
- Use semantic headings (
<h1>through<h3>) so screen reader heading navigation works. - Set
lang="en"on<html>(or the appropriate language code). - Use a
max-width(around 70ch) for readable line lengths. - Default to high-contrast colors. Don't rely on color alone for meaning.
- Avoid auto-playing audio or video.