Install
$ agentstack add skill-materialofair-oh-my-antigravity-cancel ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Cancel Skill
Intelligent cancellation that detects and cancels the active OMA mode.
What It Does
Automatically detects which mode is active and cancels it:
- Autopilot: Stops workflow, preserves progress for resume
- Ralph: Stops persistence loop, clears linked ultrawork if applicable
- Ultrawork: Stops parallel execution (standalone or linked)
- Ecomode: Stops token-efficient parallel execution (standalone or linked to ralph)
- UltraQA: Stops QA cycling workflow
- Swarm: Stops coordinated agent swarm, releases claimed tasks
- Ultrapilot: Stops parallel autopilot workers
- Pipeline: Stops sequential agent pipeline
Usage
/oh-my-antigravity :cancel
Or say: "canceloma", "stopoma"
Auto-Detection
The skill checks state files to determine what's active:
.oma/state/autopilot-state.json→ Autopilot detected.oma/state/ralph-state.json→ Ralph detected.oma/state/ultrawork-state.json→ Ultrawork detected.oma/state/ecomode-state.json→ Ecomode detected.oma/state/ultraqa-state.json→ UltraQA detected.oma/state/swarm.db→ Swarm detected (SQLite database).oma/state/ultrapilot-state.json→ Ultrapilot detected.oma/state/pipeline-state.json→ Pipeline detected.oma/state/plan-consensus.json→ Plan Consensus detected.oma/state/ralplan-state.json→ Plan Consensus detected (legacy)
If multiple modes are active, they're cancelled in order of dependency:
- Autopilot (includes ralph/ultraqa/ecomode cleanup)
- Ralph (includes linked ultrawork OR ecomode cleanup)
- Ultrawork (standalone)
- Ecomode (standalone)
- UltraQA (standalone)
- Swarm (standalone)
- Ultrapilot (standalone)
- Pipeline (standalone)
- Plan Consensus (standalone)
Force Clear All
To clear ALL state files regardless of what's active:
/oh-my-antigravity :cancel --force
Or use the --all alias:
/oh-my-antigravity :cancel --all
This removes all state files:
.oma/state/autopilot-state.json.oma/state/ralph-state.json.oma/state/ultrawork-state.json.oma/state/ecomode-state.json.oma/state/ultraqa-state.json.oma/state/swarm.db.oma/state/swarm.db-wal.oma/state/swarm.db-shm.oma/state/swarm-active.marker.oma/state/ultrapilot-state.json.oma/state/pipeline-state.json.oma/state/plan-consensus.json.oma/state/ralplan-state.json~/.gemini/antigravity/ralph-state.json~/.gemini/antigravity/ultrawork-state.json~/.gemini/antigravity/ecomode-state.json
Implementation Steps
When you invoke this skill:
1. Parse Arguments
# Check for --force or --all flags
FORCE_MODE=false
if [[ "$*" == *"--force"* ]] || [[ "$*" == *"--all"* ]]; then
FORCE_MODE=true
fi
2. Detect Active Modes
# Check which modes are active
AUTOPILOT_ACTIVE=false
RALPH_ACTIVE=false
ULTRAWORK_ACTIVE=false
ECOMODE_ACTIVE=false
ULTRAQA_ACTIVE=false
if [[ -f .oma/state/autopilot-state.json ]]; then
AUTOPILOT_ACTIVE=$(cat .oma/state/autopilot-state.json | jq -r '.active // false')
fi
if [[ -f .oma/state/ralph-state.json ]]; then
RALPH_ACTIVE=$(cat .oma/state/ralph-state.json | jq -r '.active // false')
fi
if [[ -f .oma/state/ultrawork-state.json ]]; then
ULTRAWORK_ACTIVE=$(cat .oma/state/ultrawork-state.json | jq -r '.active // false')
fi
if [[ -f .oma/state/ecomode-state.json ]]; then
ECOMODE_ACTIVE=$(cat .oma/state/ecomode-state.json | jq -r '.active // false')
fi
if [[ -f .oma/state/ultraqa-state.json ]]; then
ULTRAQA_ACTIVE=$(cat .oma/state/ultraqa-state.json | jq -r '.active // false')
fi
PLAN_CONSENSUS_ACTIVE=false
# Check both new and legacy locations
if [[ -f .oma/state/plan-consensus.json ]]; then
PLAN_CONSENSUS_ACTIVE=$(cat .oma/state/plan-consensus.json | jq -r '.active // false')
elif [[ -f .oma/state/ralplan-state.json ]]; then
PLAN_CONSENSUS_ACTIVE=$(cat .oma/state/ralplan-state.json | jq -r '.active // false')
fi
3A. Force Mode (if --force or --all)
if [[ "$FORCE_MODE" == "true" ]]; then
echo "FORCE CLEAR: Removing all OMA state files..."
# Remove local state files
rm -f .oma/state/autopilot-state.json
rm -f .oma/state/ralph-state.json
rm -f .oma/state/ultrawork-state.json
rm -f .oma/state/ecomode-state.json
rm -f .oma/state/ultraqa-state.json
rm -f .oma/state/ralph-plan-state.json
rm -f .oma/state/ralph-verification.json
rm -f .oma/state/swarm.db
rm -f .oma/state/swarm.db-wal
rm -f .oma/state/swarm.db-shm
rm -f .oma/state/swarm-active.marker
rm -f .oma/state/ultrapilot-state.json
rm -f .oma/state/pipeline-state.json
rm -f .oma/state/plan-consensus.json
rm -f .oma/state/ralplan-state.json
# Remove global state files
rm -f ~/.gemini/antigravity/ralph-state.json
rm -f ~/.gemini/antigravity/ultrawork-state.json
rm -f ~/.gemini/antigravity/ecomode-state.json
echo "All OMA modes cleared. You are free to start fresh."
exit 0
fi
3B. Smart Cancellation (default)
If Autopilot Active
Use the autopilot cleanup sequence below:
# Autopilot handles its own cleanup + ralph + ultraqa
# Just mark autopilot as inactive (preserves state for resume)
if [[ -f .oma/state/autopilot-state.json ]]; then
# Clean up ralph if active
if [[ -f .oma/state/ralph-state.json ]]; then
RALPH_STATE=$(cat .oma/state/ralph-state.json)
LINKED_UW=$(echo "$RALPH_STATE" | jq -r '.linked_ultrawork // false')
# Clean linked ultrawork first
if [[ "$LINKED_UW" == "true" ]] && [[ -f .oma/state/ultrawork-state.json ]]; then
rm -f .oma/state/ultrawork-state.json
rm -f ~/.gemini/antigravity/ultrawork-state.json
echo "Cleaned up: ultrawork (linked to ralph)"
fi
# Clean ralph
rm -f .oma/state/ralph-state.json
rm -f ~/.gemini/antigravity/ralph-state.json
rm -f .oma/state/ralph-verification.json
echo "Cleaned up: ralph"
fi
# Clean up ultraqa if active
if [[ -f .oma/state/ultraqa-state.json ]]; then
rm -f .oma/state/ultraqa-state.json
echo "Cleaned up: ultraqa"
fi
# Mark autopilot inactive but preserve state
CURRENT_STATE=$(cat .oma/state/autopilot-state.json)
CURRENT_PHASE=$(echo "$CURRENT_STATE" | jq -r '.phase // "unknown"')
echo "$CURRENT_STATE" | jq '.active = false' > .oma/state/autopilot-state.json
echo "Autopilot cancelled at phase: $CURRENT_PHASE. Progress preserved for resume."
echo "Run /oh-my-antigravity :autopilot to resume."
fi
If Ralph Active (but not Autopilot)
Use the ralph cleanup sequence below:
if [[ -f .oma/state/ralph-state.json ]]; then
# Check if ultrawork is linked
RALPH_STATE=$(cat .oma/state/ralph-state.json)
LINKED_UW=$(echo "$RALPH_STATE" | jq -r '.linked_ultrawork // false')
# Clean linked ultrawork first
if [[ "$LINKED_UW" == "true" ]] && [[ -f .oma/state/ultrawork-state.json ]]; then
UW_STATE=$(cat .oma/state/ultrawork-state.json)
UW_LINKED=$(echo "$UW_STATE" | jq -r '.linked_to_ralph // false')
# Only clear if it was linked to ralph
if [[ "$UW_LINKED" == "true" ]]; then
rm -f .oma/state/ultrawork-state.json
rm -f ~/.gemini/antigravity/ultrawork-state.json
echo "Cleaned up: ultrawork (linked to ralph)"
fi
fi
# Clean ralph state (both local and global)
rm -f .oma/state/ralph-state.json
rm -f ~/.gemini/antigravity/ralph-state.json
rm -f .oma/state/ralph-plan-state.json
rm -f .oma/state/ralph-verification.json
echo "Ralph cancelled. Persistent mode deactivated."
fi
If Ultrawork Active (standalone, not linked)
Use the ultrawork cleanup sequence below:
if [[ -f .oma/state/ultrawork-state.json ]]; then
# Check if linked to ralph
UW_STATE=$(cat .oma/state/ultrawork-state.json)
LINKED=$(echo "$UW_STATE" | jq -r '.linked_to_ralph // false')
if [[ "$LINKED" == "true" ]]; then
echo "Ultrawork is linked to Ralph. Use /oh-my-antigravity :cancel to cancel both."
exit 1
fi
# Remove both local and global state
rm -f .oma/state/ultrawork-state.json
rm -f ~/.gemini/antigravity/ultrawork-state.json
echo "Ultrawork cancelled. Parallel execution mode deactivated."
fi
If UltraQA Active (standalone)
Use the ultraqa cleanup sequence below:
if [[ -f .oma/state/ultraqa-state.json ]]; then
rm -f .oma/state/ultraqa-state.json
echo "UltraQA cancelled. QA cycling workflow stopped."
fi
No Active Modes
echo "No active OMA modes detected."
echo ""
echo "Checked for:"
echo " - Autopilot (.oma/state/autopilot-state.json)"
echo " - Ralph (.oma/state/ralph-state.json)"
echo " - Ultrawork (.oma/state/ultrawork-state.json)"
echo " - UltraQA (.oma/state/ultraqa-state.json)"
echo ""
echo "Use --force to clear all state files anyway."
Complete Implementation
Here's the complete bash implementation you should run:
#!/bin/bash
# Parse arguments
FORCE_MODE=false
if [[ "$*" == *"--force"* ]] || [[ "$*" == *"--all"* ]]; then
FORCE_MODE=true
fi
# Force mode: clear everything
if [[ "$FORCE_MODE" == "true" ]]; then
echo "FORCE CLEAR: Removing all OMA state files..."
mkdir -p .oma ~/.gemini/antigravity
# Remove local state files
rm -f .oma/state/autopilot-state.json
rm -f .oma/state/ralph-state.json
rm -f .oma/state/ultrawork-state.json
rm -f .oma/state/ecomode-state.json
rm -f .oma/state/ultraqa-state.json
rm -f .oma/state/ralph-plan-state.json
rm -f .oma/state/ralph-verification.json
rm -f .oma/state/swarm.db
rm -f .oma/state/swarm.db-wal
rm -f .oma/state/swarm.db-shm
rm -f .oma/state/swarm-active.marker
rm -f .oma/state/ultrapilot-state.json
rm -f .oma/state/pipeline-state.json
rm -f .oma/state/plan-consensus.json
rm -f .oma/state/ralplan-state.json
# Remove global state files
rm -f ~/.gemini/antigravity/ralph-state.json
rm -f ~/.gemini/antigravity/ultrawork-state.json
rm -f ~/.gemini/antigravity/ecomode-state.json
echo ""
echo "All OMA modes cleared. You are free to start fresh."
exit 0
fi
# Track what we cancelled
CANCELLED_ANYTHING=false
# 1. Check Autopilot (highest priority, includes cleanup of ralph/ultraqa)
if [[ -f .oma/state/autopilot-state.json ]]; then
AUTOPILOT_STATE=$(cat .oma/state/autopilot-state.json)
AUTOPILOT_ACTIVE=$(echo "$AUTOPILOT_STATE" | jq -r '.active // false')
if [[ "$AUTOPILOT_ACTIVE" == "true" ]]; then
CURRENT_PHASE=$(echo "$AUTOPILOT_STATE" | jq -r '.phase // "unknown"')
CLEANED_UP=()
# Clean up ralph if active
if [[ -f .oma/state/ralph-state.json ]]; then
RALPH_STATE=$(cat .oma/state/ralph-state.json)
RALPH_ACTIVE=$(echo "$RALPH_STATE" | jq -r '.active // false')
if [[ "$RALPH_ACTIVE" == "true" ]]; then
LINKED_UW=$(echo "$RALPH_STATE" | jq -r '.linked_ultrawork // false')
# Clean linked ultrawork first
if [[ "$LINKED_UW" == "true" ]] && [[ -f .oma/state/ultrawork-state.json ]]; then
rm -f .oma/state/ultrawork-state.json
rm -f ~/.gemini/antigravity/ultrawork-state.json
CLEANED_UP+=("ultrawork")
fi
# Clean ralph
rm -f .oma/state/ralph-state.json
rm -f ~/.gemini/antigravity/ralph-state.json
rm -f .oma/state/ralph-verification.json
CLEANED_UP+=("ralph")
fi
fi
# Clean up ultraqa if active
if [[ -f .oma/state/ultraqa-state.json ]]; then
ULTRAQA_STATE=$(cat .oma/state/ultraqa-state.json)
ULTRAQA_ACTIVE=$(echo "$ULTRAQA_STATE" | jq -r '.active // false')
if [[ "$ULTRAQA_ACTIVE" == "true" ]]; then
rm -f .oma/state/ultraqa-state.json
CLEANED_UP+=("ultraqa")
fi
fi
# Mark autopilot inactive but preserve state for resume
echo "$AUTOPILOT_STATE" | jq '.active = false' > .oma/state/autopilot-state.json
echo "Autopilot cancelled at phase: $CURRENT_PHASE."
if [[ ${#CLEANED_UP[@]} -gt 0 ]]; then
echo "Cleaned up: ${CLEANED_UP[*]}"
fi
echo "Progress preserved for resume. Run /oh-my-antigravity :autopilot to continue."
CANCELLED_ANYTHING=true
exit 0
fi
fi
# 2. Check Ralph (if not handled by autopilot)
if [[ -f .oma/state/ralph-state.json ]]; then
RALPH_STATE=$(cat .oma/state/ralph-state.json)
RALPH_ACTIVE=$(echo "$RALPH_STATE" | jq -r '.active // false')
if [[ "$RALPH_ACTIVE" == "true" ]]; then
LINKED_UW=$(echo "$RALPH_STATE" | jq -r '.linked_ultrawork // false')
# Clean linked ultrawork first
if [[ "$LINKED_UW" == "true" ]] && [[ -f .oma/state/ultrawork-state.json ]]; then
UW_STATE=$(cat .oma/state/ultrawork-state.json)
UW_LINKED=$(echo "$UW_STATE" | jq -r '.linked_to_ralph // false')
# Only clear if it was linked to ralph
if [[ "$UW_LINKED" == "true" ]]; then
rm -f .oma/state/ultrawork-state.json
rm -f ~/.gemini/antigravity/ultrawork-state.json
echo "Cleaned up: ultrawork (linked to ralph)"
fi
fi
# Clean linked ecomode if present
LINKED_ECO=$(echo "$RALPH_STATE" | jq -r '.linked_ecomode // false')
if [[ "$LINKED_ECO" == "true" ]] && [[ -f .oma/state/ecomode-state.json ]]; then
ECO_STATE=$(cat .oma/state/ecomode-state.json)
ECO_LINKED=$(echo "$ECO_STATE" | jq -r '.linked_to_ralph // false')
if [[ "$ECO_LINKED" == "true" ]]; then
rm -f .oma/state/ecomode-state.json
rm -f ~/.gemini/antigravity/ecomode-state.json
echo "Cleaned up: ecomode (linked to ralph)"
fi
fi
# Clean ralph state (both local and global)
rm -f .oma/state/ralph-state.json
rm -f ~/.gemini/antigravity/ralph-state.json
rm -f .oma/state/ralph-plan-state.json
rm -f .oma/state/ralph-verification.json
echo "Ralph cancelled. Persistent mode deactivated."
CANCELLED_ANYTHING=true
exit 0
fi
fi
# 3. Check Ultrawork (standalone, not linked)
if [[ -f .oma/state/ultrawork-state.json ]]; then
UW_STATE=$(cat .oma/state/ultrawork-state.json)
UW_ACTIVE=$(echo "$UW_STATE" | jq -r '.active // false')
if [[ "$UW_ACTIVE" == "true" ]]; then
LINKED=$(echo "$UW_STATE" | jq -r '.linked_to_ralph // false')
if [[ "$LINKED" == "true" ]]; then
echo "Warning: Ultrawork is linked to Ralph, but Ralph is not active."
echo "Clearing ultrawork state anyway..."
fi
# Remove both local and global state
rm -f .oma/state/ultrawork-state.json
rm -f ~/.gemini/antigravity/ultrawork-state.json
echo "Ultrawork cancelled. Parallel execution mode deactivated."
CANCELLED_ANYTHING=true
exit 0
fi
fi
# 4. Check Ecomode (standalone, not linked)
if [[ -f .oma/state/ecomode-state.json ]]; then
ECO_STATE=$(cat .oma/state/ecomode-state.json)
ECO_ACTIVE=$(echo "$ECO_STATE" | jq -r '.active // false')
if [[ "$ECO_ACTIVE" == "true" ]]; then
LINKED=$(echo "$ECO_STATE" | jq -r '.linked_to_ralph // false')
if [[ "$LINKED" == "true" ]]; then
echo "Warning: Ecomode is linked to Ralph, but Ralph is not active."
echo "Clearing ecomode state anyway..."
fi
# Remove both local and global state
rm -f .oma/state/ecomode-state.json
rm -f ~/.gemini/antigravity/ecomode-state.json
echo "Ecomode cancelled. Token-efficient execution mode deactivated."
CANCELLED_ANYTHING=true
exit 0
fi
fi
# 5. Check UltraQA (standalone)
if [[ -f .oma/state/ultraqa-state.json ]]; then
ULTRAQA_STATE=$(cat .oma/state/ultraqa-state.json)
ULTRAQA_ACTIVE=$(echo "$ULTRAQA_STATE" | jq -r '.active // false')
if [[ "$ULTRAQA_ACTIVE" == "true" ]]; then
rm -f .oma/state/ultraqa-state.json
echo "UltraQA cancelled. QA cycling workflow stopped."
CANCELLED_ANYTHING=true
exit 0
fi
fi
# 6. Check Swarm (SQLite-based)
SWARM_DB=".oma/state/swarm.db"
if [[ -f "$SWARM_DB" ]]; then
# Check if sqlite3 CLI is available
if command -v sqlite3 &>/dev/null; then
# Query SQLite to check if swarm is active
SWARM_ACTIVE=$(sqlite3 "$SWARM_DB" "SELECT active FROM swarm_session WHERE id = 1;" 2>/dev/null || echo "0")
if
…
## Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- **Author:** [materialofair](https://github.com/materialofair)
- **Source:** [materialofair/oh-my-antigravity](https://github.com/materialofair/oh-my-antigravity)
- **License:** MIT
- **Homepage:** https://github.com/materialofair/oh-my-antigravity
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.