🚀 Antigravity AI User Guide

Master AI-Assisted Development

📋 Prerequisites

To get the most out of Antigravity, make sure you have the following installed and configured:

Essential Tools

Development Environment

⚡ Critical Best Practices

1. Content Security Policy (CSP) Compliance

⚠️ NEVER use inline scripts or styles if you have a strict CSP!

Common CSP violations and solutions:

Example of this error in the console:

Content-Security-Policy: The page's settings blocked an inline style (style-src-attr) from being applied because it violates the following directive: "style-src https://computerbas.nl https://www.computerbas.nl https://fonts.googleapis.com". Consider using a hash ('sha256-XoyA6I7sr9dzOSTfmY1xNE/1EG5WVS0HHeMgznsqsTc=', requires 'unsafe-hashes' for style attributes) or a nonce.

❌ BAD - Inline event handlers:

<button onclick="toggleTheme()">Toggle</button>

✅ GOOD - Use addEventListener:

// In external JS file
document.getElementById('btn').addEventListener('click', toggleTheme);

❌ BAD - Inline style attributes:

<footer style="margin-top: 3rem; text-align: center">

✅ GOOD - Use CSS classes:

// In CSS file
.page-footer { margin-top: 3rem; text-align: center; }
// In HTML
<footer class="page-footer">

Best practices:

2. Error Checking Workflow

Before considering a task complete:

3. Read Changes Carefully

🤖 Understanding AI Limitations

Remember: Antigravity is just a computer

Session Management Strategy

Question: Should I do everything in one BIG session or use separate sessions?

Answer: Separate, focused sessions are better!

🎯 Proven Success Strategies

What led to this success

🔧 Quick Reference Commands

# PHP Syntax Check
php -l filename.php

# Execute PHP Script
php filename.php

# WSL Commands
wsl grep -r "search term" .
wsl find . -name "*.php"

# Count Lines in File
wsl wc -l filename.php

✨ Pro Tips

🚫 Common Pitfalls

This guide is based on successful projects with computerbas.nl.

Last updated: 23/12/2025

User