Slash commands for Claude Code that integrate with Google AI Studio's Flash UI for automated UI code generation.
| Command | Description |
|---|---|
/flash-ui <prompt> |
Generate UI code using Google AI Studio Flash UI |
/website-redesign <url> |
Redesign any website while preserving exact text content |
curl -fsSL https://raw.githubusercontent.com/mercierj/ccflashui/main/install.sh | bashOr manually:
# Clone the repo
git clone https://github.com/mercierj/ccflashui.git
cd ccflashui
# Install skills (scripts)
mkdir -p ~/.claude/skills
cp -r flash-ui-codegen ~/.claude/skills/
cp -r website-redesign ~/.claude/skills/
# Install commands (slash commands)
mkdir -p ~/.claude/commands
cp commands/flash-ui.md ~/.claude/commands/
cp commands/website-redesign.md ~/.claude/commands/
# Install dependencies
cd ~/.claude/skills/flash-ui-codegen && npm install && npx playwright install chromium
cd ~/.claude/skills/website-redesign && npm installIn Claude Code CLI:
# Generate UI from a prompt
/flash-ui "Create a modern dashboard with dark theme and sidebar"
# Redesign an existing website
/website-redesign https://example.com- Opens Chrome with Google AI Studio's Flash UI
- Pastes your prompt automatically
- You can iterate and refine using Flash UI's chat
- Click "SEND TO CLAUDE" when satisfied
- Code is extracted and returned to Claude Code
- Fetches the target URL
- Parses text content (headings, paragraphs, navigation, buttons)
- Builds a detailed prompt preserving exact text
- Sends to Flash UI for modern redesign
ccflashui/
├── commands/ # Slash commands (user-invoked)
│ ├── flash-ui.md # /flash-ui command
│ └── website-redesign.md # /website-redesign command
├── flash-ui-codegen/ # Skill with scripts
│ ├── SKILL.md
│ ├── flash-ui.js
│ └── package.json
├── website-redesign/ # Skill with scripts
│ ├── SKILL.md
│ ├── website-redesign.js
│ └── package.json
├── install.sh
└── README.md
| Commands | Skills | |
|---|---|---|
| Location | ~/.claude/commands/ |
~/.claude/skills/ |
| Format | Single .md file |
Folder with SKILL.md + scripts |
| Invocation | User types /command |
Scripts called by commands |
| Autocomplete | Yes | No |
Commands are what you type (e.g., /flash-ui). Skills contain the actual scripts that commands use.
- Node.js 18+
- Claude Code CLI installed
- Google Account for AI Studio access
On first use, you'll be prompted to log into your Google account. Your session is saved locally in ~/.claude/flash-ui-chrome-profile/ so you only need to log in once.
If you see dependency errors:
cd ~/.claude/skills/flash-ui-codegen
npm install
npx playwright install chromium
cd ~/.claude/skills/website-redesign
npm installContributions are welcome! See CONTRIBUTING.md for guidelines.
MIT - feel free to use, modify, and distribute.
Created by @mercierj