TTechSpecs

Antigravity 安裝指南

Antigravity 是創新的 AI 開發平台,專為現代軟體團隊設計,提供智慧型協作和程式碼生成功能,並完整支援 Superpowers 技能系統。

平台特色

Antigravity 作為新一代 AI 開發平台,提供:

  • 🚀 智慧協作:AI 輔助團隊協作和知識管理
  • 🔧 全功能 IDE:完整的線上整合式開發環境
  • 🤖 先進模型:使用最新的 AI 模型和技術
  • 🌐 雲端原生:基於瀏覽器的雲端開發環境
  • 📚 Superpowers 支援:完整技能生態系統整合

系統需求

硬體需求

  • 處理器:現代瀏覽器支援(Chrome 90+、Edge 90+、Safari 14+)
  • 記憶體:至少 4 GB RAM(建議 8 GB 以上)
  • 硬碟空間:至少 500 MB 可用空間(雲端環境)

軟體需求

  • 瀏覽器
    • Chrome 90+(推薦)
    • Edge 90+
    • Safari 14+、Firefox 90+
  • 網路:穩定的網際網路連線
  • 帳號:Google 帳號或 GitHub 帳號

安裝步驟

Web 平台使用

# 第 1 步:訪問 Antigravity
# 訪問 https://antigravity.com

# 第 2 步:建立帳號
# 使用 Google 或 GitHub 帳號登入
# 或使用 Email 建立新帳號

# 第 3 步:選擇方案
# 選擇免費或付費方案
# 免費方案已包含基本 Superpowers 支援

# 第 4 步:完成設定
# 設定個人偏好
# 選擇主題和語言(繁體中文)

建立專案

# 在 Antigrativity 中
# 1. 點擊 "New Project"
# 2. 選擇專案類型
#    - Web Application
#    - API Service
#    - Machine Learning
#    - Data Analysis
# 3. 設定專案名稱
# 4. 選擇技術棧
#    - React + TypeScript
#    - Node.js + Express
#    - Python + FastAPI
# 5. 點擊 "Create"

配置設定

專案配置

# 在專案中建立配置
cat > .antigravity/config.json << 'EOF
{
  "project": {
    "name": "我的專案",
    "type": "web-app",
    "language": "typescript",
    "framework": "react"
  },
  "ai": {
    "model": "claude-fable-5",
    "temperature": 0.7,
    "maxTokens": 100000
  },
  "superpowers": {
    "enabled": true,
    "language": "zh-TW",
    "skillsPath": ".superpowers/skills",
    "autoLoad": true,
    "contextFiles": ["README.md", "CLAUDE.md"]
  }
}
EOF

環境變數

# 在 Antigravity 專案設定中
# Settings -> Environment Variables

# 設定 API 金鑰
ANTHROPIC_API_KEY=sk-...

# 設定預設模型
DEFAULT_MODEL=claude-fable-5

# 設定 Superpowers 路徑
SUPERPOWERS_SKILLS_PATH=.superpowers/skills

# 設定語言
LANGUAGE=zh-TW

工作區設定

# 設定工作區偏好
# Settings -> Workspace

# 設定編輯器偏好
{
  "editor.fontSize": 14,
  "editor.tabSize": 2,
  "editor.theme": "dark",
  "editor.fontFamily": "Fira Code, Consolas"
}

# 設定 AI 輔助偏好
{
  "ai.suggestionsEnabled": true,
  "ai.autoCompletion": true,
  "ai.explanationEnabled": true
}

使用方式

AI 協作介面

# 在 Antigravity 中
# 1. 點擊右側 AI 面板
# 2. 選擇 "Chat" 模式

# 使用 Superpowers 技能
// Chat 中輸入
使用 brainstorming skill 探索新功能的實作方式

// Antigravity 會使用繁體中文回應
// 並顯示相關的程式碼建議

智慧程式碼編輯

// 在線編輯器中編寫程式碼
// Antigravity 提供即時的 AI 建議

// 輸入註解觸發技能
/**
 * SUPERPOWERS: test-driven-development
 * 為此元件撰寫測試案例
 */

// Antigravity 會:
// 1. 分析元件功能
// 2. 生成測試程式碼
// 3. 解釋測試策略

團隊協作

# 邀請團隊成員
# Settings -> Team -> Invite Members

# 分享專案
# 在專案頁面點擊 "Share"
# 設定權限:Viewer、Editor、Admin

# 即時協作
# 在同一檔案中同時編輯
// Antigravity 會:
// - 顯示即時游標位置
// - 同步變更內容
// - 顯示協作者狀態

Superpowers 整合

啟用 Superpowers

# 在專案設定中啟用 Superpowers
# Settings -> Features -> Superpowers

# 點擊 "Enable Superpowers"
# 選擇要啟用的技能
# - brainstorming
# - writing-plans
# - test-driven-development
# - 等等

使用技能

// 在編輯器中直接使用技能

// 方法 1:透過註解觸發
/**
 * SUPERPOWERS: brainstorming
 * 探索此元件的最佳實作方式
 */

