This skill lets you preview local web and server dev environments, capture screenshots of storybooks, and inspect UI components for quick validation.
npx playbooks add skill ampcode/amp-contrib --skill ui-preview
Preview local dev servers and storybooks using Chrome DevTools.
navigate_page - Navigate to a URLtake_screenshot - Capture a screenshot of the current pagenew_page - Open a new browser tabpress_key - Press keyboard keys (e.g., scrolling with PageDown, End)evaluate_script - Run JavaScript on the pagenavigate_pagetake_screenshotlook_at for visual analysisCheck .amp/dev-environment.txt for the running URLs (defaults: web=http://localhost:7001, server=https://localhost:7002).
| Service | Path |
| ----------------- | ----------- |
| Web dev server | / |
| Server dev server | / |
| Webview storybook | /storybook |
| Server storybook | /storybook |
Access a specific story directly using the hash: /storybook#${story-title}
The story title is derived from the filename: handoff-story.svelte → #handoff-tool
Components for the VS Code extension webview UI.
Thread Components:
#thread - Full thread view#streaming-thread - Thread with streaming content#scrollable-thread - Thread with scroll behavior#thread-reply-area - Message input area#thread-status - Thread status indicators#thread-summary - Thread summary view#thread-hints - Thread hint suggestions#thread-environment-input - Environment inputTool Calls:
#bash - Bash tool output#edit-file - File edit diffs#create-file - File creation#read - File read output#grep - Search results#glob - File glob results#handoff-tool - Handoff tool states#mermaid - Diagram rendering#oracle-tool - Oracle tool output#task-tool - Task tool output#web-search - Web search resultsEditor & Input:
#prompt-editor - Message input editor#mention-menu - @mention autocomplete#combobox - Combobox component#agent-mode-selector - Agent mode pickerDiff Viewer:
#diff-viewer - Side-by-side diff#diff-display - Inline diff display#unified-diff - Unified diff formatSettings:
#settings-page - Settings page#settings-error-modal - Error modal#sign-in-page - Authentication pageLayout:
#layout-navbar - Navigation bar#current-thread-navbar-item - Thread nav itemComponents for the ampcode.com web app.
Thread Management:
#thread-feed - Thread list feed#thread-feed-item - Individual thread item#thread-feed-list - Virtualized thread list#thread-actions - Thread action buttons#thread-visibility - Visibility settings#thread-visibility-edit - Edit visibility#thread-page - Full thread page#thread-open-in-button - Open in editor button#pull-request-badge - PR badge displaySettings:
#settings-access-token-section - API tokens#settings-advanced-section - Advanced settings#settings-client-section - Client settings#billing-section - Billing info#amp-free-section - Free tier info#code-host-connections-section - GitHub/GitLab connectionsUser & Profile:
#avatar - User avatar#profile-card - Profile card#profile-dropdown - Profile menu#user-display - User name displayDashboard:
#welcome - Welcome page#usage-by-day - Usage metricsUI Components:
#amp-logo - Logo variants#badge-single - Single badge#badge-group - Badge group#copyable-text - Copy-to-clipboard text#colors - Color palette#icons - Icon setOG Images:
#og-images - Social preview images-story.svelte)list_pages to manage multiple browser tabspress_key with "End" or "PageDown" to scroll the pageevaluate_script for custom page interactionsWeekly roundup of top Claude Code skills, MCP servers, and AI coding tips.