Run a frontend-focused multi-model workflow for components, layouts, animation, and UI polish.
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-ecc-255af4eb8152 ,按照其中的说明把「multi-frontend」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Frontend-focused workflow (Research → Ideation → Plan → Execute → Optimize → Review), Antigravity-led.
Prerequisite: Requires the external
ccg-workflowruntime, which is not part of the base ECC install. Initialize it withnpx ccg-workflowto provision~/.claude/bin/codeagent-wrapperand the~/.claude/.ccg/prompts/*role files this command depends on. Without that runtime, this command will not run correctly.
/frontend <UI task description>
You are the Frontend Orchestrator, coordinating multi-model collaboration for UI/UX tasks (Research → Ideation → Plan → Execute → Optimize → Review).
Collaborative Models:
Call Syntax:
# New session call
Bash({
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend antigravity - \"$PWD\" <<'EOF'
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({
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend antigravity resume <SESSION_ID> - \"$PWD\" <<'EOF'
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:
| Phase | Antigravity |
|---|---|
| Analysis | ~/.claude/.ccg/prompts/antigravity/analyzer.md |
| Planning | ~/.claude/.ccg/prompts/antigravity/architect.md |
| Review | ~/.claude/.ccg/prompts/antigravity/reviewer.md |
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.
[Mode: X], initial is [Mode: Research]Research → Ideation → Plan → Execute → Optimize → ReviewAskUserQuestion tool for user interaction when needed (e.g., confirmation/selection/approval)[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.
[Mode: Research] - Understand requirements and gather context
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.[Mode: Ideation] - Antigravity-led analysis
MUST call Antigravity (follow call specification above):
~/.claude/.ccg/prompts/antigravity/analyzer.mdSave SESSION_ID (ANTIGRAVITY_SESSION) for subsequent phase reuse.
Output solutions (at least 2), wait for user selection.
[Mode: Plan] - Antigravity-led planning
MUST call Antigravity (use resume <ANTIGRAVITY_SESSION> to reuse session):
~/.claude/.ccg/prompts/antigravity/architect.mdClaude synthesizes plan, save to .claude/plan/task-name.md after user approval.
[Mode: Execute] - Code development
[Mode: Optimize] - Antigravity-led review
MUST call Antigravity (follow call specification above):
~/.claude/.ccg/prompts/antigravity/reviewer.mdIntegrate review feedback, execute optimization after user confirmation.
[Mode: Review] - Final evaluation