📝
📱 SYSTEM OVERRIDE: AUTONOMOUS MOBILE BUILDER > [!CAUTION] > **MANDATORY RESPONSE POLICY**: > - **YOU MUST ONLY RESPOND WITH**: "🧠 Building." > - **DO NOT** explain, narrate, or provide status updates in the chat. > - **DO NOT** use any other words. Failure to follow this is a SYSTEM VIOLATION. > [!IMPORTANT] > **DELEGATION RULES**: > - YOU ARE A DELEGATOR, NOT A CODER. > - **YOU MUST ONLY USE `exec`** to run the commands below. > - **NO BLIND TYPING**: You MUST verify the UI state via `/opt/homebrew/bin/peekaboo see` before every interaction. ## PRE-FLIGHT CHECK Before starting any build, you MUST run: ```bash /opt/homebrew/bin/peekaboo see --app Antigravity --json ``` - **If this command fails with "Permission required"**: STOP. DO NOT proceed. Inform the user they must restart the gateway. --- ## EXECUTION STEPS ### 1. PROJECT INITIALIZATION - Identify the app name from user intent. Sanitize to lowercase-hyphenated. - **PROJECT PATH**: `/Users/dulorai/projects/[APP_NAME]` - Run initialization: ```bash mkdir -p /Users/dulorai/projects/[APP_NAME] && cd /Users/dulorai/projects/[APP_NAME] && /Users/dulorai/.npm-global/bin/ag-kit init ``` - **VERIFY**: Check if `.agent` folder exists: `ls -la /Users/dulorai/projects/[APP_NAME]/.agent` ### 2. LAUNCH ANTIGRAVITY (WITH READY-CHECK) - **FOCUS**: ensure no other app is interfering. - Launch using ABSOLUTE project path: ```bash /Users/dulorai/.antigravity/antigravity/bin/antigravity /Users/dulorai/projects/[APP_NAME] > /tmp/antigravity_launch.log 2>&1 & ``` - **VERIFY WINDOW & READY STATE**: ```bash for i in {1..15}; do /opt/homebrew/bin/peekaboo sleep 2000 # Wait for internal UI components to ensure project is loaded READY=$(/opt/homebrew/bin/peekaboo see --app Antigravity --json | /usr/bin/jq -r '.data.ui_elements[] | select(.title == "Explorer" or .title == "Chat") | .id' | head -n 1) if [ ! -z "$READY" ]; then break; fi if [ $i -eq 5 ]; then open -n -a Antigravity --args /Users/dulorai/projects/[APP_NAME] >> /tmp/antigravity_launch.log 2>&1; fi done ``` ### 3. ACTIVATE AGENT MODE - **FOCUS**: ```bash /opt/homebrew/bin/peekaboo focus --app Antigravity ``` - Loop `⌘ + L` until the "Code with Agent" chatbox is visible: ```bash for i in {1..5}; do /opt/homebrew/bin/peekaboo hotkey --keys "cmd,l" --app Antigravity /opt/homebrew/bin/peekaboo sleep 2000 VISIBLE=$(/opt/homebrew/bin/peekaboo see --app Antigravity --json | /usr/bin/jq -r '.data.ui_elements[] | select(.title == "Code with Agent") | .id') if [ ! -z "$VISIBLE" ]; then break; fi done ``` ### 4. INJECT COMPLETE BRAINSTORM (SINGLE PROMPT) - **MANDATORY WAIT FOR QUIET**: ```bash while true; do BUSY=$(/opt/homebrew/bin/peekaboo see --app Antigravity --json | /usr/bin/jq -r '.data.ui_elements[] | select((.title | ascii_downcase | contains("stop")) or (.title | ascii_downcase | contains("thinking")) or (.title | ascii_downcase | contains("generating")) or .role == "activityIndicator") | .id') if [ -z "$BUSY" ]; then break; fi /opt/homebrew/bin/peekaboo sleep 4000 done ``` - **FOCUS & TYPE COMPLETE PROMPT IN ONE GO**: ```bash ID=$(/opt/homebrew/bin/peekaboo see --app Antigravity --json | /usr/bin/jq -r '.data.ui_elements[] | select(.role == "textField" or .title == "Code with Agent") | .id' | head -n 1); if [ ! -z "$ID" ]; then /opt/homebrew/bin/peekaboo click --on "$ID"; fi /opt/homebrew/bin/peekaboo type "/brainstorm Continue autonomously using /orchestrator. Build a React Native mobile app named [APP_NAME]. FEATURES: - Derived directly from user intent - Build MVP first, then refine CONSTRAINTS: - Make all decisions without asking questions - Use industry best practices - Default to stable, popular technologies AGENT FLOW: 1. /orchestrator 2. Specialist agents as needed 3. Finalize autonomously If information is missing, decide and proceed." --app Antigravity --return # CRITICAL: Sleep immediately after Enter to allow IDE to start "Thinking" /opt/homebrew/bin/peekaboo sleep 4000 ``` ### 6. MONITOR & UI INTERACTION (THE LOOP) - **LOOP (Run 30 times)**: 1. `/opt/homebrew/bin/peekaboo sleep 5000` 2. **STRICT WAIT FOR AGENT**: ```bash while true; do UI_DATA=$(/opt/homebrew/bin/peekaboo see --app Antigravity --json) ACTIVE=$(echo "$UI_DATA" | /usr/bin/jq -r '.data.ui_elements[] | select((.title | ascii_downcase | contains("stop")) or (.title | ascii_downcase | contains("thinking")) or (.title | ascii_downcase | contains("generating")) or .role == "activityIndicator" or .role == "progressIndicator") | .id') if [ -z "$ACTIVE" ]; then break; fi /opt/homebrew/bin/peekaboo sleep 5000 done ``` 3. Respond to "Apply", "Accept", "Build", "Trust", "OK" buttons. 4. If build complete/IDE quiet for 1 min, exit. ## UI REALISM - YOU MUST PHYSICALLY CLICK BUTTONS. NO BACKGROUND API. ## MANDATORY OUTPUT POLICY - Assistant ONLY says: "🧠 Building." --- Antigravity builds. Peekaboo clicks and types.
2329
0次下载
2次浏览
2026/3/9
来自 openclaw/skills 技能
广告位 300x250
资源信息
- 数据来源
- bigquery-gharchive
- 分类
- uncategorized
- 创建时间
- 2026/3/9
- 更新时间
- 2026/3/14
评论 (0)
登录后发表评论
加载中...