24 public Antigravity rules in the HyperPrompt directory
Google describes Antigravity as its agentic development platform. Antigravity reads workspace rules from AGENTS.md or GEMINI.md and from Markdown files in .agents/rules/, with a trigger front matter field that sets when a rule is active. Global rules live under ~/.gemini/.
Setup details below were checked against the official Google Antigravity documentation on 2026-11-05. Vendor tools change often; confirm with the linked sources if something behaves differently in your version.
| File or location | Scope | Status |
|---|---|---|
<dir>/AGENTS.md or <dir>/GEMINI.md | Workspace instructions. | current |
<dir>/.agents/rules/*.md | Workspace rules with a trigger setting. | current |
~/.gemini/AGENTS.md, ~/.gemini/GEMINI.md, ~/.gemini/config/rules/*.md | Global rules for every workspace. | optional |
<dir>/.agent/rules/*.md | Older rules folder name. | legacy |
.agents/rules/frontend.mdIllustrative example using the documented glob trigger.
--- trigger: glob globs: "web/src/**/*.tsx" --- - Use the shared Button and Input components from web/src/ui. - Every page needs a loading and an error state. - Run "npm run lint" and the relevant tests before finishing a task.
AGENTS.md (or GEMINI.md) in a workspace directory is one of the documented rule locations, and ~/.gemini/AGENTS.md works globally. Use .agents/rules/ when a rule should only apply in some situations.
Earlier versions of this page mentioned a .antigravity file and .gemini/ directories in the project. The current rules documentation lists AGENTS.md, GEMINI.md and .agents/rules/ (with .agent/rules/ as the older folder name) and does not describe a .antigravity file.
Collections with at least one matching public rule.
Create particle effect systems
Generate complex animation systems
Generate music-reactive visualizations
Generate game development code
Generate procedural content
Synthesize audio with Web Audio
Generate Web Audio API code
Create canvas-based graphics
Handle MIDI input/output
Integrate AI art generation tools
Create physics simulations
Generate Three.js 3D graphics code
Generate GLSL shader code
Animate SVG elements
Generate WebXR VR/AR experiences
Generate creative and artistic code
Antigravity workspace rule for full-stack TypeScript changes in Next.js 16 with async params, validated Server Actions, Prisma 7 and an explicit verification list.
Antigravity workspace rule for focused React 19 changes with typed components, minimal Zustand selectors, effect discipline and Testing Library checks.
Create shader-based visual art
Create interactive data visualizations
In AGENTS.md or GEMINI.md in the workspace, and in .agents/rules/*.md for scoped rules. Global rules go in ~/.gemini/AGENTS.md, ~/.gemini/GEMINI.md or ~/.gemini/config/rules/.
Set trigger in the rule's front matter to always_on, model_decision, glob or manual. glob rules also need a globs pattern and model_decision rules a description.
Yes. The docs state that any single rule file over 24,000 bytes is truncated and that global and always_on rules share a 20,000-token budget.
Generate a Cursor project rule or a cross-tool AGENTS.md from your stack, then adapt it with the file locations above.