Skip to content

mercierj/ccflashui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Claude Code Flash UI

License: MIT Node.js Claude Code

Slash commands for Claude Code that integrate with Google AI Studio's Flash UI for automated UI code generation.

Commands

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

Quick Install

curl -fsSL https://raw.githubusercontent.com/mercierj/ccflashui/main/install.sh | bash

Or 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 install

Usage

In 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

How It Works

Flash UI

  1. Opens Chrome with Google AI Studio's Flash UI
  2. Pastes your prompt automatically
  3. You can iterate and refine using Flash UI's chat
  4. Click "SEND TO CLAUDE" when satisfied
  5. Code is extracted and returned to Claude Code

Website Redesign

  1. Fetches the target URL
  2. Parses text content (headings, paragraphs, navigation, buttons)
  3. Builds a detailed prompt preserving exact text
  4. Sends to Flash UI for modern redesign

Project Structure

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 vs Skills

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.

Requirements

  • Node.js 18+
  • Claude Code CLI installed
  • Google Account for AI Studio access

First Run

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.

Troubleshooting

If you see dependency errors:

cd ~/.claude/skills/flash-ui-codegen
npm install
npx playwright install chromium

cd ~/.claude/skills/website-redesign
npm install

Contributing

Contributions are welcome! See CONTRIBUTING.md for guidelines.

License

MIT - feel free to use, modify, and distribute.

Author

Created by @mercierj

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •