2026-04-30 03:26:10 -04:00
---
description : Run a frontend-focused multi-model workflow for components, layouts, animation, and UI polish.
---
2026-02-20 01:11:30 -08:00
# Frontend - Frontend-Focused Development
2026-08-11 19:23:47 +02:00
Frontend-focused workflow (Research → Ideation → Plan → Execute → Optimize → Review), Antigravity-led.
2026-02-20 01:11:30 -08:00
2026-06-07 08:25:58 +03:00
> **Prerequisite:** Requires the external `ccg-workflow` runtime, which is **not** part of the base ECC install. Initialize it with `npx ccg-workflow` to provision `~/.claude/bin/codeagent-wrapper` and the `~/.claude/.ccg/prompts/*` role files this command depends on. Without that runtime, this command will not run correctly.
2026-02-20 01:11:30 -08:00
## Usage
```bash
/frontend <UI task description>
```
## Context
- Frontend task: $ARGUMENTS
2026-08-11 19:23:47 +02:00
- Antigravity-led, Codex for auxiliary reference
2026-02-20 01:11:30 -08:00
- Applicable: Component design, responsive layout, UI animations, style optimization
## Your Role
You are the **Frontend Orchestrator** , coordinating multi-model collaboration for UI/UX tasks (Research → Ideation → Plan → Execute → Optimize → Review).
**Collaborative Models** :
2026-08-11 19:23:47 +02:00
- **Antigravity** – Frontend UI/UX (**Frontend authority, trustworthy**)
2026-02-20 01:11:30 -08:00
- **Codex** – Backend perspective (**Frontend opinions for reference only**)
- **Claude (self)** – Orchestration, planning, execution, delivery
---
## Multi-Model Call Specification
**Call Syntax** :
```
# New session call
Bash({
2026-08-11 19:23:47 +02:00
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend antigravity - \"$PWD\" <<'EOF'
2026-02-20 01:11:30 -08:00
ROLE_FILE: <role prompt path>
<TASK>
Requirement: <enhanced requirement (or $ARGUMENTS if not enhanced)>
Context: <project context and analysis from previous phases>
</TASK>
OUTPUT: Expected output format
EOF",
run_in_background: false,
timeout: 3600000,
description: "Brief description"
})
# Resume session call
Bash({
2026-08-11 19:23:47 +02:00
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend antigravity resume <SESSION_ID> - \"$PWD\" <<'EOF'
2026-02-20 01:11:30 -08:00
ROLE_FILE: <role prompt path>
<TASK>
Requirement: <enhanced requirement (or $ARGUMENTS if not enhanced)>
Context: <project context and analysis from previous phases>
</TASK>
OUTPUT: Expected output format
EOF",
run_in_background: false,
timeout: 3600000,
description: "Brief description"
})
```
**Role Prompts** :
2026-08-11 19:23:47 +02:00
| Phase | Antigravity |
2026-02-20 01:11:30 -08:00
|-------|--------|
2026-08-11 19:23:47 +02:00
| Analysis | `~/.claude/.ccg/prompts/antigravity/analyzer.md` |
| Planning | `~/.claude/.ccg/prompts/antigravity/architect.md` |
| Review | `~/.claude/.ccg/prompts/antigravity/reviewer.md` |
2026-02-20 01:11:30 -08:00
2026-08-11 19:23:47 +02:00
**Session Reuse** : Each call returns `SESSION_ID: xxx` , use `resume xxx` for subsequent phases. Save `ANTIGRAVITY_SESSION` in Phase 2, use `resume` in Phases 3 and 5.
2026-02-20 01:11:30 -08:00
---
## Communication Guidelines
1. Start responses with mode label `[Mode: X]` , initial is `[Mode: Research]`
2. Follow strict sequence: `Research → Ideation → Plan → Execute → Optimize → Review`
3. Use `AskUserQuestion` tool for user interaction when needed (e.g., confirmation/selection/approval)
---
## Core Workflow
### Phase 0: Prompt Enhancement (Optional)
2026-08-11 19:23:47 +02:00
`[Mode: Prepare]` - If ace-tool MCP available, call `mcp__ace-tool__enhance_prompt` , **replace original $ARGUMENTS with enhanced result for subsequent Antigravity calls** . If unavailable, use `$ARGUMENTS` as-is.
2026-02-20 01:11:30 -08:00
### Phase 1: Research
`[Mode: Research]` - Understand requirements and gather context
2026-02-28 13:59:02 +09:00
1. **Code Retrieval** (if ace-tool MCP available): Call `mcp__ace-tool__search_context` to retrieve existing components, styles, design system. If unavailable, use built-in tools: `Glob` for file discovery, `Grep` for component/style search, `Read` for context gathering, `Task` (Explore agent) for deeper exploration.
2026-02-20 01:11:30 -08:00
2. Requirement completeness score (0-10): >=7 continue, <7 stop and supplement
### Phase 2: Ideation
2026-08-11 19:23:47 +02:00
`[Mode: Ideation]` - Antigravity-led analysis
2026-02-20 01:11:30 -08:00
2026-08-11 19:23:47 +02:00
**MUST call Antigravity** (follow call specification above):
- ROLE_FILE: `~/.claude/.ccg/prompts/antigravity/analyzer.md`
2026-02-20 01:11:30 -08:00
- Requirement: Enhanced requirement (or $ARGUMENTS if not enhanced)
- Context: Project context from Phase 1
- OUTPUT: UI feasibility analysis, recommended solutions (at least 2), UX evaluation
2026-08-11 19:23:47 +02:00
**Save SESSION_ID** (`ANTIGRAVITY_SESSION` ) for subsequent phase reuse.
2026-02-20 01:11:30 -08:00
Output solutions (at least 2), wait for user selection.
### Phase 3: Planning
2026-08-11 19:23:47 +02:00
`[Mode: Plan]` - Antigravity-led planning
2026-02-20 01:11:30 -08:00
2026-08-11 19:23:47 +02:00
**MUST call Antigravity** (use `resume <ANTIGRAVITY_SESSION>` to reuse session):
- ROLE_FILE: `~/.claude/.ccg/prompts/antigravity/architect.md`
2026-02-20 01:11:30 -08:00
- Requirement: User's selected solution
- Context: Analysis results from Phase 2
- OUTPUT: Component structure, UI flow, styling approach
Claude synthesizes plan, save to `.claude/plan/task-name.md` after user approval.
### Phase 4: Implementation
`[Mode: Execute]` - Code development
- Strictly follow approved plan
- Follow existing project design system and code standards
- Ensure responsiveness, accessibility
### Phase 5: Optimization
2026-08-11 19:23:47 +02:00
`[Mode: Optimize]` - Antigravity-led review
2026-02-20 01:11:30 -08:00
2026-08-11 19:23:47 +02:00
**MUST call Antigravity** (follow call specification above):
- ROLE_FILE: `~/.claude/.ccg/prompts/antigravity/reviewer.md`
2026-02-20 01:11:30 -08:00
- Requirement: Review the following frontend code changes
- Context: git diff or code content
- OUTPUT: Accessibility, responsiveness, performance, design consistency issues list
Integrate review feedback, execute optimization after user confirmation.
### Phase 6: Quality Review
`[Mode: Review]` - Final evaluation
- Check completion against plan
- Verify responsiveness and accessibility
- Report issues and recommendations
---
## Key Rules
2026-08-11 19:23:47 +02:00
1. **Antigravity frontend opinions are trustworthy**
2026-02-20 01:11:30 -08:00
2. **Codex frontend opinions for reference only**
3. External models have **zero filesystem write access**
4. Claude handles all code writes and file operations