frontend-master
π―Skillfrom mineru98/skills-store
Transforms frontend UI/UX by automatically modifying styling, layout, components, and responsive designs using Gemini CLI in --yolo mode.
Installation
npx skills add https://github.com/mineru98/skills-store --skill frontend-masterSkill Details
Frontend UI/UX work with Gemini CLI in --yolo mode. Use when (1) modifying visual/styling elements in frontend files (.tsx, .jsx, .vue, .svelte, .css), (2) implementing UI components, (3) adjusting layout, colors, spacing, typography, or animations, (4) creating responsive designs, or (5) any frontend task involving how things LOOK rather than how they WORK.
Overview
# Gemini Frontend Skill
Execute frontend UI/UX tasks using Gemini CLI in --yolo mode for automatic approval.
When to Use
- Visual changes: colors, backgrounds, borders, shadows
- Layout: flexbox, grid, margins, padding, positioning
- Typography: font sizes, weights, line heights
- Animation: transitions, keyframes, hover states
- Responsive design: breakpoints, media queries
- Component styling: Tailwind, CSS-in-JS, styled-components
When NOT to Use
- Pure logic changes (API calls, state management, event handlers)
- Type definitions, utility functions, business logic
- Use
logic-masterskill for logic optimization or image-based tasks
Execution Pattern
Basic Command Structure
```bash
# With file context
cat
# With directory context
gemini --yolo --prompt "
# With all project files
gemini --yolo --prompt "
```
Required Flags
| Flag | Purpose |
|------|---------|
| --yolo | MANDATORY - Auto-approve all changes |
| --prompt or -p | Specify the task |
| --include-directories | Add specific folders to context |
| --all-files or -a | Include full project context |
| --output-format json | Get structured output for parsing |
Workflow
- Identify frontend file(s) to modify
- Construct Gemini command with
--yoloflag - Execute via bash tool
- Verify results with
lsp_diagnostics - Apply changes if output is satisfactory
Example Commands
Modify Component Styling
```bash
# Update button styles
cat src/components/Button.tsx | gemini --yolo -p "Change button color to blue-500, add hover:scale-105 transition"
# Responsive navbar
gemini --yolo -p "Make the navbar responsive with hamburger menu on mobile" --include-directories src/components
```
Layout Changes
```bash
# Convert to grid layout
cat src/pages/Dashboard.tsx | gemini --yolo -p "Convert this layout to CSS Grid with 3 columns"
# Add spacing
gemini --yolo -p "Add consistent spacing between cards using gap-4" --include-directories src/components/cards
```
Animation & Effects
```bash
# Add transitions
cat src/components/Modal.tsx | gemini --yolo -p "Add fade-in animation when modal opens"
# Hover effects
gemini --yolo -p "Add subtle shadow and scale effect on card hover" --include-directories src/components
```
Full Project Changes
```bash
# Theme update
gemini --yolo -p "Update all components to use dark mode color palette" --all-files
# Design system alignment
gemini --yolo -p "Align all buttons to use design system tokens" --all-files
```
Output Handling
Get JSON Output for Scripting
```bash
gemini --yolo -p "List all CSS classes used in this component" --output-format json | jq '.response'
```
Save Changes to File
```bash
cat src/styles/main.css | gemini --yolo -p "Add responsive utilities" > src/styles/main.css.new
```
Integration with Subagents
When delegating to frontend-ui-ux-engineer:
```
- TASK: Execute Gemini CLI to update component styling
- EXPECTED OUTCOME: Component with updated visual styles
- REQUIRED SKILLS: frontend-master
- REQUIRED TOOLS: Bash (for gemini CLI), Read, lsp_diagnostics
- MUST DO:
- Use --yolo flag for auto-approval
- Verify changes with lsp_diagnostics after execution
- Match existing Tailwind/CSS patterns in codebase
- MUST NOT DO:
- Modify logic or event handlers
- Remove existing functionality
- Use --approval-mode (use --yolo instead)
- CONTEXT: [file paths, design requirements, existing patterns]
```
Troubleshooting
| Issue | Solution |
|-------|----------|
| Command hangs | Ensure --yolo flag is present |
| No changes made | Check file is in context (use --include-directories) |
| Unexpected changes | Add more specific constraints in prompt |
| Build errors | Run lsp_diagnostics and fix type issues |
Security Note
--yolo mode auto-approves ALL actions. Use only when:
- Working in version-controlled directories
- Changes can be easily reverted
- No sensitive operations involved
More from this repository7
explaining-code skill from mineru98/skills-store
frontend-design-patterns skill from mineru98/skills-store
Detects and automatically fixes PowerShell script encoding issues, ensuring correct display of non-ASCII characters like Korean text and emojis on Windows.
Analyzes Excel files to detect data quality issues, format inconsistencies, and generate comprehensive statistical reports with actionable insights.
Guides creating specialized Claude subagents for targeted, efficient task delegation across different domains. ``` Generates specialized subagents for precise, domain-specific task delegation and ...
commands-creator skill from mineru98/skills-store
logic-master skill from mineru98/skills-store