// 方法 2:透過指令面板
// Ctrl+Shift+P -> "Superpowers: Run Skill"
// 選擇 brainstorming

// 方法 3:透過右鍵選單
// 在程式碼編輯器中右鍵
// 選擇 "Superpowers" -> 選擇技能

技能熱鍵

# 設定快速技能熱鍵
# Settings -> Shortcuts -> Superpowers

{
  "superpowers.hotkeys": {
    "ctrl+alt+b": "brainstorming",
    "ctrl+alt+p": "writing-plans",
    "ctrl+alt+t": "test-driven-development",
    "ctrl+alt+d": "systematic-debugging",
    "ctrl+alt+v": "verification-before-completion"
  }
}

進階功能

專案範本

# 在專案中建立 .antigravity/scripts/ 目錄
# 建立自動化腳本

# 建置前腳本
cat > .antigravity/scripts/setup.sh << 'EOF'
#!/bin/bash
# 自動建置腳本

echo "初始化專案..."
npm install

echo "設定 Superpowers..."
mkdir -p .superpowers/skills
cp -r ~/.superpowers/skills/* .superpowers/skills/

echo "執行測試..."
npm test

echo "建置專案..."
npm run build
EOF

chmod +x .antigravity/scripts/setup.sh

CI/CD 管線

# Antigravity CI/CD 整合
# antigravity.yml

name: Superpowers CI
on: [push, pull_request]

jobs:
  superpowers-check:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      
      - name: Setup Node.js
        uses: actions/setup-node@v2
        with:
          node-version: '18'
          
      - name: Install dependencies
        run: npm ci
        
      - name: Run Superpowers verification
        run: npx antigravity-verify --skill verification-before-completion
        
      - name: Run Superpowers review
        run: npx antigravity-review --skill requesting-code-review

團隊管理

# 團隊權限管理
# Admin:完整存取權
# Editor:可編輯和提交
# Viewer:唯讀存取

# 建立團隊空間
# 在專案中建立團隊空間
# 邀請成員進入共同編輯

# 程式碼審查
# 在 Pull Request 中
# 自動執行 code review
# 使用 Superpowers requesting-code-review skill

常見問題

安裝問題

Q1: 無法建立帳號

A:

# 確保沒有使用臨時 Email
# 使用 Gmail、Outlook 等主要 Email

# 檢查瀏覽器支援
# 確保瀏覽器啟用 JavaScript 和 Cookies
# 嘗試其他瀏覽器

Q2: 無法連接到雲端

A:

# 檢查網路連線
ping api.antigravity.com

# 清除瀏覽器快取
# 按 Ctrl+Shift+Delete
# 清除快取和 Cookie

# 重新登入
# 登出後重新登入帳號

Q3: 編輯器無法回應

A:

# 重新整理視頁
# Ctrl+R (Windows/Linux)
# Cmd+R (macOS)

# 清除瀏覽器快取
# Settings -> Privacy -> Clear Cache

# 重啟瀏覽器
# 完全關閉後重新開啟

配置問題

Q4: API 金鑰設定失敗

A:

# 重新設定 API 金鑰
# Settings -> API Keys
# 輸入新的金鑰

# 或透過環境變數
ANTHROPIC_API_KEY="sk-..."

Q5: 技能無法啟用

A:

# 檢查 Superpowers 設定
# Settings -> Features -> Superpowers
# 確認 "Enabled" 已開啟

# 重新載入專案
# 重新開啟專案頁面

# 檢查技能路徑
# 在專案設定中確認 skillsPath 正確

使用問題

Q6: AI 回應緩慢

A:

# 調整 AI 設定
{
  "ai.timeout": 60000,
  "ai.maxTokens": 50000
}

# 使用較快的模型
{
  "ai.model": "claude-opus-4-8"
}

Q7: 團隊協作出現衝突

A:

# 使用編輯器鎖定功能
# 檢案右上角會顯示其他編輯者

# 建立編輯順序
# Settings -> Team -> Edit Order
# 設定誰可以編輯

# 使用分支功能
# 在不同分支上工作,然後合併

效能優化

網路優化

# 使用 CDN
{
  "cdn.enabled": true,
  "cdn.provider": "cloudflare"
}

// 啟用快取
{
  "cache.enabled": true,
  "cache.ttl": 3600
}

協作優化

// 最佳化團隊協作
{
  "collaboration.realTimeSync": true,
  "collaboration.conflictResolution": "latest-wins",
  "collaboration.autoSave": true
}

編輯器效能

// 調整編輯器設定
{
  "editor.autoSaveDelay": 1000,
  "editor.minimapEnabled": false,
  "editor.renderWhitespace": false
}

資源連結

官方資源

學習資源

社群資源

下一步

安裝完成後,建議:

  1. 建立專案:建立第一個 Antigravity 專案
  2. 邀請團隊:邀請同事或朋友加入專案
  3. 探索功能:嘗試 AI 協作和程式碼編輯
  4. 啟用 Superpowers:安裝並配置技能系統
  5. 建立流程:建立團隊開發流程

開始使用 Antigravity 和 Superpowers,體驗新一代雲端 AI 開發平台的強大能力!