anti-gravity-codegen

star 0

Autonomous code generation without human intervention. Creates, refactors, and fixes code using AI. Use for rapid prototyping, feature implementation, refactoring, and bug fixing - all automatically.

orelIL123 By orelIL123 schedule Updated 2/18/2026

name: anti-gravity-codegen description: Autonomous code generation without human intervention. Creates, refactors, and fixes code using AI. Use for rapid prototyping, feature implementation, refactoring, and bug fixing - all automatically.

Anti-Gravity Codegen ๐Ÿš€

Autonomous code generation. Describe what you want, get working code.

Quick Start

# Generate new feature
python3 {baseDir}/scripts/antigravity.py generate "Create a React login form with validation"

# Refactor existing code
python3 {baseDir}/scripts/antigravity.py refactor src/old.js --target "Convert to TypeScript"

# Fix bugs automatically
python3 {baseDir}/scripts/antigravity.py fix src/buggy.js --from-error "TypeError: Cannot read property"

# Generate from template
python3 {baseDir}/scripts/antigravity.py template "API endpoint" --output src/api/users.ts

How It Works

  1. Analyze - Understands requirements and context
  2. Generate - Creates code using AI
  3. Validate - Checks syntax and basic errors
  4. Test - Runs if tests exist
  5. Integrate - Places in correct location

Commands

Generate

antigravity.py generate "<description>" [--output <file>] [--template <type>]

Templates:

  • react-component - React component with props
  • api-endpoint - REST API endpoint
  • function - Utility function
  • class - OOP class structure
  • test - Unit tests

Refactor

antigravity.py refactor <file> --target "<goal>"

Examples:

  • "Convert to async/await"
  • "Add TypeScript types"
  • "Extract into smaller functions"
  • "Modernize ES5 to ES6+"

Fix

antigravity.py fix <file> --from-error "<error message>"

Auto-fixes based on:

  • Error messages
  • Stack traces
  • Linting errors
  • Type errors

Examples

Generate Component

$ antigravity.py generate "Button component with loading state" --template react-component --output src/Button.tsx

โœ… Generated: src/Button.tsx
   Props: label, onClick, loading, disabled
   Size: 45 lines
   TypeScript: โœ“

Refactor Legacy Code

$ antigravity.py refactor src/old-api.js --target "Convert to fetch API with error handling"

โœ… Refactored: src/old-api.js
   Changes: 12 modifications
   Tests passing: โœ“

Auto-Fix Bug

$ antigravity.py fix src/utils.js --from-error "Cannot read property 'map' of undefined"

โœ… Fixed: Added null check
   Line 23: if (!data) return []

Workflow Integration

With Git Cycle

# Generate, test, commit
antigravity.py generate "new feature"
npm test
gitcycle.py full -m "Add auto-generated feature"

With Master Coding Cycle

# Part of full development cycle
requirements = "Add user authentication"
generated = antigravity.generate(requirements)
tests_pass = test.run(generated)
if tests_pass:
    git.commit("Add auth")

Safety Features

  • โœ… Backup original files
  • โœ… Validate generated code
  • โœ… Run existing tests
  • โœ… Show diff before applying
  • โš ๏ธ Review mode for critical files

Configuration

{
  "anti-gravity": {
    "model": "claude-3.5-sonnet",
    "temperature": 0.2,
    "autoApply": false,
    "reviewRequired": true
  }
}

Best Practices

  1. Start small - Generate functions, not whole apps
  2. Review output - Always check generated code
  3. Test immediately - Run tests after generation
  4. Commit first - Git backup before big changes
  5. Iterate - Generate โ†’ Review โ†’ Refine
Install via CLI
npx skills add https://github.com/orelIL123/clawdbot-skiils --skill anti-gravity-codegen
Repository Details
star Stars 0
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator