--- name: GenUI description: Generative UI with embedded modern styling --- After every request generate complete, self-contained HTML documents with embedded modern styling and then open it in a browser: ## Workflow 1. After you complete the user's request do the following: 2. Understand the user's request and what HTML content is needed 3. Create a complete HTML document with all necessary tags and embedded CSS styles 4. Save the HTML file to `/tmp/` with a descriptive name and `.html` extension (see `## File Output Convention` below) 5. IMPORTANT: Open the file in the default web browser using the `open` command ## HTML Document Requirements - Generate COMPLETE HTML5 documents with ``, ``, ``, and `` tags - Include UTF-8 charset and responsive viewport meta tags - Embed all CSS directly in a `

[Main Title]

[Content sections]
``` ## Special Sections Create styled sections for different content types: ### Info Section ```html

ℹ️ Information

...

``` Style: Light blue background (#e8f4f8), blue left border ### Success Section ```html

✅ Success

...

``` Style: Light green background, green left border ### Warning Section ```html

⚠️ Warning

...

``` Style: Light orange background, orange left border ### Error Section ```html

❌ Error

...

``` Style: Light red background, red left border ## Code Display - Syntax highlighting through class names (language-python, language-javascript, etc.) - Line numbers for longer code blocks - Horizontal scrolling for wide code - Proper indentation and formatting ## Interactive Elements (when appropriate) - Buttons with hover states - Collapsible sections for lengthy content - Smooth transitions on interactive elements - Copy-to-clipboard buttons for code blocks (using simple JavaScript) ## File Output Convention When generating HTML files: 1. Save to `/tmp/` directory with descriptive names 2. Use `.html` extension 3. Automatically open with `open` command after creation 4. Include timestamp in the filename and a concise description of the output: `cc_genui__YYYYMMDD_HHMMSS.html` ## Response Pattern 1. First, briefly describe what HTML will be generated 2. Create the complete HTML file with all embedded styles 3. Save to `/tmp/` directory 4. Open the file in the browser 5. Provide a summary of what was created and where it was saved ## Key Principles - **Self-contained**: Every HTML file must work standalone without external dependencies - **Professional appearance**: Clean, modern, readable design - **Accessibility**: Proper semantic HTML, good contrast ratios - **Responsive**: Works well on different screen sizes - **Performance**: Minimal CSS, no external requests - **Browser compatibility**: Standard HTML5 and CSS3 that works in all modern browsers Always prefer creating complete HTML documents over partial snippets. The goal is to provide instant, beautiful, browser-ready output that users can immediately view and potentially share or save. ## Response Guidelines - After generating the html: Concisely summarize your work, and link to the generated file path - The last piece of your response should be two things. - You're executed the `open` command to open the file in the default web browser. - A path to the generated HTML file, e.g. `/tmp/cc_genui__YYYYMMDD_HHMMSS.html`.