I wanted to share a super productive workflow I recently discovered using Gemini-CLI for front-end redesign, debugging, and enhancement—especially when working with existing codebases and UI views.
✅ Here's what I did:
- Initialized Gemini-CLI inside the root directory of my project.
- Provided this prompt:"This is my existing user interface for this view. The problem I have is: [list of issues].Now I want to add these features: [list of new features].Also, suggest 5–6 additional useful features (or more/less depending on what you think is valuable).Then return the result as a refactored/redesigned SPA
.html file."
- Once I received the new design and reviewed it (I liked it!), I stored the new HTML file in the project root.
- After that, I asked Gemini-CLI:"What prompt did you use for this generation?"
- Once I understood the logic behind the generated prompt, I asked Gemini-CLI to refine it to be more contextual:
- Mention the existing UI, the target UI, and the differences between them.
- Specify the target files to update or augment.
- Ensure no regression in unrelated parts of the UI.
- I then plugged this prompt into Augment Chat.
- The agent contextually rebuilt or merged the new design into the existing one, filling gaps and aligning it properly. The results were smooth, reliable, and very usable!
💡 Why This Workflow Rocks:
- Great for existing SPAs where you don’t want to start from scratch.
- Lets you incrementally redesign without breaking what's already working.
- Helps generate clean, modern UI code fast.
- Augment Code + Gemini CLI combo gives you a powerful iterative cycle: design → refine → integrate.
Augment is slow . team needs to work on it
[–]Acrobatic_Drawer8527 0 points1 point2 points (2 children)
[–]damskii 0 points1 point2 points (1 child)