| name | antigravity-proxy |
| description | MITM proxy bridge for free AI model access — intercepts IDE traffic to provide Claude/Gemini model access via multiple account rotation with staggered token refresh. Use when use when setting up free ai model access via mitm proxy, managing staggered oauth token refresh, or bridging ide traffic to ai providers Triggers on keywords: mitm, proxy, claude, gemini, free-tier, antigravity.
|
| allowed-tools | Read, Write, Bash, Edit, Grep, Glob |
| user-invocable | true |
| mcp-servers | ["filesystem","github","docker"] |
MITM Proxy Bridge
context
MITM proxy bridge for free AI model access — intercepts IDE requests and routes through alternative endpoints. Handles auth token rotation and request rewriting. This skill provides infrastructure-as-code patterns and operational procedures that ensure reliability, security, and observability of critical infrastructure components.
instructions
Step 1: Assess Infrastructure Requirements
- Identify the infrastructure need — routing, proxying, credential management, or CLI orchestration
- Determine deployment target — local, cloud, or hybrid
- Map dependencies — what services, APIs, or systems must be accessible
- Establish SLOs — uptime, latency, and error rate targets
Step 2: Design Infrastructure Layer
- Architecture — Define the component topology and data flow
- Configuration — Set up environment-specific configuration with secrets management
- Health checks — Implement liveness, readiness, and startup probes
- Failover — Design redundancy with automatic recovery procedures
Step 3: Generate Infrastructure Specification
## Infrastructure Specification
### Architecture
Component diagram and data flow description
### Configuration
- Environment variables: list with descriptions
- Secrets: list with rotation policy
- Resource limits: CPU, memory, disk
### Health and Monitoring
- Liveness: health check endpoint and interval
- Readiness: dependency connectivity check
- Metrics: key metrics to track
- Alerts: threshold-based alerting rules
### Failover Procedures
- Primary failure: automatic recovery steps
- Cascading failure: circuit breaker behavior
- Full outage: manual recovery runbook
Step 4: Operational Readiness
constraints
- NEVER store secrets in code or configuration files — use a vault.
- NEVER deploy without health checks and monitoring.
- NEVER assume network reliability — design for failure at every layer.
- ALWAYS test failover procedures before relying on them.
- ALWAYS maintain audit logs for all credential access.
examples
Example: Infrastructure Setup
Input: "Use when setting up free AI model access via MITM proxy, managing staggered OAuth token refresh, or bridging IDE traffic to AI providers"
Output:
## Infrastructure Specification
### Architecture
Multi-layer antigravity proxy with automatic failover between primary and backup endpoints.
### Configuration
- PRIMARY_ENDPOINT: configured via environment
- FALLBACK_ENDPOINT: configured via environment
- MAX_RETRIES: 3
- TIMEOUT_MS: 5000
### Health and Monitoring
- Liveness: GET /health every 30s
- Readiness: Dependency connectivity check
- Metrics: request_rate, error_rate, latency_p99
- Alerts: error_rate exceeding threshold for 2 minutes
### Failover Procedures
- Primary failure: Auto-switch to fallback within 5s
- Both down: Queue requests, retry every 30s
- Recovery: Auto-switch back to primary when healthy