Superpowers for Gemini's Antigravity (like Claude Superpowers)
npx skills add https://github.com/anthonylee991/gemini-superpowers-antigravity --skill superpowers-rest-automationInstallieren Sie diesen Skill ΓΌber die CLI und beginnen Sie mit der Verwendung des SKILL.md-Workflows in Ihrem Arbeitsbereich.
A systematic workflow framework for Google Antigravity that helps you build better code through structured planning, test-driven development, and optional parallel execution.
Think of it as "guardrails for AI coding" - it prevents you from diving straight into code and instead guides you through brainstorming β planning β building β reviewing.
Inspired by: Claude Superpowers
Adapted for: Google Antigravity with native workflows and skills
Instead of this chaotic workflow:
You: "Build me a CLI tool"
AI: *immediately starts writing code*
You: *realizes halfway through it's not what you wanted*
You get this structured approach:
You: "Build me a CLI tool"
β Brainstorm: AI asks clarifying questions
β Plan: AI writes a step-by-step plan with verification
β You approve the plan
β Execute: AI builds it step-by-step with tests
β Review: AI checks for issues
β Finish: Everything documented and working
Bonus: If your plan has independent steps (like "add 3 separate features"), the AI can work on them in parallel to save time!
These are commands you type in Antigravity:
/superpowers-brainstorm - Explore ideas and ask questions before planning/superpowers-write-plan - Create a detailed plan (no code yet!)/superpowers-execute-plan - Build the code step-by-step/superpowers-execute-plan-parallel - Build independent steps in parallel (faster!)/superpowers-review - Check code quality/superpowers-debug - Systematic debugging/superpowers-finish - Final summary and documentationThese teach the AI how to work:
Automatic enforcement of good practices:
Before starting, make sure you have these tools:
Google Antigravity
Python 3.10 or newer
python --version
Python 3.10.x or higherGemini CLI (makes things faster but not required)
How to check:
gemini --version
If it says "command not found", you don't have it
To install:
npm install -g @google/gemini-cli
Windows users: After installing, verify it works:
gemini --version
If you see a version number, you're good! If not, see Troubleshooting below.
You have two options:
Create a new folder for your project:
Windows (PowerShell):
mkdir my-awesome-project
cd my-awesome-project
Mac/Linux:
mkdir my-awesome-project
cd my-awesome-project
Copy the .agent folder from this repo into your project:
Windows (PowerShell):
# Replace the path with where you downloaded this repo
Copy-Item -Recurse C:\path\to\gemini-superpowers-antigravity\.agent .
Mac/Linux:
# Replace the path with where you cloned this repo
cp -r /path/to/gemini-superpowers-antigravity/.agent .
Initialize git (required for the framework to work):
git init
git add .agent
git commit -m "Add Superpowers framework"
Open Antigravity in this folder:
From your terminal:
# Make sure you're in my-awesome-project folder
# Then open Antigravity (however you normally do it)
Or: Open Antigravity β File β Open Folder β Select my-awesome-project
Clone this repo:
git clone <your-repo-url>
cd gemini-superpowers-antigravity
Install Python dependencies (for the demo only):
Windows (PowerShell):
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -U pip
pip install fastapi uvicorn httpx pytest
Mac/Linux:
python -m venv .venv
source .venv/bin/activate
pip install -U pip
pip install fastapi uvicorn httpx pytest
Run the demo tests (optional but cool to see it work):
pytest -q
You should see: 6 passed β
Open Antigravity in this folder
In Antigravity, type:
/superpowers-reload
You should see output like:
I've reloaded the Superpowers framework:
Rules: superpowers.md
Workflows: 8 loaded (brainstorm, debug, execute-plan, execute-plan-parallel, finish, reload, review, write-plan)
Skills: 9 loaded (brainstorm, debug, finish, plan, python-automation, rest-automation, review, tdd, workflow)
I will follow these instructions for the rest of this session.
If you see this, you're ready! π
If you see "command not found":
.agent/Let's build something simple to see how it works.
In Antigravity, type:
/superpowers-brainstorm
I want to build a simple calculator CLI tool in Python that can add, subtract, multiply, and divide two numbers.
What happens:
artifacts/superpowers/brainstorm.mdWhat you do: Answer the questions to help the AI understand what you want.
In Antigravity, type:
/superpowers-write-plan
Build a Python calculator CLI with add, subtract, multiply, divide functions. Use argparse for command-line args. Include tests for each function.
What happens:
artifacts/superpowers/plan.mdWhat you do:
artifacts/superpowers/plan.md (or in the chat)APPROVEDExample plan you might see:
## Plan
Step 1: Create calculator module
Files: calculator.py
Change: Add functions for add, subtract, multiply, divide
Verify: python -c "from calculator import add; print(add(2, 3))"
Step 2: Add tests
Files: test_calculator.py
Change: Add pytest tests for all functions
Verify: pytest test_calculator.py
Step 3: Create CLI
Files: cli.py
Change: Use argparse to create command-line interface
Verify: python cli.py add 2 3
After you approve, the AI will say:
Plan approved. Run `/superpowers-execute-plan` to begin implementation.
Now type:
/superpowers-execute-plan
What happens:
artifacts/superpowers/plan.mdartifacts/superpowers/execution.mdartifacts/superpowers/finish.mdWhat you see:
Implementing Step 1: Create calculator module
[AI writes calculator.py]
Running verification: python -c "from calculator import add; print(add(2, 3))"
β
Output: 5
Step 1 complete!
Implementing Step 2: Add tests
[AI writes test_calculator.py]
Running verification: pytest test_calculator.py
β
4 passed
Step 2 complete!
... (continues for each step)
All steps complete! π
What you do: Just watch! The AI does the work. If it asks questions, answer them.
Look at the code:
ls
You should see new files: calculator.py, test_calculator.py, cli.py
Try running it:
python cli.py add 5 3
Should show: 8
Check the artifacts:
# Windows
ls artifacts\superpowers\
# Mac/Linux
ls artifacts/superpowers/
You should see:
plan.md - The plan you approvedexecution.md - Step-by-step log of what happenedfinish.md - Final summaryIf your plan has independent steps (steps that don't depend on each other), you can run them in parallel to save time!
Good for parallel:
Not good for parallel:
Option 1: Let the AI suggest it
When you run /superpowers-execute-plan, if the AI detects independent steps, it will ask:
I notice steps 1, 2, 3 are independent and could run in parallel.
Would you like to use `/superpowers-execute-plan-parallel` for faster execution?
Or continue with sequential execution? (Reply: PARALLEL or SEQUENTIAL)
Reply: PARALLEL
Option 2: Use it directly
After approving your plan, type:
/superpowers-execute-plan-parallel
Sequential execution:
Step 1 (5 min) β Step 2 (5 min) β Step 3 (5 min) = 15 minutes total
Parallel execution:
Step 1 (5 min) β
Step 2 (5 min) ββ All run at the same time
Step 3 (5 min) β
Total: ~5 minutes (60% faster!)
What you'll see:
Analyzing plan for parallel execution...
Batch 1 (PARALLEL - 3 steps):
- Step 1: Add feature X
- Step 2: Add feature Y
- Step 3: Add feature Z
π€ Spawning 3 subagents...
Subagent 1: Working on Step 1...
Subagent 2: Working on Step 2...
Subagent 3: Working on Step 3...
β
Batch 1 completed in 5.2s
Time saved: 10 minutes vs sequential!
Where are the logs?
Check artifacts/superpowers/subagents/ - you'll see one log file per subagent showing exactly what each one did.
Problem: Antigravity doesn't see the workflows.
Solution:
.agent//superpowers-reload
Problem: You don't have Gemini CLI installed, or it's not in your system PATH.
Solution for Windows:
Install Gemini CLI:
npm install -g @google/gemini-cli
Verify it installed:
gemini --version
Should show: @google/gemini-cli version X.X.X
If it still says "not found":
npm config get prefix
C:\Users\YourName\AppData\Roaming\npmAlternative: Just use sequential execution instead:
/superpowers-execute-plan
(It's a bit slower but works without Gemini CLI)
Solution for Mac/Linux:
Install Gemini CLI:
npm install -g @google/gemini-cli
Verify:
which gemini
Should show a path like: /usr/local/bin/gemini
If not found:
echo $PATH and look for npm's bin folderProblem: The AI isn't following the Superpowers rules.
Solution:
.agent/rules/superpowers.md exists/superpowers-reload
/superpowers-write-plan <your task>
Problem: Files aren't being written to artifacts/superpowers/.
Solution:
ls artifacts/superpowers/
Please follow the superpowers-execute-plan workflow and write artifacts to disk.
Problem: Antigravity cached the old version.
Solution:
/superpowers-reload
This forces Antigravity to re-read all .agent/ files.
your-project/
βββ .agent/ β The Superpowers framework (copy this!)
β βββ rules/
β β βββ superpowers.md β Rules the AI must follow
β βββ workflows/
β β βββ superpowers-write-plan.md
β β βββ superpowers-execute-plan.md
β β βββ ... β Slash commands
β βββ skills/
β βββ superpowers-tdd/
β βββ superpowers-debug/
β βββ ... β Building blocks for the AI
β
βββ artifacts/ β Generated outputs (git-ignored)
β βββ superpowers/
β βββ plan.md β Your approved plan
β βββ execution.md β Step-by-step execution log
β βββ finish.md β Final summary
β βββ subagents/ β Parallel execution logs
β
βββ your-code-here.py β Your actual project files
βββ tests/ β Tests the AI creates
βββ README.md β Your project docs
Task: "Create a script that counts words in a text file"
Commands you'd use:
/superpowers-write-plan Create a Python script that counts words in a text file
β Review plan
APPROVED
β AI creates plan
/superpowers-execute-plan
β AI builds: word_counter.py, test_word_counter.py
β AI verifies it works
β Done!
Result: Working script with tests in ~5 minutes
Task: "Build a GitHub API client that lists user repos"
Commands:
/superpowers-brainstorm I want to build a GitHub API client
β AI asks: Authentication? Rate limiting? Which endpoints?
β You answer
/superpowers-write-plan Build a GitHub API client with authentication, rate limiting, and repo listing
β AI creates detailed plan
APPROVED
/superpowers-execute-plan
β AI implements step-by-step
β Each step verified
β Done!
Result: Production-ready API client with error handling and tests
Task: "Add logging, config file support, and --verbose flag to my CLI"
Commands:
/superpowers-write-plan
Add three features to my CLI:
1. Logging to a file
2. Load settings from a config file
3. --verbose flag for detailed output
Each feature should be independent.
β AI creates plan with 3 independent steps
APPROVED
/superpowers-execute-plan-parallel
β AI spawns 3 subagents
β All 3 features built simultaneously
β 60% faster than sequential!
Result: All three features done in ~5 minutes instead of ~15 minutes
1. /superpowers-write-plan <describe what you want>
2. Read the plan, type: APPROVED
3. /superpowers-execute-plan
4. Done! Check your code and artifacts/superpowers/finish.md
| Command | What It Does | When to Use |
|---|---|---|
/superpowers-brainstorm |
Explore ideas with Q&A | When you're not sure exactly what you want |
/superpowers-write-plan |
Create a detailed plan | Start of every task |
/superpowers-execute-plan |
Build code step-by-step | After approving plan |
/superpowers-execute-plan-parallel |
Build independent steps in parallel | When plan has 3+ independent steps |
/superpowers-review |
Check code quality | Before finishing, or when debugging |
/superpowers-debug |
Systematic debugging | When something's broken |
/superpowers-finish |
Create final summary | After everything works |
/superpowers-reload |
Reload all workflows/rules | After editing .agent/ files |
Want to improve this framework? PRs welcome!
Good ideas for contributions:
MIT License - See LICENSE file
artifacts/superpowers/ folder tells you exactly what happened/superpowers-reloadHappy coding! π