---
description: Analyze and fix UI issues
argument-hint: "[issue]"
---

Use `frontend-design` skill to read and analyze design guidelines, then fix the following issues:
<issue>$ARGUMENTS</issue>

## Workflow

If the user provides screenshots or videos, use `ai-multimodal` skill to describe the issue in detail so developers can predict root causes easily.

1. Use `build` agent with `frontend-design` skill to implement the fix step by step.
2. Use screenshot capture tools along with `ai-multimodal` skill to take screenshots of the implemented fix and analyze those outputs to ensure they match design guidelines and address all issues.

- If issues are not addressed, repeat the process until all issues are resolved.

3. Use `chrome-devtools` skill to analyze the implemented fix and ensure it matches design guidelines.
4. Use `code-auditor` agent to test the fix, ensure quality and security, then report back.

- If there are issues or failed tests, `build` agent will fix them and repeat the process until all tests pass.

5. Project Management & Documentation:
   **If the user approves the changes:** Update project progress using standard tools
   - Update task status in @backlog/tasks
   - Update memory in @.opencode/memory/
   - Commit changes using git commands
     **If the user rejects the changes:** Ask the user to explain the issues and `build` agent will fix them.
6. Final Report:

- Report back with a summary of changes and next steps
- Ask if the user wants to commit and push to the git repository

**Agent Delegation:**

- Primary: `build` (implementation with frontend-design skill)
- Quality Gate: `code-auditor` (testing + security + review)
- Tools: `chrome-devtools` (for UI analysis)

**IMPORTANT:** Analyze the skills catalog and activate the skills that are needed for the task during the process.
